qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
216,865 | <p>I'm wondering about the practical use of #undef in C. I'm working through K&R, and am up to the preprocessor. Most of this was material I (more or less) understood, but something on page 90 (second edition) stuck out at me:</p>
<blockquote>
<p>Names may be undefined with <code>#undef</code>,
usually to ensu... | [
{
"answer_id": 216874,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 2,
"selected": false,
"text": "#included #undef"
},
{
"answer_id": 216891,
"author": "John Millikin",
"author_id": 3560,
"author_profi... | 2008/10/19 | [
"https://Stackoverflow.com/questions/216865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14048/"
] |
216,870 | <p>I'm using the following regex to capture a fixed width "description" field that is always 50 characters long:</p>
<pre><code>(?.{50})
</code></pre>
<p>My problem is that the descriptions sometimes contain a <em>lot</em> of whitespace, e.g.</p>
<pre><code>"FLUID COMPRESSOR "
</code>... | [
{
"answer_id": 216877,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"author_profile": "https://Stackoverflow.com/users/2509",
"pm_score": 1,
"selected": false,
"text": " s/[ \\t]+/ /g\n s/[ \\t]+$/$/\n sed"
},
{
"answer_id": 216885,
"author": "sk.",
"aut... | 2008/10/19 | [
"https://Stackoverflow.com/questions/216870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2773/"
] |
216,875 | <p>As mentioned in many of my previous questions, I'm working through K&R, and am currently into the preprocessor. One of the more interesting things — something I never knew before from any of my prior attempts to learn C — is the <code>##</code> preprocessor operator. According to K&R:</p>
<block... | [
{
"answer_id": 216888,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 7,
"selected": true,
"text": "#define WIDEN2(x) L ## x\n#define WIDEN(x) WIDEN2(x)\n//Note you need a WIDEN2 so that __DATE__ will evaluate first.\n... | 2008/10/19 | [
"https://Stackoverflow.com/questions/216875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14048/"
] |
216,890 | <p>One of our providers are sometimes sending XML feeds that are tagged as UTF-8 encoded documents but includes characters that are not included in the UTF-8 charset. This causes the parser to throw an exception and stop building the DOM object when these characters are encountered:</p>
<pre><code>DocumentBuilder.pars... | [
{
"answer_id": 217165,
"author": "james",
"author_id": 17156,
"author_profile": "https://Stackoverflow.com/users/17156",
"pm_score": 3,
"selected": true,
"text": "DocumentBuilder.parse(new InpputSource(new InputStreamReader(inputStream, \"<real encoding>\")));\n"
}
] | 2008/10/19 | [
"https://Stackoverflow.com/questions/216890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29042/"
] |
216,894 | <p>What's the best way to pipe the output from an java.io.OutputStream to a String in Java?</p>
<p>Say I have the method:</p>
<pre><code> writeToStream(Object o, OutputStream out)
</code></pre>
<p>Which writes certain data from the object to the given stream. However, I want to get this output into a String as easi... | [
{
"answer_id": 216913,
"author": "Horcrux7",
"author_id": 12631,
"author_profile": "https://Stackoverflow.com/users/12631",
"pm_score": 10,
"selected": true,
"text": "ByteArrayOutputStream new String( baos.toByteArray(), codepage );\n baos.toString( codepage );\n String codepage String t... | 2008/10/19 | [
"https://Stackoverflow.com/questions/216894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4332/"
] |
216,959 | <p>I have a web application with users and their documents. Each user can have many documents:</p>
<p>user.rb: </p>
<pre><code>has_many :documents
</code></pre>
<p>document.rb:</p>
<pre><code>belongs_to :user
</code></pre>
<p>document_controller.rb:</p>
<pre><code>def index
@documents = Document.find(:all)
en... | [
{
"answer_id": 217011,
"author": "sock",
"author_id": 4028,
"author_profile": "https://Stackoverflow.com/users/4028",
"pm_score": 3,
"selected": false,
"text": "def index\n @documents = @current_user.documents\nend\n"
},
{
"answer_id": 217698,
"author": "JasonOng",
"auth... | 2008/10/19 | [
"https://Stackoverflow.com/questions/216959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29441/"
] |
216,963 | <p>Say you have a large PHP project and suddenly, when attempting to run it, you just end up with a blank page. The script terminates and you want to find exactly where that is with as little effort as possible.</p>
<p>Is there a tool/program/command/IDE that can, on PHP script termination, tell you the location of a ... | [
{
"answer_id": 216966,
"author": "Paul Nathan",
"author_id": 26227,
"author_profile": "https://Stackoverflow.com/users/26227",
"pm_score": 0,
"selected": false,
"text": "grep -n die filename\n"
},
{
"answer_id": 216979,
"author": "Greg",
"author_id": 24181,
"author_pr... | 2008/10/19 | [
"https://Stackoverflow.com/questions/216963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29442/"
] |
216,972 | <p>Which types of objects fall into the domain of "subscriptable"?</p>
| [
{
"answer_id": 216980,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 10,
"selected": true,
"text": "__getitem__()"
},
{
"answer_id": 217049,
"author": "tzot",
"author_id": 6899,
"author_profile": "https:... | 2008/10/19 | [
"https://Stackoverflow.com/questions/216972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11324/"
] |
216,973 | <p>I'm doing a custom 404 page for a large website that's undergoing a redesign. There are about 40 high-use pages that customers may have bookmarked, and our new site structure will break these bookmarks. </p>
<p>On my custom 404 page, I want to alert them to the new URL if they attempt to navigate to one of these ... | [
{
"answer_id": 217002,
"author": "milot",
"author_id": 22637,
"author_profile": "https://Stackoverflow.com/users/22637",
"pm_score": 1,
"selected": false,
"text": "public class KeyValuesClass\n{\n private string a_key;\n private string a_value;\n\n public KeyValuesClass(string a... | 2008/10/19 | [
"https://Stackoverflow.com/questions/216973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/856/"
] |
216,995 | <p>Say I want to copy the contents of a directory excluding files and folders whose names contain the word 'Music'.</p>
<pre><code>cp [exclude-matches] *Music* /target_directory
</code></pre>
<p>What should go in place of [exclude-matches] to accomplish this?</p>
| [
{
"answer_id": 217004,
"author": "Daniel Bungert",
"author_id": 21093,
"author_profile": "https://Stackoverflow.com/users/21093",
"pm_score": 2,
"selected": false,
"text": "$ mkdir foo bar\n$ touch foo/a.txt foo/Music.txt\n$ find foo -type f ! -name '*Music*' -exec cp {} bar \\;\n$ ls ba... | 2008/10/19 | [
"https://Stackoverflow.com/questions/216995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4812/"
] |
217,065 | <p>I'm working on a sparse matrix class that <strong>needs</strong> to use an array of <code>LinkedList</code> to store the values of a matrix. Each element of the array (i.e. each <code>LinkedList</code>) represents a row of the matrix. And, each element in the <code>LinkedList</code> array represents a column and the... | [
{
"answer_id": 217093,
"author": "Fredrik",
"author_id": 9191,
"author_profile": "https://Stackoverflow.com/users/9191",
"pm_score": 7,
"selected": false,
"text": "myMatrix = (LinkedList<IntegerNode>[]) new LinkedList<?>[numRows];\n"
},
{
"answer_id": 217110,
"author": "Serge... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22371/"
] |
217,067 | <p>I have a button on an ASP.Net page that will call Response.Redirect back to the same page after performing some processing in order to re-display the results of a query. However, for some reason, the page comes up blank. It seems that IsPostBack is returning true after the redirect. Anybody know why this would happe... | [
{
"answer_id": 217260,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "protected void Page_Load( object sender, EventArgs e )\n{\n if (!IsPosBack) {\n BuildData();\n }\n}\n\nvoid bt... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/320/"
] |
217,070 | <p>Using Apache's commons-httpclient for Java, what's the best way to add query parameters to a GetMethod instance? If I'm using PostMethod, it's very straightforward:</p>
<pre><code>PostMethod method = new PostMethod();
method.addParameter("key", "value");
</code></pre>
<p>GetMethod doesn't have an "addParameter" me... | [
{
"answer_id": 217102,
"author": "Ryan Guest",
"author_id": 1811,
"author_profile": "https://Stackoverflow.com/users/1811",
"pm_score": 6,
"selected": true,
"text": "String url = \"http://www.example.com/page?key=value\";\nGetMethod method = new GetMethod(url);\n GetMethod method = new G... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29173/"
] |
217,074 | <p>I've been having a lot of problems trying to figure out how to use <code>scanf()</code>. It seems to work fine with integers, being fairly straight forward <code>scanf("%d", &i)</code>.</p>
<p>Where I am running into issues is using <code>scanf()</code> in loops trying to read input. For example:</p>
<pre><c... | [
{
"answer_id": 217085,
"author": "Andrew Edgecombe",
"author_id": 11694,
"author_profile": "https://Stackoverflow.com/users/11694",
"pm_score": 1,
"selected": false,
"text": "printf() printf stdout scanf() scanf() fgets() sscanf()"
},
{
"answer_id": 217122,
"author": "Robert ... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9628/"
] |
217,089 | <p>I am looking for a (simple) text editor that can handle text in different encodings in the same document.</p>
<p>I need to develop some sites with mixed Japanese and English text and the editors I have now (on an English Windows system) are unable to display the Japanese text.
Jedit files don't display the Japanese... | [
{
"answer_id": 3756762,
"author": "David Johnstone",
"author_id": 120410,
"author_profile": "https://Stackoverflow.com/users/120410",
"pm_score": 3,
"selected": false,
"text": "set guifont=Consolas\n .vimrc set encoding=utf8\n set encoding?\n"
},
{
"answer_id": 3756826,
"auth... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18383/"
] |
217,111 | <p>I'm working my way into MVC at the moment, but on my "To learn at some point" list, I also have WCF.</p>
<p>I just wonder if WCF is something that should/could be used in an MVC Application or not? The Background is that I want a Desktop Application (.NET 3.5, WPF) interact with my MVC Web Site, and I wonder what t... | [
{
"answer_id": 1139220,
"author": "user139669",
"author_id": 139669,
"author_profile": "https://Stackoverflow.com/users/139669",
"pm_score": 3,
"selected": false,
"text": "public class JsonOrXml : ActionFilterAttribute\n{\n private static UTF8Encoding UTF8 = new UTF8Encoding(false);\n... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
217,113 | <p>Long time ago, I saved a sentence from a Java reference book: <em>"Java has no mechanism to handle deadlock. it won't even know deadlock occurred." (Head First Java 2nd Edition, p.516)</em></p>
<p>So, what is about it? Is there a way to catch deadlock case in Java? I mean, is there a way that our code understands a... | [
{
"answer_id": 217558,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 3,
"selected": false,
"text": "Thread.stop"
},
{
"answer_id": 217693,
"author": "WMR",
"author_id": 2844,
"author_profile": "https:... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26379/"
] |
217,116 | <p>Is it possible to see the return value of a method after the line has been run and before the instruction pointer returns to the calling function?</p>
<p>I am debugging code I can't modify <em>(read: don't want to re-compile a third party library)</em>, and sometimes it jumps to code I don't have source to or the r... | [
{
"answer_id": 217152,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 0,
"selected": false,
"text": "return varname; return(some * expression || other);"
},
{
"answer_id": 302443,
"author": "zvikico",
... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/943/"
] |
217,132 | <p>So I have an Access application, and I'd like some forms to be maximised when they are opened, and others to be medium-sized when they are opened. However, if I try something like this:</p>
<pre><code>Private Sub Form_Activate()
DoCmd.Maximize
End Sub
</code></pre>
<p>or</p>
<pre><code>Private Sub Form_Activat... | [
{
"answer_id": 217137,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 2,
"selected": false,
"text": "Application hwndAccessApp struct Rect Type Rect… const SW_SHOWNORMAL = 1 GetParent GetClientRect IsZoomed ShowWindow MoveWindow... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,149 | <p>In programming we face various situations where we are required to make use of intermediate STL containers as the following example depicts:</p>
<pre><code>while(true)
{
set < int > tempSet;
for (int i = 0; i < n; i ++)
{
if (m.size() == min && m.size() <= max)
{
... | [
{
"answer_id": 217156,
"author": "hazzen",
"author_id": 5066,
"author_profile": "https://Stackoverflow.com/users/5066",
"pm_score": 2,
"selected": false,
"text": "set/map/list vector/hash_set/hash_map/string vector struct/class"
}
] | 2008/10/19 | [
"https://Stackoverflow.com/questions/217149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6561/"
] |
217,157 | <p>I would like to know how long it's been since the user last hit a key or moved the mouse - not just in my application, but on the whole "computer" (i.e. display), in order to guess whether they're still at the computer and able to observe notifications that pop up on the screen.</p>
<p>I'd like to do this purely fr... | [
{
"answer_id": 1145688,
"author": "drdaeman",
"author_id": 116546,
"author_profile": "https://Stackoverflow.com/users/116546",
"pm_score": 5,
"selected": true,
"text": "GetTickCount ctypes XScreenSaverQueryInfo HIDIdleTime"
},
{
"answer_id": 16777652,
"author": "Johan Dahlin"... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13564/"
] |
217,177 | <p>Problem : I have multiple projects checked out in my depot. I also have multiple pending numbered change lists, each change list containing checked out files specific to its project. When I check out a new file, it appears in the default change list instead of in the change list that is relevant to its project and I... | [
{
"answer_id": 1028439,
"author": "raven",
"author_id": 4228,
"author_profile": "https://Stackoverflow.com/users/4228",
"pm_score": 3,
"selected": true,
"text": "p4 edit -c 1234 foo.txt\n"
}
] | 2008/10/19 | [
"https://Stackoverflow.com/questions/217177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13760/"
] |
217,187 | <p>I am new to the world of ASP.NET and SQL server, so please pardon my ignorance ...</p>
<p>If I have a data structure in C# (for e.g. let's just say, a vector that stores some strings), is it possible to store the contents of the vector as is in SQL table? I want to do this so that it fast to convert that data back ... | [
{
"answer_id": 217202,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 2,
"selected": false,
"text": "[Serializable] ISerializable BinaryFormatter"
},
{
"answer_id": 217207,
"author": "Jason Jackson",
"aut... | 2008/10/19 | [
"https://Stackoverflow.com/questions/217187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25205/"
] |
217,190 | <p>I have a revision that has been committed to SVN trunk which I would like to roll back. However, I would like to retain the changes in some fashion such as a branch or even a patch file. Any suggestions?</p>
| [
{
"answer_id": 217200,
"author": "Andrew Edgecombe",
"author_id": 11694,
"author_profile": "https://Stackoverflow.com/users/11694",
"pm_score": 1,
"selected": false,
"text": "svn diff"
}
] | 2008/10/19 | [
"https://Stackoverflow.com/questions/217190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2043539/"
] |
217,213 | <p>Is there a way to make <strong>awk</strong> (gawk) ignore or skip missing files? That is, files passed on the command line that no longer exist in the file system (e.g. rapidly appearing/disappearing files under /proc/[1-9]*).</p>
<p>By default, a missing file is a fatal error :-(</p>
<p>I would like to be able to... | [
{
"answer_id": 217267,
"author": "Schwern",
"author_id": 14660,
"author_profile": "https://Stackoverflow.com/users/14660",
"pm_score": 0,
"selected": false,
"text": "#!/usr/bin/perl -w\n\nfor my $file (@ARGV) {\n open my $fh, $file or next;\n while(<$fh>) {\n ...do your thin... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,219 | <p>I am using the Entity Framework and Linq to Entities. I have created a small database pattern & framework to implement versioning as well as localization. Every entity now consists of two or three tables, (ie Product, ProductBase & ProductLocal). </p>
<p>My linq always includes the following boilerplat... | [
{
"answer_id": 217293,
"author": "Ryan M",
"author_id": 29466,
"author_profile": "https://Stackoverflow.com/users/29466",
"pm_score": 0,
"selected": false,
"text": "DataLoadOptions"
},
{
"answer_id": 217299,
"author": "Scott Wisniewski",
"author_id": 1737192,
"author_... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29466/"
] |
217,233 | <p>I have multiple layers in an application and i find myself having to bubble up events to the GUI layer for doing status bar changes, etc . . I find myself having to write repeated coded where each layer simply subscribes to events from the lower layer and then in the call back simply raise an event up the chain. Is... | [
{
"answer_id": 217366,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 6,
"selected": true,
"text": "public event EventHandler SaveButtonClick\n{\n add { this.SaveButton.Click += value; }\n remove { this.SaveButton.C... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
217,253 | <p>Here are the requirements:</p>
<p>Must be alphanumeric, 8-10 characters so that it is user friendly. These will be stored as unique keys in database. I am using Guids as primary keys so an option to use GUids to generate these unique Ids would be preferable.</p>
<p>I am thinking on the lines of a base-n converter ... | [
{
"answer_id": 217284,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": 2,
"selected": false,
"text": "words = [s.strip().lower() for s in open('/usr/share/dict/canadian-english') if \"'\" not in s]\nmod = len(words)\n\nd... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23217/"
] |
217,257 | <p>I want to sort members by name in the source code. Is there any easy way to do it? </p>
<p>I'm using NetBeans, but if there is another editor that can do that, just tell me the name of it.</p>
| [
{
"answer_id": 27170560,
"author": "Johnny Baloney",
"author_id": 779449,
"author_profile": "https://Stackoverflow.com/users/779449",
"pm_score": 6,
"selected": true,
"text": "Tools -> Options -> Editor -> Formatting -> Category: Ordering\n Source -> Organize Members\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8418/"
] |
217,258 | <p>Let's say that you have overridden an object's equals() and hashCode() methods, so that they use the object's fields.</p>
<p>How you do you check if two references are to the same object, ala the stock equals() method?</p>
| [
{
"answer_id": 217275,
"author": "joel.neely",
"author_id": 3525,
"author_profile": "https://Stackoverflow.com/users/3525",
"pm_score": 6,
"selected": true,
"text": "== equals() equals()"
},
{
"answer_id": 54128003,
"author": "Molten Ice",
"author_id": 679285,
"author... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27708/"
] |
217,259 | <p>Often, programmers write code that generates other code.</p>
<p>(The technical term is <a href="http://en.wikipedia.org/wiki/Metaprogramming" rel="nofollow noreferrer" title="Wikipedia article on metaprogramming">metaprogramming</a>, but it is more common than merely cross-compilers; think about every PHP web-page ... | [
{
"answer_id": 217264,
"author": "Oddthinking",
"author_id": 8014,
"author_profile": "https://Stackoverflow.com/users/8014",
"pm_score": 2,
"selected": false,
"text": "def generateWhileLoop(condition, block, indentPrefix = \"\"):\n print indentPrefix + \"while \" + condition + \":\"\n... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8014/"
] |
217,266 | <p>If the C++ runtime msvcr80.dll is missing from a compiled library, is there any way to determine which version was used to create the library or to get it to run on a later version of msvcr80.dll?</p>
| [
{
"answer_id": 217369,
"author": "bk1e",
"author_id": 8090,
"author_profile": "https://Stackoverflow.com/users/8090",
"pm_score": 5,
"selected": true,
"text": "%SystemRoot%\\WinSxS %ProgramFiles%\\Microsoft Visual Studio 8\\VC\\redist mt.exe -inputresource:mydll.dll;#1 -out:mydll.dll.man... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4670/"
] |
217,287 | <p>I'm a c++ programmer and I'm playing around with java after finding JPA which for a few of my current applications is a god send. I haven't touched java since university and I'm having a problem running out of heap space. I'm using the code below as the main part of a not-very-serious test of jdbc/jpa/lucene but I k... | [
{
"answer_id": 217294,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 2,
"selected": false,
"text": "-Xmx n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,301 | <p>I've run across this sort of thing on multiple websites and was wondering what it was called, does anyone know? <a href="http://twitpic.com/h77i/full" rel="nofollow noreferrer" title="twitpic.com">Here's a screenshot.</a></p>
| [
{
"answer_id": 217294,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 2,
"selected": false,
"text": "-Xmx n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26948/"
] |
217,316 | <p>I am using pseudo-code here, but this is in JavaScript. With the most efficient algorithm possible I am trying to find the high and low given an array of positive whole numbers. This is what I came up with, but I don't think it is probably best, and was just wondering if anyone has any other suggestions.</p>
<pre><... | [
{
"answer_id": 217320,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": -1,
"selected": false,
"text": ">>> seq = [1, 2, 3, 4, 5, 6, 7]\n>>> max(seq)\n7\n>>> min(seq)\n1\n"
},
{
"answer_id": 217322,
"author": ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,350 | <p>I'm building an ASP.Net MVC website. Rather than have everything in one project, I've decided to separate the Web, Model and Controller out into different projects in the same solution, that reference each-other.</p>
<p>The referencing goes like this:</p>
<blockquote>
<p>Web ---[references]---> Controller ---[re... | [
{
"answer_id": 220162,
"author": "Tim Scott",
"author_id": 29493,
"author_profile": "https://Stackoverflow.com/users/29493",
"pm_score": 5,
"selected": true,
"text": "<%@ Import Namespace=\"MyRootNamespace.NamespaceForMyHtmlHelperExtensions\"%>\n <add namespace=\"MyRootNamespace.Namespac... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23341/"
] |
217,353 | <p>I've been trying to figure out how to retrieve the text selected by the user in my webbrowser control and have had no luck after digging through msdn and other resources, So I was wondering if there is a way to actually do this. Maybe I simply missed something.</p>
<p>I appreciate any help or resources regarding th... | [
{
"answer_id": 217509,
"author": "Ash",
"author_id": 5023,
"author_profile": "https://Stackoverflow.com/users/5023",
"pm_score": 6,
"selected": true,
"text": "using mshtml;\n\n...\n\n IHTMLDocument2 htmlDocument = webBrowser1.Document.DomDocument as IHTMLDocument2;\n\n IHTMLSelecti... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29477/"
] |
217,356 | <p>What kind of collection I should use to convert NameValue collection to be bindable to GridView?
When doing directly it didn't work.</p>
<p><strong>Code in aspx.cs</strong></p>
<pre><code> private void BindList(NameValueCollection nvpList)
{
resultGV.DataSource = list;
resultGV.DataBind();
}
</code>... | [
{
"answer_id": 217361,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 4,
"selected": true,
"text": "resultGV.DataSource = from item in nvpDictionary\n select new { Key = item.Key, Value = item.Value ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24507/"
] |
217,377 | <p>How do you use the LEFT function (or an equivalent) on a SQL Server NTEXT column?</p>
<p>Basically I'm building a GridView and I just want to return the first 100 or so characters from the Description column which is NTEXT. </p>
| [
{
"answer_id": 13456806,
"author": "Dane B",
"author_id": 4480,
"author_profile": "https://Stackoverflow.com/users/4480",
"pm_score": 3,
"selected": false,
"text": "SUBSTRING ( value_expression , start_expression , length_expression )\n Description SELECT SUBSTRING(Description, 1, 100) a... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
217,389 | <p>I'm working on a C# program, and right now I have one <code>Form</code> and a couple of classes. I would like to be able to access some of the <code>Form</code> controls (such as a <code>TextBox</code>) from my class. When I try to change the text in the <code>TextBox</code> from my class I get the following error:<... | [
{
"answer_id": 217394,
"author": "Keith Nicholas",
"author_id": 10431,
"author_profile": "https://Stackoverflow.com/users/10431",
"pm_score": 2,
"selected": false,
"text": "Form1.txtLog.Text = \"blah\"\n Form1 blah = new Form1();\nblah.txtLog.Text = \"hello\"\n"
},
{
"answer_id":... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13504/"
] |
217,414 | <p>I am a big fan of the Lightbox2 library, and have used it in the past just not on an MVC project. In the past I remember that Lightbox2 was picky about the paths it scripts, css, and images resided in. I remember specifically have to put everything in subdirectories of the page's path, else it wouldn't work.</p>
<p... | [
{
"answer_id": 217456,
"author": "mmacaulay",
"author_id": 22152,
"author_profile": "https://Stackoverflow.com/users/22152",
"pm_score": -1,
"selected": false,
"text": "\n<script type=\"text/javascript\" src=\"/js/prototype.js\">\n"
},
{
"answer_id": 217459,
"author": "Paolo ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27860/"
] |
217,424 | <p>I have data in a MySQL database. I am sending the user a URL to get their data out as a CSV file.</p>
<p>I have the e-mailing of the link, MySQL query, etc. covered.</p>
<p>How can I, when they click the link, have a pop-up to download a CVS with the record from MySQL? </p>
<p>I have all the information to get th... | [
{
"answer_id": 217432,
"author": "Gavin M. Roy",
"author_id": 13203,
"author_profile": "https://Stackoverflow.com/users/13203",
"pm_score": 1,
"selected": false,
"text": "header('Content-type: text/csv');\nheader('Content-disposition: attachment; filename=\"myfile.csv\"');\n"
},
{
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,463 | <p>After reading <a href="https://stackoverflow.com/questions/36127/any-recommended-vc-settings-for-better-pdb-analysis-on-release-builds">this discussion</a> and <a href="https://stackoverflow.com/questions/49224/good-crash-reporting-library-in-c">this discussion</a> about using CrashRpt to generate a crash dump and e... | [
{
"answer_id": 217474,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 3,
"selected": true,
"text": " mainDlg.m_pUDFiles = &m_files;\n if (IDOK == mainDlg.DoModal())\n {\n //Put breakpoint here <---------\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/191808/"
] |
217,464 | <p>I have a text file of this format: </p>
<pre><code>L O A D C A S E 1 O F 2 ...
J O I N T D I S P L A C E M E N T S (global)
Joint X-dsp Y-dsp Z-dsp X-rot Y-rot Z-rot
1 0.0 0.0 0.0 0.0 0.0 -0.... | [
{
"answer_id": 217479,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 3,
"selected": true,
"text": "public static IEnumerable<string> ReadLinesFromFile(string filename)\n{\n using (StreamReader reader = new St... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
217,484 | <p>I have developed a VB.NET WCF service that recives and sends back data. When the first client connects it starts the data output that continues also if the client is closed. If a new client connects then a new object is created and the data output starts at the begninning and continues in parallel with the old insta... | [
{
"answer_id": 217479,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 3,
"selected": true,
"text": "public static IEnumerable<string> ReadLinesFromFile(string filename)\n{\n using (StreamReader reader = new St... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26754/"
] |
217,523 | <p>We are considering a move from SVN to Mercurial, and have encountered a stumbling block.</p>
<p>We currently use <code>svn:externals</code> to automatically pull a common set of libraries into the working directory. I can't find support for anything like this in Mercurial.</p>
<p>Is there a way to do this automati... | [
{
"answer_id": 851714,
"author": "yanjost",
"author_id": 16718,
"author_profile": "https://Stackoverflow.com/users/16718",
"pm_score": 2,
"selected": false,
"text": "svn:externals"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/584/"
] |
217,532 | <p>I'm trying to call the OpenThemeData (see msdn <a href="http://msdn.microsoft.com/en-us/library/bb759821%28v=VS.85%29.aspx" rel="noreferrer">OpenThemeData</a>) function but I couldn't determine what are the acceptable Class names to be passed in by the <code>pszClassList</code> parameter.</p>
<pre><code>HTHEME Open... | [
{
"answer_id": 6539701,
"author": "splash",
"author_id": 256544,
"author_profile": "https://Stackoverflow.com/users/256544",
"pm_score": 4,
"selected": false,
"text": "Vsstyle.h Vssym32.h BUTTON, CLOCK, COMBOBOX, COMMUNICATIONS, CONTROLPANEL, DATEPICKER, DRAGDROP, \nEDIT, EXPLORERBAR, FL... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28760/"
] |
217,549 | <p>It is common knowledge that built-in enums in C++ are not typesafe.
I was wondering which classes implementing typesafe enums are used out there...
I myself use the following "bicycle", but it is somewhat verbose and limited:</p>
<p>typesafeenum.h:</p>
<pre><code>struct TypesafeEnum
{
// Construction:
public:
... | [
{
"answer_id": 217560,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 1,
"selected": false,
"text": "enum public enum Result {\n OK(\"OK\"), CANCEL(\"Cancel\");\n\n private final String name;\n\n Result(String name) ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22046/"
] |
217,551 | <p>My component is handed a long value that I later use as a key into a cache. The key itself is a string representation of the long value as if it were unsigned 64-bit value. That is, when my component is handed -2944827264075010823L, I need to convert that into the string key "15501916809634540793".</p>
<p>I have a ... | [
{
"answer_id": 217582,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "long import java.math.BigInteger;\n\nclass UInt64Test {\n public static void main(String[] args) {\n for (String a... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,555 | <p>How fast is <a href="http://php.net/manual/en/function.php-uname.php" rel="nofollow noreferrer">php_uname()</a> say doing <code>php_uname('s n')</code> or <code>php_uname('a')</code>. The reason I ask is because I'd like to use it to determine which server I'm on and therefore the configuration (paths, etc).</p>
<p... | [
{
"answer_id": 217570,
"author": "Adam Pierce",
"author_id": 5324,
"author_profile": "https://Stackoverflow.com/users/5324",
"pm_score": 3,
"selected": true,
"text": "<?php\n $tstart = microtime(true);\n\n php_uname('a');\n\n print 'it took '. sprintf(\"%f\",microtime(true) - $tstart)... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
217,565 | <p>By deterministic I vaguely mean that can be used in critical real-time software like aerospace flight software. Garbage collectors (and dynamic memory allocation for that matter) are big no-no's in flight software because they are considered non-deterministic. However, I know there's ongoing research on this, so I w... | [
{
"answer_id": 293664,
"author": "Evan Teran",
"author_id": 13430,
"author_profile": "https://Stackoverflow.com/users/13430",
"pm_score": 2,
"selected": false,
"text": "struct Block {\n Block *next;\n}\n\nBlock *free_list = NULL; /* you will need to populate this at start, an \n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,578 | <p>I'm trying to create a <em>fast</em> 2D point inside polygon algorithm, for use in hit-testing (e.g. <code>Polygon.contains(p:Point)</code>). Suggestions for effective techniques would be appreciated.</p>
| [
{
"answer_id": 218081,
"author": "Mecki",
"author_id": 15809,
"author_profile": "https://Stackoverflow.com/users/15809",
"pm_score": 11,
"selected": true,
"text": "(9/1), (4/3), (2/7), (8/2), (3/6) // p is your point, p.x is the x coord, p.y is the y coord\nif (p.x < Xmin || p.x > Xmax |... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11397/"
] |
217,591 | <p>I have several xml files, the names of which are stored in another xml file. </p>
<p>I want to use xsl to produce a summary of the combination of the xml files. I remember there was a way to do this with the msxml extensions (I'm using msxml).</p>
<p>I know I can get the content of each file using <code>select="do... | [
{
"answer_id": 217662,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 0,
"selected": false,
"text": "document() document() <xsl:copy-of select=\"document(@href)/\"/>\n"
},
{
"answer_id": 217679,
"author": "GerG"... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24355/"
] |
217,594 | <p>I'm trying to determine the best way of having a PHP script determine which server the script/site is currently running on.</p>
<p>At the moment I have a <code>switch()</code> that uses <code>$_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT']</code> to determine which server it's on. It then sets a few paths, ... | [
{
"answer_id": 217598,
"author": "Adam Pierce",
"author_id": 5324,
"author_profile": "https://Stackoverflow.com/users/5324",
"pm_score": 3,
"selected": true,
"text": "$id = $_SERVER['SERVER_ADDR'] . $_SERVER['DOCUMENT_ROOT'];\n"
},
{
"answer_id": 217705,
"author": "MDCore",
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
217,595 | <p>I have an existing Perl program that uses <code>Getopt</code> package and <code>Getopt::Long::Configure</code> with <code>permute</code> as one of the options. However, now I need to keep the order of the options entered by the user. There is an option <code>$RETURN_IN_ORDER</code> mentioned in the <code>Long.pm</co... | [
{
"answer_id": 217601,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "require_order"
},
{
"answer_id": 217646,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profi... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23373/"
] |
217,612 | <p>I'm a little confused by some PHP syntax I've come across. Here is an example:</p>
<pre><code>$k = $this->_tbl_key;
if( $this->$k)
{
$ret = $this->_db->updateObject( $this->_tbl, $this, $this->_tbl_key, $updateNulls );
}
else
{
$ret = $this->_db->insertObject( $this->_tbl, $this,... | [
{
"answer_id": 217616,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 5,
"selected": true,
"text": "echo ($obj->myvar);\n\n####\n\n$k = \"myvar\";\necho ($obj->$k);\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3831/"
] |
217,614 | <p>In data processing, I frequently need to create a lookup data structure to map one identifier to another. As a concrete example, let's take a structure which holds a 1-to-1 mapping between a country's 2 character code and its full name. In it we would have</p>
<pre><code>AD -> Andorra
AE -> United Arab Emi... | [
{
"answer_id": 217628,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 4,
"selected": true,
"text": "codeToName String country = codeToName[\"SV\"];\n"
},
{
"answer_id": 217639,
"author": "Eugene Yokota",
"aut... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2601671/"
] |
217,618 | <p>Is there any advantage to using <code>__construct()</code> instead of the class's name for a constructor in PHP?</p>
<p>Example (<code>__construct</code>):</p>
<pre><code>class Foo {
function __construct(){
//do stuff
}
}
</code></pre>
<p>Example (named):</p>
<pre><code>class Foo {
function F... | [
{
"answer_id": 217622,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 4,
"selected": false,
"text": "__construct __construct"
},
{
"answer_id": 217625,
"author": "Steven Oxley",
"author_id": 3831,
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29502/"
] |
217,665 | <p>I have faced this problem quite often during the last couple of months, during which I've been building this system. The scenario is this: I have this kind of object that essentially is a list of other objects, but has some other properties specific of its nature. For example:</p>
<ul>
<li>Class <code>Tests</code>:... | [
{
"answer_id": 217670,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 1,
"selected": false,
"text": "List List Tests List<Test> List<Test> List<Test>"
},
{
"answer_id": 217688,
"author": "Eugene Yokota",
"au... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4850/"
] |
217,666 | <p>I've written a setup.py script for py2exe, generated an executable for my python GUI application and I have a whole bunch of files in the dist directory, including the app, w9xopen.exe and MSVCR71.dll. When I try to run the application, I get an error message that just says "see the logfile for details". The only pr... | [
{
"answer_id": 217670,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 1,
"selected": false,
"text": "List List Tests List<Test> List<Test> List<Test>"
},
{
"answer_id": 217688,
"author": "Eugene Yokota",
"au... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20879/"
] |
217,678 | <p>As you can see this is a question from a non web developer. I would like to have an ASPX page which, under certain circumstances, can generate a 401 error from code. Ideally it would show the IIS standard page.</p>
| [
{
"answer_id": 217689,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": 4,
"selected": false,
"text": "Throw New HttpException(401, \"Auth Failed\")\n"
},
{
"answer_id": 217692,
"author": "Mark Cidade",
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1890/"
] |
217,707 | <p>Do these two keywords have exactly the same effect, or is there something I should be aware of?</p>
| [
{
"answer_id": 217716,
"author": "Keeg",
"author_id": 21059,
"author_profile": "https://Stackoverflow.com/users/21059",
"pm_score": 5,
"selected": true,
"text": "lock synchronized synchronized [MethodImpl(MethodImplOptions.Synchronized)]"
},
{
"answer_id": 217725,
"author": "... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
217,710 | <p>What's the best way to format this for readability?</p>
<pre><code>if (strpos($file, '.jpg',1) && file_exists("$thumbsdir/$file") == false || strpos($file, '.gif',1) && file_exists("$thumbsdir/$file") == false || strpos($file, '.png',1) && file_exists("$thumbsdir/$file") == false) {
create... | [
{
"answer_id": 217712,
"author": "Fire Lancer",
"author_id": 6266,
"author_profile": "https://Stackoverflow.com/users/6266",
"pm_score": 2,
"selected": false,
"text": "if ((strpos($file, '.jpg',1) ||\n strpos($file, '.gif',1) ||\n strpos($file, '.png',1))\n && file_exists(\"$t... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27025/"
] |
217,713 | <p>I have this HTML structure and want to convert it to an accordion.</p>
<pre><code><div class="accor">
<div class="section">
<h3>Sub section</h3>
<p>Sub section text</p>
</div>
<div class="section">
<h3>Sub section</h3>
... | [
{
"answer_id": 217721,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 2,
"selected": true,
"text": "$.each() $headings.each(function(i, el) {\n var $this = $(el), $p = $this.parent();\n $this.insertBefore($p);\n});\n"
}... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
217,718 | <p>I would really like to annotate a method with a reference to a single property in a property file for injection.</p>
<pre><code>@Resource("${my.service.url}")
private String myServiceUrl;
</code></pre>
<p>Of course, this syntax does not work ;) Thats why I'm asking here.</p>
<p>I am aware that I can inject the fu... | [
{
"answer_id": 217882,
"author": "miceuz",
"author_id": 24443,
"author_profile": "https://Stackoverflow.com/users/24443",
"pm_score": 0,
"selected": false,
"text": "<bean class=\"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer\">\n <property name=\"locations\">\... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23691/"
] |
217,731 | <p>I'm in the process of trying to hack together the first bits of a kernel. I currently have the entire kernel compiled down as C code, and I've managed to get it displaying text in the console window and all of that fine goodness. Now, I want to start accepting keyboard input so I can actually make some use of the th... | [
{
"answer_id": 217750,
"author": "Anders Eurenius",
"author_id": 1421,
"author_profile": "https://Stackoverflow.com/users/1421",
"pm_score": 1,
"selected": false,
"text": "In_Byte(KB_CMD);\n In_Byte(KB_DATA);\n KB_CMD KB_DATA"
},
{
"answer_id": 217759,
"author": "gimel",
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19521/"
] |
217,741 | <p>I have the following html</p>
<pre><code> <div id="menu">
<ul class="horizMenu">
<li id="active"><a href="#" id="current">About</a></li>
<li><a href="#">Archive</a></li>
<li><a href="#">C... | [
{
"answer_id": 217744,
"author": "Mauro",
"author_id": 2208,
"author_profile": "https://Stackoverflow.com/users/2208",
"pm_score": 2,
"selected": false,
"text": "#menu li\n{\n width: 150px;\n}\n"
},
{
"answer_id": 8672961,
"author": "Parziphal",
"author_id": 638668,
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/85/"
] |
217,749 | <p>Is there any way you can reset the visited status on links?</p>
<p>The scenario is this: On an intranet-site which naturally has a lot of links we want a link to have the status of "visited" for a set period of time only. I am therefore looking for a way to manipulate the visited status of links.</p>
<p>Is this do... | [
{
"answer_id": 217783,
"author": "ddaa",
"author_id": 11549,
"author_profile": "https://Stackoverflow.com/users/11549",
"pm_score": 3,
"selected": false,
"text": ":visited visited"
},
{
"answer_id": 219435,
"author": "savetheclocktower",
"author_id": 25720,
"author_pr... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4192/"
] |
217,761 | <p>I would like to know if there is a way to disable automatic loading of child records in nHibernate ( for one:many relationships ).</p>
<p>We can easily switch off lazy loading on properties but what I want is to disable any kind of automatic loading ( lazy and non lazy both ). I only want to load data via query ( i... | [
{
"answer_id": 229701,
"author": "kͩeͣmͮpͥ ͩ",
"author_id": 26479,
"author_profile": "https://Stackoverflow.com/users/26479",
"pm_score": 3,
"selected": true,
"text": " public class Department \n { \n public int Id { get; protected set; }\n public string Name { get; set; }\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29443/"
] |
217,765 | <p>I have a query that I use for charting in reporting services that looks something like:</p>
<pre>
(SELECT Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Eta, Theta, Iota, Kappa, Lambda, Mu,Nu, Xi from tbl
WHERE
Alpha in (@Alphas) and
Beta in (@Betas) and
Gamma in (@Gammas) and
Delta in (@Deltas) and
Epsilon in (@... | [
{
"answer_id": 217774,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 1,
"selected": false,
"text": "(SELECT a,b,c,d FROM k\nWHERE a in (@a) and b in (@b) and c in (@c))\nUNION\n(SELECT NULL,NULL,NULL,sum(e) FROM k\nW... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20879/"
] |
217,769 | <p>I am <a href="https://stackoverflow.com/questions/211260/perl-extract-text-then-save<br">searching</a> for HF50(HF$HF) for example in "MyFile.txt" so that the extracted data must save to "save.txt". The data on "save.txt" now extracted again and fill the parameters and output on my table. But when I tried the cod... | [
{
"answer_id": 217872,
"author": "Corion",
"author_id": 11253,
"author_profile": "https://Stackoverflow.com/users/11253",
"pm_score": 0,
"selected": false,
"text": "$outfile open()"
},
{
"answer_id": 218689,
"author": "brian d foy",
"author_id": 2766176,
"author_profi... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28607/"
] |
217,776 | <p>I have a simple page that has some iframe sections (to display RSS links). How can I apply the same CSS format from the main page to the page displayed in the iframe?</p>
| [
{
"answer_id": 217820,
"author": "Horst Gutmann",
"author_id": 22312,
"author_profile": "https://Stackoverflow.com/users/22312",
"pm_score": 6,
"selected": false,
"text": "var frm = frames['frame'].document;\nvar otherhead = frm.getElementsByTagName(\"head\")[0];\nvar link = frm.createEl... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,793 | <p>Is there a way in Delphi to get the currect application's exe size in one or two lines of code?</p>
| [
{
"answer_id": 217824,
"author": "Daniel Rikowski",
"author_id": 23368,
"author_profile": "https://Stackoverflow.com/users/23368",
"pm_score": 2,
"selected": false,
"text": "Application.ExeName FileOpen FileSize TFileStream size CreateFile GetFileSize FindFirst TSearchRec.FindData.nFileS... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3535708/"
] |
217,801 | <p>Anyone have any idea how to get the value of "Language for Non-Unicode Programs" in Control Panel Regional Settings programmatically using c#?</p>
<p>Already tried CultureInfo, RegionInfo and getting the default encoding using the Encoding object, but I can only get the Standards and Formats value or the main code ... | [
{
"answer_id": 217858,
"author": "Omer van Kloeten",
"author_id": 4979,
"author_profile": "https://Stackoverflow.com/users/4979",
"pm_score": 0,
"selected": false,
"text": "Thread.CurrentUICulture"
},
{
"answer_id": 46383388,
"author": "Nickolay",
"author_id": 1026,
"... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18494/"
] |
217,805 | <p>What is the most efficient way to write the old-school:</p>
<pre><code>StringBuilder sb = new StringBuilder();
if (strings.Count > 0)
{
foreach (string s in strings)
{
sb.Append(s + ", ");
}
sb.Remove(sb.Length - 2, 2);
}
return sb.ToString();
</code></pre>
<p>...in LINQ?</p>
| [
{
"answer_id": 122706,
"author": "Robert S.",
"author_id": 7565,
"author_profile": "https://Stackoverflow.com/users/7565",
"pm_score": 6,
"selected": false,
"text": "var sa = (new[] { \"yabba\", \"dabba\", \"doo\" }).Aggregate((a,b) => a + \",\" + b);\n"
},
{
"answer_id": 122760,... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/192/"
] |
217,816 | <p>I build VBA applications for both Word and Excel, is there any way to access the progress bar that sometimes appears in the Office status bar.</p>
| [
{
"answer_id": 217840,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 0,
"selected": false,
"text": "Sub StatusBarExample()\n Application.ScreenUpdating = False \n ' turns off screen updating\n Application.DisplayS... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2665/"
] |
217,821 | <p>Apart from just inserting and parsing text into a blank Word field, is there any way to programmatically build user-defined fields and field codes into my own templates with VBA? Furthermore, is there a way to make these fields show up in the list of available fields?</p>
| [
{
"answer_id": 218304,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 2,
"selected": false,
"text": "{ DOCPROPERTY \"Test\" \\* MERGEFORMAT } \n Sub AutoNew()\nDim objCustomProperties As DocumentProperties\n\nSet objCustom... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2665/"
] |
217,825 | <p><a href="http://en.wikipedia.org/wiki/Apple_Developer_Tools#Shark" rel="nofollow noreferrer">Shark</a> on Mac OS X is a great tool for profiling an application on a running system. Is there any similar tools for Linux? </p>
<p><a href="http://oprofile.sourceforge.net/about/" rel="nofollow noreferrer">OProfile</a> l... | [
{
"answer_id": 334829,
"author": "Chris Jefferson",
"author_id": 27074,
"author_profile": "https://Stackoverflow.com/users/27074",
"pm_score": 3,
"selected": false,
"text": "valgrind --tool=callgrind <name of your app> <your app's options>\n valgrind --tool=cachegrind <name of your app> ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/842/"
] |
217,829 | <p>A page executes a number of tasks and takes a long time to process. We want to give the user feedback as each task is completed. </p>
<p>In ASP.NET webforms we used <code>Response.Flush()</code></p>
<p>What way would you a approach this in ASP.NET MVC?</p>
| [
{
"answer_id": 217899,
"author": "liggett78",
"author_id": 19762,
"author_profile": "https://Stackoverflow.com/users/19762",
"pm_score": 3,
"selected": false,
"text": "this.PartialView(\"Progress\").ExecuteResult(this.ControllerContext);\nthis.Response.Flush();\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23393/"
] |
217,831 | <p>Could someone explain to me how Any-related annotations (<code>@Any</code>, <code>@AnyMetaDef</code>, <code>@AnyMetaDefs</code> and <code>@ManyToAny</code>) work in practice. I have a hard time finding any useful documentation (JavaDoc alone isn't very helpful) about these.</p>
<p>I have thus far gathered that they... | [
{
"answer_id": 217848,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 5,
"selected": false,
"text": "@Entity\n@Table(name = \"BORROW\")\npublic class Borrow{\n\n @Id\n @GeneratedValue\n private Long id;\n\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2238/"
] |
217,834 | <p>In history-books you often have timeline, where events and periods are marked on a line in the correct relative distance to each other. How is it possible to create something similar in LaTeX?</p>
| [
{
"answer_id": 219266,
"author": "Zoe Gagnon",
"author_id": 26929,
"author_profile": "https://Stackoverflow.com/users/26929",
"pm_score": 7,
"selected": true,
"text": "\\documentclass{article}\n\\usepackage{tikz}\n\\usetikzlibrary{snakes}\n\n\\begin{document}\n\n \\begin{tikzpicture}[sn... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21005/"
] |
217,841 | <p>I have a .NET web-service client that has been autogenerated from a wsdl-file using the wsdl.exe tool.</p>
<p>When I first instantiate the generated class, it begins to request a bunch of documents from w3.org and others. The first one being <a href="http://www.w3.org/2001/XMLSchema.dtd" rel="nofollow noreferrer">h... | [
{
"answer_id": 218105,
"author": "tamberg",
"author_id": 3588,
"author_profile": "https://Stackoverflow.com/users/3588",
"pm_score": 2,
"selected": false,
"text": "XmlReader r = ...\nr.XmlResolver = null; // prevent xsd or dtd parsing\n"
},
{
"answer_id": 218124,
"author": "R... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5542/"
] |
217,842 | <p>Heres a screenshot to make it clear. I'm trying to figure out a robust way of making the bullet images vertically aligned to my li content. As you can see my content is currently too high.</p>
<p>Many thanks 'over-flowers'...</p>
<p><a href="http://dl.getdropbox.com/u/240752/list-example.gif" rel="nofollow norefer... | [
{
"answer_id": 217850,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 2,
"selected": false,
"text": "#content li{\n\n list-style-image: url(../images/bullet.gif);\n\n}\n"
},
{
"answer_id": 217868,
"author": "... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
217,849 | <p>Our 404 error logs show a lot of /SysVol http requests on our Windows Web Server 2008 for our website. It only has a webserver role and I believe that SysVol requests are meant for Domain Controllers? What's causing this and what would be the best solution to deal with these 404 requests?</p>
<p>I'm using code that... | [
{
"answer_id": 217850,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 2,
"selected": false,
"text": "#content li{\n\n list-style-image: url(../images/bullet.gif);\n\n}\n"
},
{
"answer_id": 217868,
"author": "... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/997/"
] |
217,852 | <p>I have a 30000x14000 sparse matrix in MATLAB (version 7), which I need to use in another program. Calling save won't write this as ASCII (not supported). Calling <code>full()</code> on this monster results in an <code>Out of Memory</code> error.<br>
How do I export it?</p>
| [
{
"answer_id": 217891,
"author": "Vebjorn Ljosa",
"author_id": 17498,
"author_profile": "https://Stackoverflow.com/users/17498",
"pm_score": 3,
"selected": false,
"text": ".mat .mat scipy.io.mio.loadmat"
},
{
"answer_id": 239950,
"author": "Midhat",
"author_id": 9425,
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9425/"
] |
217,853 | <p>How to represent the start and end times for one day?</p>
<p>Using October 23, 2008 as an example, is it start 2008-10-23 12:00:00 AM and end 2008-10-23 11:59:59 PM?</p>
| [
{
"answer_id": 217873,
"author": "Balint Pato",
"author_id": 19621,
"author_profile": "https://Stackoverflow.com/users/19621",
"pm_score": 4,
"selected": false,
"text": "hh:mm:ss\n 23:59:59\n 235959\n 23:59, 2359, or 23\n 23:59:59.9942 or 235959.9942\n 1995-02-04 24:00 = 1995-02-05 00:00... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15396/"
] |
217,859 | <p>When you start a Flex drag action, you pass in a proxy image to be displayed when you drag across the screen. When the drop occurs, I want to be able to grab this proxy but I can't find a way to from the DragEvent object.</p>
<p>Is it possible? What I want is to actually drop the dragged image when the mouse button... | [
{
"answer_id": 218524,
"author": "Christophe Herreman",
"author_id": 17255,
"author_profile": "https://Stackoverflow.com/users/17255",
"pm_score": 2,
"selected": false,
"text": "import mx_internal;\n var p:* = DragManager.mx_internal::dragProxy;\n"
},
{
"answer_id": 799670,
"... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13220/"
] |
217,881 | <p>What's the easiest way of me converting the simpler regex format that most users are used to into the correct re python regex string?</p>
<p>As an example, I need to convert this:</p>
<pre><code>string = "*abc+de?"
</code></pre>
<p>to this:</p>
<pre><code>string = ".*abc.+de.?"
</code></pre>
<p>Of course I coul... | [
{
"answer_id": 217896,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "replace def wildcard_to_regex(str):\n return str.replace(\"*\", \".*\").replace(\"?\", .?\").replace(\"#\", \"\\d\... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18909/"
] |
217,892 | <p>Suppose I have a hash_map and a code like</p>
<pre><code>// i is an iterator
i = hash_map.erase(i)
</code></pre>
<p>But GCC's STL doesn't return iterator in erase, but a void. Now is a code like</p>
<pre><code>hash_map.erase(i++)
</code></pre>
<p>safe (i.e. does not invalidate the iterator or does any other unex... | [
{
"answer_id": 217904,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 4,
"selected": true,
"text": "i"
},
{
"answer_id": 220495,
"author": "Rodyland",
"author_id": 10681,
"author_profile": "https://Stackov... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9403/"
] |
217,900 | <p>i want to write code for unit test to test my application code. I have different methods and now want to test these methods one by one in python script.
but i do not how to i write. can any one give me example of small code for unit testing in python.
i am thankful </p>
| [
{
"answer_id": 217925,
"author": "xsl",
"author_id": 11387,
"author_profile": "https://Stackoverflow.com/users/11387",
"pm_score": 3,
"selected": false,
"text": "import random\nimport unittest\n\nclass TestSequenceFunctions(unittest.TestCase):\n\n def setUp(self):\n self.seq = ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17451/"
] |
217,901 | <p>Below are lines from "the c++ programming language"</p>
<pre><code>template<class T > T sqrt(T );
template<class T > complex<T> sqrt(complex<T>);
double sqrt(double);
void f(complex<double> z )
{
s q r t (2 ); // sqrt<int>(int)
sqrt(2.0) ; // sqrt(double)
sqrt(z) ; // sqrt<dou... | [
{
"answer_id": 217922,
"author": "PierreBdR",
"author_id": 7136,
"author_profile": "https://Stackoverflow.com/users/7136",
"pm_score": 3,
"selected": true,
"text": "sqrt<double>(complex<double>) template <class T> complex<T> sqrt(complex<T>)"
},
{
"answer_id": 217943,
"author... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
217,902 | <p>Is there any class in the .NET framework that can read/write standard .ini files:</p>
<pre><code>[Section]
<keyname>=<value>
...
</code></pre>
<p>Delphi has the <code>TIniFile</code> component and I want to know if there is anything similar for C#? </p>
| [
{
"answer_id": 217913,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 6,
"selected": false,
"text": "WritePrivateProfileString GetPrivateProfileString System.Runtime.InteropServices System.Text using INI;\n INIFile ini = new... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25732/"
] |
217,911 | <p>I am a big fan of letting the compiler do as much work for you as possible. When writing a simple class the compiler can give you the following for 'free':</p>
<ul>
<li>A default (empty) constructor</li>
<li>A copy constructor</li>
<li>A destructor</li>
<li>An assignment operator (<code>operator=</code>)</li>
</ul... | [
{
"answer_id": 217950,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 4,
"selected": false,
"text": "default operator==;"
},
{
"answer_id": 218091,
"author": "sergtk",
"author_id": 13441,
"author_profil... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
217,912 | <p>I've got a text box bound to an object's property (in fact several text boxes) on a form. This for is an editor for an object. When i'm editing some objects and modify values in the one of the text boxes i can't exit from the text box (neither by tab nor clicking on another text box). However that's not always the c... | [
{
"answer_id": 9702855,
"author": "Thomas Brooks",
"author_id": 1269065,
"author_profile": "https://Stackoverflow.com/users/1269065",
"pm_score": 3,
"selected": false,
"text": "DBNull.Value TextBox1.DataBindings[\"Text\"].NullValue = string.Empty;\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10793/"
] |
217,928 | <p>I have been trying to read a picture saved in Access DB as a OLE object in a PictureBox in a C# windows Application.</p>
<p>The code that does this is presented below:</p>
<pre><code> string connString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Rajesh\SampleDB_2003.mdb;";
OleDbConnection oC... | [
{
"answer_id": 218080,
"author": "milot",
"author_id": 22637,
"author_profile": "https://Stackoverflow.com/users/22637",
"pm_score": 0,
"selected": false,
"text": "pbPassport.Image = Image.FromStream(ms);\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21995/"
] |
217,932 | <p>I have had a bug recently that only manifested itself when the library was built as a release build rather than a debug build. The library is a .NET dll with a COM wrapper and I am using CoCreateInstance to create a class from the dll in an unmanaged c++ app. When I finally tracked the bug down it was caused by ac... | [
{
"answer_id": 218005,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "beforefieldinit beforefieldinit"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,935 | <p>On ASP.net MVC, what is the "correct" way to have a controller return a 301 Redirect to an external site?</p>
<p>The various RedirectTo-Function seem to only return either relative links or routes that i have mapped manually, but there is no way to say "Perform a 301 Redirect to <a href="http://example.com" rel="no... | [
{
"answer_id": 835366,
"author": "Zack Peterson",
"author_id": 83,
"author_profile": "https://Stackoverflow.com/users/83",
"pm_score": 1,
"selected": false,
"text": "Public Class ThingController\n Inherits System.Web.Mvc.Controller\n\n Function Details(ByVal id As String) As Action... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
217,938 | <p>I am designing a crawler which will get certain content from a webpage (using either string manipulation or regex).</p>
<p>I'm able to get the contents of the webpage as a response stream (using the whole httpwebrequest thing), and then for testing/dev purposes, I write the stream content to a multi-line textbox in... | [
{
"answer_id": 217947,
"author": "Søren Pedersen",
"author_id": 379419,
"author_profile": "https://Stackoverflow.com/users/379419",
"pm_score": 0,
"selected": false,
"text": "string template = txtTemplate.Text;\n string[] lines = template.Split(Environment.NewLine.ToCharArray(... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,945 | <p>Can I have multiple primary keys in a single table?</p>
| [
{
"answer_id": 217952,
"author": "Adam Pierce",
"author_id": 5324,
"author_profile": "https://Stackoverflow.com/users/5324",
"pm_score": 9,
"selected": false,
"text": "CREATE TABLE userdata (\n userid INT,\n userdataid INT,\n info char(200),\n primary key (userid, userdataid)\n);\n"
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,951 | <p>How can I retrieve the current working directory of cmd.exe? </p>
<p>This seems possible. For example using ProcessExplorer, select CMD.exe, right click, properties, Image tab, "Current Directory" relects the directory set using the CD or CHDIR commands.</p>
<p>I've looked at the .NET Process and ProcessStartInf... | [
{
"answer_id": 217963,
"author": "Veynom",
"author_id": 11670,
"author_profile": "https://Stackoverflow.com/users/11670",
"pm_score": 3,
"selected": false,
"text": "set OLDDIR=%CD%\n.. do stuff ..\nchdir /d %OLDDIR% &rem restore current directory\n $(get-location)\n"
},
{
"answer... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5023/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.