instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I feel so stupid to not find this fault that most probably so simple.
Why I’m witting the component is TStringGrid dose not give access to selection in a OnSelectCell event. So I decided that its easer to call select cell near a OnDrawCell event with Invalidate, where I expect the selection property works and make a co... | stackexchange/codereview |
I have added many jquery plugins in one page. and I use var $j = jQuery.noConflict(); I tested well under IE6, IE8 and firefox4. But in opera10, it just show the first jQuery effective. I guess the problem is in jQuery.noConflict(), is it not suit for opera?
| stackexchange/codereview |
i have a combobox whose datasource is a datatable. i need to loop through the items in the combobox, but how would i do this? i need to be able to convert each object of type 'System.Data.DataRowView' to string. any advice greatly appreciated!@
| stackexchange/codereview |
I am using the following code, but it showing a 404 error
$url = "http://api.twitter.com/version/statuses/user_timeline.json";
$call = file_get_contents($url);
| stackexchange/codereview |
I started using Visual Studio 2010 and am missing the dialog box that used pop up in Visual Studio 2008 and earlier that would warn you if there are build errors. The text was something along the line of "There were build errors, would you like to continue using the last successful build?" Then you had the option to co... | stackexchange/codereview |
I have a regular text-box:
<input type="text">
I use jQuery to handle key-related events:
$("input:text").keydown(function() {
// keydown code
}).keypress(function() {
// keypress code
}).keyup(function() {
// keyup code
});
The user focuses on a text-box and presses various keys on his keyboard (the... | stackexchange/codereview |
I have an app that currently has this line:
[myView setWantsLayer:YES];
In order to draw a GUI element via NSBezierPath. This line is required, otherwise when the user types in an adjacent (and overlapping) NSTextField, the contents of myView shudders.
I discovered that calling CoreAnimation loads the OpenGL framework... | stackexchange/codereview |
I created an ASP.NET MVC 2 project with a model. I then created a view and selected for it to be strongly-typed for the model that was created. I also did the same thing with a partial view. In either case for some reason I am getting the error: "Cannot resolve symbol 'Html' whenever I try to use the Html helper method... | stackexchange/codereview |
I believe this has to do with keyref but I'm not for sure, and I am really not sure that it can be done at all.
For example, say I have myElement1 and myElement2. If there are no myElement2 in the XML file, then myElement1 must exist, otherwise it is optional.
Is there any way to force this type of validation in my XS... | stackexchange/codereview |
How can i to add -Xlint:unchecked option or any javac option in Eclipse?
this is strange there is no obvious way to do that in eclipse.
Thanks in advance
| stackexchange/codereview |
I have a webpage with an external javascript library, and my own extra code. The external library can't be change. It manipulates dom elements, adds new ones, changes attributes (e.g. src on some <img> nodes, etc.). I am using jQuery. Is there any event handler that is fired when the value of an attribute changes of a ... | stackexchange/codereview |
I have created a list of products - i.e. List manually in code.
Is it possible with nhibernate to send along a List of Product and have it automatically add the details.
The property on the product class is an automatic increment ID on the database.
I have it defined like so
public virtual int Id { get; set; }
But ... | stackexchange/codereview |
I am using the following function to virtualize path and reference to my application resources
<%= Html.Image( Url.Content( "~/_assets/images/login.png" ), "Login" )%>
and this works very fine in resolving the virtual directory where the application has been deployed, for example
http://someserver/xyz/_assets/images/... | stackexchange/codereview |
I need to test a module without actually calling our SAP provider via executing a "real" JCoFunction.
How do I instantiate a "formally correct" JCoFunction?
I can even just deal with a JCoParameterList but just can't figure out how to instantiate it or even mock it.
| stackexchange/codereview |
How do I check if a particular element exists in a table - how can I return true or false?
I have a table that has
user_id
user_password
user_secretQ
Verbally, I want to do this: If a particular user_id exists in the user_id column, then return true -- otherwise return false.
| stackexchange/codereview |
In Drupal 6, I have a content type with a select field. The values for this field are in the "Allowed values" option, like this:
key1|label1
key2|label2
When I load a node from that content type using node_load, I only get the key of the field, and not its label.
Is there an easy way to get the label? I thought conten... | stackexchange/codereview |
Is there a way where jQuery can make text type itself? Like someone is typing in the letters but it is really jQuery doing it?
| stackexchange/codereview |
The following curl statement works OK in my shell script.
curl -Ld'username=user&password=password&source=oksoft&dmobile='$mnumber'&message=Slave is working OK' http://167.123.129.195/smsclient//api.php
The Mobile number is expanded as expected. But when I use a variable for the message parameter, I get $myvar output ... | stackexchange/codereview |
I've made a simple "print version" for the entries in our company website. However, I am required to add a button/link for going back to the website, since, allegedly, many of our customers wouldn't think to use the back button (and, indeed, there might be some truth in that - as they kept emailing, asking for a pricel... | stackexchange/codereview |
I want to create a photo browser web widget that can be embedded in a web page (e.g alice's blog) but I am not sure whether I should go the flash or javascript route.
Flickr went with a flash based widget. Why would they do it in flash over javascript?
And conversely, why would you chose js based widget over flash.
| stackexchange/codereview |
I want to plot a trading timeseries, e.g. close of 5 min bars. The markets are closed over night. So I have two queries:
How to plot time in MatPlotLib (as well as date). E.g. so I need to implement a new axis or new hourLocators etc.
How to remove overnight gaps from my plot. I.e. I want the last bar on Monday evening... | stackexchange/codereview |
say I have
var hGCFile = GCHandle.Alloc(buffer, GCHandleType.Pinned)
And I P/Invoke some unmanaged function with
SaveStream(hGCFile.AddrOfPinnedObject())
Further, suppose the above function saves the buffer address and uses it throughout my application's lifetime.
In such a case, is there a benefit to calling
hGCFil... | stackexchange/codereview |
On my website I have created my pages like so:
http://www.website.com/page1.php
http://www.website.com/page2.php
http://www.website.com/page3.php
This is not SEO friendly, I really want to display them like this:
http://www.website.com/page1/
http://www.website.com/page2/
http://www.website.com/page3/
What is the best ... | stackexchange/codereview |
The following regular expression isn't working for international phone numbers that can allow up to 15 digits:
^[a-zA-Z0-9-().\s]{10,15}$
What needs to be adjusted?
| stackexchange/codereview |
I have such a situation:
when I'm running my project with breakpoints, compiler goes to the first one and stops program as usual until I'm press a next step button. But when I'm going next - there is no reaction from his side, then I clicking 2-3 times 'next step'(Step into) button - after that he run program to the en... | stackexchange/codereview |
I have a chart that I'm generating on the fly through a generic handler. I've got the data loaded and by default it looks like this:
http://www.2gtech.com/downloads/ChartWithoutCrossing.png
If I adjust the crossing I get the desired effect I'm looking for, which is a base line at 100,000 with the area charted above an... | stackexchange/codereview |
is possible invoke in runtime the TImagelist editor to see the contents of my TImagelist?
| stackexchange/codereview |
I'm running Ubuntu Linux with Eclipse installed, and I'm trying to work with JNI
to do so I need to use javah, but it doesn't seem to be working
I have just recently installed Ubuntu and am unfamiliar with Linux/bash shells
for my eclipse project called myJNI, I have class DoJNI containing the native method.
in Termina... | stackexchange/codereview |
I'm trying to improve the speed of some code I've written. I was wondering how efficient accessing data from a 3d array of integers is?
I have an array
int cube[][][] = new int[10][10][10];
which I populate with values. I then access these values several thousand times.
I was wondering, seeing as all 3d arrays are theo... | stackexchange/codereview |
I want to obtain the "base" property from a gtkstyle, which is a GdkColor type, but I just can manage to get it. I know I can use gtk_style_get_style_property()
void gtk_style_get_style_property (GtkStyle *style,GType widget_type, const gchar *property_name, GValue *value);
... | stackexchange/codereview |
Does anyone know of an intent I can use to open a raw mp4 resource in the phone's video player? I tried this code:
Uri video = Uri.parse( "android.resource://" + getPackageName() + "/" + R.raw.video );
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(video, "video/*");
startActivity... | stackexchange/codereview |
I started out with programming about two months ago I think now, and I'm fooling around in either C# or Clojure (I have serious decision-problems). Anyways; I'm from Norway, and we use a different kind of keyboard layout than the English-speaking countries. I don't know how for example Germany or Frances' keyboard-layo... | stackexchange/codereview |
Sorry about that confusing title :) I have a resource, ComatosePage (used in the comatose cms plugin), which has a table called comatose_pages which has a field 'full_path' which has values like this: "en/home/logged-in/subscriber/school-top" to set up a route so that i can use this full_path field to load a ComatoseP... | stackexchange/codereview |
I have a list of strings with are paths to some file with "/" separator that are available to my jsp/html page .
i.e.
d1/d2/d3/file1.c
d1/d2/d3/file2.java
d1/d2/file3.jsp
d1/d2/file4.asp
d1/d2/d3/d4/file4.asp
d11/d22/d33/file5.txt
The above list of string paths are available to my page. I need to make a dynamic tree s... | stackexchange/codereview |
I have a list with these items:
hours = ['19:30', '20:10', '20:30', '21:00', '22:00']
Assuming that now it's 20:18, how can I get the '20:10' item from list? I want to use this to find the current running show in a TV Guide.
| stackexchange/codereview |
Is there a standard way to handle response failure for chunked responses? I have poured through the RFCs and don't see a standard way of handling this.
My understanding of chunked responses is that they're useful when we cannot process the entire response at once on the server. Therefore, it seems possible that while... | stackexchange/codereview |
Looking for information - I am creating a catolog website that includes a list of products. Each product has an image stored stored on the hard drive on the server. If the image does not exist, I want to show a default image. Whats the best way of doing this. I am using C# and considered checking on the server side if ... | stackexchange/codereview |
Hi
How can i replace NSString use array to another array
like this
@"Hello world"
{a,b,c,d,e,...} -> {1,2,3,4,5,..} = @"H5llo worl4"
and can i replace without array??
totally i want to replace 10 characters of an String to another 10 characters.
How can i do that?
| stackexchange/codereview |
Is there a .net equivalent of a Java initialization Servlet?
While we're at it, the equivalent of a filter?
And finally if said thing exists (filters) can these run before/after a request is made to a WCF service?
| stackexchange/codereview |
I want to have a computed column that is true if the field asofdate is equal to the maximum asofdate in the table, otherwise false. I tried the following but I am getting a syntax error. What is the right way to do this?
select
case asofdate
when select max(asofdate) from sometable then 1
else 0
end
from sometable
A... | stackexchange/codereview |
Could you create an object from a class named Trung.NguyenThe since NguyenThe isn't a method ?
| stackexchange/codereview |
Just for curiosity, do you know (you might have already done tests) if methods declared outside of a static objects degrade performances than declaring them inside of a static object?
In code words:
do you know if this:
var SomeStaticObject = {};
SomeStaticObject.render = function() {...}
generates a performance degra... | stackexchange/codereview |
what is the difference Managed GUI and unmanaged(native) GUI?
I want to do GUI for both elevator control and camera contol, which one is preferable to make GUI?
| stackexchange/codereview |
Every time I look for mobile phone development I see Android, WinMobile, iPhone, RIM, etc...
Are small phone applications dead? I remember having a small collection of games and apps that run on motorola, sony ericsson and any other java-compatible phone. My Question is:
How do I start developing those applications? Is... | stackexchange/codereview |
I have decided to release my software with two licenses. At the same time I want this to be open-source. So how would I dual license? Which licenses do I pick?
I want one license to be very similar to GPL as long as the user uses it for non-commercial projects. The other license would be a commercial license (the user ... | stackexchange/codereview |
I'm trying to alert id and subcategory in JSON string returned from the server using jQuery.
I get the following JSON string.
[{"name":"Technology","id":117,"subcategory":"Machines"},
{"name":"Technology","id":118,"subcategory":"Tools"},
{"name":"Technology","id":119,"subcategory":"Air"}]
I try to do:
$.getJSON("scene... | stackexchange/codereview |
I am developing a project at work for which I need to create and maintain Summary Tables for performance reasons. I believe the correct term for this is Materialized Views.
I have 2 main reasons to do this:
Denormalization
I normalized the tables as much as possible. So there are situations where I would have to join ... | stackexchange/codereview |
I am looking to integrate with a 'Generic Rules Engine' based on the request of a customer.
I think the objective is to allow business stakeholders to add 'Rules', and have those be incorporated into an overall metric calculated on a dataset. So far, the Rules i have heard seem like straightforward snippets of logic i... | stackexchange/codereview |
I'm facing the following problem:
I have created a user control in XAML that has an x:Name associated because I have some bindings internally that need this name. On the main page I use multiple instances of this user control and all of the sudden a XamlParseException is thrown which tells me that the name is already i... | stackexchange/codereview |
Is there a way to get the Bundle ID from Info.plist at runtime? Something like [[UIApplication sharedApplication] bundleIdentifier] would be great.
| stackexchange/codereview |
In WPF you get to call ShowDialog on a window exactly once. After that it is done for.
Seems kind of lame to me, but those are the rules. If you call ShowDialog again you get this exception:
Cannot set Visibility or call Show, ShowDialog, or WindowInteropHelper.EnsureHandle after a Window has closed
What I want to ... | stackexchange/codereview |
I have a MySQL database with 5000 items. The table is structured as
id
product-name
content
product-url
You can access a specific product page by going to www.site.com/products/index.php?id=123. The index.php file uses PHP to GET the ID to search the MySQL database and return the appropriate product name and content... | stackexchange/codereview |
I need to grab the ranges (row, column etc.) a particular XmlMap in an excel worksheet is pointing to programmatically via interop. Does anyone have any thoughts? I can not see any properties/methods/members of the XmlMap interface that provide this information.
| stackexchange/codereview |
I have the following minimal code:
using namespace System;
long get_prop( Object^ v )
{
return Convert::ToInt32( v );
}
int main()
{
Object^ o1 = gcnew Int32( -1 );
Object^ o2 = gcnew UInt32( 0xFFFFFFFF );
long value1 = get_prop( o1 );
long value2 = get_prop( o2 );
return 0;
}
It gives the O... | stackexchange/codereview |
I am sure this has something to do with IIS but I can't figure it out.
I have a website using forms authentication. When my website tries to access any file resources (javascript files, css, etc), I am redirected to the forms login page set in my web.config. I also get redirected if I just type the address into the add... | stackexchange/codereview |
When I load the audio name, some include char "[","]"
How to convert such string include "[","]" to OBJ-C compatible string?
Welcome any comment
Ken
| stackexchange/codereview |
I thought the following code would work but it crashes when the target widget is at the end of the vector.
for(std::vector<AguiWidget*>::iterator it = children.begin();
it != children.end(); ++it)
{
if((*it) == widget)
it = children.erase(it);
}
I want it to go through and delete an... | stackexchange/codereview |
and thanks in advance.
I am looking for advice on how to layout the view controllers in my app, where I still have a persistent background along with a few background animations
This is how it is set up currently:
AppDelegate makes a navigations controller, RootViewController and a Sprite Layer (which subclasses UIVi... | stackexchange/codereview |
What are the key differences between Android, iOS and Blackberry OS in terms of level of accessibility by application developers (i.e. access to the video input, sound input, phone functionalities, to which extent, etc.)?
PS: Assume latest version of each OS.
EDIT: Can someone turn this into a wiki so we can compile an... | stackexchange/codereview |
I want to count the anonym users online in a Sharepoint 2007 website (in a farm).
The classic way of doing this in .NET is:
protected void Session_Start(object sender, EventArgs e)
{
Application.Lock();
Application["online"] = Convert.ToInt16(Application["online"]) + 1;
Applic... | stackexchange/codereview |
hello All
I have been fed up of looking for a simple example of rest webservice connecting to Android Application. I know so many people have asked this question before, but there are so many different answers as a theory.
I know I must use restful web-service, rather than SOAP for mobile applications.
I need to crea... | stackexchange/codereview |
$('input').focus(function() {
$(this).next("div.description").slideToggle("slow");
$(this).wrap(' <
div > < /div>').select('input'); });
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<blink>
<input type="text" class="form-text required" value=""... | stackexchange/codereview |
Is it possible to achieve the following using the Drupal Context module:
Show a block if the current logged in user is
a member of the organic Group
Show another block if the current
logged in user is the admin of that
organic group
| stackexchange/codereview |
I am working on a java project on Eclipse on win 7.
Now, I was working on the same project before on a different eclipse version on Linux. So while working on the Linux system all was fine. All of the sudden when I transferred the project to the win 7 computer, every place that I refer to one of the constructors data... | stackexchange/codereview |
I realise that this must be a very basic question, but my google-fu seems to be entirely absent at the moment.
What I want to do is, inside a stored procedure:
Declare a VarChar(1) variable, myVarChar
Search a table for the value of a corresponding VarChar(1), based on an incoming @myKey argument to the stored procedu... | stackexchange/codereview |
Given that Git is very SHA-1 friendly, I would surmise that it is possible to easily check for this scenario:
-I have a repo with a directory foo/ somewhere within it.
-Someone on some other computer makes a change to foo's contents (including nested subdirectories), and pushes the change to the repo.
My guess is that... | stackexchange/codereview |
How do I enter a unicode character (it needs to be the equivalent of ascii character 254, a solid square centered box) as the password character in a textbox?
I need to do this in code, for example textbox.passwordchar = ????????
Thanks,
| stackexchange/codereview |
I've got spring security successfully evaluating a @PreAuthorize on my controller. If i use "permitAll" then I can view the page, and if I use "isAuthenticated()" then I get an ugly Access is Denied stack trace. If I put the configuration in an intercept-url within the http node in my security context configuration x... | stackexchange/codereview |
I have web app, based on Spring 3.0.3, that I've been developing using Eclipse 3.4. While doing so I've been running the web app in Tomcat 6.0.18 from Eclipse. That is, I have Eclipse use the Tomcat installation meaning that Tomcat will, as need, modify files etc. (at least, that's my understanding of what it's doing... | stackexchange/codereview |
I export Microsoft Excel data by Excel Macro(VBScript).
Because file is lua script, I export it as UTF-8.
The only way I can make UTF-8 in Excel is using adodb.stream like this
set fileLua = CreateObject("adodb.stream")
fileLua.Type = 2
fileLua.Mode = 3
fileLua.Charset = "UTF-8"
fileLua.Open
fileLua.WriteText("test")
f... | stackexchange/codereview |
(after deleting an XML node) the following gets a list of <picture> 'id' attribute values:
$objXML = new SimpleXMLElement(XML_FILE_NAME, null, true);
$picture = $objXML->xpath('picture');
$arrayCurrent = array();
foreach($picture as $value) {
$arrayCurrent[] = (string)$value['id'];
}
sort($arrayCurrent); // require... | stackexchange/codereview |
If I want to call an external C++ function which returns a 2d array, what kind of problems could I come across? For instance, if I declare the 2D array inside of the C++ function and initialize the size of the array within the C++ function, how will the .Net automatic garbage collector handle this? Do I have to give ... | stackexchange/codereview |
Say I have a GIT repos that I connect to from my laptop, I have the latest code locally now.
Is it possible for me to setup GIT on another server, and then make this my new 'remote master' and init the repo with what I have locally on my laptop? (say my server crashed with no backup)
| stackexchange/codereview |
I'm using Facebook C# SDK and I can't seem to get feed data back using Graph API.
I've obtained the following extended permissions from the user:
scope=offline_access,publish_stream,publish_checkins,create_event,read_stream,user_about_me,user_events,user_hometown,user_location,user_photos,read_friendlists,read_reques... | stackexchange/codereview |
I have lines like this:
2 20 164 "guid" Some name^7 0 ip.a.dd.res:port -21630 25000
6 30 139 "guid" Other name^7 0 ip.a.dd.res:port 932 25000
I would like to split this, but the problem is that there is different number of spaces between this "words"...
How can I do this... | stackexchange/codereview |
Hi Stack Overflowers, I'm hoping you might be able to help me.
I'm trying to get a collection of all songs in a users iPhone music library from a specific year i.e 2002.
I'm then looking to play the songs through a MPMusicPlayerController.
It seems that you can't set up a MPMediaPropertyPredicate to filter by release d... | stackexchange/codereview |
Randomly, on a few projects, some pages display random symbols instead of an error message. Like this one :
��������I�%&/m�{J�J��t��$@�����iG#)�*��eVe]f@�흼 ��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h�����Ųi��- �ez����7ii�L���,�4�̧i���Ίe��Ͼ|uz����:�}���U{�����������~�ȗu.-�����l>F'�����Y�l��$k�tF������{�� ��[�... | stackexchange/codereview |
I have a problem I'm actually recoding the RFB protocol in my software to comunicate with a VNC Server, and I want to know how to get the size of the server Desktop Size.
I have allready test the framebuffer_width inside of the serverInit message but it is not representing the reel size of desktop I don't know how to ... | stackexchange/codereview |
I have the following markup on my page
<td colspan="2">
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr><td colspan="2"><%= Html.LabelFor(model => model.CustomerID)%></td></tr>
<tr>
<td width="85%">
<%= Html.DropDownListFor(model => model.CustomerID, Model.CustomerLis... | stackexchange/codereview |
I've a listView to list a table from the database, and I've a column to edit a row. Edit link sets the response an edit page. Edit page's constructor takes an object related with database table. I've a dropdownchoice in an edit page. And i want to initialize the dropdownchoice's selected value with objects actual value... | stackexchange/codereview |
I wanted to know why my select statement is orders of magnitude faster than my update statement when updating values from one table to another as opposed to selecting values from one table to another. The example below illustrates my problem, I can run my select statement very quickly
select customers.name, countries.c... | stackexchange/codereview |
I am using Windbg/SOS and looking into some managed code. Problem is that code is been obfuscated. Any idea how these could be debugged?
| stackexchange/codereview |
I am trying to use named pipes in C and am running into some difficulty. In terms of anonymous pipes, I just create the pipe with the r/w descriptors and then close the opposite end every time I want to do a read or write. This is easy to do since I can just open() and close() the other end every time.
With named pipes... | stackexchange/codereview |
I would like to be able to add my own custom data/properties to existing folders on NTFS, so that if a folder is moved, the properties move with it. One solution would be to store a file within the folder to contain whatever I need or want.
What I am particularly interested in, is whether or not there is a way to add c... | stackexchange/codereview |
Hello there
I want to know how it is possible to set up a mail server so people can sign up to my site and get their own email account. For example like gmail or hotmail and yahoo. Is this possible I have GoDaddy. Thanks a lot.
| stackexchange/codereview |
Need your opinion on the edited part of this question i asked on stackoverflow. Been waiting for the whole day but no one's come back to answer that.
Do you think it is useful if you further separtae php and html in your Display pages?
Like In cases where we need to display minimal html like
<h2 align='center'> Appoi... | stackexchange/codereview |
I need to put a RadioButton against each Row in a DataGrid view . But Iam unable to find a control like DataGridViewRadioButtonColumn just like DataGridViewTextBoxColumn . So how should I go about doing it ? Thanks in Advance
(User can only select one radio button)
| stackexchange/codereview |
Does anyone have any idea how to add custom meta fields while making categories and fetch them in the loop in WordPress? I was wondering how to do that without hacking the WordPress core, but if I do – it won't become a hindrance to update WordPress in the future.
A plugin I have found that comes close is Wp-Category-M... | stackexchange/codereview |
I need help for parsing the image using dictionary. i can get the text data using dictionary but can't parse the image of the corresponding content using dictionary here my code
-(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *... | stackexchange/codereview |
I'm using IntelliJ's UI designer and now I'm stuck as the designer has decided to chop off half of my form. In the UI Designer pane where it shows the components you have added to your form, I can clearly see all my components as expected. But in the main editor window where you see the form itself, IntelliJ has deci... | stackexchange/codereview |
I have two ActiveRecord classes. A simplified view of these classes:
class Account < ActiveRecord::Base
has_many :user_account_roles
end
class UserAccountRole < ActiveRecord::Base
belongs_to :account
# Has a boolean attribute called 'administrator'.
end
What I'm struggling with is that I'd like to be able to a... | stackexchange/codereview |
I have some general questions about iphone app updates that involves sqlite db.
With the new update does the existing sqlite db get overwritten with a copy of the new one?
If the update doesn't involve any schema changes then the user should be able to reuse the existing database with their saved data, right? (if the... | stackexchange/codereview |
I'm using a PHP switch to include certain files based on the incoming keywords passed in a parameter of the page's URL.
The URL, for example, could be: ...page.php?kw=citroen%20berlingo%20keywords
Inside the page, I'd like to use something like this:
<?
switch($_GET['kw']){
case "berlingo":
... | stackexchange/codereview |
I have a directory structure like so:
project
lib
paperboy
redis-client
node-cookie
srv
main.js
...
I start main.js from the project directory:
$ node srv/main.js
In main.js, I can do:
paperboy = require('./lib/paperboy');
However, this fails:
redis = require('./lib/redis-client');
Similar... | stackexchange/codereview |
Any ideas on how to generate the follow query with Nhibernate using the Criteria API?
select count(*)as z from (select distinct x, y from tableName) as t
or
select count(distinct (x , y)) as z FROM tableName
or
some other query that returns the same results.
| stackexchange/codereview |
I've implemented reCAPTCHA following the instructions on this site:
http://devlicio.us/blogs/derik_whittaker/archive/2008/12/02/using-recaptcha-with-asp-net-mvc.aspx
However I am unable to get it to render on my lightbox. It renders as below when i check with firebug.
<noscript> <iframe src="http://www.google.com/re... | stackexchange/codereview |
Wikipedia says a 3-way merge is less error-prone than a 2-way merge, and often times doesn't need user intervention. Why is this the case?
An example where a 3-way merge succeeds and a 2-way merge fails would be helpful.
| stackexchange/codereview |
I have never used MVC before and would like some advice.
I have actually already written quite a bit of code, but looking at it, it seems to be quite highly coupled between classes and there is a lot of code written on the actual main form of the winform. I am a University student, recently started on a 12 month place... | stackexchange/codereview |
i can get current latitude and longitude from iphone sdk. but is there any google map URL
if i send current location and some text to give latitude & longitude value for that text .
| stackexchange/codereview |
I am getting an error while trying to connect to oracle DB on the server throught Toad. The error message is :
ORA-12514: TNS:listener could not resolve Service_Name given in connect descriptor.
Everything was working fine till yesterday but today my server got restarted and i am not ablt to connect to DB. I tried tns... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.