instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
If I set <compilation targetFramework="4.0"> in web.config, Visual Studio 2010 shows all Linq extension methods in ASPX files (not codebehinds). But when I change my project to target 3.5 (which supports Linq extension methods) Visual Studio removes the previously mentioned attribute in web.config, but Linq intellisens... | stackexchange/codereview |
I have a SQL stored procedure that will return only one record. However, in that proc, is a subquery, that can return more then one rows. I believe it might be best design the sub query to return one row of multiple columns, instead of multiple rows.
How would I write out the sub query so it returns columns.
Currentl... | stackexchange/codereview |
I need to select links with a specific format of URLs. Can I use sizzle to evaluate a link's href attribute against a regular expression?
For example, can I do something like this:
var arrayOfLinks = Sizzle('a[HREF=[0-9]+$]');
to create an array of all links on the page whose URL ends in a number?
| stackexchange/codereview |
I am not sure what this style is called, but I guess you can call it stripped colors:
So basically one color for the first row, another color for the next row, and repeat.
Btw this image shows a ListView but I am trying to do it for a TreeView, so when you expand/collapse a node, it should still look correct.
I imagine... | stackexchange/codereview |
I'm creating input html element with jQuery with following event handlers like so:
$("<input type=\"text\" />").
focus(function()
{
//do something on focus
})
.blur(function()
{
//do something on blur
});
If I have two such inputs on one page and I have focus on one and then I click to fo... | stackexchange/codereview |
How would you go about dealing with multiple users accessing a database record concurrently, specifically if you have an instrument reservation table and you wish to prevent two users reserving the same instrument if they were to try reserving it at exactly the same time, I thought that setting the isolation level to s... | stackexchange/codereview |
I need to be able to query a PostgreSQL database to obtain information about the indexes present and their details.
On SQL Server, I can do the following to get a list of all tables/indexes/columns for all indexes:
select TABLE_NAME, INDEX_NAME, NON_UNIQUE, COLUMN_NAME
from INFORMATION_SCHEMA.STATISTICS
where TABLE_SCH... | stackexchange/codereview |
In a DAG G, with non negative weighted edges, how do you find the maximum-weight path between two vertices in G?
Thank you guys!
| stackexchange/codereview |
I currently have an NSString which can take in a message body similar to a tweet.
E.g.
NSString *sampleText = "This text contains the link http://www.google.com"
I need to write a function that can take in this text, detect that a url exists in the string, and be able to replace the url with a placeholder text.
E.g. a... | stackexchange/codereview |
how to draw point and line between 2 points in opencv??? Would like by clicking in image using mouse draw points and connect them.
| stackexchange/codereview |
We have an 8 Core, 16GB RAM server that has SQL Server 2008 running on it. When we perform large queries on millions of rows the RAM usage goes up to 15.7GB and then even file browsing, opening excel etc gets really slow.
So does SQL Server really release memory when another process needs it or am I having another issu... | stackexchange/codereview |
I'm very new to C, and I am having trouble with fwrite.
I'm looking to use a struct that holds two values:
struct keyEncode{
unsigned short key[2];
unsigned short encoded[2];
};
I then declare my struct and a pointer to that struct in my main:
struct keyEncode keynEncode;
struct keyEncode *storedVal = &keynEnc... | stackexchange/codereview |
I have a file that contains paragraphs starting with AB, I wanted to get all these paragraphs,
I used the following code, but it returns nothing:
import re
paragraphs = re.findall(r'AB[.\n]+AD',text) #AD is the beginning of the next paragraph
Any idea why did not this work?
Thanks
| stackexchange/codereview |
I am using the following to check after a page fires to see if all images in the container have been rendered correctly:
$(window).bind('load', function() {
$('.imagecontainer').each(function() {
if ((typeof this.naturalWidth != "undefined" && this.naturalWidth == 0) || this.readyState == 'uninitia... | stackexchange/codereview |
I'm working with Ruby On Rails 2.3.8 and I'm using TinyMCE with image and video upload functionalities.
I've figured out that when I insert a Vimeo video, it won't work, because it needs it's own iframe, as the following:
<iframe src="http://player.vimeo.com/video/16430948" width="400" height="225" frameborder="0"></if... | stackexchange/codereview |
Update: I solved it. Documented everything below.
I tried so many things, but it just would not work.
I wouldn't mind using, postfix, exim4, or sendmail. I just need a step by step guide and explanation of what am I doing. I am also using Google Apps for e-mail.
Edit:
mail.log
Nov 3 01:14:02 mugbear postfix[16615]: e... | stackexchange/codereview |
I have recently updated XCode (3.2.4) and the SDK (4.1).
When debugging I can only debug using:
iPad Simulator 3.2
iPhone Simulator 4.0
iPhone Simulator 4.0
How do I use the iPhone Simulator for 3.2? Is it available?
| stackexchange/codereview |
The idea is to implement a class that gets a list of [arrays, Thread::Conveyor queues and other stuff] in a TIEHASH constructor,
use AbstractHash;
tie(%DATA, 'AbstractHash', \@a1, \@a2, \$tcq);
What is a correct way to pass object references (like mentioned Thread::Conveyor objects) thus array references into constr... | stackexchange/codereview |
I have a set of contact infos that I will be displaying in an ASP.NET MVC page
They will either have an email address or information to contact
should I have this setup
public class Contact
{
public int ID { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string... | stackexchange/codereview |
Before I go off and write way too much code, I want to check that I'm not reinventing a (freely) available wheel, and make sure that I can, in fact, read and use Google.
I have a Java web service I am calling from compact framework. I'm using the NetCFSvcUtil program with the Compact Framework powertools to generate th... | stackexchange/codereview |
What's the most efficient way to copy a large amount of rows from a table in one database to another table in a different database that has the exact same structure?
| stackexchange/codereview |
I've been working on a game engine for a month now, and I've finished the basic OpenGL stuff. However, the one thing that I can't get to work like I expect it to is the lighting.
(Note: This is the first time I seriously worked with OpenGL)
What I want is a close to realistic lighting simulation - where the surfaces fa... | stackexchange/codereview |
So I just got back for the ACM Programing competition and did pretty well but there was one problem that not one team got.
The Problem.
Start with an integer N0 which is greater than 0. Let N1 be the number of ones in the binary representation of N0. So, if N0 = 27, N1 = 4. For all i > 0, let Ni be the number of ones ... | stackexchange/codereview |
i have a problems with running braid on ruby 1.9.2. The problem is with fattr gem
$ braid
/opt/local/lib/ruby1.9/gems/1.9.1/gems/fattr-2.1.0/lib/fattr.rb:85:in `block (2 levels) in fattrs': wrong number of arguments (1 for 0) (ArgumentError)
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/fattr-2.1.0/lib/fattr.rb:9... | stackexchange/codereview |
If I have an arbitrary set of points, and then the same set of points rotated by some degree, does anyone know of any algorithms to calculate/estimate where the centre of the rotation is? Or an area of study where these kinds of algorithms are needed?
I am having trouble finding any relevant information.
Thanks
| stackexchange/codereview |
My Python code supports reading and writing data in a file format created by others called the BLT format. The BLT format is white space and newline independent in that a newline is treated just like other white space. The primary entry in this format is a "ballot" which ends with a "0", e.g.,
1 2 3 0
Since the form... | stackexchange/codereview |
I have an ASP.NET MVC website that uses an internal dll for some PInvoke stuff. The dll is located in the /bin folder next to the other assemblies. This works well, but if I want to replace the content of the /bin folder with the newest set of files by copying onto the existing files (this is on a test server) the PInv... | stackexchange/codereview |
I am writing a function in Matlab. There should be something wrong. The output of my function is a vector. When I see every element of my vector I see NaN (Not a Number) and NaNi, that really I don´t Know?
Does anybody know what is NaNi?
| stackexchange/codereview |
Let's assume I have a jQuery object of a DIV element in body. I'd like to obtain document object by traversing. Can it be possible ?
Note: window.document is not a option in my case.
Thank you.
| stackexchange/codereview |
I'm looking an good open source license that does not require the copyright notice/license itself be included in the source code, and with a "no warranty clause." Does anyone know of one?
I want this because the software in question is an extremely simple bookmarklet. Including the license with the Javascript would eas... | stackexchange/codereview |
I'm looking for a quick way to tell if the device is being held with the home button to the right or to the left. Is there a function to do so?
| stackexchange/codereview |
Ok, I'm having to make a PDF that has some styles to it. It's for labels. I have the following code:
Document doc = new Document(PageSize.A4);
int labelHeight = 394;
int labelWidth = 556;
float labelTop = doc.PageSize.Height - 2;
float labelBottom = doc.PageSize.Height - labelHeight;
MemoryStre... | stackexchange/codereview |
I usually edit my files in gVim when developing. Sometimes I need to do a quick tweak in my .vimrc or in some plugins (like snipMate). To do this, I open a terminal, open vim and edit my .vimrc or my plugin.
(Why do I do that, opening .vimrc in a different window? I don't like to mix configuration files with project fi... | stackexchange/codereview |
I get images from a URL using XML Parsing. I loaded the all images from url in to UITableViewCell using Parsing. But when I press the scrollbar in UITableView, it make slowly to loading images.
I used the following code.
NSString *image1 =[images objectAtIndex:indexPath.row];
NSLog(@"Images ..... = %@",image1);
NSDa... | stackexchange/codereview |
I did a quick implementation of the SoE algo in Java (code at the end). The output on my dual core AMD processor is:
Allocation: 31
Meat: 10140
Listing: 10171
Preparing end: 10187
The "Meat" section consumes the Maximum amount of time, as expected.
One observation I had was that using Math.... | stackexchange/codereview |
I am having issues with my cookie management code. On every page I look to see if a key value has been set. My problem is that looking at the cookie creates an empty cookie.
Locally, I can look at the cookie and then set the key value and all is right with the world. But when I move my code to the test server, every... | stackexchange/codereview |
I've got a tricky issue with "overriding" static arrays. I've got static arrays (for simplicity) that are of fixed length in different derived classes, but still all sizes are known in compile-time. I've also got a virtual function in the base class, but I don't know how to tackle the problem of overriding these arrays... | stackexchange/codereview |
I got an
AttributeError: '_MainProcess' object has no attribute '_exiting'
from a Python application. Unfortunately this code has to run Python 2.5 and therefore the processing module nowadays known as multiprocessing. What I was doing is to create a Process with a Queue and to put an item in the queue from the main p... | stackexchange/codereview |
Our project contains several classes that we have equals() and hashCode() methods generated by Eclipse (Right Click -> Source -> Generate hashCode() and equals()).
Example:
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getCla... | stackexchange/codereview |
I'm overriding Django's get_query_set function on one of my models dynamically. I'm doing this to forcibly filter the original query set returned by Model.objects.all/filter/get by a "scenario" value, using a decorator. Here's the decorator's function:
# Get the base QuerySet for these models before we modify their
# Q... | stackexchange/codereview |
net and I'm trying to insert a row into an entity, and I keep getting the following error:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
Here's my code on C# side:
public static void DumpToLog(string s, string userID)
{
var ler = new LoggedExceptionRepositor... | stackexchange/codereview |
I'm building a Windows Phone 7 app in Silverlight. I'm having difficulty using IsolatedStorageFile.
The following method is supposed to write some data to a file:
private static void writeToFile(IList<Story> stories)
{
IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForApplication();
... | stackexchange/codereview |
look at this:
http://www.eurodroid.com/pics/android_foursquare_update_1.jpg
Someone knows how is structured this layout?
Is a 3 tab layout, but the content of this tab?
Is a table, a ListAdapter, what is?
Thank you a lot.
| stackexchange/codereview |
I was trying to do the following on IPhone:
load a webpage on UIWebView control in my application.
The webpage has an audio tag (<audio/> in HTML5) with source of the audio file set correctly.
Webpage loads correctly and when I click on play button the audio was coming out from the receiver.
How do I make the audio... | stackexchange/codereview |
I have set of data which contains images also. I want to cache this data. Should i store them on file system or on core data and why?
| stackexchange/codereview |
I'm looking through the MarkDown code written in Perl by John Gruber, and there is a sub called _Detab that converts tabs to spaces while preserving the indentation of the text. The line of code in question is 1314 in Markdown.pl:
$text =~ s{(.*?)\t}{$1.(' ' x ($g_tab_width - length($1) % $g_tab_width))}ge;
Wouldn't t... | stackexchange/codereview |
I want to read all data from the following URL.
http://m.flickr.com/#/photos/westconn/
I want to read Image URL.
I want to read Title.
I want to read Updated Time.
Does anyone have any idea, sample application or sample URL links?
| stackexchange/codereview |
I have an arrow button that I want to keep small but I want the touch area around it to be bigger.
I used the answer from the post Here but it made my button larger.
The problem is that the picture of the button is larger than the size it is presented in. But I thought there must be a way to do it without editing it or... | stackexchange/codereview |
First, some info that might be useful:
I'm running Selenium RC 1.03 on Mac OS X 10.6.4.
I'm starting the SeleniumServer using the following shell script:
cd ~/Selenium/selenium-server-1.0.3/
java -jar selenium-server.jar
and calling it from inside an Automator action with the following:
~/Selenium/selenium-server-1.0.... | stackexchange/codereview |
I would like to display navigation links on single.php to point to the "previous" and "next" dated posts from within a category. I know how this works, so that's not the issue.
My issue is, Wordpress doesn't seem to want to display my published future-dated posts, even if I stick a query_posts( 'post_status=future,publ... | stackexchange/codereview |
Doing this in chrome:
<input id='speech-this' type='text' speech />
Creates an input tag with a little mic. Clicking on the mic does voice recognition, like android phones search.
My question is: Is it possible to do this without the <input> field? I mean, the ideal thing would be a javascript object that does somethi... | stackexchange/codereview |
Is it possible to open a command prompt from inside final builder 6.. with the env created from inside final builder?
| stackexchange/codereview |
I have the following problem.
Let's take the input (wikitext)
======hello((my first program)) world======
I want to match "hello", "my first program" and " world" (notice the space).
But for the input:
======hello(my first program)) world======
I want to match "hello(my first program" and " world".
In other words, I ... | stackexchange/codereview |
I am wondering is it more useful and practical (size of DB) to create multiple tables in sql with two columns (one column containing foreign key and one column containing random data) or merge it and create one table containing multiple columns. I am asking this because in my scenario one product holding primary key co... | stackexchange/codereview |
I'm using jruby-1.5.3 with a rails 2.3.5 app. I've just started playing around with thread safety using:
config.threadsafe!
config.eager_load_paths << "#{RAILS_ROOT}/lib"
Which works fine, I just noticed however on deployment to my staging environment (which has the same config as production) that I get undefined con... | stackexchange/codereview |
I'm interested in building something that requires a table sorting plugin.
Best way to think of it, is imagine you wanted to build MS Outlook online, the structure is something like this:
Subject | Date&Time | Unread
lots of rows
lots of rows
lots of rows
I'd like a jQuery Table Sorting plugin, that allows me to use t... | stackexchange/codereview |
I've created a PHP class that envelopes filter_input functions to make our developer's life easier.
To validate an HTML form with url, name and age fields, the code would be like that:
$post = Filter::POST();
if ($post->validate_string('name') && $post->validate_integer('age')) {
$url = $post->sanitize_url('url');
... | stackexchange/codereview |
I have tried in my MVC app to add jquery modal dialogs to prompt the user for input, but my code turned really sloppy just prompting the user for 1 field of information.
SharePoint 2010 has ajax overlays that are very functional, some even include the office ribbon.
How is this being done? What libraries can I use w... | stackexchange/codereview |
just curious why I cann't remove declared local variable from 'local_variables' array.
Example:
x=1
myarr = local_variables.clone
p local_variables
=> [:x, :_]
p myarr
=> [:x, :_]
p local_variables.class
=> Array
p myarr.class
=> Array
myarr.delete :x
p myarr
=> [:_]
local_variables.delete :x
p local_variables
=> [:x, ... | stackexchange/codereview |
When I use VIM in the terminal on my local machine (Mac OS X Snow Leopard), the delete key is really backspace (i.e., destructive backspace).
When I SSH into a particular server, for some reason it's regular delete (i.e., delete the character under the cursor).
How can I change it to be consistent? I've tried a dozen ... | stackexchange/codereview |
Summary
Classes from 3rd party jar files are accessible when added to build path while running a standalone JUnit test, but "ClassNotFoundException" when accessed through plain old java objects from within a dynamic web project.
IDE used: Eclipse
Web Server: Apache 7
Details
My project required a lot of 3rd party jar... | stackexchange/codereview |
A process ID is a number that uniquely identifies a process. A process handle is also a number that uniquely identifys a process kernal object.
Why do we need them both since either of them can identify a process.
I think the answer may lie in the mapping relationship betweeen a process and a process kernel object. Is ... | stackexchange/codereview |
This marks a new chapter for me asking a question about an entirely different subject that I know nothing about :)
I'm following a book called "Flash Games" and it's not for beginners and I'm a beginner so lots of jargon that I don't know and simple google searches don't come up with anything.
What is the Flash IDE?
Do... | stackexchange/codereview |
I have a database which has around 150K records of data with a primary key on the table. The data size for each record will take less than 1kB. The processing time for constructing a POJO from the DB record takes about 1-2 secs(there is some business logic that takes too much time). This is read-only data. Hence I'm pl... | stackexchange/codereview |
My sentinel in below code won't work. It keeps looping instead of exiting when entering 'zzz'. Any ideas? Please note that i do wish to use Console class rather than Scanner class in this exercise.
class Username{
public static void main(String[] args){
String name, surname, code, username ;
boolean... | stackexchange/codereview |
In Wpf (4.0) my listbox (using a VirtualizingStackPanel) contains 500 items. Each item is of a custom Type
class Page : FrameworkElement
...
protected override void OnRender(DrawingContext dc)
{
// Drawing 1000 single characters to different positions
//(formattedText is a static member which is only instantiat... | stackexchange/codereview |
I am writing an application in Python using Tkinter to manage my GUI.
There is a text entry box on which I am trying to implement an autocompletion function which will bind to the Tab key.
I have bound the tab key to my entry box, but when I press tab, the program attempts to cycle between GUI elements.
How do I overri... | stackexchange/codereview |
I want to obtain the number of lines from file using the follow line command, but show the follow error:
Line command:
for /f %%i in ('find /v /c "" ^< someFile.txt') do set /a lines=%%i print lines
Error:
%%i was unexpected at this time.
Can someone please tell me what is bad in the code, or maybe tell me other co... | stackexchange/codereview |
This problem is confusing me. I have a tree, and I want to write a method that counts the number of grandchildren of a certain node (but not great granchildren). I cant use loops, only recursion. So the question is how would I implement my base case? How do I make it stop? I can't think of a way that this would be impl... | stackexchange/codereview |
I'm developing an Android application for accessing some battle.net (https://eu.battle.net) account data (for World of Warcraft) and I'm using the org.apache.http.client.HttpClient to do so.
This is the code I'm using:
public static final String USER_AGENT = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8)... | stackexchange/codereview |
Ok, this sounds so easy, but I've spent hours googling and I just cant find a solution, that isn't to complicated.
I want to create a table that has images and text in it. I want every row of the table to have the same height. And I want the text to always start at the top.
i.e.
\begin{tabular}{l l}
some text & some te... | stackexchange/codereview |
How do I define my own event listeners in AS3? I know it has to do with dispatch event, but I'm pretty much lost on how to use it.
I'm writing custom classes.
| stackexchange/codereview |
I'm trying to get remove mouse events working and I'm attempting to use this little script:
set machineB to "eppc://user:pw@myothermac.local"
tell application "Finder" of machine machineB
say "Hello This is so stupid"
end tell
tell application "System Events" of machine machineB
click at {100, 100}
end tell
Th... | stackexchange/codereview |
I am getting really confused about OOD when designing relatively large system. Always, we talk about has-a relationship between two entities. My question is about which one owns the other?
when designing a parking lot, there are many parking space. Should the car has an data field called parking space, or should the p... | stackexchange/codereview |
I am supporting a legacy ASP page which creates an ADODB stream object like this, then attempts to set it's type with an ADODB enumerator.
Set BinaryStream = Server.CreateObject("ADODB.Stream")
BinaryStream.Type = adTypeBinary
Whenever I run this I get the following error:
Variable is undefined: 'adTypeBinary'
Howeve... | stackexchange/codereview |
I am currently trying to solve some problems from the USACO training website in preparation for an unrelated C++ programming competition.
However, I am stuck on this problem:
Does the 13th of the month land on a Friday less often than on any other day of the week? To answer this question, write a program that will com... | stackexchange/codereview |
In my objective c code I am using c and c++ libraries. Inside that there is a usleep(20); method used and I am keep on getting a warning "implicit declaration of function 'usleep'". Is it ok to keep this in the code? Can this code chunk can cause to app rejection in App Store?
Thank you.
| stackexchange/codereview |
In my application I'm trying to create a mesh that is shaded by a single directional light. The problem I'm facing is that I can't seem to get the light to take my normals into account at all.
It works fine if I set the normals on a per-triangle-strip basis, but if I try to render a series of triangles with normals set... | stackexchange/codereview |
$.get("/ajax-terms.asp", function(d){
$("#wrap-terms").html(d);
})
When the terms data is included directly into the document using "Response.Write" everything appears correctly, including these characters: ‘ and ’
When I request the same data via AJAX, strange symbols are returned by server (or may be the server ... | stackexchange/codereview |
I'm working on an RDP client with a friend as a pet project and we're trying to get fast-path updates to work since rdesktop hasn't supported this so far. We're able to process around 20-21 fast-path PDUs after the handshake before decryption starts failing. This is because somewhere in there, the RDP server is encrypt... | stackexchange/codereview |
What are the best toolset you can recommend in developing wordpress theme? Are the tools you use to make the workflow fast? Actually I'm looking for a stacked of codes or snippet that developers gathered and just reuse it in their development. (e.g. the wordpress loop, customized loop, ) the loop can then just be copy ... | stackexchange/codereview |
If a Tick-handling function will only be used in one context (i.e. always in the same function in combination with the same Timer object), why bother make it a separate function? That's the thought that went through my head when I thought of this.
Is it possible to tie an anonymous function to a Timer's tick event? Her... | stackexchange/codereview |
Is there any kind of API (oAuth?) for this? Or maybe a publicly visible piece of information that only the user can edit so that I can give her a hash to put there (similar to how one confirms domain ownership through CNAMEs).
| stackexchange/codereview |
HI, I have the following query, but it's not quite doing what I expect it to do
SELECT DISTINCT(c.id) AS "CLIENT CODE",c.name AS "CLIENT NAME", count(cmp.id) as "NUMBER OF CAMPAIGNS ON LIVE AND PENDING" FROM clients AS c ,campaigns AS cmp WHERE cmp.clientid = c.id AND cmp.status NOT IN('S','C','X','?') GROUP BY c.name,... | stackexchange/codereview |
Which files i need edit and learn to customize the android desktop, such: change main bar, turn off slider bar, turn-off desktop slide, and put a menu in desktop.
Thanks
| stackexchange/codereview |
int main(int argc, char** argv)
{
try {
char *p2 = NULL;
cout << "p2:" << strlen(p2) <<endl;
cout << "mark";
}
catch (...) {
cout << "caught exception" <<endl;
}
return 0;
}
The output is p2:,so neither cout << "mark"; nor cout <<... | stackexchange/codereview |
Does anyone know of a plug-in for PostgreSQL's pgAdmin III that enables DB diagrams such as in SQL Server?
| stackexchange/codereview |
question:
How does Xcode generate the list of framework directories (-F flags in the call to ld) when building a Cocoa app? I keep getting a warning for an old directory which (I think) I have removed from the project settings.
details:
I moved a working Xcode project from one directory to another. I had to fix some br... | stackexchange/codereview |
What exactly does the word domain mean in DDD? I keep reading the definition... and although i see things like the domain model and understand what model is - what does domain model mean?
What does domain actually mean?
Thanks
| stackexchange/codereview |
SELECT TOP 1 *
FROM URLForPosting WITH(nolock)
WHERE status = 0
ORDER BY newid()
This is the query when I run in code I get timeout, even when I run it at SQL Server I get timeout.
However when I do this
SELECT TOP 1 *
FROM URLForPosting WITH(nolock)
WHERE status = 0
It runs perfectly fine.
Also the first query... | stackexchange/codereview |
Is there a way to prevent users from navigating directly to a page in Silverlight 4?
Thank you.
| stackexchange/codereview |
I've the following data from a data frame
Name,JoiningDate,AmtPaid
Joe,12/31/09,1000
Amy,10/28/09,100
John,05/06/10,200
The Joining Date is coming in as a factor (when I sapply). How can I convert this to date and then sort on JoiningDate?
| stackexchange/codereview |
I am building an order system and there are 2 different parts for adding products. In both parts, the products are inserted with an ajax request, which returns the basket. In the first part the products are directly added (without any options). This part works fine.
In the second part, users can add preferences to the... | stackexchange/codereview |
A follow-up question to one earlier: I've created an object in the Form1 : Form class with:
public struct POStruct
{
public List<string> staticCustInfo;
public List<List<string>> itemCollection;
public int testInt;
}
POStruct myObject = new POStruct();
However, when I try to access... | stackexchange/codereview |
Hey, so i have been using this function in every project or page i work on.
function redirect_to($location = NULL) {
if ($location != NULL) {
header("Location: {$location}");
exit;
}
}
And now i checked Opera and that redirect don't work there? So this is very frustrating how should i fix it so... | stackexchange/codereview |
I run the wesabe web app locally.
Each time I start it by opening separate shells to start the mysql server, java backend and rails frontend.
My question is, how could you automate this with a shell script or rake task?
I tried just listing the commands sequentially in a shell script (see below) but the later commands ... | stackexchange/codereview |
My Solution/Project builds fine with code contracts turned off for this particular project.
When I turn on Perform Runtime Contract Checking on my project, the build fails. The CC rewriter starts to kick up hundreds of messages along the lines of:
Could not resolve member reference: ....
It seems this problem is cause... | stackexchange/codereview |
I trying to upload a zip file. In my project i am using DWR in the client side and Java in server side. As i have seen in DWR tutorials for uploading data(Its not in their website. They are providing it with dwr.rar bundle) they getting input by the below lines.
var image = dwr.util.getValue('uploadImage');
var file = ... | stackexchange/codereview |
Well here I am sitting down for the millionth time telling myself "I'm going to write a game using SDL and C++" except this time I told myself I was going to write it in C. This is because SDL itself is written in C and it seems to just make sense to me. The game that I'm writing will be a simple "SHMUP" (Shoot 'em up)... | stackexchange/codereview |
Is there a way to extract the text of a transcribed voicemail using pygooglevoice? Printing the message simply prints the filename.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.