qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
260,615 | <p>I am trying this in my Form Load Event</p>
<p><pre><code>
cmdCancel.Attributes.Add("onClick", "document.forms[0].reset();return false;")
</pre></code></p>
<p>but it doesn't clear my form. My form is a "ContentPage", part of a masterpage.</p>
<p>Am I missing something?</p>
| [
{
"answer_id": 260630,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 3,
"selected": true,
"text": " cmdCancel.Attributes.Add(\"onClick\",\"document.getElementById('\" + this.Page.ClientId + \"').reset(); return false;\");\n... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23667/"
] |
260,626 | <p>What does "type-safe" mean?</p>
| [
{
"answer_id": 260640,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 8,
"selected": false,
"text": "// Fails, Trying to put an integer in a string\nString one = 1;\n// Also fails.\nint foo = \"bar\";\n int AddTwoNumbers(int ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
260,627 | <p>This drop down list, displaying all the files from a folder, one of which will be selected for use. Is there a way to show which file is selected when you load the page? At the moment it says "select a file" every time.</p>
<pre><code><select name="image" type="text" class="box" id="image" value="<?=$image;?&... | [
{
"answer_id": 260640,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 8,
"selected": false,
"text": "// Fails, Trying to put an integer in a string\nString one = 1;\n// Also fails.\nint foo = \"bar\";\n int AddTwoNumbers(int ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32972/"
] |
260,658 | <p>Via command line, I usually do this:</p>
<pre><code>cp -rRp /path/to/a\_folder/. /path/to/another\_folder
</code></pre>
<p>This copies just the contents underneath <strong>a_folder</strong> to <strong>another_folder</strong>. In SVN I need to do the same thing, but can't figure it out. I always end up with this:</... | [
{
"answer_id": 260706,
"author": "Jerub",
"author_id": 14648,
"author_profile": "https://Stackoverflow.com/users/14648",
"pm_score": 4,
"selected": true,
"text": "trunk/a_folder/foo\ntrunk/a_folder/bar\ntrunk/new_folder/baz\n cd trunk/new_folder\nsvn merge -r1:HEAD http://svn/repo/trunk/... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
260,663 | <p>I started web programming with raw PHP, gradually moving on to its various frameworks, then to Django and Rails. In every framework I've used, pretty much everything I need to do with a database (even involving relatively complex things like many-to-many relationships) could be taken care of by the automatically gen... | [
{
"answer_id": 260746,
"author": "CodingWithSpike",
"author_id": 28278,
"author_profile": "https://Stackoverflow.com/users/28278",
"pm_score": 2,
"selected": false,
"text": "Controller -> Service -> DAO\n"
},
{
"answer_id": 261063,
"author": "jb.",
"author_id": 7918,
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
260,664 | <p>I have a PHP app that needs to run bash scripts, and provide a username & password (for remote systems).
I need to store these credentials somewhere that is accessible by my PHP (web) app.
The logical place is the database (currently MySQL, but will be agnostic).
The problem with the "standard" way of hashing an... | [
{
"answer_id": 260709,
"author": "too much php",
"author_id": 28835,
"author_profile": "https://Stackoverflow.com/users/28835",
"pm_score": 1,
"selected": false,
"text": "INSERT INTO tbl_passwords SET encoded_pw = ENCODE('r00t', 'my-salt-string');\n SELECT DECODE(encoded_pw, 'my-salt-str... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
260,666 | <p>Can an abstract class have a constructor?</p>
<p>If so, how can it be used and for what purposes?</p>
| [
{
"answer_id": 260686,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 1,
"selected": false,
"text": "abstract class Product { \n int value;\n public Product( int val ) {\n value= val;\n }\n abstract public... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33885/"
] |
260,668 | <p>I'm curious about people's experiences using AR's to_xml() to build non-entity fields (as in, not an attribute of the model you are serializing, but perhaps, utilizing the attributes in the process) from a controller. </p>
<p>to_xml seems to supply a few options for doing this. </p>
<p>One is by passing in refer... | [
{
"answer_id": 260686,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 1,
"selected": false,
"text": "abstract class Product { \n int value;\n public Product( int val ) {\n value= val;\n }\n abstract public... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33866/"
] |
260,672 | <p>There are some tasks, especially the ones that involve deleting folders as SU, that I do thoughtfully and slowly before I press the Enter key. I think if others saw me do these at the careful pace that I do they would cringe. Are there critical programming tasks that you perform that you believe deserve this thought... | [
{
"answer_id": 263428,
"author": "Chris Burgess",
"author_id": 6624,
"author_profile": "https://Stackoverflow.com/users/6624",
"pm_score": 0,
"selected": false,
"text": "select * into myTable_backup from myTable"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/260672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
260,679 | <p>If I have a table like:</p>
<pre><code>CREATE TABLE FRED
(
recordId number(18) primary key,
firstName varchar2(50)
);
</code></pre>
<p>Is there an easy way to clone it's structure (not it's data) into another table of a given name. Basically I want to create table with exactly the same structure, but a different n... | [
{
"answer_id": 260771,
"author": "Salamander2007",
"author_id": 10629,
"author_profile": "https://Stackoverflow.com/users/10629",
"pm_score": 5,
"selected": true,
"text": "select dbms_metadata.get_ddl('TABLE', 'TABLE_NAME', 'SCHEMA_NAME') from dual\n"
},
{
"answer_id": 62470385,
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6044/"
] |
260,685 | <p>I have been using <a href="http://www.plt-scheme.org/" rel="noreferrer">PLT Scheme</a>, but it has some issues. Does anyone know of a better implementation for working through SICP?</p>
| [
{
"answer_id": 262886,
"author": "soegaard",
"author_id": 23567,
"author_profile": "https://Stackoverflow.com/users/23567",
"pm_score": 7,
"selected": false,
"text": "raco"
},
{
"answer_id": 39024828,
"author": "htanata",
"author_id": 4353,
"author_profile": "https://... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25573/"
] |
260,701 | <p>I'm looking for one line code examples in various languages for getting a valid MD5 result (as a string, not a bytehash or what have you). For instance:</p>
<p>PHP:
$token = md5($var1 . $var2);</p>
<p>I found VB especially troublesome to do in one line.</p>
| [
{
"answer_id": 260715,
"author": "Markus Jarderot",
"author_id": 22364,
"author_profile": "https://Stackoverflow.com/users/22364",
"pm_score": 2,
"selected": false,
"text": "token = __import__('md5').new(var1 + var2).hexdigest()\n md5 token = md5.new(var1 + var2).hexdigest()\n"
},
{
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33886/"
] |
260,703 | <p>Here is some simple Perl to count the number of times a value occurs in an array. This runs without any warnings.</p>
<pre><code>use warnings;
use strict;
my @data = qw(1 1 2 3 4 5 5 5 9);
my %histogram;
foreach (@data)
{
$histogram{$_}++;
}
</code></pre>
<p>When the loop body is changed to</p>
<pre><code>$h... | [
{
"answer_id": 260862,
"author": "Axeman",
"author_id": 11289,
"author_profile": "https://Stackoverflow.com/users/11289",
"pm_score": 0,
"selected": false,
"text": "$histogram{$_} my $hash_ref = $hash_for{$key_level_1};\n$hash_ref->{$key_level_2} = $value;\n $hash_for{$key_level_1}{$key_... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25164/"
] |
260,716 | <p>I'm using a <code>RichTextBox</code> (.NET WinForms 3.5) and would like to override some of the standard ShortCut keys....
For example, I don't want <kbd>Ctrl</kbd>+<kbd>I</kbd> to make the text italic via the RichText method, but to instead run my own method for processing the text.</p>
<p>Any ideas?</p>
| [
{
"answer_id": 260821,
"author": "Jim Burger",
"author_id": 20164,
"author_profile": "https://Stackoverflow.com/users/20164",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Windows.Forms;\n\nnamespace WindowsFormsApplication1\n{\n public partial class Form1 : F... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/194/"
] |
260,723 | <p>I have a Tapestry PropertyModel for gender. Right now the dropdown just shows Male and Female because those are the only values in my model. I'd like to add a "Choose an Option" option. Is there a standard way to do this without having to add a fake value to my model? I'd also like it to be smart enough to know t... | [
{
"answer_id": 260967,
"author": "Brian Deterling",
"author_id": 14619,
"author_profile": "https://Stackoverflow.com/users/14619",
"pm_score": 1,
"selected": false,
"text": "new LabeledPropertySelectionModel(new GenderModel(), \"Choose an Option\")\n"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/260723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14619/"
] |
260,729 | <p>Are the two events the same or are there differences that we should take note when coding the keyboard presses?</p>
| [
{
"answer_id": 262473,
"author": "Fry",
"author_id": 23553,
"author_profile": "https://Stackoverflow.com/users/23553",
"pm_score": 1,
"selected": false,
"text": "ctrlPressed=true ctrlPressed=false;"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/260729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26087/"
] |
260,738 | <p>How can I play audio (it would be like a 1 second sound) from a Python script?</p>
<p>It would be best if it was platform independent, but firstly it needs to work on a Mac.</p>
<p>I know I could just execute the <code>afplay file.mp3</code> command from within Python, but is it possible to do it in raw Python? I ... | [
{
"answer_id": 260901,
"author": "TML",
"author_id": 33918,
"author_profile": "https://Stackoverflow.com/users/33918",
"pm_score": 6,
"selected": false,
"text": "pygame.mixer.init()\npygame.mixer.music.load(\"file.mp3\")\npygame.mixer.music.play()\n"
},
{
"answer_id": 14018627,
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2592/"
] |
260,742 | <p>I've got an embedded Windows Media player in an HTML page, and when the audio gets to the end, it just starts again from the beginning.</p>
<p>According to the documentation, there's an <code>autorewind</code> parameter/attribute and also a <code>loop</code>.</p>
<p>The problem is, I've set both of those to <code>... | [
{
"answer_id": 293467,
"author": "plan9assembler",
"author_id": 1710672,
"author_profile": "https://Stackoverflow.com/users/1710672",
"pm_score": 0,
"selected": false,
"text": "<object width=\"320\" height=\"290\"\nclassid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\"\nid=\"mediaplayer1... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242241/"
] |
260,744 | <p>An abstract class can only be used as a base class which is extended by some other class, right? The constructor(s) of an abstract class can have the usual access modifiers (public, protected, and private (for internal use)). Which of <code>protected</code> and <code>public</code> is the correct access modifier to ... | [
{
"answer_id": 260779,
"author": "Jordan Stewart",
"author_id": 33338,
"author_profile": "https://Stackoverflow.com/users/33338",
"pm_score": 6,
"selected": true,
"text": "public class Scratch\n{\n public static abstract class A\n {\n public A( int i ) {}\n }\n\n publi... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15075/"
] |
260,745 | <p>I have a menu with an animation going on, but I want to disable the click while the animation is happening.</p>
<pre><code><div></div>
<div></div>
<div></div>
$("div").click(function() {
$(this).animate({height: "200px"}, 2000);
return false;
});
</code></pre>
<p>However,... | [
{
"answer_id": 260789,
"author": "Markus Jarderot",
"author_id": 22364,
"author_profile": "https://Stackoverflow.com/users/22364",
"pm_score": 5,
"selected": true,
"text": "$(\"div\").click(function() {\n if (!$(this).parent().children().is(':animated')) {\n $(this).animate({he... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16124/"
] |
260,749 | <p>I want to increment a cookie value every time a page is referenced even if the page is loaded from cache. What is the "best" or most concise way to implement this?</p>
| [
{
"answer_id": 260866,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 3,
"selected": false,
"text": "var cookieName = \"increment\";\n\nif ($.cookie(cookieName) == null){\n $.cookie(cookieName, 1, { expires: 10 ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30099/"
] |
260,787 | <p>I know that this question has already been asked <a href="https://stackoverflow.com/questions/41207/javascript-interactive-shell-with-completion">HERE</a> but sadly none of the answers suggest a javascript standalone shell that has auto completion. I am reopening this question again, in the hope that some new answe... | [
{
"answer_id": 4074233,
"author": "intuited",
"author_id": 192812,
"author_profile": "https://Stackoverflow.com/users/192812",
"pm_score": 3,
"selected": true,
"text": "node-repl"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/260787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28486/"
] |
260,804 | <p>I'm looking for a dbm-like library that I can use in place of Berkeley DB, which I'm currently using. My main reason for switching is the licensing fees for BDB are pretty high (free for open source apps, but my employer does not want to open source this particular app for various reasons).</p>
<p>I've looked brief... | [
{
"answer_id": 290551,
"author": "geocar",
"author_id": 37507,
"author_profile": "https://Stackoverflow.com/users/37507",
"pm_score": 3,
"selected": false,
"text": "data_dir/H(key)/"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/260804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
260,817 | <p>I wanted to try a little design by contract in my latest C# application and wanted to have syntax akin to:</p>
<pre><code>public string Foo()
{
set {
Assert.IsNotNull(value);
Assert.IsTrue(value.Contains("bar"));
_foo = value;
}
}
</code></pre>
<p>I know I can get static methods lik... | [
{
"answer_id": 260833,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 4,
"selected": false,
"text": "using System.Diagnostics\n\nDebug.Assert(value != null);\nDebug.Assert(value == true);\n"
},
{
"answer_id": 260837,
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27613/"
] |
260,847 | <p>I have written a few MSBuild custom tasks that work well and are use in our CruiseControl.NET build process.</p>
<p>I am modifying one, and wish to unit test it by calling the Task's Execute() method. </p>
<p>However, if it encounters a line containing </p>
<pre><code>Log.LogMessage("some message here");
</code><... | [
{
"answer_id": 287704,
"author": "Tim Bailey",
"author_id": 1077232,
"author_profile": "https://Stackoverflow.com/users/1077232",
"pm_score": 4,
"selected": false,
"text": "private void LogFormat(string message, params object[] args)\n{\n if (this.BuildEngine != null)\n {\n ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30183/"
] |
260,857 | <p>I have a web application that's branded according to the user that's currently logged in. I'd like to change the favicon of the page to be the logo of the private label, but I'm unable to find any code or any examples of how to do this. Has anybody successfully done this before?</p>
<p>I'm picturing having a dozen ... | [
{
"answer_id": 260873,
"author": "Jeff Sheldon",
"author_id": 33910,
"author_profile": "https://Stackoverflow.com/users/33910",
"pm_score": 4,
"selected": false,
"text": "<link rel=\"shortcut icon\" type=\"image/ico\" href=\"favicon.ico\">\n"
},
{
"answer_id": 260876,
"author... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8114/"
] |
260,869 | <p>I want to convert a BYTE* into an gdi+ Image object.<p>
How can I do this?<p>
The BYTE* seems a Dib point.<p>
I found Image has a method named Image::FromStream() which may help,
But I can not find any reference about how to convert a BYTE* into a IStream object.
How can I do this?
<p>
Thanks in advance!</p>
<p><... | [
{
"answer_id": 261189,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 0,
"selected": false,
"text": "BYTE"
},
{
"answer_id": 70470651,
"author": "SnzFor16Min",
"author_id": 10766083,
"author_profile": "ht... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25749/"
] |
260,915 | <p>I know how to create an array of structs but with a predefined size. However is there a way to create a dynamic array of structs such that the array could get bigger?</p>
<p>For example:</p>
<pre><code> typedef struct
{
char *str;
} words;
main()
{
words x[100]; // I do not want... | [
{
"answer_id": 260932,
"author": "coobird",
"author_id": 17172,
"author_profile": "https://Stackoverflow.com/users/17172",
"pm_score": 4,
"selected": false,
"text": "malloc stdlib.h words words* array = (words*)malloc(sizeof(words) * 100);\n malloc void void* words* sizeof words free() f... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31274/"
] |
260,945 | <p>This should be easy, but I'm having a hard time finding the easiest solution.</p>
<p>I need an <code>NSString</code> that is equal to another string concatenated with itself a given number of times.</p>
<p>For a better explanation, consider the following python example:</p>
<pre><code>>> original = "abc"
"a... | [
{
"answer_id": 260969,
"author": "Mike McMaster",
"author_id": 544,
"author_profile": "https://Stackoverflow.com/users/544",
"pm_score": 3,
"selected": false,
"text": "NSString *original = @\"abc\";\nint times = 2;\n\n// Capacity does not limit the length, it's just an initial capacity\n... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2954/"
] |
260,962 | <p>To trim the leading spaces we are using strmove. But we were advised to use strlmove instead of strmove. I have read and used strlcpy and strlcat. Whether strlmove does the similar functionality and what all are its advantages?</p>
<p>Edit 1: Thank you Mike B and Chris Young. This is how we use strlcpy.</p>
<pre><... | [
{
"answer_id": 260972,
"author": "Chris Young",
"author_id": 9417,
"author_profile": "https://Stackoverflow.com/users/9417",
"pm_score": 2,
"selected": false,
"text": "char buf[4096];\nstrncpy(buf, \"Hello\", sizeof buf);\n char buf[5];\nstrncpy(buf, \"Hello\", sizeof buf);\n"
},
{
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18657/"
] |
260,986 | <p>I have a text file which contains some data. I am trying to search for EA in <strong>ID column only</strong> and prints the whole row. But the code recognize all EA and prints all rows. What code I should add to satisfy the condition? Thanks Again:-)!</p>
<p>DATA: <br>
Name Age ID <br>
---------------------<br>
... | [
{
"answer_id": 260995,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 2,
"selected": false,
"text": "file='save.txt';\nopen(F,$file)||die(\"Could not open $file\");\n\nwhile ($line=<F>){\n my @cells=($f1,$f2,$f3)= split ',... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28607/"
] |
260,987 | <p>When we submit a job, the following steps are executed sequentially.</p>
<p>Then what is the importance of DPRTY?</p>
| [
{
"answer_id": 370495,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 3,
"selected": false,
"text": "DPRTY IEAIPSxx"
},
{
"answer_id": 55945070,
"author": "Rohit Parab",
"author_id": 11430782,
"author_... | 2008/11/04 | [
"https://Stackoverflow.com/questions/260987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33392/"
] |
261,004 | <p>I've got an old classic ASP site that connects to a local sql server 2000 instance. We're moving the db to a new box, and the port is non standard for sql (out of my control). .NET connection strings handle the port number fine by adding it with ,1999 after the server name/IP. The classic ASP connection string isn't... | [
{
"answer_id": 261077,
"author": "Sergey Kornilov",
"author_id": 10969,
"author_profile": "https://Stackoverflow.com/users/10969",
"pm_score": 0,
"selected": false,
"text": "cst = \"Provider=SQLOLEDB;\" & _ \n \"Data Source=<x.x.x.x>,<port number>;\" & _ \n \"Initial Cata... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1786/"
] |
261,013 | <p>I work on a Fedora Linux box.</p>
<p>I have a whole host of binaries and libraries that I've installed locally under my home directory.</p>
<p>I'd like to set my system up so installing software there functions the same way (for me) as if the root user installed it without a prefix.</p>
<p>I can run binaries inst... | [
{
"answer_id": 261048,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 1,
"selected": false,
"text": "LIBRARY_PATH $HOME/local/lib:$HOME/local/lib64 C_INCLUDE_PATH CPLUS_INCLUDE_PATH $HOME/local/include"
},
{
"answer_... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/109032/"
] |
261,015 | <p>I want to have a look at how Java implements LinkedList. Where should I go to look at the source code?</p>
| [
{
"answer_id": 261032,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 6,
"selected": false,
"text": "src.zip java/util/LinkedList.java"
},
{
"answer_id": 5308086,
"author": "fouding.zheng",
"author_id": ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33203/"
] |
261,045 | <p>I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.</p>
<p>My problem is the Javascript validator. If I define a class in one JS file in my pr... | [
{
"answer_id": 261760,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 3,
"selected": false,
"text": "Object String.split Array"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,050 | <p>I'm having an issue with a standard ASP.NET page that has a TextBox and a RequiredFieldValidator. The steps to reproduce are quite simple:</p>
<ol>
<li>Place a TextBox on a page</li>
<li>Place a RequiredFieldValidator on the page</li>
<li>Point the RequiredFieldValidator at the TextBox</li>
<li>Run the app</li>
<l... | [
{
"answer_id": 261100,
"author": "Jim Burger",
"author_id": 20164,
"author_profile": "https://Stackoverflow.com/users/20164",
"pm_score": 3,
"selected": true,
"text": "protected void Page_Load(object sender, EventArgs e)\n{\n Validate();\n}\n"
},
{
"answer_id": 261127,
"au... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1462735/"
] |
261,062 | <p>Although I grasp the concept of Bitwise Operators, I can't say that I have come across many use cases during the webdevelopment process at which I had to resort to using Bitwise Operators.</p>
<ul>
<li>Do you use Bitwise Operators?</li>
<li>Why do you use them?</li>
<li>What are some example use cases?</li>
</ul>
... | [
{
"answer_id": 261073,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "& | if ((permissions & Permission.CreateUser) != 0)\n{\n ...\n}\n Permission requiredPermission = Permission.CreateUse... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11568/"
] |
261,080 | <p>I would like to have a Java component which has a resize icon on the bottom right of the component so that when I drag that icon, the component will automatically resize with it.</p>
<p>By resize icon, I mean the following:</p>
<p><img src="https://lh5.ggpht.com/_7dfPdX2BP6o/SQ_sPvvHpTI/AAAAAAAAAKU/vRWKb_pLVvc/s14... | [
{
"answer_id": 717579,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "private void buttonMousePressed(java.awt.event.MouseEvent evt) {\n sx = evt.getX();\n sy = evt.getY();\n}\n\npri... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22550/"
] |
261,083 | <p>How is it possible to identify that the browser's close button was clicked?</p>
| [
{
"answer_id": 261111,
"author": "andyk",
"author_id": 26721,
"author_profile": "https://Stackoverflow.com/users/26721",
"pm_score": 2,
"selected": false,
"text": "$(window).unload( function () { alert(\"Bye now!\"); } );\n"
},
{
"answer_id": 262250,
"author": "northsouthwhat... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,086 | <p>I am using a fictional example for this. Say, I have a Widget class like:</p>
<pre><code>abstract class Widget
{
Widget parent;
}
</code></pre>
<p>Now, my other classes would be derived from this Widget class, but suppose I want to put some constraint in the class while defining the derived types such that only a ... | [
{
"answer_id": 261104,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 0,
"selected": false,
"text": "class WidgetFactory\n{\n Widget CreateWidget()\n {\n return new Widget();\n }\n}\n class WidgetFactory<T> wh... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6621/"
] |
261,089 | <p>how is it advisable to control the cpu utilization during run time ?</p>
<p>poll the cpu load and insert sleeps ?</p>
| [
{
"answer_id": 261123,
"author": "artur02",
"author_id": 13937,
"author_profile": "https://Stackoverflow.com/users/13937",
"pm_score": 2,
"selected": false,
"text": "foreach (Process proc in Process.GetProcesses()) {\n using (PerformanceCounter pcProcess = new PerformanceCounter(\"Pro... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/195/"
] |
261,092 | <p>What are all <a href="http://en.wikipedia.org/wiki/Hayes_command_set" rel="nofollow noreferrer">AT</a> commands required for <a href="http://en.wikipedia.org/wiki/General_Packet_Radio_Service" rel="nofollow noreferrer">GPRS</a> communication?</p>
| [
{
"answer_id": 261144,
"author": "Adam Davis",
"author_id": 2915,
"author_profile": "https://Stackoverflow.com/users/2915",
"pm_score": 2,
"selected": false,
"text": "MRESET:\nATZ\n MPROVIDERINIT:\nat+cgdcont=1,\"IP\",\"internet3.voicestream.com\",,0,0\n\nMIPINIT:\nat+wopen=1\n\nMPPPINIT... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,098 | <p>I am currently using the following javascript to create an expanding menu:</p>
<p><a href="http://demo.raibledesigns.com/struts-menu/scripts/menuExpandable.js.src" rel="nofollow noreferrer">http://demo.raibledesigns.com/struts-menu/scripts/menuExpandable.js.src</a></p>
<p>Currently, only the hyperlink text is clic... | [
{
"answer_id": 263365,
"author": "Chris MacDonald",
"author_id": 18146,
"author_profile": "https://Stackoverflow.com/users/18146",
"pm_score": 0,
"selected": false,
"text": "<a id=\"icon\" href=\"blah\">blah</a>\n #icon {\n background: transparent url(img.gif) no-repeat right center;\... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,125 | <p>I launch a child process in Java as follows:</p>
<pre><code>final String[] cmd = {"<childProcessName>"};
Process process = Runtime.getRuntime().exec(cmd);
</code></pre>
<p>It now runs in the background. All good and fine. </p>
<p>If my program now crashes (it <em>is</em> still in dev :-)) the child process ... | [
{
"answer_id": 261133,
"author": "Steve McLeod",
"author_id": 2959,
"author_profile": "https://Stackoverflow.com/users/2959",
"pm_score": 3,
"selected": false,
"text": "final String[] cmd = {\"<childProcessName>\"};\nfinal Process process = Runtime.getRuntime().exec(cmd);\nRunnable runna... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2959/"
] |
261,139 | <p>There are quite a lot of unittesting frameworks out there for .NET. I found this little feature comparison: <a href="https://xunit.net/docs/comparisons" rel="noreferrer">http://xunit.github.io/docs/comparisons.html</a></p>
<p>Now I am to choose the best one for us. But how? Does it matter? Which one is most future p... | [
{
"answer_id": 12611700,
"author": "Matt Crouch",
"author_id": 1670022,
"author_profile": "https://Stackoverflow.com/users/1670022",
"pm_score": 5,
"selected": false,
"text": "using Microsoft.VisualStudio.TestTools.UnitTesting;\nusing Assert = Xunit.Assert; // <-- Aliasing the Xunit nam... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4227/"
] |
261,177 | <p>[<em>Of course, the question is not restricted to a specific "friend" implementation, feel free though to point out implementation specifics if relevant</em>]</p>
<p>Reading through the unanswered questions, I stumbled upon the <a href="http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.interna... | [
{
"answer_id": 261181,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": false,
"text": "InternalsVisibleTo"
},
{
"answer_id": 261217,
"author": "Bevan",
"author_id": 30280,
"author_profile... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4918/"
] |
261,190 | <p>I am rendering a rails partial and I want to alternate the background color when it renders the partial. I know that is not super clear so here is an example of what I want to do:</p>
Row One grey Background
Row Two yellow background
Row Three grey Background
Row Four yellow background
<ul>
<li>sorry st... | [
{
"answer_id": 261204,
"author": "Kristian",
"author_id": 23246,
"author_profile": "https://Stackoverflow.com/users/23246",
"pm_score": 5,
"selected": true,
"text": "<tr class=\"<%= cycle(\"even\", \"odd\") %>\">\n <td><%= row.name %></td>\n</tr>\n"
},
{
"answer_id": 14175375,
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5004/"
] |
261,202 | <p>I've written a little web site in my effort to learn vb.net and asp.net, fairly happy with it so rented some space and uploaded it, it was written using asp.net express edition 2008 and sql server express .... I've uploaded it and I've found that it was written in .NET 3.5 and my host only deals with 2.01 ... I've s... | [
{
"answer_id": 263709,
"author": "spacemonkeys",
"author_id": 32336,
"author_profile": "https://Stackoverflow.com/users/32336",
"pm_score": 0,
"selected": false,
"text": "<?xml version=\"1.0\"?>\n<configuration>\n <appSettings/>\n <connectionStrings>\n <add name=\"DatebaseConnecti... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32336/"
] |
261,215 | <p>I need to write the content of a map (key is ID of int, value is of self-defined struct) into a file, and load it from the file later on. Can I do it in MFC with CArchive?</p>
<p>Thank you!</p>
| [
{
"answer_id": 261239,
"author": "Pieter",
"author_id": 5822,
"author_profile": "https://Stackoverflow.com/users/5822",
"pm_score": 1,
"selected": false,
"text": "struct MapData {\n int m_int;\n std::string m_str;\n\n private: \n friend class boost::serialization::access; \n\... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26404/"
] |
261,219 | <p>I'm having a bit of trouble trying to get class variables to work in javascript. </p>
<p>I thought that I understood the prototype inheritance model, but obviously not. I assumed that since prototypes will be shared between objects then so will their variables.</p>
<p>This is why this bit of code confuses me.</... | [
{
"answer_id": 261241,
"author": "Chei",
"author_id": 11411,
"author_profile": "https://Stackoverflow.com/users/11411",
"pm_score": 1,
"selected": false,
"text": "a = new classA a classA classA.prototype a classA a1 = new classA a2 = new classA a1 a2 classA.prototype shared a classA.prot... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28486/"
] |
261,223 | <p>I am creating my application using Django, and am wondering how I can make Django use my CSS file? What settings do I need to do to make Django see the css file?</p>
<p>NB: On a local machine</p>
| [
{
"answer_id": 617130,
"author": "Joe",
"author_id": 74474,
"author_profile": "https://Stackoverflow.com/users/74474",
"pm_score": 7,
"selected": true,
"text": "/site_media/images/foo.gif"
},
{
"answer_id": 12706373,
"author": "jacanterbury",
"author_id": 765827,
"aut... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26143/"
] |
261,234 | <p>Let's say I have an array of lots of values (C++ syntax, sorry):</p>
<pre><code>vector<double> x(100000);
</code></pre>
<p>This array is sorted such that <code>x[n] > x[n-1]</code>.</p>
<p>I would like a function to retrieve an array of all values in the range [a, b] (that's inclusive). Some interface li... | [
{
"answer_id": 261250,
"author": "Diomidis Spinellis",
"author_id": 20520,
"author_profile": "https://Stackoverflow.com/users/20520",
"pm_score": 3,
"selected": true,
"text": "void subarray(const double a, const double b, vector <double> &sub, vector <int> pn) {\n vector <int>::const_... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
261,237 | <p>How do I create an Application Pool on IIS 6.0 using a PowerShell script?</p>
<p>This is what I have come up with so far ...</p>
<pre><code>$appPool = [wmiclass] "root\MicrosoftIISv2:IIsApplicationPool"
</code></pre>
<p>Thanks</p>
| [
{
"answer_id": 263843,
"author": "Steven Murawski",
"author_id": 1233,
"author_profile": "https://Stackoverflow.com/users/1233",
"pm_score": 4,
"selected": true,
"text": "$AppPoolSettings = [wmiclass]'root\\MicrosoftIISv2:IISApplicationPoolSetting'\n$NewPool = $AppPoolSettings.CreateInst... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10784/"
] |
261,271 | <p>I'd like to compare two consecutive elements in a std::list while iterating through the list. What is the proper way to access element i+1 while my iterator is at element i?
Thanks
Cobe</p>
| [
{
"answer_id": 261277,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "next prior *itr == *next(itr)\n adjacent_find"
},
{
"answer_id": 261287,
"author": "Motti",
"author_id": 384... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,290 | <p>Does MSTest have standalone GUI similar to nUnit that lets me use it and run test without visual studio? What is the official site for MSTest where I can learn more about how to use it?</p>
| [
{
"answer_id": 74107994,
"author": "Iván Kollár",
"author_id": 6281186,
"author_profile": "https://Stackoverflow.com/users/6281186",
"pm_score": 0,
"selected": false,
"text": "'dotnet test yourassembly.dll -l console -v detailed'\n"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/261290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4227/"
] |
261,296 | <p>I have a batch file (in windows XP, with command extension activated) with the following line:</p>
<pre><code>for /f %%s in ('type version.txt') do set VERSION=%%s
</code></pre>
<p>On some computer, it works just fine (as illustrated by <a href="https://stackoverflow.com/questions/130116/dos-batch-commands-to-read... | [
{
"answer_id": 261299,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": true,
"text": "for /f %%s in (version.txt) do ...\n for /f for /f COMSPEC SET COMSPEC for dir ComSpec cmd HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentCo... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6309/"
] |
261,311 | <p>In C I know about the recursive function but I heard about the re-entrant function.<p>What is that? And whats the difference between them? </p>
| [
{
"answer_id": 261313,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 5,
"selected": true,
"text": "strtok()"
},
{
"answer_id": 314772,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_prof... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31116/"
] |
261,316 | <p>I have created a report in MS Access report and write some VBA code to retrive data and show the report in MS-Word format.
But while generate the report on runtime, the report first show or flash the report design view for few seconds and the report will get generated. </p>
<p>I would like to find a solution to av... | [
{
"answer_id": 271239,
"author": "David-W-Fenton",
"author_id": 9787,
"author_profile": "https://Stackoverflow.com/users/9787",
"pm_score": 1,
"selected": true,
"text": " Dim strReport As Report \n strReport = rst!Argument\n If SysCmd(acSysCmdGetObjectState, acReport, strReport... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18792/"
] |
261,336 | <p>If I declare a temporary auto deleted character buffer using</p>
<pre><code>std::auto_ptr<char> buffer(new char[n]);
</code></pre>
<p>then the buffer is automatically deleted when the buffer goes out of scope. I would assume that the buffer is deleted using delete.</p>
<p>However the buffer was created usin... | [
{
"answer_id": 261355,
"author": "Andreas Magnusson",
"author_id": 5811,
"author_profile": "https://Stackoverflow.com/users/5811",
"pm_score": 3,
"selected": false,
"text": "std::vector<char> boost::scoped_array<char> / boost::shared_array<char> std::auto_ptr<> std::vector"
},
{
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/259/"
] |
261,338 | <p>Talking from a 'best practice' point of view, what do you think is the best way to insert HTML using PHP. For the moment I use one of the following methods (mostly the latter), but I'm curious to know which you think is best.</p>
<pre><code><?php
if($a){
?>
[SOME MARKUP]
<?php
}
else{
?>
[SOME OTH... | [
{
"answer_id": 261384,
"author": "neu242",
"author_id": 13365,
"author_profile": "https://Stackoverflow.com/users/13365",
"pm_score": 1,
"selected": false,
"text": "<html><head><title>%title%</title></head><body>\n%mainbody%\nBla bla bla <a href=\"%linkurl%\">%linkname%</a>.\n</body></ht... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20603/"
] |
261,345 | <p>How do I get the complete request URL (including query string) in my controller? Is it a matter of concatenating my URL and form parameters or is there a better way.</p>
<p>I checked <a href="https://stackoverflow.com/questions/40680/how-do-i-get-the-full-url-of-the-page-i-am-on-in-c">this</a> question, but it seem... | [
{
"answer_id": 261411,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 2,
"selected": false,
"text": "HttpContext.Current.Request\n"
},
{
"answer_id": 261818,
"author": "Jeff Sheldon",
"author_id": 3391... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
261,348 | <p>I want to share an object between my servlets and my webservice (JAX-WS) by storing it as a servlet context attribute. But how can I retrieve the servlet context from a web service?</p>
| [
{
"answer_id": 261349,
"author": "Jens Bannmann",
"author_id": 7641,
"author_profile": "https://Stackoverflow.com/users/7641",
"pm_score": 7,
"selected": true,
"text": "import javax.annotation.Resource;\nimport javax.servlet.ServletContext;\nimport javax.xml.ws.WebServiceContext;\nimport... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7641/"
] |
261,351 | <p>I have a web page <code>x.php</code> (in a password protected area of my web site) which has a form and a button which uses the <code>POST</code> method to send the form data and opens <code>x.php#abc</code>. This works pretty well.</p>
<p>However, if the users decides to navigate back in Internet Explorer 7, all t... | [
{
"answer_id": 261403,
"author": "mkoeller",
"author_id": 33433,
"author_profile": "https://Stackoverflow.com/users/33433",
"pm_score": 2,
"selected": false,
"text": "onload onload"
},
{
"answer_id": 261494,
"author": "Kent Fredric",
"author_id": 15614,
"author_profil... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4597/"
] |
261,362 | <p>I've got an HTML "select" element which I'm updating dynamically with code something like this:</p>
<pre><code>var selector = document.getElementById('selectorId');
for (var i = 0; i < data.length; ++i)
{
var opt = document.createElement('option');
opt.value = data[i].id;
opt.text = data[i].name;
sel... | [
{
"answer_id": 261409,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": true,
"text": "innerHTML text var selector = document.getElementById('selectorId'); \nfor (var i = 0; i < data.length; ++i)\n{\n var o... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3974/"
] |
261,368 | <p>How do you calculate the number of <code><td></code> elements in a particular <code><tr></code>?</p>
<p>I didn't specify id or name to access directly, we have to use the <code>document.getElementsByTagName</code> concept.</p>
| [
{
"answer_id": 261383,
"author": "Aron Rotteveel",
"author_id": 11568,
"author_profile": "https://Stackoverflow.com/users/11568",
"pm_score": 4,
"selected": true,
"text": "var rowIndex = 0; // rowindex, in this case the first row of your table\nvar table = document.getElementById('mytabl... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,374 | <p>What is the most efficient way to enumerate every cell in every sheet in a workbook?</p>
<p>The method below seems to work reasonably for a workbook with ~130,000 cells. On my machine it took ~26 seconds to open the file and ~5 seconds to enumerate the cells . However I'm no Excel expert and wanted to validate this... | [
{
"answer_id": 261412,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": 3,
"selected": true,
"text": "Worksheet.UsedRange get_Value() Value Value2 object[,] data = rangeData[iRow, iCol] != null ? rangeData[iRow, iCol].ToS... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5182/"
] |
261,375 | <p>No doubt I'm missing something really simple here but I just can't see the problem with this query which is producing the following error:</p>
<pre><code>SQL query:
INSERT INTO ads(
ad_id, author, ad_date, category, title,
description, condition, price, fullname,
telephone, email, status, photo, photot... | [
{
"answer_id": 261380,
"author": "Alexander Kojevnikov",
"author_id": 712,
"author_profile": "https://Stackoverflow.com/users/712",
"pm_score": 3,
"selected": true,
"text": "INSERT INTO ads( `ad_id`, `author`, `ad_date`, `category`, `title`, `description`, `condition`, `price`, `fullname... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34019/"
] |
261,377 | <p>I apologize in advance for the long post...</p>
<p>I used to be able to build our VC++ solutions (we're on VS 2008) when we listed the STLPort include and library directories under VS Menu > Tools > Options > VC++ Directories > Directories for Include and Library files. However, we wanted to transition to a build ... | [
{
"answer_id": 687185,
"author": "Aaron",
"author_id": 28950,
"author_profile": "https://Stackoverflow.com/users/28950",
"pm_score": 3,
"selected": false,
"text": "Error 1 error LNK2019: unresolved external symbol \"public: unsigned char __cdecl TiXmlComment::Accept(bool,class Ti... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15515/"
] |
261,386 | <p>I'm new to Flex, and I'm trying to write a simple application. I have a file with an image and I want to display this image on a Graphics. How do I do this? I tried [Embed]-ding it and adding as a child to the component owning the Graphics', but I'm getting a "Type Coercion failed: cannot convert ... to mx.core.IUIC... | [
{
"answer_id": 261768,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 4,
"selected": true,
"text": "source Class [Bindable]\n[Embed(source=\"assets/image.png\")]\nprivate var MyGfx:Class;\n\nmyImage.source = MyGfx;\n Graphics ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6533/"
] |
261,387 | <p>I've noticed in many places in Java (C# included), that many "getter" methods are prefixed with "get" while many other aren't. I never noticed any kind of pattern Sun seems to be following. What are some guidelines or rules for using "get" in getter method names?</p>
| [
{
"answer_id": 261410,
"author": "David Arno",
"author_id": 7122,
"author_profile": "https://Stackoverflow.com/users/7122",
"pm_score": 2,
"selected": false,
"text": "obj.setX(10);\n obj.X = 10;\n"
},
{
"answer_id": 261425,
"author": "Jon Skeet",
"author_id": 22656,
"... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30323/"
] |
261,405 | <p>There are two databases in SQL Server 2005: One called "A" and another one called "A_2".
"A" is a variable name to be entered by the user, the "_2" prefix for the second database is always known. (So databases could be "MyDB" and "MyDB_2", etc)<br><br>
How to access the other database from within a stored procedure ... | [
{
"answer_id": 1024290,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "if object_id('view_Table1') is not null\n drop view view_Table1\n\ndim @cmd nvarchar(max)\n\nset @cmd = 'create view view_... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34022/"
] |
261,407 | <p>Currently I have a structure like this:</p>
<pre><code>A
|
+--B
|
+--C
</code></pre>
<p>It's mapped with one table per subclass using joined tables. For historic reasons I also use a discriminator, so the current situation is as described in <a href="http://www.hibernate.org/hib_docs/v3/reference/en-US/html/inheri... | [
{
"answer_id": 262654,
"author": "shyam",
"author_id": 7616,
"author_profile": "https://Stackoverflow.com/users/7616",
"pm_score": 4,
"selected": true,
"text": "<hibernate-mapping>\n <class name=\"A\" table=\"A\">\n <id name=\"id\" type=\"long\" column=\"a_id\">\n <generator cla... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29549/"
] |
261,419 | <p>It's been a while since I last coded arm assembler and I'm a little rusty on the details. If I call a C function from arm, I only have to worry about saving r0-r3 and lr, right?</p>
<p>If the C function uses any other registers, is it responsible for saving those on the stack and restoring them? In other words, th... | [
{
"answer_id": 18215803,
"author": "Sven",
"author_id": 1080389,
"author_profile": "https://Stackoverflow.com/users/1080389",
"pm_score": 3,
"selected": false,
"text": "void foo() {\n asm volatile ( \"nop\" : : : \"r0\", \"r1\", \"r2\", \"r3\", \"r4\", \"r5\", \"r6\", \"r7\", \"r8\", \"... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4596/"
] |
261,422 | <p>Does anyone know how to tell VS(2008) where to save the obj folder when building the solution? We have it save the bin folder to another path in order to keep the source file folders small (ie. emailable), but can't find any way to tell it to do the same with obj...</p>
| [
{
"answer_id": 261445,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 7,
"selected": true,
"text": "BaseIntermediateOutputPath .csproj .vbproj obj obj"
},
{
"answer_id": 3687173,
"author": "Dominik Antal",
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6091/"
] |
261,423 | <p>How can we handel key pressed event in asp.net</p>
| [
{
"answer_id": 261457,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 1,
"selected": false,
"text": "Enter <asp:TextBox \n runat=\"server\" \n onKeyPress=\"if (event.keyCode == 13) return false;\" />\n"
},
{
"answer... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,424 | <p>I have a dialog where each entry in a JTree has its corresponding options in a different panel, which is updated when the selection changes. If options for one of the entries is set to an invalid state, when the user attempts to change to a different entry in the tree, I want there to be an error dialog and have the... | [
{
"answer_id": 574109,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": " navTree.addTreeSelectionListener(new TreeSelectionListener() {\n\n boolean treeSelectionListenerEnabled = true;\n\n... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
261,428 | <p>So far I've been using <code>public void run() {}</code> methods to execute my code in Java. When/why might one want to use <code>main()</code> or <code>init()</code> instead of <code>run()</code>?</p>
| [
{
"answer_id": 261436,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "main() run() run()"
},
{
"answer_id": 261447,
"author": "Matthew Schinckel",
"author_id": 188,
"auth... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
261,430 | <p>I want to detect whether adobe reader is installed using VB6. Also if detected that it's not installed, what would be the best solution?</p>
| [
{
"answer_id": 553400,
"author": "Rob Haupt",
"author_id": 65388,
"author_profile": "https://Stackoverflow.com/users/65388",
"pm_score": 0,
"selected": false,
"text": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\\n File = <PDF FILE HERE>\nSet WshShell = C... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,431 | <p>I have a variable </p>
<pre><code>unsigned char* data = MyFunction();
</code></pre>
<p>how to find the length of data?</p>
| [
{
"answer_id": 261437,
"author": "kenny",
"author_id": 3225,
"author_profile": "https://Stackoverflow.com/users/3225",
"pm_score": 3,
"selected": false,
"text": "string length = strlen( char* );\n"
},
{
"answer_id": 261451,
"author": "Daren Thomas",
"author_id": 2260,
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,449 | <p>I'm trying to do the classic Insert/Update scenario where I need to update existing rows in a database or insert them if they are not there.</p>
<p>I've found a <a href="https://stackoverflow.com/questions/13540/insert-update-stored-proc-on-sql-server">previous question on the subject</a>, but it deals with stored ... | [
{
"answer_id": 261466,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 4,
"selected": true,
"text": "UPDATE INSERT @@rowcount"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/261449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30023/"
] |
261,455 | <p>After reading a couple of answers and comments on some SQL questions here, and also hearing that a friend of mine works at a place which has a policy which bans them, I'm wondering if there's anything wrong with using backticks around field names in MySQL.</p>
<p>That is:</p>
<pre><code>SELECT `id`, `name`, `anoth... | [
{
"answer_id": 261476,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 8,
"selected": true,
"text": "SELECT `id`, `my name`, `another field` , `field,with,comma` \n EXPLAIN EXTENDED Select foo,bar,baz \n"
},
{
"... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
261,463 | <p>We have a couple of web servers using load balancer. Machines are running IIS6 on port 81. Externally, site is accessable using port 80. External name and name of the machine are different.</p>
<p>We're getting </p>
<pre><code>System.ServiceModel.EndpointNotFoundException: The message with To '<url>' cannot ... | [
{
"answer_id": 482995,
"author": "bh213",
"author_id": 28912,
"author_profile": "https://Stackoverflow.com/users/28912",
"pm_score": 4,
"selected": true,
"text": "[ServiceBehavior(AddressFilterMode=AddressFilterMode.Any)]\n"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/261463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28912/"
] |
261,490 | <p>I am building a small system administration web application (think Web-Min, but in RoR) and I need to be able to access system parameters from my Ruby code. For instance, I want to allow the user to change the hostname, time zone, or network config of the server. </p>
<p>My current thoughts are to have a separate... | [
{
"answer_id": 261698,
"author": "Richard Hurt",
"author_id": 21512,
"author_profile": "https://Stackoverflow.com/users/21512",
"pm_score": 0,
"selected": false,
"text": "result = %x[uptime]"
},
{
"answer_id": 261928,
"author": "dbr",
"author_id": 745,
"author_profile... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21512/"
] |
261,500 | <p>Most of the documentation available for building Python extension modules
uses distutils, but I would like to achieve this by using the appropriate
python autoconf & automake macros instead.</p>
<p>I'd like to know if there is an open source project out there that does
exactly this. Most of the ones I've found ... | [
{
"answer_id": 13711218,
"author": "clarete",
"author_id": 1336414,
"author_profile": "https://Stackoverflow.com/users/1336414",
"pm_score": 4,
"selected": false,
"text": "src SUBDIRS = src\n src myextdir = $(pkgpythondir)\nmyext_PYTHON = file1.py file2.py\n\npyexec_LTLIBRARIES = _myext.... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9589/"
] |
261,512 | <p>I'm currently working with Db2 Enterprise Server V 8.2 with FixPak 10</p>
<p>And I want to retrieve list of all the open active connections with an instance.</p>
<p>In Oracle there is a utility program called "Top Session" which does the similar task. Is there any equivalent in DB2?</p>
| [
{
"answer_id": 261578,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": 2,
"selected": false,
"text": "LIST APPLICATIONS\n"
},
{
"answer_id": 265776,
"author": "Fuangwith S.",
"author_id": 24550,
"auth... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34058/"
] |
261,515 | <p>I have a large set of files, some of which contain special characters in the filename (e.g. ä,ö,%, and others). I'd like a script file to iterate over these files and rename them removing the special characters. I don't really mind what it does, but it could replace them with underscores for example e.g.</p>
<p>Stö... | [
{
"answer_id": 261552,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": false,
"text": "chcp 65001 Option Explicit\n\nDim fso: Set fso = CreateObject(\"Scripting.FileSystemObject\")\nDim invalidChars: Set inval... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9625/"
] |
261,518 | <p>Here's the situation:</p>
<p>I have one VS2005 solution with two projects: MyDll (DLL), MyDllUnitTest (console EXE).</p>
<p>In MyDll I have a class called MyClass which is internal to the DLL and should not be exported. I want to test it in MyDllUnitTest, so I added a test suite class called MyClassTest, where I c... | [
{
"answer_id": 261579,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 3,
"selected": true,
"text": "extern \"C\" MyClass *CreateMyClass();\n"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/261518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33982/"
] |
261,522 | <p>What is the command to match brackets in Emacs (the equivalent of the <code>%</code> command in Vim)?</p>
| [
{
"answer_id": 261545,
"author": "Alexander Kojevnikov",
"author_id": 712,
"author_profile": "https://Stackoverflow.com/users/712",
"pm_score": 7,
"selected": true,
"text": "show-paren-mode"
},
{
"answer_id": 261712,
"author": "Chris Conway",
"author_id": 1412,
"autho... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24508/"
] |
261,525 | <p>We're using Perforce and Visual Studio. Whenever we create a branch, some projects will not be bound to source control unless we use "Open from Source Control", but other projects work regardless. From my investigations, I know some of the things involved:</p>
<p>In our .csproj files, there are these settings:</p>
... | [
{
"answer_id": 268578,
"author": "Thomas L Holaday",
"author_id": 29403,
"author_profile": "https://Stackoverflow.com/users/29403",
"pm_score": 1,
"selected": false,
"text": "/Solution\n /library1\n /library2\n /product1\n /product2\n /subsolution\n /sublibrary1\n /subproduct1... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2283/"
] |
261,534 | <p>I have an application I am writing in PHP5, using the CodeIgniter framework.
I have it running on both Windows (using Xampp) and Ubuntu (using standard Apache, PHP, MySQL stack).</p>
<p>I have a form, that takes XML, parses it (using simpleXML) and posts the results into a database.</p>
<p>On Windows - no problem,... | [
{
"answer_id": 261575,
"author": "Stefan Gehrig",
"author_id": 11354,
"author_profile": "https://Stackoverflow.com/users/11354",
"pm_score": 1,
"selected": false,
"text": "print_r($_POST);\n"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/261534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34067/"
] |
261,535 | <p>I'm by no means a sysadmin so please correct me if I'm wrong.</p>
<p>I want to run aspnet_regiis.exe -s.
This requires the metabase path of my website.</p>
<p>How do I find this metabase path?</p>
| [
{
"answer_id": 18454482,
"author": "Slider345",
"author_id": 356544,
"author_profile": "https://Stackoverflow.com/users/356544",
"pm_score": 1,
"selected": false,
"text": "/W3SVC/<site id>/Root"
}
] | 2008/11/04 | [
"https://Stackoverflow.com/questions/261535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
261,536 | <p>I'm getting the following error when my win32 (c#) app is calling web services.</p>
<pre><code>The request failed with HTTP status 504: Gateway timeout server response timeout.
</code></pre>
<p>I understand 'I think' that this is because the upstream request does not get a response in a timely fashion.</p>
<p>But my... | [
{
"answer_id": 35071350,
"author": "dynamiclynk",
"author_id": 1427166,
"author_profile": "https://Stackoverflow.com/users/1427166",
"pm_score": 1,
"selected": false,
"text": " \"commands\": {\n \"web\": \"Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5090\"\n },\n"
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26098/"
] |
261,539 | <p>I've got a WCF service that uses a LinqToSql DataContext to fetch some information out of a database. The return type of the operation is IEnumerable<code><DomainObject</code>>, and I have a helper method that converts from the Table-derived LINQ object to a WCF data contract like so:</p>
<pre><code>[OperationCo... | [
{
"answer_id": 261556,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "IErrorHandler yield return yield return var context = CreateDataContext();\nvar query = from domainObject in context.... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32539/"
] |
261,543 | <p>Is there a way to drop a validation that was set in Rails plugin (or included module)?
Let's say I have some model with module included in it:</p>
<pre><code>class User < ActiveRecord::Base
include SomeModuleWithValidations
# How to cancel validates_presence_of :something here?
end
module SomeModuleWithVali... | [
{
"answer_id": 261713,
"author": "Kristian",
"author_id": 23246,
"author_profile": "https://Stackoverflow.com/users/23246",
"pm_score": 1,
"selected": false,
"text": "def self.validates_presence_of(*args)\n return if args.first == :foo\n super\nend\n def foo\n self[:foo] || \"\"\nend\n... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26123/"
] |
261,547 | <p>This query is related to <a href="https://stackoverflow.com/questions/259850/javascript-multiple-client-side-validations-on-same-event">this</a> one I asked yesterday.
I have a radio button list on my asp.net page defined as follows: </p>
<pre><code><asp:RadioButtonList ID="rdlSortBy" runat="server" RepeatDir... | [
{
"answer_id": 261632,
"author": "Adrian Clark",
"author_id": 148,
"author_profile": "https://Stackoverflow.com/users/148",
"pm_score": 1,
"selected": false,
"text": "OnClick CustomValidator"
},
{
"answer_id": 271713,
"author": "Julius A",
"author_id": 13370,
"author_... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13370/"
] |
261,559 | <p>I was wondering how to make a toolbar in MFC that used 24bit or 256 colour bitmaps rather than the horrible 16 colour ones.</p>
<p>Can anyone point me in the direction of some simple code?</p>
<p>Thanks</p>
| [
{
"answer_id": 261589,
"author": "Stu Mackellar",
"author_id": 28591,
"author_profile": "https://Stackoverflow.com/users/28591",
"pm_score": 5,
"selected": true,
"text": "HBITMAP hBitmap = (HBITMAP) ::LoadImage(AfxGetInstanceHandle(),\n MAKEINTRESOURCE(IDR_MAINFRAME), IMAGE_BITMAP,\n ... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18664/"
] |
261,567 | <p>I'm kind of new to C++ and have some questions, this is one of them.</p>
<p>Is there ANY reason when you are using a function that takes in one or several parameters, parameters of which you know will always be stored in a variable before the function call, to pass a copy of the variable, rather than a pointer to t... | [
{
"answer_id": 261571,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 2,
"selected": false,
"text": "const"
},
{
"answer_id": 261598,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stack... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
261,572 | <p>I am building a FAQ module for my site and I want to be able to control single elements on the page even though they all have the same class. I believe this comes under siblings which I am not yet familiar with.</p>
<p>Basically I want the user to be able to click the question div and then when they click it the an... | [
{
"answer_id": 261596,
"author": "Pat",
"author_id": 238,
"author_profile": "https://Stackoverflow.com/users/238",
"pm_score": 3,
"selected": true,
"text": "$(document).ready ( function () {\n $('.question').click(function() {\n $(this).next('.answer').show();\n });\n});\n"
... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26823/"
] |
261,573 | <p>Is there an efficient algorithm for detecting cycles within a directed graph?</p>
<p>I have a directed graph representing a schedule of jobs that need to be executed, a job being a node and a dependency being an edge. I need to detect the error case of a cycle within this graph leading to cyclic dependencies.</p>
| [
{
"answer_id": 261595,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stackoverflow.com/users/1196",
"pm_score": 9,
"selected": true,
"text": "O(|E| + |V|)"
},
{
"answer_id": 261621,
"author": "Steve Jessop",
"author_id": 13005,
"author_profile": "http... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34080/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.