instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am totally confused - When I removed pretty much everything and put the offending code in JSFiddle, it works fine - http://jsfiddle.net/FusGB/
However, in the site, almost the same identical code does not work: http://ezpcinternal.com/sports/index.html (Menu to the left)
What is happening is the first item is doing t... | stackexchange/codereview |
I'm new to IIS 7.5 (Window 7)
If while I new ASP.NET 3.5 Website target it on Local IIS , it works without any problem .
But if i new a file-system ASP.NET 3.5 Website and from IIS add that website and configure it , It doesn't work . I get this error
In order to work I had to comment these following lines
<sectionGr... | stackexchange/codereview |
I am using request reply model of NServiceBUs for one of my project.There is a self hosted service bus listening for a request message and reply back with a request message.
So in WCF message code i have coded like
// sent the message to bus.
var synchronousMessageSent =
this._bus.Send(destinationQueueName, reque... | stackexchange/codereview |
How to open a folder in Windows Explorer or Finder (Mac) from an Air 2.0 Application? I'm using Flex 4 + ActionScript 3.
Seams like I could do it using NativeProcess but I don't want to create a native installer. Is that possible?
Thanks!
| stackexchange/codereview |
http://code.google.com/p/red5/source/browse/flash/trunk/classes/org/red5/samples/publisher/?r=4103#publisher
Looks like MVC to me,but I'm not sure if that's the exact framework used.
UPDATE
Now I know it's using the Cairngorm framework,and I've downloaded all the source files,how can I generate a .swf file?
UPDATE 2
Ho... | stackexchange/codereview |
In Javascript/jQuery, how can I detect if the client device has a mouse?
I've got a site that slides up a little info panel when the user hovers their mouse over an item. I'm using jQuery.hoverIntent to detect the hover, but this obviously doesn't work on touchscreen devices like iPhone/iPad/Android. So on those dev... | stackexchange/codereview |
I’m writing an application (game) where I would like to end the game activity when the user fails the game. My game is loosely based off lunarlander, so I figure it may be easier to ask for help using lunarlander as an example, since a lot of folks are familiar with it.
When the user fails the lunarlander game, I want... | stackexchange/codereview |
Windows XP shows my Windows Mobile 6 phone (HP iPAQ 514) as "Mobile Device" in "My computer". Using Windows explorer, I can copy files from/to the device and its storage card.
Which possibilities are there to access these files programmatically? Any way to access them using normal filenames or special paths?
Note that ... | stackexchange/codereview |
I've set up a maintenance plan in instance #1 of SQL Server 2008. In theory, it will connect to instance #2 and back up those databases to the hard drive of instance #1.
I have:
Created a login on instance #2
Given that login the correct permissions needed to back-up a database (I tested it)
Created a working connect... | stackexchange/codereview |
Which compression method in Python has the best compression ratio?
Is the commonly used zlib.compress() the best or are there some better options? I need to get the best compression ratio possible.
I am compresing strings and sending them over UDP. A typical string I compress has about 1,700,000 bytes.
| stackexchange/codereview |
How should I choose between ExecutorService's submit or execute, if the returned value is not my concern?
If I test both, I didn't see any differences among the two except the returned value.
ExecutorService threadExecutor = Executors.newSingleThreadExecutor();
threadExecutor.execute(new Task());
ExecutorService thr... | stackexchange/codereview |
I'm started to get my feet wet with the android framework, and wanted to work on a game but was looking for a partner to work with. I was wondering if there are sites online where people can talk about a project and possibly collaborate and start a new project.
I realize this might be a stupid question, and not appropr... | stackexchange/codereview |
I'm using Zend Framework in one of my projects and I'm using PHPUnit for unit testing. I know that Zend_Test_PhpUnit_ControllerTestCase class is good for testing controllers with its dispatch() method and all. But I also have a few simple classes like ones used for some calculations and so on. These classes do not requ... | stackexchange/codereview |
I've seen both of the following two styles of declaring opaque types in C APIs. What are the various ways to declare opaque structs/pointers in C? Is there any clear advantage to using one style over the other?
Option 1
// foo.h
typedef struct foo * fooRef;
void doStuff(fooRef f);
// foo.c
struct foo {
int x;
... | stackexchange/codereview |
If I had this code:
$result = 1;
$square = array(
"00" => -1,
"0" => 0,
"1" => 1,
);
And wanted to know whether $result is equal to ANY of the array VALUES of $square (-1, 0 or 1).
I´m am guessing there should be a function that compares a variable to all the array´s values and returs TRUE or FALSE accordingly.
If ... | stackexchange/codereview |
If my string is
Size : 93743 bytes Time elapsed (hh:mm:ss.ms): 00:00:00.156
How do I match the value that appears after the (hh:mm:ss.ms): ?
00:00:00.156
I know how to match if there are more characters following the value, but there aren't any more characters after it and I do not want to include the size informatio... | stackexchange/codereview |
I have a rooted device, I type "su" in adb shell, then I try to traceroute.
It says "traceroute: not found".
I can't find traceroute in any bin folders.
Thanks for any hints.
| stackexchange/codereview |
Im trying to search for something on a page but i keep getting this silly error
this is the error i am getting
Warning: preg_match() [function.preg-match]: Unknown modifier 'd'
this is the code im using
$qa = file_get_contents($_GET['url']);
preg_match('/<a href="/download.php\?g=(?P<number>.+)">Click here</a>/',$qa,$r... | stackexchange/codereview |
I am using a tree control in my GWT application. The tree has different items based on the user logged in. One way to populate the tree would be to query the server from my GWT code to get a list of tree items. But since the items will always be shown would it not be better to include information regarding them in the ... | stackexchange/codereview |
I want to add contact fetch (gmail,AOL,hotmail,yahoo) script in my social networking site using zend-framework.
Any one can tell me how to do this ?
| stackexchange/codereview |
I was wondering if there are any differences - mostly performance wise - between the two Win32 API functions EnumProcesses() and CreateToolhelp32Snapshot() for enumerating all active processes and loaded modules. Or if one is better than the other to use and why.
| stackexchange/codereview |
I have access to phpMyAdmin, but NOT the MySQL command line.
I need to recreate the table structure elsewhere along with certain tables that need to be 'pre-populated'. I can, of course, export the empty table structure and then export the tables one-by-one, but is there a better way to export a bunch of table data tog... | stackexchange/codereview |
I am new to using UMDH, and I am having some trouble understanding how to proceed with some of the errors it is outputting. I follow the typical usage (from the MS site):
gflags -i OCES.exe +ust
In another terminal window:
OCES.exe
And then back in the original terminal window:
umdh -p:5712 -f:out1.txt
But I am gett... | stackexchange/codereview |
I am just starting out learning some HTML and Java coding (read: I know practically nothing about this stuff) and would like to have my index.html page open an HTML file when it loads. Essentially I am looking for a kind of Modal Pop-Up. I have been researching jQuery and its various plugins (i.e., LightBox, prettyPh... | stackexchange/codereview |
I have a clock I made and I'd like to make it an alarm clock.
| stackexchange/codereview |
I have this: <input type="button" value="hello"> I want to change the value with javascript so that it is value="goodbye". How do I do this?
Following @David's advice in the comments below here is the code I tried but could not get to work before posting this question:
var createBttn = document.getElementById('create'... | stackexchange/codereview |
First, I want to show you the code I'm working on (VB6):
Dim db as Connection
Dim rs as Recordset
Dim rs1 as Recordset
db.Open "DSN=myDSN; Uid=myUser; Pwd=myPassword;"
'I connect successfully
Set rs = db.OpenSchema(adSchemaTables, Array(Empty, Empty, Empty, "TABLE"))
' Everything ok here. I can list Database tables
... | stackexchange/codereview |
I have a lot of excel sheets which columns are slightly different, i want to import all of these sheets (one at a time) into ONE SQL TABLE. I'll give an example :
Say ive written the required program and called it Excel2sql converter. So Excel2sql takes an excel sheet and create a database table with the data of that ... | stackexchange/codereview |
I have a DAO where I need to catch an unique constraint exception. To do this, the only working solution is to flush my EntityManager after the persist. Only then I come into a catch block where I have to filter out the exception. And, my DAO method needs to be wrapped in a transaction (REQUIRES_NEW) otherwise I have t... | stackexchange/codereview |
I'd like to know how I can split a large file without using too many system resources.
I'm currently using this code:
public static void SplitFile(string inputFile, int chunkSize, string path)
{
byte[] buffer = new byte[chunkSize];
using (Stream input = File.OpenRead(inputFile))
{
int index = 0;
... | stackexchange/codereview |
I create an application by linking the libociei.so and libcustome.so
CC -o main main.cpp ../lib/libociei.so ../lib/libcustome.so
and copy libociei.so libcustome.so to /usr/lib
then I use ldd to check library, it shows:
main .....
libcustome.so ===> /usr/lib/libcustome.so
../lib/libociei.so
why libociei.so ... | stackexchange/codereview |
This is a situation I've run into several times, not sure what the best approach is.
Let's say I have some kind of dynamic content that users can add to via Ajax. For example, take Stack Overflow's comments - people can add comments directly on to the page using Ajax.
The question is, how do I implement the addition it... | stackexchange/codereview |
New to iPhone dev. Can someone tell me why
-(IBAction) handleTapGesture:(UIGestureRecognizer *) sender {
CGPoint *tapPoint = [sender locationInView:imageView];
NSLog(@"tapped");
}
gives me error (for the CGPoint line):
incompatible types in initialization
| stackexchange/codereview |
I'm trying to modify the default behaviour of showing errors before the form to show them next to the fields instead.
I'm using this to achieve that:
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
if instance.error_message.kind_of?(Array)
%(#{html_tag}<span class="validation-error... | stackexchange/codereview |
i made an application in vb6 now i have given it a product version from project/properties but i noticed the win explorer has two tags for exe a product version and a file version.
i want to edit the file version of my app's exe any idea how can i do that? file version should be x.x.x.x
i wanted to to change the file v... | stackexchange/codereview |
I have this div that's got a style attribute..In that I am setting it's background image by calling a function from code behind..
<div id="id1" style = "background-image: url(<%=GetImage()%>);"></div>
now when I add runat="server" attribute in this div..it shows the Image path as method name itself and not http://loca... | stackexchange/codereview |
I already have the "scroll to" and toggle functions in place:
$("a.view").click(function(){
$("#content").slideToggle("slow");
return false;
});
And the scrolling is taken care of via this handy little plugin.
Now how do I load some html from another page into this newly opened div called #content. I've tried ... | stackexchange/codereview |
I am doing the design of a small project where I didn't use programming against interfaces for all my classes. I found that some classes would hardly ever be needed to change, so I let them be referenced by their client classes as concrete classes.
So, let's say we have ClassB that'll be consumed be consumed by ClassA:... | stackexchange/codereview |
In vim, I use Ctrl-n to word complete while in insert mode. If there is more than one possible match, I get a dropdown from which I can select one of the possible matches using the arrow keys.
However, I don't want to use the arrow keys; I want to use the 'j' and 'k' keys. But when I type 'j' or 'k', it inserts the let... | stackexchange/codereview |
i tried to create this url rule buts not working: i dont know why :(
orginal url
www.example.com/viewprofile.php?username=jhon
the desired friendly url is
www.example.com/user/jhon
this is my.htaccess code:
RewriteEngine On
RewriteRule ^username/([^/]*)$ /viewprofile.php?username=$1 [L]
thanks for helping!! :))
| stackexchange/codereview |
i follow the instruction of this tutorial
how to add coverflow effect on your iphone app openflow
i used the last version of openFlow(http://github.com/tupps/OpenFlow) and works great, but What I need is make each image as button or menu and when i click it, this will open another view, but so far I can't do that .
A... | stackexchange/codereview |
i have an asp.net mvc 2 application, and have some jquery that defines behaviour of two dropdownlists. When one changes, the other is populated with filtered data. After much furor, i have the jquery working, confirmed by firebug debugging, but my dropdownlist is not refreshing. This is the jquery
<script type="text/ja... | stackexchange/codereview |
We're interested in an Agile PM System and have picked out Retrospectiva. We really need to be able to migrate tickets out of our existing system and were interested in taking a look at the migration scripts.
In their wiki they link to two scripts (trac and collaboa) http://retrospectiva.org/wiki/Migration
However taki... | stackexchange/codereview |
My task is to extract information from ppt file and compare with another ppt file. I have to use windows platform so i used excel and powerpoint's COM object.
After developing and testing the code in my computer when i exported the file into another computer it just failed. I started to debug in that file, and surprisi... | stackexchange/codereview |
Looking for a php login script. I've searched stackoverflow and have seen a lot of posts, but can anyone recommend the best method? Also, If I want to use hashing, how do you decode the password when retrieving? My iPhone app uses the same database and currently the passwords are stored in normal text (not very secure,... | stackexchange/codereview |
Given the following associations, I need to reference the Question that a Choice is attached through from the Choice model. I have been attempting to use belongs_to :question, through: :answer to perform this action.
class User
has_many :questions
has_many :choices
end
class Question
belongs_to :user
has_many ... | stackexchange/codereview |
In an aspx page I am calling a jquery plugin for two listboxes as below.
$(document).ready(function() {
$("select.select_AdditionalLanguages").custSelectBox();
$("select.select_Organisations").custSelectBox();
});
Problem is, in the plugin jQuery(this) holds the listbox which was loaded last. Please s... | stackexchange/codereview |
I have the following classes:
public abstract class BaseClass
{
private readonly double cachedValue;
public BaseClass()
{
cachedValue = ComputeValue();
}
protected abstract double ComputeValue()
}
public class ClassA : BaseClass
{
protected override double ComputeValue() ... | stackexchange/codereview |
In a table with 5 millions rows, a SELECT count(*) FROM table would be instant in MyISAM but would take several seconds in InnoDB.
Why is this that way? Why haven't they optimise count in InnoDB like MyISAM?
Thanks.
| stackexchange/codereview |
Today I saw a neat copy function in VI, in which you could copy an entire line until a stop character.
e.g. if( copy == this );
With VI he could copy everything inside the parenthesis. I wonder if you can do it with emacs as well? (Without using ctrl+space and manually marking what I want to kill)
| stackexchange/codereview |
I have a PAC file on my server with the following code:
function FindProxyForURL(url, host) { return "PROXY proxy.example.com:8080; DIRECT"; }
According to the WIKI page here - http://en.wikipedia.org/wiki/Proxy_auto-config, this means that "should this proxy fail to respond, the browser contacts the website direct... | stackexchange/codereview |
I have a main page consisting of a link and a div with id 'containerDiv'.
When you press the link it loads some HTML from another page using Ajax into this div.
The HTML that is returned contains a form. When the form is submitted, I wish to stay on the same page and display the resulting content in the div.
Please se... | stackexchange/codereview |
I've got a WCF service running on a LAN IIS which is accessible from the internet as well.
The client that consumes the service is an application that runs on the LAN and remotely through the internet. There is no forwarding of anything on the DNS server redirecting http://www.corporate.com/Service to http://serverName... | stackexchange/codereview |
The scene: A purchased web application, with regular updates from the vendor. We then, heavily customize the look and sometimes add our own functionality or fix a bug before the vendor gets to it. For version control, we have been using Subversion following their “Vendor Branch” model each time we received a new relea... | stackexchange/codereview |
How to send a raw http header in python just like header() in PHP ?
| stackexchange/codereview |
i have a list of images i need to be able to move them left and right (sortable) in jquery. I know I need to use Child Selector but can someone lead me down the right path to getting this working please.
e.g so say i click id=1 and i want to move it below id="3"
<div id="image_list">
<img src="test0.png" id="1"... | stackexchange/codereview |
I'm a little confused, all these different types of product and it sounds like it will do all the same thing? Can someone please explain to me in plain english what are the differences between these products? what can you do and cant you do with each product? Example of where it's used.
Adaptive Payments enable develop... | stackexchange/codereview |
I'm getting the project path in my Django app in settings.py using:
PROJECT_PATH = os.path.realpath(os.path.dirname(__file__))
I would like to use the PROJECT_PATH value in other views, such as for locating the path to files in my static path. How can I make this into an accessible variable?
| stackexchange/codereview |
Using an ajax autosuggest script that queries a mysql database as I enter names. As I type in a name with an accent, the dropdown shows different characters than the ones I've typed in. For example as I type in the last name Hylén, the Ajax dropdown shows Hylén. This occurs if the name is not in the database.
$(docume... | stackexchange/codereview |
How to add custom fields as well as custom images to cart in magento 1.4.1.1 ?
Any one have any idea about this???
| stackexchange/codereview |
I am doing my first steps with GDB in TUI mode.
During the debug session I see that each line outputted to console occurs in a single line (in the picture you see 222222 highlighted in red). It is like having an output pane of one single line.
On top of that, each \n doesn't cleanup that line so all the strings do over... | stackexchange/codereview |
What is the usage of policy management in management part of sql server 2008??
| stackexchange/codereview |
I've install this script via pip, but how to a reference these files as part of my script, do I need to use import or some other magic?
Thanks
| stackexchange/codereview |
I've setup a system to automatically download and store a db dump from my Heroku deployed rails app. Everything is working great but when I download the dump and restore it to my local postgres server then try and run my local app off that restored database I get this error
ActiveRecord::StatementInvalid in HomeControl... | stackexchange/codereview |
I have #include<math.h>,
and I tried to use pow(x, y) and powf(x, y).
but it seems neither of them are under c99 standard.
and I use the command gcc -std=c99 test.c -o test to compile.
what function there exists I can use?
| stackexchange/codereview |
We use a JQuery UI theme and also have a <fieldset> with this CSS: fieldset {border:1px grey solid}.
Instead of specifying grey for the border, how can we use a color/style that is provided with theme?
| stackexchange/codereview |
I have a pylons based webapp and i'd love to use celery + rabbitmq for some time taking tasks. I've taken a look at the celery-pylons project but I haven't succeeded in using it.
My main problem with celery is: where do i put the celeryconfig.py file or is there any other way to specify the celery options eg. BROKER_HO... | stackexchange/codereview |
I'm trying to create a URL builder form with JavaScript or jQuery.
Basically, it will take the value of the two form fields, add them to a preset URL and show it on a third field on submit.
The resulting URL might be http://example.com/index.php?variable1=12&variable2=56
Now, this isn't the "action" of the form and the... | stackexchange/codereview |
I have an ArrayList() that I want to display as a Spinner. Problem is, I need to display something other than the File.toString(). I would like to set the Spinner's view text to the file name (formatted), not the full file path returned by File.toString(), so I believe this rules out just using ArrayAdapter? Thanks!
| stackexchange/codereview |
We are currently developing an android app for our client. Client would like to include a barcode on a it’s mailing about the Android app, such that when the user scans the barcode, s/he will be taken directly to the application on the Android marketplace for download. To do this, client will need to know the exact URL... | stackexchange/codereview |
I have an animation as my image in one of my tableview's cells. When it is clicked, it turns the default blue and the image disappears! The navigation loads the new view, and when it I go back to the first view, hoping my animation returns, alas, there is no image :(. I don't do anything in the didSelectRowAtIndexPat... | stackexchange/codereview |
I use the following Grails code to render a collection of SomeClass-objects as XML:
def someObjects = SomeClass.findAllByFoo(foo)
if (someObjects) {
render(contentType:"text/xml", text:someObjects as XML)
}
This works as expected most of the time. However, sometimes and depending on the content of someObjects the co... | stackexchange/codereview |
I have a question about MySQL InnoDB. For example: I have the following table created:
mysql>CREATE TABLE IF NOT EXISTS `SeqNum`
(
`id` varchar(10) NOT NULL,
`seq_num` BIGINT(30) default 0,
PRIMARY KEY(`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Query OK, 0 rows affected (0.00 sec)
mysql>... | stackexchange/codereview |
I am getting extraneous output in my .tex file that I can not suppress with <> or sink(). Notably, the unwanted lines are not enclosed by ..{Schunk} or similar.
This occurs for me when I use either DEoptim or rjags, although this is likely not limited to these functions.
example .Rnw file:
\documentclass[a4paper, 12]{a... | stackexchange/codereview |
I have having some trouble printing a "char" from an ASCII value stored in an array.
The goal overall is to read a string of input from the user, store that in an array. Then use another array to count the number of times each character appears in the string, storing the number of occurances in the array address that m... | stackexchange/codereview |
I have two dictionary personalizePatientChartDictionary and personalizePatientChartDictionaryOriginal. Both have same key but value can be different. I want to find out if there is any difference in value for a key. I have come up with the following function. Is there any better way of doing this? I am using .NET 4.0.
... | stackexchange/codereview |
I am new to this one. I want to develop the Email tool for s60 devices. How to start the email notification in symbian c++. I want to receive the email and send back to some other address.
Thanks in advance.. Please help me.
| stackexchange/codereview |
Basically I want my Java Applet to simulate an url has been clicked, once a certain event listener has been executed.
Say, before I have a link in html:
<a href='destinationpage.php?pid=1001' target='rightFrame' />
I'd like to keep the same link to php intact, and when Applet actually invoke the click simulation metho... | stackexchange/codereview |
I have existing entities of a type in my gae datastore to which i want to add a new primitive property of primitive type "long":
@Persistent private long bests = 0;
When I do this, when i try to load existing entities which obviously don't have this property set yet, i get:
java.lang.NullPointerException:
Datas... | stackexchange/codereview |
The title is basically all there is too it. I have an array of file objects...
File[] myFiles = myDirectory.listFiles();
And I want to convert it to an array of strings. (String[])
| stackexchange/codereview |
I am creating a flash site where someone can customize a canvas. Then they can preview this canvas on the product. Because of the way monitors display colors, we wanted to try to embed an icc color profile in the previewed image so the user can get a better idea of what the end product will look like. For instance, if ... | stackexchange/codereview |
I am trying to open the Finder in a certain package.
I got this file, Example.backup, which is just a folder with an extension. In the finder, you can right click it (Show Package Contents) and I will be presented with the files. (there is no Contents folder).
I've tried opening it with NSWorkspace's methods but none... | stackexchange/codereview |
Where and how are Hudson jobs and slave information stored?
I accidentally canceled a Hudson upgrade today. It wouldn't permit me to continue the upgrade; only to downgrade to the previous version and then upgrade again. After I downgraded, the two jobs I had created in the recent past were gone from the dashboard alon... | stackexchange/codereview |
First off I know this has been covered on SO. But the most popular posts I see date back to:
September 2008 - iPhone development on
Windows (over 2 years ago)
February 2009 - The iPhone and a PC? (1 year 8 months ago)
Have there been any developments on this issue since these posts? Am I still just better off tryin... | stackexchange/codereview |
Recently ran into a problem after putting my codeiginter application into a clustered environment. Users are able to get site rewards at point levels, after they click submit to retrieve the reward I have code that grabs the current point level of the reward is at and save that in a table with the user_id and what poin... | stackexchange/codereview |
I'm learning some compiler theory and practice at the moment. Ruby is my every day language of choice, and so I went to look at its lexer and parse grammar. Does ruby have a separate lexer? If so, which file is it described in?
| stackexchange/codereview |
I'm new with the whole ActionScripting Thing. :( So I truly appreciate it if someone can explain to me as simply as possible. :D
I keep getting the errors below when I click to go to another page. Please help me out if I'm doing something wrong. ^^
TypeError: Error #1009: Cannot access a property or method of a null
... | stackexchange/codereview |
I know those commands are for two sets.
Does there any simple and fast way to do this for more then two sets.
I think I can use some kind of loop for this but maybe there are better way.
Thank you
| stackexchange/codereview |
I already gem bundler in system. I check "gem list". it show:
*** LOCAL GEMS ***
bundler (1.0.3)
but I go to app and execute "bundle install". it is show:
bundle: command not found
please help me.
| stackexchange/codereview |
I have a label I have added a background to like this:
myLabel.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"some image"]];
The user will enter text into the label and when finished, I would like to have the background image fade away but have the text remain. I've tried UIView Animations but... | stackexchange/codereview |
I am trying to do a word document that has content control bindings to an XML document that I am swapping out for custom.xml in the word docx package.
When I created my original document, I added fonts and size and style to the content control text. This made it fit the rest of my documents style.
Then when I swap in t... | stackexchange/codereview |
i am a newby to drupal.
here is my problem:
on my main page.tpl.php i have this code lines:
"if ( $is_front == TRUE ) {
print views_embed_view('all_product_by_type_thin', "default", "canon");
print views_embed_view('all_product_by_type_thin', "default", "Nikon");
}"
as you can see, in case of the front page i print the... | stackexchange/codereview |
I have two tables (A and G) in an Oracle database that can be joined together based off an account number. The one caveat to this is that one of the tables (G) has about 80 fewer records than the other. When I query the two tables together, I need to get all of the rows, so that we see NULL data in the columns for the ... | stackexchange/codereview |
I am using Timertask in my web application to launch a background thread once every 24 hrs every day at midnight. So I have a ServletContextListener and in contextInitialized, I create a Timertask object timertask(say) and a Timer object say t.
I call
t.schedule(timertask, firstTime.getTime(), rescheduleMiliSec);
wh... | stackexchange/codereview |
With FORTRAN 77 is it possible to perform a swap on two arrays, in the same way swap works in c++?
I have two large arrays, e.g. v1 and v2, and would like to swap v1 and v2 at the end of each iteration such that v2 is always the last iteration and v1 is the working array. How does one do this in F77?
| stackexchange/codereview |
Could pls explain why I' not able to get valid result ( with precision to miliseconds ) after doing this (adding 7hrs to date):
select getdate() as dt into #t1
select dt, dt+(7.*60/1440) as dt_new from #t1
I got:
dt dt_new
2010-10-25 04:56:33.640 2010-10-25 11:56:33.580
As you can see there is di... | stackexchange/codereview |
I'm new to nginx and I got a rewrite problem here:
I want to permanently redirect http://domain1.com/abc.php to http://domain2.com,
but I want to keep http://domain1.com/abc.php?param=value, I've tried put
rewrite ^/abc\.php$ http://domain2.com last;
which works for http://domain1.com/abc.php, unfortunately it rewrit... | stackexchange/codereview |
Can anyone please tell me how to add multiple spinners with only one onItemSelected().
Right now i am doing something like this:
Spinner s[] = new Spinner[5];
I am using this for displaying hierarchy in spinners.
For index = 0; it works fine. But problem arises with next index as there is only one onItemSelected().
Wha... | stackexchange/codereview |
I want to use a plugin to make most of my models inline editable, but I don't understand the following:
To use it, include
jquery.rest_in_place.js in your
template and execute the following in
your document’s onLoad handler:
jQuery(".rest_in_place").rest_in_place();
http://jan.varwig.org/projects/rest-in-place
... | stackexchange/codereview |
Is something like this bad with memcache?
1. GET LIST OF KEYS
2. FOR EACH KEY IN LIST OF KEYS
- GET DATA
I'm expecting the list of keys to be around ~1000 long.
If this is bad, I'm wondering if there is a better way to do this? I figured memcache might be fast enough where such an O(n) query might not be so import... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.