instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm using this code for showing image inside any tag:
var imgs = $(this).find("p").attr("rel");
$('.hLeft img').attr("src", imgs);
Markup:
<div class="hLeft">
<h2></h2>
<a href="" class="mn">
</a>
<img src="" />
</div>
But when I insert <img> inside a, my script not working.
$('.mn img').attr... | stackexchange/codereview |
I am using Entity Frameworks Code First. I have one entity that I need to keep a change history on. This entity has a double property and when it changes I need to record the amount change amount and date that it occurred. This means I need the old value the new value subtract and post ever time that value changes or w... | stackexchange/codereview |
Does anyone have any experience using r/python with data stored in Solid State Drives. If you are doing mostly reads, in theory this should significantly improve the load times of large datasets. I want to find out if this is true and if it is worth investing in SSDs for improving the IO rates in data intensive applica... | stackexchange/codereview |
I've installed red5 and I can get 1 broadcaster by connecting to rtmp://localhost/app and then a subscriber also by connecting to same url. I can also connect multiple subscriber to the same broadcaster by entering the same url on each.
My question is that if I have multiple broadcasters, do they use the same rtmp://lo... | stackexchange/codereview |
I need to add the following member methods to a number of resources, is there a way to DRY this up?
member do
get :votes
post :up_vote
post :down_vote
end
In my routes.rb
resources :news do
resources :comments do
member do
get :votes
post :up_vote
post :down_vote
... | stackexchange/codereview |
I want to use an interceptor for my bean, which will check the validity of a given connection token.
If the connection is invalid, I want to throw a particular exception, if the connection expired, I want to send another (TokenExpiredException, something like this). These Exceptions are included in the interface given ... | stackexchange/codereview |
I'm having a spot of trouble with ASP.NET 4.0 memberships. I want to have all my membership configuration in my web.config file and not use machine.config. I am storing the membership in a remote SQL Server 2008 R2 database server called MYSERVER\A. Here's the relevant sections of web.config
<connectionStrings>
<cl... | stackexchange/codereview |
is this possible with Mod Re-Write?
IF either mobile users OR searchbots enter server1.com/mobile/
server1/mobile/ url DOES NOT change and
the content is served from foo.server1.com
| stackexchange/codereview |
I would like to have a code in HTML and JavaScript that process SELECT and OPTION Elements
<select>
<option>
</option>
<option>
</option>
</select>
How I can get the Index of the selected option and then get the value of this index?
How can I make 2010 as the default option visual for users in the sel... | stackexchange/codereview |
In a standalone J2SE application I'm using some library code that uses Log.debug from Commons Logging to output some debug information. My app currently has no logging configuration whatsoever. By default I see some log messages in stdout, but not the debug ones. What's the quickest way to enable this?
| stackexchange/codereview |
Manual is pretty vague even for regular views, and doesn't even mention mGLSurfaceView in the UI events overview page.
For starters, all the examples will not work because they rely on the Id for the view (e.g. Button button = (Button)findViewById(R.id.corky);). I'm having a bad time trying to send UI events back and f... | stackexchange/codereview |
I have a cube 'Big' which links (among others) the cube 'Small'. Both are in the same database. I've now added a new dimension to a measure group in 'Small', and would like it to show up for the same measure group in 'Big'.
How can I achieve this?
The Dimension Usage tab for 'Big' won't let me add a relationship betwee... | stackexchange/codereview |
Have noticed this weird bug. Safari's file select modal window triggers "click" on the original window "document" when I try to select a file or click anywhere in the modal.
This breaks my functionality, cause I have an uploader put at a small popup that is supposed to close on document.click, and as you can imagine - ... | stackexchange/codereview |
I am trying to upgrade my application from Rails 2.3.5 to Rails 3.0.3.
Models:
Project.rb
has_many :project_roles, :dependent => :destroy
alias :roles :project_roles
after_create :create_cal_for_project, :make_project_owner
def create_calendar_for_project
self.calendars.create(:name => "default")
end
def make_p... | stackexchange/codereview |
I have provided the test website link below:
http://www.naughtyfancydress.com/html/outfit.html
I am trying to integrate a simple drop down menu to the "Themes" link, but no matter which implementation of a drop down I use, the menu items do not show past the navbar div.
I have set the z-index but short of setting the h... | stackexchange/codereview |
I am writing an android application, which is sending some xml based data to struts2
In struts i retrieve the data and store it in a database.
But how can i send the same data to android in struts. give some code details with
explanation.
Thank you.
| stackexchange/codereview |
I have a two-dimensional list:
List<List<double>> dests = new List<List<double>>();
List<double> s_1 = new List<double>() { 0, 5, 0.5, 2 };
List<double> s_2 = new List<double>() { 5, 0, 1, 0.6 };
List<double> s_3 = new List<double>() { 0.5, 1, 0, 2.5 };
List<double> s_4 = new List<double>() { 2, 0.6, 2.5, 0 };
dests.Ad... | stackexchange/codereview |
I have an activity which uses android:theme="@android:style/Theme.Dialog". The activity contains an ImageView which can show images of different dimensions. The ImageView should scale the Image so that it entirely fits into the window, at least on axes fits entirely and maintains the original aspect ratio. The size of ... | stackexchange/codereview |
Googling "sscanf reference" or various other sscanf search terms brings up plenty of available references regarding the C sscanf function. Many of these references contain explanations of the available tokens that can be used in format string.
I'm looking through another developers code (who no longer works with our c... | stackexchange/codereview |
I've got an element
<input type="text">
On this, there is an Event
onChange="myfunction(param)".
"param" is the content of the input itself. How can I handle, that, when I fire onChange (so complete the change of the field), in this param is the actual value of this field?
Is it possible to do something like that:
... | stackexchange/codereview |
Is there a way to inspect object file generated from code below ( file1.o ) for presence of compiler introduced temporary? What tools can we use to obtain such info from object files?
//file1.cpp
void func(const int& num){}
int main(){ func(2); }
| stackexchange/codereview |
We are migrating to VisiBroker 7.0. In our client application we started to use VBJ Client Runtime provided as a Java archive vbjclientorb.jar file.
There is no com.inprise.vbroker.IIOP.Task in vbjclientorb.jar for AIX.
But com.inprise.vbroker.IIOP.Connection class located in vbjclientorb.jar uses com.inprise.vbrok... | stackexchange/codereview |
I just corrected a bug using this:
_Thread.SetApartmentState(ApartmentState.STA);
Now I'd like to understand what it means, and why it works!
| stackexchange/codereview |
I've been trying to get around a unauthorizedaccessexception caused by trying to create a folder on an external machine, which resides on the same network, I've tried working around this by adding an accessrule, which doesn't help I still get the same error.
String thepath = @"\\WONEATEMPMACHINE\C\ExampleData\"
Directo... | stackexchange/codereview |
I would like to reproduce this effect :
How can I do with xaml ?
(note that the text can be variable)
Thanks in advance for your help
| stackexchange/codereview |
<li> </li>
<li class="wordwrap"></li>
i want to remove li on top level .ie li without a class which resides just on top of li with class .i don't want to remove any other li ? How can we do this with Jquery
| stackexchange/codereview |
I'm trying to get the factorial value of number 66, but my method resulting me an output 0. But whenever I try to get the factorial of 5, it is resulting me an output 120. Could anyone please tell me why?
public static int factorial(int n)
{
if (n == 1)
return n;
return n * fac... | stackexchange/codereview |
OK so I have a C++ function with a header like this:
int myfunc(vector<int> a, vector<mystruct> b, vector<int> c)
I have written the wrapper code (using Python.h as I have done many times with C, which translates the Python data types into the vector datatypes and structs I use in my program). The problem is I don't k... | stackexchange/codereview |
I have two sets of unordered lists with the same class name and I want to subset it with jquery slice.
var currentCount= 0;
var maxCount= 3;
$('.ulClassName>li').slice(currentCount,maxCount).show();
This works perfectly for the first UL (it shows only the first three lists) but does not slice the second UL with the sa... | stackexchange/codereview |
I'm just starting to learn Jquery, and have done a few tutorials, frustratingly, this one is one of the most basic I've done, and I can't seem to get it working.
This is the tutorial I'm following:- http://jonraasch.com/blog/a-simple-jquery-slideshow
When I start the page up, and run debug in Chrome and firebug in fir... | stackexchange/codereview |
When an exception exits a function in a DLL the mingw32 runtime simply calls terminate std::unexpected instead of propagating the exception to the code that is calling the DLL. What solutions are there to this problem? The DLL and the application calling it are both compiled with the same compiler.
There are two differ... | stackexchange/codereview |
My code is throwing the above exception on the following line (line 2 of this) :
final ArrayDescriptor tParamArrayDescriptor = ArrayDescriptor.createDescriptor("MY_SYSTEM.T_PARAM_ARRAY", databaseHandler.getConnection());
final ARRAY oracleArray = new ARRAY(tParamArrayDescriptor, databaseHandler.getConnection(), myObje... | stackexchange/codereview |
I have a Many-to-Many relationship between a persistent object (retrieved by a query) and a newly created transient object (created with new, not yet persisted).
They are connected via a @JoinTable association, such as:
@ManyToMany(cascade=CascadeType.ALL)
@JoinTable(name = "adccollectiontype_cn_node_type", joinColumns... | stackexchange/codereview |
I have a large dataset with the lifespan of threads on an discussion board. I want a histogram that shows the distribution of lifespan, so I did this:
dall <- read.csv("lifespan.csv")
colnames(dall) <- c("thread.id", "seconds.alive", "start.time")
hist(dall$seconds.alive)
which generated this hard to read image:
My ... | stackexchange/codereview |
Basic scenario: I have students, courses, and course-requirements that need to be stored in the database.
Anyone has any insight into the best way to store these and traverse course prerequisites?
1) Simple example:
C: Math 100, prereq: none
C: Math 150, prereq: none
C: Math 200, prereq: Math 101, Math 150
Student A... | stackexchange/codereview |
My table
ID StartTime EndTime
1 09:00:00 10:00:00
2 10:30:00 11:00:00
3 14:30:00 16:00:00
How to check the if passed date ranges fall in between the Start and End Times...like when i say, if starttime is 09:24:00 and endtime is 09:56:00? it should return Id value of 1
Can you some please help me with t... | stackexchange/codereview |
User login my application with oauth, after logout my application but twitter can't do, problem is user twitter account is active.
when that logout my application at the same time logout twitter
twitter api not support this action?
| stackexchange/codereview |
I've run into what i belive could be a major issue for my code design and i was hoping someone here could explain to me how i would work around the issue.
I have 2 classes which each have a property of the other class creating a circular reference. I plan on serializing these classes and using XSLT to format the output... | stackexchange/codereview |
I have created a login and database user called "MYDOMAIN\Domain Users". I need to find what roles a logged on domain user has but all the calls to get the current user return the domain username eg. "MYDOMAIN\username" not the database username eg. "MYDOMAIN\Domain Users".
For example, this query returns "MYDOMAIN\use... | stackexchange/codereview |
Consider the following code snippet
float num = 281.583f;
int amount = (int) Math.round(num*100f);
float rounded = amount/100.0f;
double dblPrecision = rounded;
double dblPrecision2 = num;
System.out.println("num : " + num + " amount: " + amount + " rounded: " + rounded + " dbl: " + dblPrecision + " dbl2: " + dblPrecis... | stackexchange/codereview |
I've got a problem. The function below works 100%, but the if statement which calls the function resolves before the function returns its result!
The alert for "test2" will show BEFORE the alert with the "result: "+data box does. What is the reason?
(The problem being that it ALWAYS resolves to false no matter what bec... | stackexchange/codereview |
Im trying to build a addin that can take some a selection of cells from a excel sheet and then put them together in the first cell i have celected. Between the cells there will be a user selected seperator.
example:
I select the 3 cells A1-A3 with the values A B and C
I then bring up my addin and chose the seperator to... | stackexchange/codereview |
The XNA Game Studio 4.0 introduced Silverlight as a supported project type. It seems like XNA studio is quite cross-platform. But there's nothing that says that my Xbox 360 game can use Silverlight UI. For my planned game, Silverlight would be fine. We don't need rich 3D graphics. But is it possible?
| stackexchange/codereview |
I'm using Visual Studio 2010 and when I do a "Find in Files" the results are returned to the "Find Results 1" window which is docked below my code editor window.
Before, I would double click on one of the results in the Find Results window and the file I clicked on would open in the code editor panel.
The problem is no... | stackexchange/codereview |
Suppose I have the following classes:
class car1 {}
class car2 {}
class car3 {}
class car4 {}
Support I also have the method: queryCar()
private Object queryCar()
{
int version = getCarVersion(); // returns car version
if (version == 1)
return new car1();
else if (version == 2)
return ... | stackexchange/codereview |
Current Magento setup:
Configure Products + Simple Products
Problem:
Configurable product from 2000 simple products is causing an issue as Magento stops responding if i make configurable products from more than 500 simple products
Error Message: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to al... | stackexchange/codereview |
Can anybody refer any resource where i can learn advanced silverlight concepts like creating complex custom controls or any of other advanced concepts? If any book is available then also please mention.
Thanks in advance :)
| stackexchange/codereview |
I have an application that uses SQLite, which is extremely light weight and quick. I have some preferences that don't necessarily need to be loaded on startup, but might need to be used at various times depending on where the user goes. That being said, I can't decide where to store this information.
Q1: Should I just... | stackexchange/codereview |
I'm working on a Google Web Toolkit project, and have a service that requests data from a database. However, this service needs to pass through a proxy in order to fetch the required data. I've tried a variety of options, however most utilise InetSocketAddress, which is on the class blacklist for GAE. So far I've tried... | stackexchange/codereview |
I am sending out ~30k email messages.
Each message will have slightly different content.
I have read that using the php mail() function is not a good idea for Mass Mailing.
What are the pro's and con's of using the inbuilt mail() function and the pro's and con's of using a Mass Mailer such as Swiftmailer.
With particul... | stackexchange/codereview |
I have a vector of unordered_map which is sorted based on the comparer function I defined. I would like to use binary search to look for one of the value using the comparer function as well. However, binary search only return bool and I need the index / iterator of the result. What could I do?
| stackexchange/codereview |
I am quite new to ASP.Net. I have a Master.aspx and a Page1.aspx and Page2.aspx, all in the same directory.
Master:
<asp:HyperLink NavigateUrl="Page1.aspx" runat="server" Text="Page 1" />
<asp:HyperLink NavigateUrl="Page2.aspx" runat="server" Text="Page 2" />
both the Page1 and Page2 gets rendered from above master p... | stackexchange/codereview |
I'm newbie on IOS programming, so I have a question --
what's faster: create request to SQLite for each screen's openning on iPhone OR create one request and then sort result by Objective-C?
example: I have a screen with data and three buttons there.
first sorts and groups data by priority(it's a field of each records... | stackexchange/codereview |
The question title should say it all, but here's an example of what sort of thing I'm looking for:
#ifndef THE_IDENTIFIER_THAT_WOULD_INDICATE_BEING_COMPILED_AS_CPLUSPLUS
/*
* Example of something that would matter.
*/
typedef enum _bool bool;
enum _bool { false, true };
#endif
What is the identifier? It's bugging ... | stackexchange/codereview |
SOLVED: added some java to the Page 1 code to read the URL parameters and then modified the Ajax code as follows:
var d = gup( 'd' );
new Ajax.Request('new_respondent_role_video.php?d=' + d,
Thanks to you all for your help.
EDIT:
The new url that a user will click to access the site is as follows:
http://www.xyv.... | stackexchange/codereview |
I want convert a File(.jpg image file) into a txt file(ASCII code)
now, I had two plans, convert file bytes to Hex,and to Base64
File file=new File("D:/temp/1.jpg");
byte[] bytes=getBytesFromFile(file);
System.out.println("bytes:"+bytes.length);//bytes:9006
String hex=HexUtil.asHex(bytes);
String base64=Base6... | stackexchange/codereview |
How can we make a site with two section admin and user panel.
Zend Framework creates single session Zend_Auth for both panels. Which is creating problem in session handling like admin session goes to user panel vise versa.
My folder structure is:
For user panel: site/app/controllers
For admin: site/app/admin/controlle... | stackexchange/codereview |
I'm having a little excel trouble. I got a backlog sheet which may have some cells blocked and some others unblocked.
When I "protect the sheet" I'm leaving the user who will have access to it with the fallowing options checked:
Select locked cells
Select unlocked cells
Insert Rows
Sort
Use autofilter
Use pivottable r... | stackexchange/codereview |
I m doing an application in iphone, which gets the image as input - it displays images but sometimes it doesn't. so please any one give me the information about the maximum memory size of image the iphone can display.
| stackexchange/codereview |
iam using this form Plugin which can also Accept regex for validation
http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
Iam looking for Regex Validation where the User can enter the value between 1 and 250 .
it cannot accept "0" also .The following should not be allowed... | stackexchange/codereview |
I have a function that's taking a long time to run. When I profile it, I find that over half the time (26 out of 50 seconds) is not accounted for in the line by line timing breakdown, and I can show that the time is spent after the function finishes running but before it returns control by the following method:
ts1 = ... | stackexchange/codereview |
is some sort of lan communication technology anyone know some insite to this subject and point me to the right direction thanks
| stackexchange/codereview |
We are using jQuery and ExtJS in a project. ExtJS's custom theming capabilities are very weak and I would LOVE to utilize the jQuery theming engine with Ext. Does such a thing exist or would it be strictly manual and painful process?
| stackexchange/codereview |
I am using custom tabbar(3 tabs) in my application. each tabs are controlled by navigation controller as shown below. The issue is when on autorotate orientation, each autorotation takes fine on root controller but child controller (shouldAutorotateToInterfaceOrientation) is not responding.
NSMutableArray *localControl... | stackexchange/codereview |
Sorry for this trivial question, but I am new to programming and I wanted to create a Java app that can be distributed to other computers without having to install database on that computer.
The app is similar to an address book app where you store details about a person. Is there a way to create something like that u... | stackexchange/codereview |
I am working on a prime factorization program implemented in Java.
The goal is to find the largest prime factor of 600851475143 (Project Euler problem 3).
I think I have most of it done, but I am getting a few errors.
Also my logic seems to be off, in particular the method that I have set up for checking to see if a... | stackexchange/codereview |
Is there a way I could make a C or C++ program that would run without an operating system and that would draw something like a red pixel to the top left corner? I have always wondered how these types of applications are made. Since Windows is written in C I imagine there is a way to do this.
Thanks
| stackexchange/codereview |
I have the issue, to get a PHP script connecting to an Informix DB. I thought installing the Zend-server community edition and in addition the pdo_informix extension. When I run the Zend-server admin in the browser, I see the pdo_informix extension marked as "green". Afterwards I've installed the Informix ClientSDK 3.7... | stackexchange/codereview |
I'm trying to get a video list w/ thumbnails working with Fancybox - the problem is that it seems each link uses classes to launch the fancybox
What if i want this to be more dynamic, a list of video links and each one opens a new video? I shouldnt have to create a new click function defintion for each one do i?
<scrip... | stackexchange/codereview |
I had an implementation working well but for some reason IE decided it was tired of playing nice. I have an advanced implementation of TinyMCE (the jquery plugin version - see http://tinymce.moxiecode.com/examples/example_23.php for details).
It still works great in all browsers but IE. In IE it shows the drop-down... | stackexchange/codereview |
I have an environment setup w/ nginx+passenger standalone. I'm just using nginx as a reverse proxy. My issue is that if I'm running the site on port 3333, If I use a _url instead of _path like projects_url instead of projects_path, the url comes out like http://99.99.99.99:3333/projects.
How do I get those working co... | stackexchange/codereview |
I'm using Paperclip to handle avatar's for users and currently set a default image using:
:default_url => '/images/img-missing_:style.png'
But what I'd like to do is when a user registers, give them a random avatar that they get until they upload their own.
Twitter does this with its "egg" avatar and that have probably... | stackexchange/codereview |
Simplified: Because the way the problem was presented before was misleading. My mistake. Also not to make peoples' time a complete waste :) :::
Y.h
#ifndef Y_H
#define Y_H
#include <iostream>
class X;
class Y
{
private:
friend class X;
void Print()
{
std::cout << "Y::Print" << ... | stackexchange/codereview |
I want to get rows for all customer details from magento tables.
Can anyone give me the query?
Tables are:
customer_entity
eav_attribute
customer_entity_varchar
| stackexchange/codereview |
I have been using this plugin for jQuery that allows me to easily cycle over 4 images http://jquery.malsup.com/cycle/
Does anyone know of any simular code that I can use to do this using prototype?
Thanks,
Jon
| stackexchange/codereview |
Ok I am missing something here.
I have my dev computer (x86, windows 7) with visual studio Premium.
I have a test machine (x86, windows XP) with visual studio express.
On both compute I compile the exact same thing (winapp + few dll project) in same .net version (3.5) and all the external references are found and acc... | stackexchange/codereview |
I'm attempting to create a PDF/A-1a compliant file that only contains a black and white image (i.e. CCITTFaxD).
I'm running into trouble with the "OutputIntents". I basically can't find an outputintent that's made for 1-bit images.
Does anyone know of a profile I'm suppose to use?
Alternatively, how do I not use an Ou... | stackexchange/codereview |
is there any functional difference between:
if (photos.Any(it => it.Archived))
and
if (photos.Where(it => it.Archived).Any())
if so, is there a more compelling reason to use one over the other?
| stackexchange/codereview |
I'm writing a quick PHP page, and I need to ignore any Strings with accented characters. I am using this preg_match() string on each word:
"[ÀÁÅÃÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ]"
(Quite a brute force method I know, but apparently [a-zA-Z] can match for accented characters)
But the function neve... | stackexchange/codereview |
So I have a JFrame in which inside of it I have a JScrollPane and inside the JScrollPane I have a JPanel. I have a button click mouse listener that modifies the JPanel inside the JScrollPane. The code in the mouse listener is:
@Override
public void mouseClicked(MouseEvent arg0) {
searchResult.updateIn... | stackexchange/codereview |
I have an action filter attribute on my BaseController class:
<CompressFilter()> _
Public Class BaseController
So, this filter is applied to all methods in all controllers of my app.
Is it possible to disable this filter for some particular methods?
| stackexchange/codereview |
I have this JS code. I need to pass the loadItemUrl value to the callback function off loadStruct method. The loadStruct is a function of a JS framework that we're using.
In this example is the loadItemUrl value undefined in the inner scope of the callback function.
Form.prototype.Create = function (loadItemUrl) {
... | stackexchange/codereview |
Consider a custom UIComponent (for test purposes only):
public class UITest extends UIComponentBase {
@Override
public void encodeBegin(FacesContext context) throws IOException {
System.out.println("encodeBegin");
}
@Override
public void encodeAll(FacesContext context) throws IOException {... | stackexchange/codereview |
I've created very simple project to show the issue I'm facing. There is one activity created by default. With one additional line of code in onCreate method:
Drawable drawable = getResources().getDrawable(R.drawable.sample);
Sample referes to "sample.png" file, which I've put in drawable-hdpi, -mdpi, -ldpi. Project i... | stackexchange/codereview |
So I've successfully access pixel data in a frame using the c++ frame access wrapper on the opencv webpage
template<class Frame>
class Frame_Data {
IplImage *imgp;
public:
Frame_Data (IplImage *img=0) {imgp = img;}
~Frame_Data () {imgp = 0;}
void operator=(IplImage *img) {imgp=... | stackexchange/codereview |
how to remove a & Symbol from a url address use php regular?
for example:http://www.google.com/search?hl=en&q=php
left the & and get :http://www.google.com/search?hl=enq=php
Thanks
| stackexchange/codereview |
Would you please have a look at me code:
(void)loadContactsFromAddressBook {
ABAddressBookRef addressBook = ABAddressBookCreate();
CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople(addressBook);
CFIndex count = ABAddressBookGetPersonCount(addressBook);
ABRecordRef person;
for (int i = 0; i < count; i++) {
p... | stackexchange/codereview |
This seems like a simple question, but I can't find a simple answer. So I'll start by giving a simple example.
<a href="#" onclick="showmsg('bark')">dog</a>
<a href="#" onclick="showmsg('meow')">cat</a>
And here's a javascript function...
function showmsg(msg) {
alert(msg);
}
In the above example, additional conte... | stackexchange/codereview |
looks like gantt_chart() doesn't work properly for following set of data:
tg_p = [ (0, 12), (0, 5), (0,13) ]
tg_v = [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14']
tg_h = [ 'test', 'test2', 'test3' ]
tg_c = [ (1.0, 0.0, 0.0), (1.0, 0.7, 0.0), (0.0, 1.0, 0.0) ]
CairoPlot.gantt_chart('... | stackexchange/codereview |
I am still very new to the world of GIS, so bear with me.
I have a one single datafield for my ESTR89 / UTM 32N / SRID 25832 column in PostGis. E.g. with a value of 0101000020E8640000C573D4301A122641113FF122C5965741
I am working against a webservice in order to import new data, but my data suplier has two columns. E.g.... | stackexchange/codereview |
I'm using a Motorola Backflip running Android 2.1. Every contact in my phone has a History tab which shows recent history such as recent texts, calls, and facebook messages for that person (facebook is linked through motoblur). My questions are:
1) Is the history tab on every Android Device or is it only from Motoblu... | stackexchange/codereview |
I was wondering, if there's any way of changing the logs directory of my app, without changing paths.php (which is part of cake, not my app, in cake/config).
I tried "App::build(array('logs' => array('c:'.DS.'logs')))", in bootstrap, but I guess it just doesn't work that way.
Thanks!
| stackexchange/codereview |
I am new to C# and is moving some VB.net code to C#. I am stuck with the above.
What's the equivalent of Len(Dir(stringVal)) of VB.net in C#.net 3.0 (where stringVal is a string variable that takes the value of a file path e.g. C:\somedir\xyz.txt)?
Thanks
| stackexchange/codereview |
I get the following error regularly on my MediaTemple DV server.
Web Server (Apache) on myrootdomain.com is down
Web Server (Apache) on myrootdomain.com has been started
Plesk Web Server on myrootdomain.com is down
Plesk Web Server on myrootdomain.com has been started
I get at least one, sometimes more, every sin... | stackexchange/codereview |
I have created Xcode iPhone project using TabBarController template.
I hope FirstViewController links to an UIView(View1).
So I add an UIView name View1.Xib and set it as the outlet view of FirstViewController.
Then I removed original view under 'Selected First View Controller (First) shown as picture below
Then I se... | stackexchange/codereview |
How do i sort jtable column using radio button?
my jtable is defaultTableModel not vectors.
I have already achieve when user press on column header, it will sort, now i have to implement using radio button..
What would be the best way to achieve this?
| stackexchange/codereview |
How can I compile a Turbo C program in a DOS prompt for 64 bit?
| stackexchange/codereview |
I read that the different entries in different tables are linked via the _ID column in that table. For example a contact might have an _ID = 1 I get via
ContactsContract.Contacts._ID
and now I want to read the phone number of that contact using
Cursor phoneCursor = getContentResolver().query(ContactsContract.CommonDa... | stackexchange/codereview |
I have 500 icon images in Photoshop that have varying white space around each of the objects. I was wondering if there's any way to run an action through photoshop that'll crop each image so that it removes the white space around each of the icon (if not, oh well, I was just curious).
| stackexchange/codereview |
From what I have read the correct connection string for a jTDS is:
jdbc:jtds:<server_type>://<server>[:<port>][/<database>]
I believe the issue is the server name. The server name is formatted like this
servername\adhoc
An SQLException gets thrown anytime I try to connect saying "unknown server host name"
Is that m... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.