qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
147,941 | <p>I am trying to read an Http response stream twice via the following:</p>
<pre><code>HttpWebResponse response = (HttpWebResponse)request.GetResponse();
stream = response.GetResponseStream();
RssReader reader = new RssReader(stream);
do
{
element = reader.Read();
if (element is RssChannel)
{
feed.Channels.A... | [
{
"answer_id": 147961,
"author": "Iain",
"author_id": 23385,
"author_profile": "https://Stackoverflow.com/users/23385",
"pm_score": 7,
"selected": true,
"text": "Stream responseStream = CopyAndClose(resp.GetResponseStream());\n// Do something with the stream\nresponseStream.Position = 0;... | 2008/09/29 | [
"https://Stackoverflow.com/questions/147941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10505/"
] |
147,953 | <p>In an OLAP database I work with there is a 'Location' hierarchy consisting of the levels Company, Region, Area, Site, Room, Till. For a particular company I need to write some MDX that lists all regions, areas and sites (but not any levels below Site). Currently I am achieving this with the following MDX</p>
<pre><... | [
{
"answer_id": 147987,
"author": "Santiago Cepas",
"author_id": 6547,
"author_profile": "https://Stackoverflow.com/users/6547",
"pm_score": 4,
"selected": true,
"text": "DESCENDANTS([Location].[Test Company],[Location].[Site], SELF_AND_BEFORE)\n"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/147953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7585/"
] |
147,962 | <p>I have a big load of documents, text-files, that I want to search for relevant content. I've seen a searching tool, can't remeber where, that implemented a nice method as I describe in my requirement below.</p>
<p>My requirement is as follows:</p>
<ul>
<li>I need an optimised search function: I supply this search ... | [
{
"answer_id": 147989,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 0,
"selected": false,
"text": "-- N is the number of elements in the list\n\nSELECT idDoc, COUNT(1)\nFROM Word_Docs wd INNER JOIN Words w on w.idWord = wd.... | 2008/09/29 | [
"https://Stackoverflow.com/questions/147962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15161/"
] |
147,969 | <p>I'm expanding my Ruby understanding by coding an equivalent of Kent Beck's xUnit in Ruby. Python (which Kent writes in) has an assert() method in the language which is used extensively. Ruby does not. I think it should be easy to add this but is Kernel the right place to put it?</p>
<p>BTW, <em>I know of the exi... | [
{
"answer_id": 148938,
"author": "Christoph Schiessl",
"author_id": 20467,
"author_profile": "https://Stackoverflow.com/users/20467",
"pm_score": 4,
"selected": false,
"text": "Assertions module Assertions\n def assert(param)\n # do something with param\n end\n\n # define more asse... | 2008/09/29 | [
"https://Stackoverflow.com/questions/147969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2455/"
] |
147,976 | <p>I'm making a simple jquery command:</p>
<p><code>element.html("&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;");</code></p>
<p>using the attributes/html method: <a href="http://docs.jquery.com/Attributes/html" rel="nofollow noreferrer">http://docs.jquer... | [
{
"answer_id": 148387,
"author": "Sugendran",
"author_id": 22466,
"author_profile": "https://Stackoverflow.com/users/22466",
"pm_score": 1,
"selected": false,
"text": " html()"
},
{
"answer_id": 148404,
"author": "Nick Sergeant",
"author_id": 22468,
"author_prof... | 2008/09/29 | [
"https://Stackoverflow.com/questions/147976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9106/"
] |
147,988 | <p>I want to split an arithmetic expression into tokens, to convert it into RPN.</p>
<p>Java has the StringTokenizer, which can optionally keep the delimiters. That way, I could use the operators as delimiters. Unfortunately, I need to do this in PHP, which has strtok, but that throws away the delimiters, so I need to... | [
{
"answer_id": 148269,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 2,
"selected": true,
"text": "$expr = '(5*(7 + 2 * -9.3) - 8 )/ 11';\n$tokens = preg_split('/([*\\/^+-]+)\\s*|([\\d.]+)\\s*/', $expr, -1,\n PREG_SP... | 2008/09/29 | [
"https://Stackoverflow.com/questions/147988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2077/"
] |
147,995 | <p>When using the paginator helper in cakephp views, it doesnt remember parts of the url that are custom for my useage.</p>
<p>For example: </p>
<pre><code>http://example.org/users/index/moderators/page:2/sort:name/dir:asc
</code></pre>
<p>here <strong>moderators</strong> is a parameter that helps me filter by that ... | [
{
"answer_id": 396723,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "$paginator->options(array('url'=>$this->data['Transaction']));\n foreach($this->params['named'] as $k=>$v)\n{\n /*\n * ... | 2008/09/29 | [
"https://Stackoverflow.com/questions/147995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4013/"
] |
147,996 | <p>I am using VB6 and the Win32 API to write data to a file, this functionality is for the export of data, therefore write performance to the disk is the key factor in my considerations. As such I am using the <code>FILE_FLAG_NO_BUFFERING</code> and <code>FILE_FLAG_WRITE_THROUGH</code> options when opening the file wit... | [
{
"answer_id": 148111,
"author": "Mike G.",
"author_id": 18901,
"author_profile": "https://Stackoverflow.com/users/18901",
"pm_score": 3,
"selected": true,
"text": "FILE_FLAG_NO_BUFFERING FILE_FLAG_WRITE_THROUGH"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/147996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23387/"
] |
148,003 | <p>I have an array of a few million numbers.</p>
<pre><code>double* const data = new double (3600000);
</code></pre>
<p>I need to iterate through the array and find the range (the largest value in the array minus the smallest value). However, there is a catch. I only want to find the range where the smallest and larg... | [
{
"answer_id": 148030,
"author": "Drakosha",
"author_id": 19868,
"author_profile": "https://Stackoverflow.com/users/19868",
"pm_score": 4,
"selected": true,
"text": "* create sorted container (std::multiset) of first 1000 numbers\n* in loop (j=1, j<(3600000-1000); ++j)\n - calculate ra... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3175/"
] |
148,004 | <p>Is it possible to find out who called a stored procedure?</p>
<p>For example, say I get an error in <code>proc3</code>. From within that proc I want to know if it was called by <code>proc1</code> or <code>proc2</code>.</p>
| [
{
"answer_id": 148054,
"author": "evilhomer",
"author_id": 2806,
"author_profile": "https://Stackoverflow.com/users/2806",
"pm_score": 2,
"selected": false,
"text": "BEGIN TRY\nEXEC Proc3\nEND TRY\nBEGIN CATCH\nSELECT 'Error Caught'\nSELECT\n ERROR_PROCEDURE()\nEND CATCH\n"
},
{
... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16279/"
] |
148,005 | <p>In SQL, how do update a table, setting a column to a different value for each row?</p>
<p>I want to update some rows in a PostgreSQL database, setting one column to a number from a sequence, where that column has a unique constraint. I hoped that I could just use:</p>
<pre><code>update person set unique_number = (... | [
{
"answer_id": 148017,
"author": "Grey Panther",
"author_id": 1265,
"author_profile": "https://Stackoverflow.com/users/1265",
"pm_score": 6,
"selected": true,
"text": "update person set unique_number = nextval('number_sequence');\n"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2670/"
] |
148,024 | <p>I have got a C function in a static library, let's call it A, with the following interface :</p>
<pre><code>int A(unsigned int a, unsigned long long b, unsigned int *y, unsigned char *z);
</code></pre>
<p>This function will change the value of y an z (this is for sure). I use it from within a dynamic C++ library, ... | [
{
"answer_id": 148044,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 0,
"selected": false,
"text": "extern \"C\""
},
{
"answer_id": 148458,
"author": "Alexander",
"author_id": 16724,
"author_profile": ... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20986/"
] |
148,039 | <p>i have a big web application running in perl CGI. It's running ok, it's well written, but as it was done in the past, all the html are defined hardcoded in the CGI calls, so as you could imagine, it's hard to mantain, improve and etc. So now i would like to start to add some templating and integrate with a framework... | [
{
"answer_id": 148077,
"author": "moritz",
"author_id": 14132,
"author_profile": "https://Stackoverflow.com/users/14132",
"pm_score": 4,
"selected": true,
"text": "Test::WWW::Mechanize"
},
{
"answer_id": 152203,
"author": "EvdB",
"author_id": 5349,
"author_profile": "... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18642/"
] |
148,042 | <p>When using IF statements in Python, you have to do the following to make the "cascade" work correctly.</p>
<pre><code>if job == "mechanic" or job == "tech":
print "awesome"
elif job == "tool" or job == "rock":
print "dolt"
</code></pre>
<p>Is there a way to make Python accept multiple values when c... | [
{
"answer_id": 148048,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 6,
"selected": true,
"text": "if job in (\"mechanic\", \"tech\"):\n print \"awesome\"\nelif job in (\"tool\", \"rock\"):\n print \"dolt\"\n in in ... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18676/"
] |
148,056 | <p>I have created my own Tree implementation for <a href="https://stackoverflow.com/questions/144642/tree-directed-acyclic-graph-implementation">various reasons</a> and have come up with two classes, a 'base' class that is a generic tree node that is chock full of logic and another class that extends that one which is ... | [
{
"answer_id": 148122,
"author": "SCdF",
"author_id": 1666,
"author_profile": "https://Stackoverflow.com/users/1666",
"pm_score": 3,
"selected": true,
"text": "Foo abstract class AbstractFoo {\n public String value() { return \"Foo\"; }\n\n public AbstractFoo doStuff() {\n /... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1666/"
] |
148,057 | <p>If you have Mathematica code in foo.m, Mathematica can be invoked with <code>-noprompt</code>
and with <code>-initfile foo.m</code>
(or <code>-run "<<foo.m"</code>)
and the command line arguments are available in <code>$CommandLine</code> (with extra junk in there) but is there a way to just have some mathemat... | [
{
"answer_id": 3484871,
"author": "sakra",
"author_id": 112955,
"author_profile": "https://Stackoverflow.com/users/112955",
"pm_score": 3,
"selected": false,
"text": "#!/bin/sh\nexec <\"$0\" || exit; read; read; exec /usr/local/bin/math -noprompt \"$@\" | sed '/^$/d'; exit\n(* Mathematic... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4234/"
] |
148,059 | <p>I'm experimenting with OpenSSL on my network application and I want to test if the data sent is encrypted and can't be seen by eavesdropper.</p>
<p>What tools can you use to check? Could this be done programmatically so it could be placed in a unit test?</p>
| [
{
"answer_id": 32475440,
"author": "f01",
"author_id": 422842,
"author_profile": "https://Stackoverflow.com/users/422842",
"pm_score": 4,
"selected": false,
"text": "$ openssl s_client -connect mail.prefetch.net:443 -state -nbio 2>&1 | grep \"^SSL\" $ ssldump -a -A -H -i en0 $ ssldump -a... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1599/"
] |
148,068 | <p>I'm fairly new to the AJAX methodologies (I only recently discovered <a href="http://jquery.com/" rel="noreferrer">jQuery</a> a short time ago). I am interested to know if there is anyway to authenticate a user on a PHP setup; securely.</p>
<p>Does jQuery have any special options to allow use of HTTPS (or any other... | [
{
"answer_id": 169200,
"author": "Robert K",
"author_id": 24950,
"author_profile": "https://Stackoverflow.com/users/24950",
"pm_score": 2,
"selected": false,
"text": "$_GET"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20900/"
] |
148,074 | <p>Is the sorting algorithm used by .NET's <code>Array.Sort()</code> method a <a href="http://en.wikipedia.org/wiki/Stable_sort#Classification" rel="noreferrer">stable</a> algorithm?</p>
| [
{
"answer_id": 148123,
"author": "Atif Aziz",
"author_id": 6682,
"author_profile": "https://Stackoverflow.com/users/6682",
"pm_score": 6,
"selected": false,
"text": "Array.Sort Array.Sort using System;\nusing System.Collections.Generic;\n\npublic static class ArrayExtensions {\n\n pub... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4685/"
] |
148,078 | <p>I have a method which should be executed in an exclusive fashion. Basically, it's a multi threaded application where the method is invoked periodically by a timer, but which could also be manually triggered by a user action.</p>
<p>Let's take an example :</p>
<ol>
<li><p>The timer elapses, so the method is
called.... | [
{
"answer_id": 148105,
"author": "Christoffer Lette",
"author_id": 11808,
"author_profile": "https://Stackoverflow.com/users/11808",
"pm_score": 2,
"selected": false,
"text": "Mutex Semaphore"
},
{
"answer_id": 148154,
"author": "Robert Paulson",
"author_id": 14033,
"... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4687/"
] |
148,084 | <p>To deploy a new version of our website we do the following:</p>
<ol>
<li>Zip up the new code, and upload it to the server.</li>
<li>On the live server, delete all the live code from the IIS website directory.</li>
<li>Extract the new code zipfile into the now empty IIS directory</li>
</ol>
<p>This process is all s... | [
{
"answer_id": 22250245,
"author": "Stefan Steiger",
"author_id": 155077,
"author_profile": "https://Stackoverflow.com/users/155077",
"pm_score": 1,
"selected": false,
"text": "try\n Web-Service: Tell all applications on all web-servers to go into primary read-only mode \n Applicat... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23393/"
] |
148,086 | <p>Is there any simple way to programatically colorize images in .NET? Basically we have a black and white image and need to put a layer of say pink above it and reduce the opacity of that layer to make the picture colorized in pink.</p>
| [
{
"answer_id": 148126,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 0,
"selected": false,
"text": "RenderTargetBitmap bmp = new RenderTargetBitmap( imageWidth,imageHeight, \n DPIHoriz, DPIVert, \n PixelFormats.Pbrga32);\n /... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/452521/"
] |
148,097 | <p>In IIS 6, I can use the Web Service Extensions folder in Inetmgr to allow/prohibit isapi filters, such as ASP.net. I want to be able to do this programmatically (in particular, from an installer script/exe).</p>
<p><img src="https://i56.photobucket.com/albums/g192/assaflavie/misc/iis.png?t=1222681203" alt="alt text... | [
{
"answer_id": 148126,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 0,
"selected": false,
"text": "RenderTargetBitmap bmp = new RenderTargetBitmap( imageWidth,imageHeight, \n DPIHoriz, DPIVert, \n PixelFormats.Pbrga32);\n /... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11208/"
] |
148,116 | <p>So, In a Flex app I add a new GUI component by creating it and calling <code>parent.addChild()</code>. However in some cases, this causes an error in the bowels of Flex. Turns out, addChild actually does:</p>
<pre><code>return addChildAt(child, numChildren);
</code></pre>
<p>In the cases where it breaks, somehow t... | [
{
"answer_id": 8670817,
"author": "Paul",
"author_id": 2592338,
"author_profile": "https://Stackoverflow.com/users/2592338",
"pm_score": 0,
"selected": false,
"text": "var myDisplay : DisplayObject = new DisplayObject();\n\nmyDisplay.addChild(myChild1);\nmyDisplay.addChild(myChild2);\nmy... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13220/"
] |
148,129 | <p>I'm trying to find out whether I should be using business critical logic in a trigger or constraint inside of my database.<br>
So far I've added logic in triggers as it gives me the control over what happens next and means I can provide custom user messages instead of an error that will probably confuse the users.</... | [
{
"answer_id": 285721,
"author": "WW.",
"author_id": 14663,
"author_profile": "https://Stackoverflow.com/users/14663",
"pm_score": 3,
"selected": false,
"text": "(Amount >= 0) WHERE (Amount = -5)"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11989/"
] |
148,130 | <p>Should be pretty simple: I have an InputStream where I want to peek at (not read) the first two bytes, i.e. I want the "current position" of the InputStream to stil be at 0 after my peeking. What is the best and safest way to do this?</p>
<p><strong>Answer</strong> - As I had suspected, the solution was to wrap it ... | [
{
"answer_id": 148135,
"author": "Rasmus Faber",
"author_id": 5542,
"author_profile": "https://Stackoverflow.com/users/5542",
"pm_score": 7,
"selected": true,
"text": "BufferedInputStream bis = new BufferedInputStream(inputStream);\nbis.mark(2);\nint byte1 = bis.read();\nint byte2 = bis.... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
148,136 | <p>I'm currently generating SQL insert statements from more than one tables, and in the generated data I need to use a CASE statement, like this:</p>
<pre><code>select 'INSERT INTO TABLE1 (f1, f2, f3, f4 ...) values ('
||t.f1||','
||CASE
WHEN t.f2 > 0 THEN '1'
ELSE '0'
... | [
{
"answer_id": 148159,
"author": "pablo",
"author_id": 16112,
"author_profile": "https://Stackoverflow.com/users/16112",
"pm_score": 3,
"selected": true,
"text": "select 'INSERT INTO TABLE1 (f1, f2, f3, f4 ...) values ('\n ||t.f1||','\n ||CASE\n WHEN t.f2 > 0 THEN... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11621/"
] |
148,143 | <p>When you open a solution in Visual Studio 2008 (or ealier versions for that matter), it opens all the documents that you did not close before you closed Visual Studio. Is there anyway to turn this functionality off, or a plugin that fixes this behavior? It takes forever to load a solution with 50 files open?</p>
| [
{
"answer_id": 148242,
"author": "Christoffer Lette",
"author_id": 11808,
"author_profile": "https://Stackoverflow.com/users/11808",
"pm_score": 0,
"selected": false,
"text": "Ctrl+F4"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11559/"
] |
148,157 | <p>I am working on a Sharepoint Server 2007 State machine Workflow. Until now I have a few states and a custom Association/InitiationForm which I created with InfoPath 2007. In Addition I have a few modification forms. I have a Problem with the removing of the modification link in the state-page of my workflow. </p>
<... | [
{
"answer_id": 148242,
"author": "Christoffer Lette",
"author_id": 11808,
"author_profile": "https://Stackoverflow.com/users/11808",
"pm_score": 0,
"selected": false,
"text": "Ctrl+F4"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21729/"
] |
148,161 | <p>I'm using Zend Studio for Eclipse (Linux), and I'm trying to generate getter and setters methods in a PHP class.</p>
<p>I try to do this: <a href="http://files.zend.com/help/Zend-Studio-Eclipse-Help/creating_getters_and_setters.htm" rel="nofollow noreferrer">http://files.zend.com/help/Zend-Studio-Eclipse-Help/creat... | [
{
"answer_id": 148627,
"author": "Eric Hogue",
"author_id": 4137,
"author_profile": "https://Stackoverflow.com/users/4137",
"pm_score": 2,
"selected": false,
"text": "/**\n * @var ${PropertyType} \n */\nprivate $$m${PropertyName};\n${cursor}\n\n/**\n * Getter for ${PropertyName}\n *\n *... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
148,169 | <p>Given : </p>
<blockquote>
<p>Group hasMany Persons</p>
</blockquote>
<p>but the relationship is independent (ie. Persons can exist without belonging to a Group), should the foreign key in the persons' table (ie group_id) be set to 0 (or NULL) when deleting a group? If you do not, the person will try to belong to... | [
{
"answer_id": 22261149,
"author": "Big D",
"author_id": 2141112,
"author_profile": "https://Stackoverflow.com/users/2141112",
"pm_score": 0,
"selected": false,
"text": "id, group_id, person_id\n Person hasMany GroupPerson\nGroup hasMany GroupPerson\nGroupPerson belongsTo Person, Group\n... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4013/"
] |
148,178 | <p>I've got a really odd error message that only occurs when I add the following line to my project:</p>
<pre><code>std::list<CRect> myVar;
</code></pre>
<p>It's worth noting that it doesn't have to be a std::list, it can be std::vector or any other STL container I assume.</p>
<p>Here is the error message:</p>... | [
{
"answer_id": 1612595,
"author": "Mark Ingram",
"author_id": 986,
"author_profile": "https://Stackoverflow.com/users/986",
"pm_score": 2,
"selected": true,
"text": "class LIB_EXPORT CRectList : public std::list<CRect>\n{\n};\n"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/986/"
] |
148,182 | <p>I've been searching and can't find the download files on opengl.org. can someone please point me to the right direction?</p>
| [
{
"answer_id": 148212,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 1,
"selected": false,
"text": "#include <windows.h> \n#include <GL/gl.h> \n#include <GL/glu.h> \n"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20618/"
] |
148,185 | <p>C++ preprocessor <code>#define</code> is totally different.</p>
<p>Is the PHP <code>define()</code> any different than just creating a var?</p>
<pre><code>define("SETTING", 0);
$something = SETTING;
</code></pre>
<p>vs</p>
<pre><code>$setting = 0;
$something = $setting;
</code></pre>
| [
{
"answer_id": 1844206,
"author": "JAL",
"author_id": 92448,
"author_profile": "https://Stackoverflow.com/users/92448",
"pm_score": 3,
"selected": false,
"text": "php > $cat='';$f=microtime(1);$s='cowcow45';$i=9000;while ($i--){$cat.='plip'.$s.'cow';}echo microtime(1)-$f.\"\\n\";\n php >... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21240/"
] |
148,190 | <p>I have a legacy VB6 application that was built using MSDE.</p>
<p>As many client's database grow towards the MSDE 2 GB limit they are upgraded to SQL 2005 Express.</p>
<p>This has proven very successful until today.</p>
<p>I have spent the entire day troubleshooting a client's network on which our application run... | [
{
"answer_id": 1844206,
"author": "JAL",
"author_id": 92448,
"author_profile": "https://Stackoverflow.com/users/92448",
"pm_score": 3,
"selected": false,
"text": "php > $cat='';$f=microtime(1);$s='cowcow45';$i=9000;while ($i--){$cat.='plip'.$s.'cow';}echo microtime(1)-$f.\"\\n\";\n php >... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5019/"
] |
148,202 | <p>Microsoft <a href="http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx" rel="nofollow noreferrer">recently announced</a> that the Javascript/HTML DOM library <strong>jQuery will be integrated</strong> into the ASP.NET MVC framework and into ASP.NET / Visual Studio.</p>
<p>What is the best pr... | [
{
"answer_id": 148301,
"author": "paudirac",
"author_id": 15554,
"author_profile": "https://Stackoverflow.com/users/15554",
"pm_score": 3,
"selected": true,
"text": "\n$(function() {\n // some actions\n});\n \nif (Sys.WebForms.PageRequestManager) {\n Sys.WebForms.PageRequestManager.get... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6461/"
] |
148,204 | <p>last time I asked how to populate a data structure <a href="https://stackoverflow.com/questions/144474/java-arrays-vectors">here</a>. Now I would like to know if there's something in Java, like the <a href="http://www.php.net/print_r" rel="nofollow noreferrer">print_r</a> I use in PHP, to represent what I have popul... | [
{
"answer_id": 148221,
"author": "workmad3",
"author_id": 16035,
"author_profile": "https://Stackoverflow.com/users/16035",
"pm_score": 4,
"selected": true,
"text": "toString toString"
},
{
"answer_id": 148238,
"author": "DeeCee",
"author_id": 5895,
"author_profile": ... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6618/"
] |
148,225 | <p>Suppose I have one long long int and want to take its bits and construct four unsigned short ints out of it.</p>
<p>Particular order doesn't matter much here.</p>
<p>I generally know that I need to shift bits and truncate to the size of unsigned short int. But I think I may make some weird mistake somewhere, so I... | [
{
"answer_id": 148230,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 5,
"selected": true,
"text": "#include <stdint.h>\n#include <stdio.h>\n\nunion ui64 {\n uint64_t one;\n uint16_t four[4];\n};\n\nint\nmain()\n{\n ... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9403/"
] |
148,239 | <p>I am am trying to load a SQL table from a flat file. The flat i am talking about is a comma separated file. This has all the data required to populate a table will each column separated by a comma ",". I need some way by which i can load this content into the table faster.</p>
| [
{
"answer_id": 148246,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 4,
"selected": true,
"text": "BULK INSERT"
},
{
"answer_id": 148292,
"author": "Jean Paul Galea",
"author_id": 6618,
"author_profile"... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20951/"
] |
148,251 | <p>My favorite equation for centering an xhtml element using only CSS is as follows:</p>
<pre><code>display: block;
position: absolute;
width: _insert width here_;
left: 50%;
margin-left: _insert width divided by two & multiplied by negative one here_
</code></pre>
<p>There's also the simpler margin:auto method i... | [
{
"answer_id": 148265,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 3,
"selected": false,
"text": "text-align:center; margin:auto; <div style=\"text-align:center\">\n <div style=\"width:30px; margin:auto; text-align:left\... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14026/"
] |
148,275 | <p>I want to draw DirectX content so that it appears to be floating over top of the desktop and any other applications that are running. I also need to be able to make the directx content semi-transparent, so other things show through. Is there a way of doing this?</p>
<p>I am using Managed DX with C#.</p>
| [
{
"answer_id": 152297,
"author": "Garth",
"author_id": 23407,
"author_profile": "https://Stackoverflow.com/users/23407",
"pm_score": 4,
"selected": true,
"text": "//this will allow you to import the necessary functions from the .dll\nusing System.Runtime.InteropServices;\n\n//this import... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23407/"
] |
148,281 | <p>The output we get when printing C++ sources from Eclipse is rather ugly. </p>
<p>Is there are way/a plugin to pretty print C++ source code like e.g. with a2ps (which is probably using yet another filter for C source code)?</p>
| [
{
"answer_id": 150158,
"author": "Pat Notz",
"author_id": 825,
"author_profile": "https://Stackoverflow.com/users/825",
"pm_score": 3,
"selected": true,
"text": "enscript enscript"
},
{
"answer_id": 14266862,
"author": "William Symionow",
"author_id": 1683291,
"author... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19734/"
] |
148,298 | <p>Okay, we know that the following two lines are equivalent - </p>
<ol>
<li><code>(0 == i)</code></li>
<li><code>(i == 0)</code></li>
</ol>
<p>Also, the first method was encouraged in the past because that would have allowed the compiler to give an error message if you accidentally used '=' instead of '=='.</p>
<p>... | [
{
"answer_id": 148311,
"author": "asterite",
"author_id": 20459,
"author_profile": "https://Stackoverflow.com/users/20459",
"pm_score": 4,
"selected": false,
"text": "if (InterstingValue1 == foo) { } else\nif (InterstingValue2 == foo) { } else\nif (InterstingValue3 == foo) { }\n if (\"So... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6621/"
] |
148,305 | <p>I'm working on a SaaS application where each customer will have different configurations depending on the edition they have purchased, additional features they have purchased, etc. For example, a customer might have a limit of 3 custom reports.</p>
<p>Obviously I want to store this configuration in the database, bu... | [
{
"answer_id": 148331,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 1,
"selected": false,
"text": "CREATE TABLE configKVP(clientId int, key varchar, value varchar, type varchar)\n"
},
{
"answer_id": 160207,
... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4048/"
] |
148,314 | <p>I have integrated SRM 5.0 into Portal. Most of the iviews are IAC i.e., all are ITS based services.</p>
<p>The issue is that the Portal Theme does not get reflected on these services after integration.</p>
<p>When a BSP or Webdynpro is integrated then the application reflects the Portal Theme when executed from Port... | [
{
"answer_id": 148331,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 1,
"selected": false,
"text": "CREATE TABLE configKVP(clientId int, key varchar, value varchar, type varchar)\n"
},
{
"answer_id": 160207,
... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
148,350 | <p>I want to be able to access custom URLs with apache httpclient. Something like this:</p>
<pre><code>HttpClient client = new HttpClient();
HttpMethod method = new GetMethod("media:///squishy.jpg");
int statusCode = client.executeMethod(method);
</code></pre>
<p>Can I somehow register a custom URL handler? Or should... | [
{
"answer_id": 148390,
"author": "WMR",
"author_id": 2844,
"author_profile": "https://Stackoverflow.com/users/2844",
"pm_score": 1,
"selected": true,
"text": "URL.setURLStreamHandlerFactory(...)\n"
},
{
"answer_id": 148392,
"author": "mitchnull",
"author_id": 18645,
"... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11384/"
] |
148,361 | <p>I am building an application where I want to be able to click a rectangle represented by a DIV, and then use the keyboard to move that DIV by listing for keyboard events.</p>
<p>Rather than using an event listener for those keyboard events at the document level, can I listen for keyboard events at the DIV level, pe... | [
{
"answer_id": 148444,
"author": "Paul Dixon",
"author_id": 6521,
"author_profile": "https://Stackoverflow.com/users/6521",
"pm_score": 8,
"selected": true,
"text": "<div id=\"inner\" tabindex=\"0\">\n this div can now have focus and receive keyboard events\n</div>\n"
},
{
"an... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6521/"
] |
148,373 | <p>I wrote a sample program at <a href="http://codepad.org/ko8vVCDF" rel="noreferrer">http://codepad.org/ko8vVCDF</a> that uses a template function.</p>
<p>How do I retrict the template function to only use numbers? (int, double etc.)</p>
<pre><code>#include <vector>
#include <iostream>
using namespace s... | [
{
"answer_id": 148377,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 1,
"selected": false,
"text": "sum T T result = T();"
},
{
"answer_id": 148397,
"author": "Jeff Hillman",
"author_id": 3950,
"author_pr... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22040/"
] |
148,384 | <p>When I measure request times on "the inside" of an Asp.Net application and compare it to timings on "the outside" of the app, I get different values -- 1000-5000ms strange overheads from time to time. </p>
<p>Maybe the requests are beeing queued up in front of IIS? </p>
<p>Or something strange is going on in an Ht... | [
{
"answer_id": 148501,
"author": "Dan Goldstein",
"author_id": 23427,
"author_profile": "https://Stackoverflow.com/users/23427",
"pm_score": 0,
"selected": false,
"text": "<trace enabled=\"true\" pageOutput=\"true\" />"
},
{
"answer_id": 148609,
"author": "Vivek",
"author... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11239/"
] |
148,398 | <p>In SQL Server 2005, are there any disadvantages to making all character fields nvarchar(MAX) rather than specifying a length explicitly, e.g. nvarchar(255)? (Apart from the obvious one that you aren't able to limit the field length at the database level)</p>
| [
{
"answer_id": 10195960,
"author": "carlos martini",
"author_id": 1313494,
"author_profile": "https://Stackoverflow.com/users/1313494",
"pm_score": 0,
"selected": false,
"text": " CREATE TABLE [dbo].[BusData](\n [ID] [int] IDENTITY(1,1) NOT NULL,\n ... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21379/"
] |
148,403 | <p>Is it possible to convert UTF8 string in a std::string to std::wstring and vice versa in a platform independent manner? In a Windows application I would use MultiByteToWideChar and WideCharToMultiByte. However, the code is compiled for multiple OSes and I'm limited to standard C++ library.</p>
| [
{
"answer_id": 148419,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 2,
"selected": false,
"text": "codecvt codecvt<wchar_t, char, mbstate_t>"
},
{
"answer_id": 148665,
"author": "Constantin",
"author_id": 20... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22764/"
] |
148,407 | <p>Why does the code below return true only for a = 1?</p>
<pre><code>main(){
int a = 10;
if (true == a)
cout<<"Why am I not getting executed";
}
</code></pre>
| [
{
"answer_id": 148423,
"author": "paradoja",
"author_id": 18396,
"author_profile": "https://Stackoverflow.com/users/18396",
"pm_score": 6,
"selected": true,
"text": "main(){\n int a = 10;\n if (1 == a)\n cout<<\"y i am not getting executed\";\n }\n"
},
{
"answer_id": 1... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
148,421 | <p>I have a button on an ASP.NET wep application form and when clicked goes off and posts information a third party web service. </p>
<p>I have an UpdateProgress associated with the button. </p>
<p>how do disable/hide the button while the progress is visible (i.e. the server has not completed the operation) </p>
<p>... | [
{
"answer_id": 148440,
"author": "Davy Landman",
"author_id": 11098,
"author_profile": "https://Stackoverflow.com/users/11098",
"pm_score": 3,
"selected": true,
"text": "<div id=\"ButtonBar\">\n <asp:Button id= ............\n</div>\n <script language=\"javascript\">\n // Get a referenc... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11802/"
] |
148,441 | <p>If I have a script tag like this:</p>
<pre><code><script
id = "myscript"
src = "http://www.example.com/script.js"
type = "text/javascript">
</script>
</code></pre>
<p>I would like to get the content of the "script.js" file. I'm thinking about something like <code>document.getElementById("my... | [
{
"answer_id": 148450,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": -1,
"selected": false,
"text": "<script>"
},
{
"answer_id": 148675,
"author": "roenving",
"author_id": 23142,
"author_profile": "https:... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23423/"
] |
148,451 | <p>I would like to update a large number of C++ source files with an extra include directive before any existing #includes. For this sort of task, I normally use a small bash script with sed to re-write the file. </p>
<p>How do I get <code>sed</code> to replace just the first occurrence of a string in a file rather th... | [
{
"answer_id": 148473,
"author": "Ben Hoffstein",
"author_id": 4482,
"author_profile": "https://Stackoverflow.com/users/4482",
"pm_score": 8,
"selected": true,
"text": " # sed script to change \"foo\" to \"bar\" only on the first occurrence\n 1{x;s/^/first/;x;}\n 1,/foo/{x;/first/s///;x;... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5022/"
] |
148,478 | <p>I'm in the process of writing a Java 2D game. I'm using the built-in Java 2D drawing libraries, drawing on a Graphics2D I acquire from a BufferStrategy from a Canvas in a JFrame (which is sometimes full-screened). The BufferStrategy is double-buffered. Repainting is done actively, via a timer. I'm having some perfor... | [
{
"answer_id": 200493,
"author": "Zarkonnen",
"author_id": 15255,
"author_profile": "https://Stackoverflow.com/users/15255",
"pm_score": 5,
"selected": false,
"text": "GraphicsConfiguration.createCompatibleImage Canvas.createBufferStrategy -Dsun.java2d.opengl=True"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15255/"
] |
148,511 | <p>Suppose I have a LimitedValue class which holds a value, and is parameterized on int types 'min' and 'max'. You'd use it as a container for holding values which can only be in a certain range. You could use it such:</p>
<pre><code>LimitedValue< float, 0, 360 > someAngle( 45.0 );
someTrigFunction( someAngle ... | [
{
"answer_id": 148551,
"author": "Kasprzol",
"author_id": 5957,
"author_profile": "https://Stackoverflow.com/users/5957",
"pm_score": 5,
"selected": true,
"text": "template< typename T, int min, int max >class LimitedValue {\n template< int min2, int max2 >LimitedValue( const LimitedVa... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23434/"
] |
148,518 | <p>It seems the .NET Regex.Replace method automatically replaces all matching occurrences. I could provide a MatchEvaluator delegate that returns the matched string after the first replacement, rendering no change, but that sounds very inefficient to me.</p>
<p>What is the most efficient way to stop after the first r... | [
{
"answer_id": 148526,
"author": "bzlm",
"author_id": 7724,
"author_profile": "https://Stackoverflow.com/users/7724",
"pm_score": 6,
"selected": true,
"text": "Replace(String, String, Int32) \n"
},
{
"answer_id": 148561,
"author": "Community",
"author_id": -1,
"auth... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3347/"
] |
148,540 | <p>I'm trying to learn C++ so forgive me if this question demonstrates a lack of basic knowledge, you see, the fact is, I have a lack of basic knowledge.</p>
<p>I want some help working out how to create an iterator for a class I have created.</p>
<p>I have a class 'Shape' which has a container of Points.
I have a c... | [
{
"answer_id": 148562,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 6,
"selected": false,
"text": "// Your class `Piece`\nclass Piece {\nprivate:\n Shape m_shape;\n\npublic:\n\n typedef std::vector<Point>::iter... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23435/"
] |
148,568 | <p>I'm currently working on a school project, in java, and I'm coding a database application. Something like the MySQL Monitor where you type in queries and get results / whatever.</p>
<p>In applications I've coded before, I used databases to store data, like user profiles, settings, etc. Now, obviously, I can't use a... | [
{
"answer_id": 148827,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": -1,
"selected": false,
"text": "Map<String,List<Record>>"
},
{
"answer_id": 148840,
"author": "shadit",
"author_id": 9925,
"author_pro... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6618/"
] |
148,570 | <p>I have seen a few (old) posts on the 'net about hacking together some support for pre-compiled headers in CMake. They all seem a bit all-over the place and everyone has their own way of doing it. What is the best way of doing it currently?</p>
| [
{
"answer_id": 260367,
"author": "Dave Hillier",
"author_id": 1575281,
"author_profile": "https://Stackoverflow.com/users/1575281",
"pm_score": 4,
"selected": false,
"text": "myprecompiledheaders myproject_SOURCE_FILES if (MSVC)\n\n set_source_files_properties(myprecompiledheaders.cpp... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23439/"
] |
148,578 | <p>I have been doing some remote development using emacs tramp and found that it was quite slow. Every time I save a file, it takes about 10 seconds to complete the save. So, now I am using rsync to transfer the files remotely and it works much faster, it takes about a second plus the local saves from emacs are insta... | [
{
"answer_id": 148718,
"author": "Bryan Oakley",
"author_id": 7432,
"author_profile": "https://Stackoverflow.com/users/7432",
"pm_score": 2,
"selected": false,
"text": "While rsync performs much better than scp when transferring files that \nexist on both hosts, this advantage is lost if... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18415/"
] |
148,587 | <p>I am currently getting exceptions when modifying an IBindingList on multiple threads. Does anyone have a threadsafe version before I write my own?</p>
| [
{
"answer_id": 148639,
"author": "Ben Straub",
"author_id": 1319,
"author_profile": "https://Stackoverflow.com/users/1319",
"pm_score": 2,
"selected": false,
"text": "lock void AddItemToList(object o)\n{\n lock(myBindingList)\n {\n myBindingList.Add(o);\n }\n}\n"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23385/"
] |
148,594 | <p>Suppose I have a non-recurring event that needs to be raised X seconds from now such as a timeout. Intuitively it would make sense to create a System.Timers.Timer, set its interval to X*1000, wire its tick up to the event and start it. Since this is a non-recurring event and you only want it raised once you would ... | [
{
"answer_id": 148608,
"author": "Unsliced",
"author_id": 2902,
"author_profile": "https://Stackoverflow.com/users/2902",
"pm_score": 2,
"selected": false,
"text": "var worker = new BackgroundWorker();\nworker.DoWork += delegate {\n Thread.Sleep(30000); \n DoStuff();\n} \nworker.RunWor... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
148,601 | <p>Is it possible to access a constant value (i.e. a public static final variable defined in a Java class) from a Velocity template?</p>
<p>I would like to be able to write something like this:</p>
<pre><code>#if ($a lt Long.MAX_VALUE)
</code></pre>
<p>but this is apparently not the right syntax.</p>
| [
{
"answer_id": 148650,
"author": "Angelo van der Sijpt",
"author_id": 19144,
"author_profile": "https://Stackoverflow.com/users/19144",
"pm_score": 3,
"selected": false,
"text": "context.put(\"MaxLong\", Long.MAX_VALUE);\n"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4728/"
] |
148,648 | <p>i work with sql server, but i must migrate to an application with Oracle DB.
for trace my application queries, in Sql Server i use wonderful Profiler tool. is there something of equivalent for Oracle?</p>
| [
{
"answer_id": 148691,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 2,
"selected": false,
"text": "explain plan explain plan for <sql query>\n"
},
{
"answer_id": 22371322,
"author": "JaMeEL",
"author_id"... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19261/"
] |
148,662 | <p>Suppose I have one list:</p>
<pre><code>IList<int> originalList = new List<int>();
originalList.add(1);
originalList.add(5);
originalList.add(10);
</code></pre>
<p>And another list... </p>
<pre><code>IList<int> newList = new List<int>();
newList.add(1);
newList.add(5);
newList.add(7);
ne... | [
{
"answer_id": 148684,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 3,
"selected": false,
"text": "originalList = newList;\n originalList = new List<int>(newList);\n"
},
{
"answer_id": 148711,
"author": "... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6350/"
] |
148,669 | <p>This <strike>is clearly not</strike> appears like it wouldn't be a best practice. Can someone explain why it would not be a best practice or how this works? Any books or articles providing an explanation would be appreciated.</p>
<pre><code>//The constructor
public Page_Index() {
//create a local value
st... | [
{
"answer_id": 148688,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 6,
"selected": true,
"text": "class Foo {\n public string currentValue; // yes, it is a field\n\n public void SomeMethod(object sender, EventArgs ... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17091/"
] |
148,676 | <p>I'm writing a <a href="http://en.wikipedia.org/wiki/Windows_Forms" rel="noreferrer">Windows Forms</a> application which is supposed to play three sound files and at the end of each sound file, it's to change the source of an image.</p>
<p>I can get it to play the sounds using <code>System.Media.SoundPlayer</code>. ... | [
{
"answer_id": 865861,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "[DllImport(\"WinMM.dll\")]\npublic static extern bool PlaySound(byte[]wfname, int fuSound);\n\n// flag values for SoundFlags... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
148,681 | <p>I have a custom class loader so that a desktop application can dynamically start loading classes from an AppServer I need to talk to. We did this since the amount of jars that are required to do this are ridiculous (if we wanted to ship them). We also have version problems if we don't load the classes dynamically at... | [
{
"answer_id": 148762,
"author": "Georgi",
"author_id": 13209,
"author_profile": "https://Stackoverflow.com/users/13209",
"pm_score": 6,
"selected": false,
"text": "java.x sun.x"
},
{
"answer_id": 46758814,
"author": "Aleksander Drozd",
"author_id": 7454847,
"author_p... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13469/"
] |
148,689 | <p>Is there an iSeries command to export the data in a table to CSV format?</p>
<p>I know about the Windows utilities, but since this needs to be run automatically I need to run this from a CL program.</p>
| [
{
"answer_id": 148915,
"author": "Chris Smith",
"author_id": 9073,
"author_profile": "https://Stackoverflow.com/users/9073",
"pm_score": 1,
"selected": false,
"text": "Comma Separated Variable (CSV)"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23447/"
] |
148,704 | <p>I've got the following user control:</p>
<pre><code><TabItem
x:Name="Self"
x:Class="App.MyTabItem"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:app="clr-namespace:App"
>
<TabItem.Header>
... | [
{
"answer_id": 184582,
"author": "Bob King",
"author_id": 6897,
"author_profile": "https://Stackoverflow.com/users/6897",
"pm_score": 1,
"selected": false,
"text": "<TabItem \n x:Name=\"Self\"\n x:Class=\"App.MyTabItem\"\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/pre... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4918/"
] |
148,728 | <p>I'd like to add scrolling capability to a <code>javax.swing.JDesktopPane</code>. But wrapping in a <code>javax.swing.JScrollPane</code> does not produce the desired behavior.</p>
<p><a href="http://www.google.com/search?q=scrollable+jdesktoppane" rel="nofollow noreferrer">Searching the web</a> shows that this has b... | [
{
"answer_id": 148743,
"author": "Swati",
"author_id": 12682,
"author_profile": "https://Stackoverflow.com/users/12682",
"pm_score": 3,
"selected": false,
"text": "JScrollableDesktopPane."
},
{
"answer_id": 30873083,
"author": "Atta",
"author_id": 5016182,
"author_pro... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13940/"
] |
148,729 | <p>I have a couple of buttons of which I modified how they look. I have set them as flat buttons with a background and a custom border so they look all pretty and nothing like normal buttons anymore (actually, they look like Office 2003 buttons now ;-). The buttons have a border of one pixel.</p>
<p>However when the b... | [
{
"answer_id": 148848,
"author": "Michael L Perry",
"author_id": 7668,
"author_profile": "https://Stackoverflow.com/users/7668",
"pm_score": 5,
"selected": false,
"text": "public class NoFocusCueButton : Button\n{\n protected override bool ShowFocusCues\n {\n get\n {\... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
148,733 | <p>I want to be able to intercept the shutdown event in C# for Windows Vista. Due to the advanced security features with Vista, any applications that are running after the shutdown command is called are halted and displayed in a list, prompting the user to do something with them.</p>
<p>Does anybody know how to overc... | [
{
"answer_id": 148771,
"author": "Eduardo Campañó",
"author_id": 12091,
"author_profile": "https://Stackoverflow.com/users/12091",
"pm_score": 0,
"selected": false,
"text": "System.Environment.HasShutdownStarted\n"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11989/"
] |
148,742 | <p>In C# how do you detect is a specific drive is a Hard Drive, Network Drive, CDRom, or floppy?</p>
| [
{
"answer_id": 148753,
"author": "GEOCHET",
"author_id": 5640,
"author_profile": "https://Stackoverflow.com/users/5640",
"pm_score": 2,
"selected": false,
"text": "DriveInfo[] allDrives = DriveInfo.GetDrives();\n\nforeach (DriveInfo d in allDrives)\n{\n Console.WriteLine(\"Drive {0}\"... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13341/"
] |
148,747 | <p>What is the difference between a <strong><em>framework</em></strong> and a <strong><em>library</em></strong>? </p>
<p>I always thought of a library as a set of objects and functions that focuses on solving a particular problem or a specific area of application development (i.e. database access); and a framework on ... | [
{
"answer_id": 66808163,
"author": "yoAlex5",
"author_id": 4770877,
"author_profile": "https://Stackoverflow.com/users/4770877",
"pm_score": 0,
"selected": false,
"text": ".jar Library your code ->(has) Library API\n Framework Inversion of Control(IoC) container IoC your code ->(has) and... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20023/"
] |
148,764 | <p>In the vxWorks shell, there are a number of routines you can use to display information about the system. </p>
<p>These routines are usually referred to as <strong>show</strong> routines because they tend to have the form of "xxxShow".</p>
<p>Is there a list of these routines available?</p>
| [
{
"answer_id": 809782,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "> lkup \"Show\"\n"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10703/"
] |
148,786 | <p>I have an array of items that are time sensitive. After an amount of time, the last item needs to fall off and a new item is put at the beginning.</p>
<p>What is the best way to do this?</p>
| [
{
"answer_id": 148814,
"author": "user7375",
"author_id": 7375,
"author_profile": "https://Stackoverflow.com/users/7375",
"pm_score": 0,
"selected": false,
"text": "original = new[] { newItem }.Concat(\n original.Take(original.Count() - 1)).ToArray()\n"
},
{
"answer_id": 14882... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9516/"
] |
148,790 | <p>I've inherited a VB.net project that generates 2 DLLS: one for the web app, and another for the "business layer". This is for a sub-app of a larger web site. (Using VS2005).</p>
<p>The problem is that that something doesn't smell right with the DLL & namespace structure, and I'd like to know if there are any p... | [
{
"answer_id": 148861,
"author": "Stephen Wrighton",
"author_id": 7516,
"author_profile": "https://Stackoverflow.com/users/7516",
"pm_score": 1,
"selected": false,
"text": "using Foo.App.Foo;\nusing FooLib = FooLib.App.Foo;\n bar x = new bar();\n FooLib.bar x = new FooLib.bar();\n"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4782/"
] |
148,795 | <p>Selecting the union:</p>
<pre><code>select * from table1
union
select * from table1_backup
</code></pre>
<p>What is the query to select the intersection?</p>
| [
{
"answer_id": 148803,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "https://Stackoverflow.com/users/8435",
"pm_score": 3,
"selected": false,
"text": "select * from table1 \nintersect\nselect * from table1_backup\n"
},
{
"answer_id": 148837,
"author": "James C... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1765/"
] |
148,807 | <p>Is there a way to identify unused attributes/methods in Visual C++ 2008 Professional? If it's not possible by default, recommendations of 3rd-party tools are also much appreciated.</p>
<p>Thanks,<br>
Florian </p>
<p><strong>Edit:</strong> nDepend only works for .NET assemblies. I'm looking for something that can ... | [
{
"answer_id": 148883,
"author": "user7375",
"author_id": 7375,
"author_profile": "https://Stackoverflow.com/users/7375",
"pm_score": -1,
"selected": false,
"text": " WARN IF Count > 0 IN SELECT TOP 10 METHODS WHERE MethodCa == 0 AND \n !IsPublic AND !IsEntryPoint AND !IsExplicitInterf... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4445/"
] |
148,817 | <p>Is there a component available list FileUpload which shows files on the server, not the client? </p>
<p>I am basically looking for a clean dialog box to select server side files, like the one used in FileUpload.</p>
| [
{
"answer_id": 148913,
"author": "Stephen Wrighton",
"author_id": 7516,
"author_profile": "https://Stackoverflow.com/users/7516",
"pm_score": 1,
"selected": false,
"text": "public sub file_DatabindListbox(directoryPath as string)\n for each fName as string in io.directory(directorypath... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5836/"
] |
148,828 | <p>There are situations, where it is practical to have a type-cast return a null value instead of throwing a ClassCastException. C# has the <code>as</code> operator to do this. Is there something equivalent available in Java so you don't have to explicitly check for the ClassCastException?</p>
| [
{
"answer_id": 148841,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 4,
"selected": false,
"text": "instanceof is as if(myThing instanceof Foo) {\n Foo myFoo = (Foo)myThing; //Never throws ClassCastException\n ..... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23424/"
] |
148,838 | <p>I'm trying to get started writing some Ruby on Rails apps and have been successful with Mongrel but, I'd like to deploy my apps to my Apache 2.2 instance on Windows? All the tutorials I've found seem out of date and are for older versions of Apache/Rails.</p>
<p>Does anyone know of a good, current tutorial for con... | [
{
"answer_id": 148947,
"author": "Dave Nolan",
"author_id": 9474,
"author_profile": "https://Stackoverflow.com/users/9474",
"pm_score": 5,
"selected": true,
"text": "LoadModule proxy_module modules/mod_proxy.so\nLoadModule proxy_http_module modules/mod_proxy_http.so\n<VirtualHost localho... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2109/"
] |
148,853 | <p>Is there an easy way to cache things when using urllib2 that I am over-looking, or do I have to roll my own?</p>
| [
{
"answer_id": 149917,
"author": "Will Boyce",
"author_id": 5757,
"author_profile": "https://Stackoverflow.com/users/5757",
"pm_score": 4,
"selected": true,
"text": "class cache(object):\n def __init__(self, fun):\n self.fun = fun\n self.cache = {}\n\n def __call__(se... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17865/"
] |
148,854 | <p>I have a <code>DataGridView</code> with several created columns. I've add some rows and they get displayed correctly; however, when I click on a cell, the content disappears.</p>
<p>What am I doing wrong?</p>
<p>The code is as follows:</p>
<pre><code>foreach (SaleItem item in this.Invoice.SaleItems)
{
DataGri... | [
{
"answer_id": 887025,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "int i;\ni = gridViewParts.Rows.Add( new DataGridViewRow());\n\nDataGridViewCell cellQuantity = new DataGridViewTextBoxCell();\... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3086/"
] |
148,857 | <p>I have a function, parseQuery, that parses a SQL query into an abstract representation of that query.</p>
<p>I'm about to write a function that takes an abstract representation of a query and returns a SQL query string.</p>
<p>What should I call the second function?</p>
| [
{
"answer_id": 149343,
"author": "Henry B",
"author_id": 6414,
"author_profile": "https://Stackoverflow.com/users/6414",
"pm_score": 3,
"selected": false,
"text": "parseAbstract"
},
{
"answer_id": 1596671,
"author": "Filini",
"author_id": 21162,
"author_profile": "htt... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15371/"
] |
148,867 | <p>I have been googling for a good time on how to move a file with c# using the TFS API. The idea is to have a folder on which the developers drop database upgrade scripts and the build process get's to the folder creates a build script and moves all the files on the folder to a new folder with the database build versi... | [
{
"answer_id": 149071,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 4,
"selected": false,
"text": "Microsoft.TeamFoundation.VersionControl.Client.Workspace workspace = GetMyTfsWorkspace();\nworkspace.PendRename( oldPath, new... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23460/"
] |
148,875 | <p>In an OLAP database I work with there is a 'Location' hierarchy consisting of the levels Company -> Region -> Area -> Site -> Room. I am using the following MDX to get all the descendants of a particular member at company level.</p>
<pre><code>DESCENDANTS([Location].[Test Company],[Location].[Site], SELF_AND_BEFORE... | [
{
"answer_id": 148897,
"author": "Magnus Smith",
"author_id": 11461,
"author_profile": "https://Stackoverflow.com/users/11461",
"pm_score": 6,
"selected": true,
"text": "EXCEPT(\n{DESCENDANTS([Location].[Test Company],[Location].[Site], SELF_AND_BEFORE)},\n{DESCENDANTS([Location].[Whatev... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7585/"
] |
148,879 | <p>My .NET application fails when run from a network drive even when the very same executable runs perfectly fine from a local hard drive?</p>
<p>I tried checking for "Full trust" like so:</p>
<pre><code>try
{
// Demand full trust permissions
PermissionSet fullTrust = new PermissionSet( PermissionState.Unrest... | [
{
"answer_id": 148898,
"author": "Ben Hoffstein",
"author_id": 4482,
"author_profile": "https://Stackoverflow.com/users/4482",
"pm_score": 4,
"selected": false,
"text": "cd c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\nCasPol.exe -m -ag 1.2 -url file:///N:/your/network/path/* FullTr... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23461/"
] |
148,882 | <p>I'm working on some code that uses a pattern in its business and data tiers that uses events to signal errors e.g. </p>
<pre><code>resource = AllocateLotsOfMemory();
if (SomeCondition())
{
OnOddError(new OddErrorEventArgs(resource.StatusProperty));
resource.FreeLotsOfMemory();
return;
}
</code><... | [
{
"answer_id": 148920,
"author": "Sam Saffron",
"author_id": 17174,
"author_profile": "https://Stackoverflow.com/users/17174",
"pm_score": 2,
"selected": false,
"text": "using(var resource = AllocateLotsOfMemory())\n{\n if(something_bad_happened) \n {\n throw new SomeThingBadExce... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3546/"
] |
148,901 | <p>I've always handled optional parameters in JavaScript like this:</p>
<pre><code>function myFunc(requiredArg, optionalArg){
optionalArg = optionalArg || 'defaultValue';
// Do stuff
}
</code></pre>
<p>Is there a better way to do it?</p>
<p>Are there any cases where using <code>||</code> like that is going to f... | [
{
"answer_id": 148918,
"author": "Paul Dixon",
"author_id": 6521,
"author_profile": "https://Stackoverflow.com/users/6521",
"pm_score": 11,
"selected": true,
"text": "if (typeof optionalArg === 'undefined') { optionalArg = 'default'; }\n optionalArg = (typeof optionalArg === 'undefined')... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305/"
] |
148,902 | <p>I have some commits that I've decided, after the fact, are going to be more branch work then trunk work. How do I create the branch and revert the trunk while still ensuring merging isn't painful later?</p>
<p>Is it as simple as copying the current trunk to a branch and reverting the trunk? Or will this create head... | [
{
"answer_id": 149396,
"author": "Jean",
"author_id": 7898,
"author_profile": "https://Stackoverflow.com/users/7898",
"pm_score": 0,
"selected": false,
"text": "svn copy trunk branch # create your branch while preserving history\nsvn copy trunk@100 trunk #replace current revision with re... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
148,908 | <p>I am thinking about using Microsoft Unity for my Dependency Injection tool in our User Interface.</p>
<p>Our Middle Tier already uses Castle Windsor, but I am thinking I should stick with Microsoft.</p>
<p>Does anyone have any thoughts about what the best Dependency Injection tool is? </p>
<ul>
<li><a href="http:... | [
{
"answer_id": 346403,
"author": "Xian",
"author_id": 4642,
"author_profile": "https://Stackoverflow.com/users/4642",
"pm_score": 6,
"selected": false,
"text": "ILogger -> typeof(FileLogger) ILogger -> new FileLogger() IDisposable BasePage IDisposable BasePage"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4481/"
] |
148,945 | <p>We let users create ad-hoc queries in our website. We would like to have the user select their criteria, then click submit and have the results streamed automatically to Excel. I have the application populating a DataTable, then using the datatable to create a tab delimited string. The problem is getting that to ... | [
{
"answer_id": 148962,
"author": "Stephen Wrighton",
"author_id": 7516,
"author_profile": "https://Stackoverflow.com/users/7516",
"pm_score": 4,
"selected": true,
"text": "//for demo purpose, lets create a small datatable & populate it with dummy data\nSystem.Data.DataTable workTable = n... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/681/"
] |
148,951 | <p>I'm trying to use <code>mysqldump</code> to dump a schema, and it mostly works but I ran into one curiosity: the <code>-p</code> or <code>--password</code> option seems like it is doing something other than setting the password (as the <code>man</code> page and <code>--help</code> output say it should).</p>
<p>Spec... | [
{
"answer_id": 148984,
"author": "antik",
"author_id": 1625,
"author_profile": "https://Stackoverflow.com/users/1625",
"pm_score": 7,
"selected": true,
"text": "mysqldump lose --password=lose -plose -p --password"
},
{
"answer_id": 148989,
"author": "Steve Baker",
"author... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4323/"
] |
148,963 | <p>Keeping the GUI responsive while the application does some CPU-heavy processing is one of the challenges of effective GUI programming.</p>
<p><a href="http://wiki.wxpython.org/LongRunningTasks" rel="noreferrer">Here's a good discussion</a> of how to do this in wxPython. To summarize, there are 3 ways:</p>
<ol>
<li... | [
{
"answer_id": 378778,
"author": "uhz",
"author_id": 1369629,
"author_profile": "https://Stackoverflow.com/users/1369629",
"pm_score": 2,
"selected": false,
"text": "delayedresult"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8206/"
] |
148,968 | <p>As I understand it, <code>.bat</code> is the old 16-bit naming convention, and <code>.cmd</code> is for 32-bit Windows, i.e., starting with NT. But I continue to see .bat files everywhere, and they seem to work exactly the same using either suffix. Assuming that my code will never need to run on anything older than ... | [
{
"answer_id": 149007,
"author": "Waldo",
"author_id": 21687,
"author_profile": "https://Stackoverflow.com/users/21687",
"pm_score": -1,
"selected": false,
"text": "COMMAND.COM CMD.EXE"
},
{
"answer_id": 149810,
"author": "Patrick Cuff",
"author_id": 7903,
"author_pro... | 2008/09/29 | [
"https://Stackoverflow.com/questions/148968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14749/"
] |
148,977 | <p>What is the keyboard-shortcut that expands the menu, from the little red line, and offers the option to have the necessary <code>using</code> statement appended to the top of the file?</p>
| [
{
"answer_id": 58354338,
"author": "Slobodan Stanković",
"author_id": 4426286,
"author_profile": "https://Stackoverflow.com/users/4426286",
"pm_score": 0,
"selected": false,
"text": "List <"
}
] | 2008/09/29 | [
"https://Stackoverflow.com/questions/148977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3268/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.