qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
203,383 | <p>I get obsessed with the best names for arrays and variables that I use, I'll look up words in the thesaurus, dictionary, etc..</p>
<p>So I'm trying to name this array / structure:</p>
<pre><code>$nameMe = array(
'392' => TRUE,
'234' => TRUE,
'754' => TRUE,
'464' => TRUE,
);
</code></pre... | [
{
"answer_id": 203414,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 3,
"selected": true,
"text": "$hasProperty[$id]\n $isSomething[$id]\n $isOdd[$id]\n$isWriteable[$id]\n$hasAssociatedFile[$id]\n"
},
{
"answer_id"... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5261/"
] |
203,384 | <p>Various programs can do stuff only when you haven't used the computer for a while (eg screensaver, Google Desktop indexing, etc).</p>
<p>How do they know when it has been inactive? Is there some function in Windows that tells you how long it has been inactive, or do you have to use some kind of keyboard/mouse hook ... | [
{
"answer_id": 203410,
"author": "Bill",
"author_id": 14547,
"author_profile": "https://Stackoverflow.com/users/14547",
"pm_score": 0,
"selected": false,
"text": "using System;\nusing System.Runtime.InteropServices;\nusing System.Threading;\nusing System.Windows.Forms;\n\nnamespace Examp... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4495/"
] |
203,397 | <p>Is there a way to change the context sensitive help in Visual Studio so that it will only search against the text under the caret instead of a compilation error in your code?</p>
<p>More info:
After you compile and receive a compilation error(underlined), placing the caret within the underlined text and pressing <kb... | [
{
"answer_id": 211389,
"author": "Robin Bennett",
"author_id": 27794,
"author_profile": "https://Stackoverflow.com/users/27794",
"pm_score": 3,
"selected": true,
"text": "int myInt = new int(3);\n"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/203397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4490/"
] |
203,399 | <p>I'm running a MySQL database locally for development, but deploying to Heroku which uses Postgres. Heroku handles almost everything, but my case-insensitive Like statements become case sensitive. I could use iLike statements, but my local MySQL database can't handle that.</p>
<p>What is the best way to write a case... | [
{
"answer_id": 203419,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 7,
"selected": true,
"text": "select * from foo where upper(bar) = upper(?);\n"
},
{
"answer_id": 203428,
"author": "Adam Pierce",
"au... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23885/"
] |
203,425 | <p>What's the ASP equivalent to PHP's <code>.=</code> when concatenating strings? I'm referring to asp NOT asp.net.</p>
<p>I meant to specify that I'm in a for-loop. So I want to know the equivalent for <code>.=</code> (in php) not standard concatenation.</p>
<p><em>Example:</em></p>
<pre><code>For Each Item In Requ... | [
{
"answer_id": 203429,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 3,
"selected": false,
"text": "Variable = Variable & \"something more\"\n variable += \"something more\";\n service = service & \"&service=\" & Request.For... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
203,446 | <p>Does anyone know the format of the MAPI property <code>PR_SEARCH_KEY</code>?</p>
<p>The <a href="http://msdn.microsoft.com/en-us/library/ms529414(EXCHG.10).aspx" rel="nofollow noreferrer">online documentation</a> has this to say about it:</p>
<blockquote>
<p>The search key is formed by
concatenating the addres... | [
{
"answer_id": 206432,
"author": "Henk",
"author_id": 4613,
"author_profile": "https://Stackoverflow.com/users/4613",
"pm_score": 3,
"selected": true,
"text": "PR_SEARCH_KEY PR_SEARCH_KEY PR_SEARCH_KEY PR_SEARCH_KEY"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/203446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18437/"
] |
203,456 | <p>I can get the executable location from the process, how do I get the icon from file?</p>
<p>Maybe use windows api LoadIcon(). I wonder if there is .NET way...</p>
| [
{
"answer_id": 203490,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 6,
"selected": true,
"text": "Icon ico = Icon.ExtractAssociatedIcon(theProcess.MainModule.FileName);\n"
},
{
"answer_id": 203517,
"au... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44972/"
] |
203,468 | <p>Ok, so I'm looking for a bit of architecture guidance, my team is getting a chance to re-cast certain decisions with a new feature that we're building, and I wanted to see what SO thought :-) There are of course certain things that we're not changing, so the solution would have to fit in this model. Namely, that we... | [
{
"answer_id": 203490,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 6,
"selected": true,
"text": "Icon ico = Icon.ExtractAssociatedIcon(theProcess.MainModule.FileName);\n"
},
{
"answer_id": 203517,
"au... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5416/"
] |
203,469 | <p>How do you use enums in Oracle using SQL only? (No PSQL)</p>
<p>In MySQL you can do:</p>
<pre><code>CREATE TABLE sizes (
name ENUM('small', 'medium', 'large')
);
</code></pre>
<p>What would be a similar way to do this in Oracle?</p>
| [
{
"answer_id": 203547,
"author": "Justin Cave",
"author_id": 10397,
"author_profile": "https://Stackoverflow.com/users/10397",
"pm_score": 7,
"selected": true,
"text": "CREATE TABLE sizes (\n name VARCHAR2(10) CHECK( name IN ('small','medium','large') )\n);\n CREATE TABLE valid_names (\... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
203,473 | <p>I have a Crystal Report that looks like:</p>
<p><em>Date | Person | Ticket | Summary <br>
Date | Person | Ticket | Summary <br>
Date | Person | Ticket | Summary</em> </p>
<p>I would like it to look like: </p>
<p><em>Date <br>
Person | Ticket | Summary <br>
Person | Ticket | Summary <br><br>
Date <br>
Person | Ti... | [
{
"answer_id": 203547,
"author": "Justin Cave",
"author_id": 10397,
"author_profile": "https://Stackoverflow.com/users/10397",
"pm_score": 7,
"selected": true,
"text": "CREATE TABLE sizes (\n name VARCHAR2(10) CHECK( name IN ('small','medium','large') )\n);\n CREATE TABLE valid_names (\... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8900/"
] |
203,475 | <p>In my code, I am creating a collection of objects which will be accessed by various threads in a fashion that is only safe if the objects are immutable. When an attempt is made to insert a new object into my collection, I want to test to see if it is immutable (if not, I'll throw an exception).</p>
<p>One thing I c... | [
{
"answer_id": 203504,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 3,
"selected": false,
"text": "@Immutable"
},
{
"answer_id": 203506,
"author": "Pablo Fernandez",
"author_id": 7595,
"author_profil... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14570/"
] |
203,477 | <p>I'm using KML and the GGeoXml object to overlay some shapes on an embedded Google map. The placemarks in the KML file have some custom descriptive information that shows up in the balloons.</p>
<pre><code><Placemark>
<name />
<description>
<![CDATA[
<div class=&quo... | [
{
"answer_id": 208902,
"author": "Herb Caudill",
"author_id": 239663,
"author_profile": "https://Stackoverflow.com/users/239663",
"pm_score": 4,
"selected": true,
"text": "<div style=\"font-family: Arial,sans-serif; font-size: small;\">\n <div id=\"iw_kml\">\n <div>\n ... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
203,493 | <p>I know that it <em>does</em> consider ' ' as <code>NULL</code>, but that doesn't do much to tell me <em>why</em> this is the case. As I understand the SQL specifications, ' ' is not the same as <code>NULL</code> -- one is a valid datum, and the other is indicating the absence of that same information.</p>
<p>Feel ... | [
{
"answer_id": 203536,
"author": "Justin Cave",
"author_id": 10397,
"author_profile": "https://Stackoverflow.com/users/10397",
"pm_score": 9,
"selected": true,
"text": "VARCHAR VARCHAR2 NULL NULL NULL VARCHAR VARCHAR2"
},
{
"answer_id": 29209211,
"author": "Sorter",
"auth... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23309/"
] |
203,495 | <p>My organization is working on building RESTful webservices on JBoss appserver. The QA team is used to testing SOAP webservices so far using SoapUI. SoapUI has a new version that has REST capabilities. We're considering using that.</p>
<ol>
<li>Are there any publicly available RESTful services available on the net f... | [
{
"answer_id": 203601,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 4,
"selected": false,
"text": "urllib urllib2 unittest class TestSomeREST( unittest.TestCase ):\n def setUp(self):\n REALM = \"blah@blah.com\"\n... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11142/"
] |
203,520 | <p>I have what must be a typical catch-22 problem. I have a .NET WinForm control that contains a textbox and a checkbox. Both controls are data bound to properties on a data class instance. The textbox is for price, the check box to indicate that the price is a price override. Also on the data class is a property t... | [
{
"answer_id": 203920,
"author": "Tom Juergens",
"author_id": 2899,
"author_profile": "https://Stackoverflow.com/users/2899",
"pm_score": 2,
"selected": false,
"text": "Private _dc As DataClass\n\nPrivate Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5496/"
] |
203,528 | <p>When I build XML up from scratch with <code>XmlDocument</code>, the <code>OuterXml</code> property already has everything nicely indented with line breaks. However, if I call <code>LoadXml</code> on some very "compressed" XML (no line breaks or indention) then the output of <code>OuterXml</code> stays that way. So... | [
{
"answer_id": 203533,
"author": "DocMax",
"author_id": 6234,
"author_profile": "https://Stackoverflow.com/users/6234",
"pm_score": 6,
"selected": false,
"text": "XmlDocument doc = new XmlDocument();\ndoc.LoadXml(\"<item><name>wrench</name></item>\");\n// Save the document to a file and ... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9642/"
] |
203,543 | <p>I recently had to work on a project where the previous developer modified the wp-admin directory. It seems like a bad idea to me, since Wordpress is constantly updated. Am I just not at that level of expertise with modifying Wordpress?</p>
| [
{
"answer_id": 203662,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://Stackoverflow.com/users/11438",
"pm_score": 3,
"selected": false,
"text": "siteurl"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/203543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/65465/"
] |
203,548 | <p>I've been getting this undefined symbol building with this command line:</p>
<pre><code>$ gcc test.cpp
Undefined symbols:
"___gxx_personality_v0", referenced from:
etc...
</code></pre>
<p>test.cpp is simple and should build fine. What is the deal?</p>
| [
{
"answer_id": 203550,
"author": "ryan_s",
"author_id": 13728,
"author_profile": "https://Stackoverflow.com/users/13728",
"pm_score": 7,
"selected": true,
"text": "g++ test.cpp\n gcc -lstdc++ gcc test.cpp -lstdc++\n md5 a.out g++"
},
{
"answer_id": 1626030,
"author": "pseudos... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13728/"
] |
203,589 | <p>I have an iPhone app that compiles and runs fine in the Simulator on my laptop. Now, I try to build and run the same code in the Simulator on an iMac, and it starts up and lets me click a button, but then I get an assertion failure.</p>
<p>Here is what is in the console:</p>
<pre><code>*** Assertion failure in -[... | [
{
"answer_id": 10255142,
"author": "user102008",
"author_id": 102008,
"author_profile": "https://Stackoverflow.com/users/102008",
"pm_score": 0,
"selected": false,
"text": "[UIFont fontWithName:fontSize:] Helvatica Bold Helvetica-Bold Helvatica Bold Helvetica-Bold"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/203589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
203,605 | <p>I'm looking for a way to match only fully composed characters in a Unicode string.</p>
<p>Is <code>[:print:]</code> dependent upon locale in any regular expression implementation that incorporates this character class? For example, will it match Japanese character 'あ', since it is not a control character, or is <co... | [
{
"answer_id": 203623,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 1,
"selected": false,
"text": "[^[:cntrl:]]"
},
{
"answer_id": 203801,
"author": "Tanktalus",
"author_id": 23512,
"author_profi... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10320/"
] |
203,616 | <p>The <a href="http://www.cplusplus.com/doc/tutorial/inheritance/" rel="noreferrer">C++ friend keyword</a> allows a <code>class A</code> to designate <code>class B</code> as its friend. This allows <code>Class B</code> to access the <code>private</code>/<code>protected</code> members of <code>class A</code>.</p>
<p>... | [
{
"answer_id": 203813,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 6,
"selected": false,
"text": "[InternalsVisibleTo]"
},
{
"answer_id": 4577298,
"author": "Nick Alexeev",
"author_id": 279844,
"... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5023/"
] |
203,618 | <ul>
<li>What rules do you use to name your variables?</li>
<li>Where are single letter vars allowed?</li>
<li>How much info do you put in the name?</li>
<li>How about for example code?</li>
<li>What are your preferred meaningless variable names? (after foo & bar)</li>
<li>Why are they spelled <a href="http://en.wi... | [
{
"answer_id": 203648,
"author": "Tony BenBrahim",
"author_id": 80075,
"author_profile": "https://Stackoverflow.com/users/80075",
"pm_score": 6,
"selected": false,
"text": "function startEditing(){\n if (user.canEdit(currentDocument)){\n editorControl.setEditMode(true);\n set... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
203,620 | <p>I need ideas on how to go about table layout problem.
I want to set different width of the columns dependent on the picked language.</p>
| [
{
"answer_id": 203647,
"author": "cdeszaq",
"author_id": 20770,
"author_profile": "https://Stackoverflow.com/users/20770",
"pm_score": 2,
"selected": true,
"text": "<%\ndim columnWidth\nif session(\"lang\") = \"eng\" then\n columnWidth = 50\nelse\n columnWidth = 100\nend if\n%>\n\n... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28098/"
] |
203,629 | <p>Has anyone used OSGi and JSF together?</p>
<p>I ask because JSF uses class-loader magic to find custom components. From a tutorial (emphasis mine):</p>
<blockquote>
<p>This configuration file will end up
being META-INF/faces-config.xml in the
.jar file that represents this
component. <strong>JSF will look ... | [
{
"answer_id": 203647,
"author": "cdeszaq",
"author_id": 20770,
"author_profile": "https://Stackoverflow.com/users/20770",
"pm_score": 2,
"selected": true,
"text": "<%\ndim columnWidth\nif session(\"lang\") = \"eng\" then\n columnWidth = 50\nelse\n columnWidth = 100\nend if\n%>\n\n... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1666/"
] |
203,677 | <p>Just got a question about generics, why doesn't this compile when using a generic List? If its not possible, anyway around it? Much appreciate any answer.</p>
<pre><code>// Interface used in the ServiceAsync inteface.
public interface BaseObject
{
public String getId();
}
// Class that implements the interface... | [
{
"answer_id": 203741,
"author": "Aaron",
"author_id": 3752,
"author_profile": "https://Stackoverflow.com/users/3752",
"pm_score": 2,
"selected": false,
"text": " ServiceAsync service = (some implementation);\n MyAsync<List<? extends BaseObject>> callBack = new MyAsync<List<? extends... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28108/"
] |
203,684 | <p>I need to parse recipe ingredients into amount, measurement, item, and description as applicable to the line, such as 1 cup flour, the peel of 2 lemons and 1 cup packed brown sugar etc. What would be the best way of doing this? I am interested in using python for the project so I am assuming using the nltk is the be... | [
{
"answer_id": 204013,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": -1,
"selected": false,
"text": "1 cup flour\n2 lemon peels\n1 cup packed brown sugar\n"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/203684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18926/"
] |
203,695 | <p>When you create an instance of a class with the <code>new</code> operator, memory gets allocated on the heap. When you create an instance of a struct with the <code>new</code> operator where does the memory get allocated, on the heap or on the stack ?</p>
| [
{
"answer_id": 204009,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 9,
"selected": true,
"text": "new new new Guid() new Guid(someString) new(...) Guid localVariable = new Guid(someString);\n myInstanceOrStaticVariable ... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18709/"
] |
203,707 | <p>The following two forms of jQuery selectors seem to do the same thing:</p>
<ul>
<li>$("div > ul.posts") </li>
<li>$("div ul.posts")</li>
</ul>
<p>which is to select all the "ul" elements of class "posts" under "div" elements.</p>
<p>Is there any difference?</p>
| [
{
"answer_id": 203710,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 3,
"selected": false,
"text": "<div>\n <blockquote>\n <ul class=\"posts\"></ul>\n </blockquote>\n</div>\n"
},
{
"answer_id": ... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6225/"
] |
203,739 | <pre><code>"foo" instanceof String //=> false
"foo" instanceof Object //=> false
true instanceof Boolean //=> false
true instanceof Object //=> false
false instanceof Boolean //=> false
false instanceof Object //=> false
12.21 instanceof Number //=> false
/foo/ instanceof RegE... | [
{
"answer_id": 203757,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 10,
"selected": true,
"text": "var color1 = new String(\"green\");\ncolor1 instanceof String; // returns true\nvar color2 = \"coral\";\ncolor2 instan... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15031/"
] |
203,754 | <p>I have a thread running in the background that is reading events from an input device in a blocking fashion, now when I exit the application I want to clean up the thread properly, but I can't just run a pthread_join() because the thread would never exit due to the blocking IO.</p>
<p>How do I properly solve that s... | [
{
"answer_id": 203902,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "select()"
},
{
"answer_id": 204027,
"author": "bog",
"author_id": 20909,
"author_profile": "https://Stacko... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28113/"
] |
203,771 | <p>I have been using CPPUnit as a unit testing framework and am now trying to use it in an automated build and package system. However a problem holding me back is that if a crash occurs during the running of the unit tests, e.g. a null pointer dereferencing, it halts the remainder of the automation.</p>
<p>Is there ... | [
{
"answer_id": 203889,
"author": "philant",
"author_id": 18804,
"author_profile": "https://Stackoverflow.com/users/18804",
"pm_score": 3,
"selected": true,
"text": "class TestObject : public CPPUNIT_NS::TestCase\n{\n CPPUNIT_TEST_SUITE(Test);\n CPPUNIT_TEST(testObjectIsReady);\n CPPUN... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10247/"
] |
203,787 | <p>I have an object, that is facing a particular direction with (for instance) a 45 degree field of view, and a limit view range. I have done all the initial checks (Quadtree node, and distance), but now I need to check if a particular object is within that view cone, (In this case to decide only to follow that object ... | [
{
"answer_id": 203802,
"author": "Federico A. Ramponi",
"author_id": 18770,
"author_profile": "https://Stackoverflow.com/users/18770",
"pm_score": 4,
"selected": true,
"text": "arccos(scalarProduct(viewDirection, (object - you)) / (norm(viewDirection)*norm(object - you))).\n"
},
{
... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24793/"
] |
203,807 | <p>I have a VB application which extracts data and creates 3 CSV files (a.csv, b.csv, c.csv). Then I use another Excel spreadsheet (import.xls) to import all the data from the above CSV files into this sheet.</p>
<p>import.xls file has a macro which opens the CSV files one by one and copies the data. The problem I am ... | [
{
"answer_id": 203814,
"author": "Mark",
"author_id": 26310,
"author_profile": "https://Stackoverflow.com/users/26310",
"pm_score": 4,
"selected": true,
"text": "Format(DateText, \"dd/mm/yyyy\")\n"
},
{
"answer_id": 264992,
"author": "Community",
"author_id": -1,
"aut... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12178/"
] |
203,809 | <p>This might be a little hard to explain, but I will try.</p>
<p>I want to display a list of categories (stored in 1 table), and number of domains associated with each category (stored in another table). </p>
<p>The monkey wrench in this case is that each domain has a set of records associated with it (which are sto... | [
{
"answer_id": 203815,
"author": "AquilaX",
"author_id": 17734,
"author_profile": "https://Stackoverflow.com/users/17734",
"pm_score": 0,
"selected": false,
"text": "SELECT c.name, count(d.id)\nFROM categories c\nJOIN domains d ON c.id = d.cid\nJOIN records r ON r.did = d.id\nGROUP BY c.... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
203,823 | <p>One of classes in my program uses some third-party library. Library object is a private member of my class:</p>
<pre><code>// My.h
#include <3pheader.h>
class My
{
...
private:
3pObject m_object;
}
</code></pre>
<p>The problem with this - any other unit in my program that use... | [
{
"answer_id": 203830,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 4,
"selected": true,
"text": "// header\nclass My\n{\n class impl;\n std::auto_ptr<impl> _impl;\n};\n\n// cpp\n#include <3pheader.h>\nclass My::... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18174/"
] |
203,837 | <p>I am trying to use a StreamReader to read a file, but it is always in use by another process so I get this error:</p>
<blockquote>
<p>The process cannot access the file
'\arfjwknasgmed17\C$\FLAG
CONDITION\CP-ARFJN-FLAG.XLS' because
it is being used by another process.</p>
</blockquote>
<p>Is there a way I ... | [
{
"answer_id": 9123879,
"author": "JST",
"author_id": 1076973,
"author_profile": "https://Stackoverflow.com/users/1076973",
"pm_score": 2,
"selected": false,
"text": "FileStream fileStr = File.Open(<full file name>, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);\nfileStream = new ... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14777/"
] |
203,844 | <p>I have a form with multiple fields that I'm validating (some with methods added for custom validation) with Jörn Zaeffere's excellent jQuery Validation plugin. How do you circumvent validation with specified submit controls (in other words, fire validation with some submit inputs, but do not fire validation with oth... | [
{
"answer_id": 203989,
"author": "redsquare",
"author_id": 6440,
"author_profile": "https://Stackoverflow.com/users/6440",
"pm_score": 9,
"selected": true,
"text": "cancel <input class=\"cancel\" type=\"submit\" value=\"Save\" />\n formnovalidate <input formnovalidate=\"formnovalidate\" ... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9344/"
] |
203,854 | <p>Example. 123456, and we want the third from the right ('4') out.</p>
<p>The idea in practise is to access each digit seperately (ie. 6 5 4 3 2 1).</p>
<p>C/C++/C# preferred.</p>
| [
{
"answer_id": 203864,
"author": "SmacL",
"author_id": 22564,
"author_profile": "https://Stackoverflow.com/users/22564",
"pm_score": -1,
"selected": false,
"text": "char nthDigitFromRight(int x,int n)\n{\n char str[20];\n sprintf(str,\"%020d\",x);\n return(str[19 - x]);\n}\n"
... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24661/"
] |
203,859 | <p>Markdown is a great tool for formatting plain text into pretty html, but it doesn't turn plain-text links into URLs automatically. Like this one:</p>
<p><a href="http://www.google.com/" rel="noreferrer">http://www.google.com/</a></p>
<p>How do I get markdown to add tags to URLs when I format a block of text?</p>
| [
{
"answer_id": 203870,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 2,
"selected": false,
"text": "AutoLink"
},
{
"answer_id": 206486,
"author": "andrewrk",
"author_id": 432,
"author_profile": "htt... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/432/"
] |
203,863 | <p>I am getting this warning: "Missing XML comment for publicly visible type or member".</p>
<p>How to solve this?</p>
| [
{
"answer_id": 203871,
"author": "Matthias Meid",
"author_id": 17713,
"author_profile": "https://Stackoverflow.com/users/17713",
"pm_score": 5,
"selected": false,
"text": "/// <summary>\n/// Describe your member here.\n/// </summary>\npublic string Something\n{\n get;\n set;\n}\n"
... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
203,890 | <p>How do I generate an audio sine or square wave of a given frequency?</p>
<p>I am hoping to do this to calibrate equipment, so how precise would these waves be?</p>
| [
{
"answer_id": 203917,
"author": "Mark Heath",
"author_id": 7532,
"author_profile": "https://Stackoverflow.com/users/7532",
"pm_score": 6,
"selected": true,
"text": "int sampleRate = 8000;\nshort[] buffer = new short[8000];\ndouble amplitude = 0.25 * short.MaxValue;\ndouble frequency = 1... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5302/"
] |
203,911 | <p>I am using Java API and XPath to parse my XML. I have XML like this:</p>
<pre><code><animals>
<dog>
<looks>dangerous </looks>
<bites> hard </bites>
<growls> yes </growls>
</dog>
<cat>nothing special</cat>
</animals>
</code>... | [
{
"answer_id": 204526,
"author": "bortzmeyer",
"author_id": 15625,
"author_profile": "https://Stackoverflow.com/users/15625",
"pm_score": 1,
"selected": false,
"text": "% xpath -e /animals/dog animals.xml \nFound 1 nodes in animals.xml:\n-- NODE --\n<dog>\n <looks>dangerous </looks> \n... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25458/"
] |
203,912 | <p>What is the difference between multiprocessor programming and multicore programming?</p>
<p>Preferably show examples in python how to write a small program for multiprocessor programming & multicore programming</p>
| [
{
"answer_id": 204150,
"author": "Glyph",
"author_id": 13564,
"author_profile": "https://Stackoverflow.com/users/13564",
"pm_score": 7,
"selected": false,
"text": "threading processing multiprocessing subprocess"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/203912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20211/"
] |
203,918 | <p>Been creating a simple program using VBA that I can use to review vocabulary in Chinese.</p>
<p>I've gotten a fair bit working so far, but have run into a huge problem with inputting a macron-character such as "ā" (unicode 257). The specific application I am working on right now involves changing the contents of t... | [
{
"answer_id": 203946,
"author": "Ozgur Ozcitak",
"author_id": 976,
"author_profile": "https://Stackoverflow.com/users/976",
"pm_score": 2,
"selected": false,
"text": "Mid(strclip, markloc, 1) = ChrW(257)\n"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/203918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
203,930 | <p>Kinda long title, but anyways...</p>
<p>I've been looking at these examples, specifically on the parts on writing and reading the size of the message to the byte streams<br>
<a href="http://doc.trolltech.com/4.4/network-fortuneclient-client-cpp.html" rel="nofollow noreferrer">http://doc.trolltech.com/4.4/network-fo... | [
{
"answer_id": 203934,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 1,
"selected": false,
"text": "data.Length writer.Write(chr(data.Length) + data);\n"
},
{
"answer_id": 203962,
"author": "Marc Gravell",
... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15067/"
] |
203,969 | <p>How do you get an instance of the actionscript class <code>Class</code> from an instance of that class?</p>
<p>In Python, this would be <code>x.__class__</code>; in Java, <code>x.getClass();</code>.</p>
<p>I'm aware that <a href="http://actionscript.org/forums/showthread.php3?t=120135#td_post_545693" rel="noreferr... | [
{
"answer_id": 204003,
"author": "fenomas",
"author_id": 10651,
"author_profile": "https://Stackoverflow.com/users/10651",
"pm_score": 4,
"selected": false,
"text": "var s:Sprite = new flash.display.Sprite();\n\nvar className:String = flash.utils.getQualifiedClassName( s );\nvar myClass:... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13564/"
] |
203,984 | <p>I have an <code>ArrayList<String></code>, and I want to remove repeated strings from it. How can I do this?</p>
| [
{
"answer_id": 203992,
"author": "jonathan-stafford",
"author_id": 27587,
"author_profile": "https://Stackoverflow.com/users/27587",
"pm_score": 11,
"selected": true,
"text": "Collection Collection Set Set ArrayList Set<String> set = new HashSet<>(yourList);\nyourList.clear();\nyourList.... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25778/"
] |
203,990 | <p>I'm writing a C++ client which is using libcurl for communicating with a PHP script.</p>
<p>The communication should be session based, and thus the first task is to login and make the PHP script set up a session.</p>
<p>I'm not used to working with sessions either from C++ or PHP. I basically know that it has to d... | [
{
"answer_id": 204357,
"author": "Tometzky",
"author_id": 15862,
"author_profile": "https://Stackoverflow.com/users/15862",
"pm_score": 1,
"selected": false,
"text": "#!/bin/bash\n\nPHPMYADMINURL=\"http://www.example.com/phpmyadmin/\"\n\n# Username and password, has to be URL-encoded\nMY... | 2008/10/15 | [
"https://Stackoverflow.com/questions/203990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7891/"
] |
204,007 | <p>I get this error:-</p>
<p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' at line 1</p>
<p>whenever I tried something like this:-</p>
<pre><code>mysql> source /home/user1/sql/ddl.sql
mysql> source /home/user1/sql/inse... | [
{
"answer_id": 204022,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 4,
"selected": true,
"text": ":set nobomb\n :x!\n"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/204007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18500/"
] |
204,010 | <p>how can i figure out the last modified date of a html file im importing into my web app?</p>
<p>The html file is on another server and different users can make updates, when i retrieve the page i want to be able see when it was last updated so i can label the updated date on my homepage. I</p>
| [
{
"answer_id": 204021,
"author": "michaeljoseph",
"author_id": 5549,
"author_profile": "https://Stackoverflow.com/users/5549",
"pm_score": 3,
"selected": false,
"text": "document.lastModified"
},
{
"answer_id": 204028,
"author": "Node",
"author_id": 7190,
"author_prof... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24481/"
] |
204,017 | <p>I have a Python script that needs to execute an external program, but for some reason fails.</p>
<p>If I have the following script:</p>
<pre><code>import os;
os.system("C:\\Temp\\a b c\\Notepad.exe");
raw_input();
</code></pre>
<p>Then it fails with the following error:</p>
<blockquote>
<p>'C:\Temp\a' is not r... | [
{
"answer_id": 204024,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 2,
"selected": false,
"text": "import os;\nos.system(\"\\\"C:\\\\Temp\\\\a b c\\\\Notepad.exe\\\" C:\\\\test.txt\");\n"
},
{
"answer_id"... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/267/"
] |
204,025 | <p>What do I have to consider <strong>in database design</strong> for a new application which should be able to support the most common relational database systems (SQL Server, MySQL, Oracle, PostgreSQL ...)?</p>
<p>Is it even worth the effort? What are the pitfalls?</p>
| [
{
"answer_id": 68858389,
"author": "Lukas Eder",
"author_id": 521799,
"author_profile": "https://Stackoverflow.com/users/521799",
"pm_score": 1,
"selected": false,
"text": "FROM WHERE DUAL UNION UNION AS '' NULL TIMESTAMP TIMESTAMP WITH TIME ZONE DATE TIMESTAMP(0)"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/204025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6461/"
] |
204,032 | <p>I've run into a problem trying to return an object that holds a collection of childobjects that again can hold a collection of grandchild objects. I get an error, 'connection forcibly closed by host'.</p>
<p>Is there any way to make this work? I currently have a structure resembling this:</p>
<p>pseudo code:</p>
... | [
{
"answer_id": 204126,
"author": "Per Hornshøj-Schierbeck",
"author_id": 11619,
"author_profile": "https://Stackoverflow.com/users/11619",
"pm_score": 0,
"selected": false,
"text": "Server Error in '/' Application.\n------------------------------------------------------------------------... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11619/"
] |
204,040 | <p>REBOL has no built-in way to perform list comprehensions. However, REBOL has a powerful facility (known as <code>parse</code>) that can be used to create domain-specific languages (DSLs). I've used <code>parse</code> to create such a mini-DSL for list comprehensions. In order to interpret the expression, the block c... | [
{
"answer_id": 501642,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "select select [(a * b) for a in 1x100 for b in 4x10 where (all [odd? a odd? b])]"
},
{
"answer_id": 501651,
"author... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27779/"
] |
204,041 | <p>In my asp.net mvc app I want to check if a certain url returns a valid response.
Therefor I send the url to a method that tests the HttpWebRequest.GetResponse()</p>
<p>On my dev server (vs2008) it works just fine.
When deployed on production server however, it returns a Bad Request.
The method is never hit and my a... | [
{
"answer_id": 204136,
"author": "J c",
"author_id": 25837,
"author_profile": "https://Stackoverflow.com/users/25837",
"pm_score": 0,
"selected": false,
"text": "<%@ Page Language=\"C#\" CodeFile=\"Default.aspx.cs\" Inherits=\"_Default\" ValidateRequest=\"false\" %>\n"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/204041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
204,050 | <p>I know a role name and want to find all users in this role.
How do I acheive this in SQL Server 2000 (in the SQL script, not in Management Studio or other tool)?</p>
| [
{
"answer_id": 204105,
"author": "Tim",
"author_id": 10363,
"author_profile": "https://Stackoverflow.com/users/10363",
"pm_score": 3,
"selected": true,
"text": "exec sp_helpsrvrolemember 'role'\n exec sp_helprolemember 'role'\n"
},
{
"answer_id": 204106,
"author": "Ilya Koche... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23714/"
] |
204,075 | <p>I know many people who use computers every day, who do not know how to select multiple items in a HTML select box/list. I don't want to use this control in my pages any more:</p>
<pre><code>Please pick 3 options:
<select name="categories" size="10" multiple="yes">
</code></pre>
<p>So what user-friendly alter... | [
{
"answer_id": 204104,
"author": "Aleris",
"author_id": 20417,
"author_profile": "https://Stackoverflow.com/users/20417",
"pm_score": 4,
"selected": false,
"text": "<div style=\"overflow: scroll\" />\n"
},
{
"answer_id": 204109,
"author": "Vlad Gudim",
"author_id": 22088,... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11461/"
] |
204,087 | <blockquote>
<p>"To help protect your security,
Explorer has restricted this webpage
from running scripts or ActiveX
controls that could access your
computer"</p>
</blockquote>
<p>Whenever I add Flash movies or javascript code this message will show. It also shows for somebody else, so how do I get rid of th... | [
{
"answer_id": 280326,
"author": "Javier Suero Santos",
"author_id": 34432,
"author_profile": "https://Stackoverflow.com/users/34432",
"pm_score": 0,
"selected": false,
"text": "<head>\n<!-- saved from url=(0021)http://www.myurl.com/ -->\n</head>\n"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/204087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
204,115 | <p>So there seems to be this problem with GNU Make's $(wildcard) function keeping a directory open on Windows. See (unasnwered) post "<a href="http://www.cygwin.com/ml/cygwin/2003-06/msg01182.html" rel="nofollow noreferrer">make is holding a directory open</a>". Google does not provide much information on the topic.</p... | [
{
"answer_id": 220331,
"author": "Charles Duffy",
"author_id": 14122,
"author_profile": "https://Stackoverflow.com/users/14122",
"pm_score": 2,
"selected": false,
"text": "/proc/self/fd /proc/$PPID/fd"
},
{
"answer_id": 388248,
"author": "Carl Seleborg",
"author_id": 2095... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2095/"
] |
204,123 | <p>I am cloning a hidden table row then populating it and after validation I want to show the row using a jquery effect ... say .show("slow")</p>
<pre><code>var baseRow = $("#tasks tr#baseTaskLine");
var newRow = baseRow.clone();
var lastRow = $("#tasks tr[id^='TaskLine_']" + dayClass + ":last");
var newRowId;
if (la... | [
{
"answer_id": 204142,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": 4,
"selected": true,
"text": "<table>\n<tr id=\"row1\"><td><div>Cell1:1</div></td><td><div>Cell2:1</div></td></tr>\n<tr id=\"row2\"><td><div>Cell1:2<... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18349/"
] |
204,140 | <p>How can I move items from one list box control to another listbox control using JavaScript in ASP.NET?</p>
| [
{
"answer_id": 204161,
"author": "Remy Sharp",
"author_id": 22617,
"author_profile": "https://Stackoverflow.com/users/22617",
"pm_score": 5,
"selected": false,
"text": "$('#firstSelect option:selected').appendTo('#secondSelect');\n"
},
{
"answer_id": 204429,
"author": "Tom",
... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22162/"
] |
204,169 | <p>I have a very simple question. I want to test whether a particular port is currently under use or not. For this, I want to bind a TCP socket to the port, if the connection is refused means the port is in use and if not that mean the port is free.</p>
<p>Can someone please tell me how can I write the TCP socket code... | [
{
"answer_id": 204236,
"author": "Joel Cunningham",
"author_id": 5360,
"author_profile": "https://Stackoverflow.com/users/5360",
"pm_score": 5,
"selected": true,
"text": "#include <stdio.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n\n#define PORT 12345\n\nint main()\n{\n struct... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27778/"
] |
204,170 | <p>So I need to update a text field. Neither the UPDATE statement or the WRITETEXT statement work when used below</p>
<pre><code>CREATE TABLE MyTable (IDField int, MyField text)
INSERT INTO MyTable (IDField) SELECT 1
DECLARE @Data1 varchar(8000), @Data2 varchar(8000), @ptrval binary(16)
SELECT @Data1 = REPLICATE('1... | [
{
"answer_id": 204255,
"author": "Jim Birchall",
"author_id": 989,
"author_profile": "https://Stackoverflow.com/users/989",
"pm_score": 4,
"selected": true,
"text": "WRITETEXT MyTable.MyField @ptrval @Data1 \nUPDATETEXT MyTable.MyField @ptrval 8000 NULL @Data2\n"
},
{
"answer_id"... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10422/"
] |
204,172 | <p>How can I turn off certificate revocation for a WCF service's client?
The client proxy was generated by wsdl.exe and inherits SoapHttpClientProtocol.</p>
| [
{
"answer_id": 204209,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 4,
"selected": true,
"text": "ServicePointManager.ServerCertificateValidationCallback RemoteCertificateValidationCallback class Program\n{\n static void Main(... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19956/"
] |
204,181 | <p>I've got two applications I'm developing using Qt on windows. I want the user to be able to press a button in one application which makes the other application come to the foreground. (The programs communicate using QLocalSocket and named pipes.)</p>
<p>Currently I'm using Qt's QWidget::activateWindow() which occas... | [
{
"answer_id": 204228,
"author": "PierreBdR",
"author_id": 7136,
"author_profile": "https://Stackoverflow.com/users/7136",
"pm_score": 2,
"selected": false,
"text": "QWidget::activateWindow QWidget::raise"
},
{
"answer_id": 1017667,
"author": "nurxb01",
"author_id": 13273... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22648/"
] |
204,186 | <p>In writing some test code I have found that Selector.select() can return without Selector.selectedKeys() containing any keys to process. This is happening in a tight loop when I register an accept()ed channel with</p>
<pre>SelectionKey.OP_READ | SelectionKey.OP_CONNECT</pre>
<p>as the operations of interest.</p>
... | [
{
"answer_id": 205354,
"author": "Alexander",
"author_id": 16724,
"author_profile": "https://Stackoverflow.com/users/16724",
"pm_score": 4,
"selected": true,
"text": "OP_CONNECT import java.net.*;\nimport java.nio.channels.*;\n\n\npublic class MyNioServer {\n public static void main(Str... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28164/"
] |
204,194 | <p>I have a JSP accessed through JBoss. It renders a list (a search result).
If the response gets big, approximately larger than 200k the response is truncated. I can see how the page just ends in the middle of a tag in Firefox. IE totally freaks out an so does Fiddler.
Responses smaller than 200k are no problem.</p>
... | [
{
"answer_id": 204246,
"author": "Victor",
"author_id": 14514,
"author_profile": "https://Stackoverflow.com/users/14514",
"pm_score": 1,
"selected": false,
"text": "<%@page buffer=\"500kb\" autoFlush=\"true\" %>\n"
},
{
"answer_id": 20885515,
"author": "Ujjwal Singh",
"au... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28180/"
] |
204,208 | <p>I want to detect and replace malformed UTF-8 characters with blank space using a Perl script while loading the data using SQL*Loader. How can I do this? </p>
| [
{
"answer_id": 205713,
"author": "Constantin",
"author_id": 20310,
"author_profile": "https://Stackoverflow.com/users/20310",
"pm_score": 2,
"selected": false,
"text": "import codecs\ncodecs.register_error('spacer', lambda ex: (u' ', ex.start + 1))\ns = 'spam\\xb0\\xc0eggs\\xd0bacon'.dec... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
204,241 | <p>Using <code>WritePrivateProfileString</code> and <code>GetPrivateProfileString</code> results in <code>???</code> instead of the real characters.</p>
| [
{
"answer_id": 204254,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 1,
"selected": false,
"text": "WritePrivateProfileString WritePrivateProfileStringW"
},
{
"answer_id": 8821555,
"author": "Roger Bamforth",
... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
204,256 | <p>Why does a Boolean consume 4 bytes and a char 2 bytes in the .NET framework? A Boolean should take up 1bit or at least be smaller than a char.</p>
| [
{
"answer_id": 434182,
"author": "Blaisorblade",
"author_id": 53974,
"author_profile": "https://Stackoverflow.com/users/53974",
"pm_score": 4,
"selected": false,
"text": "boolean char char"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/204256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17211/"
] |
204,282 | <p>My problem is that I set some breakpoints in my code and some of them aren't working. In some places it complains about "Unresolved Breakpoint". </p>
<p>Does anyone have any clue why this is happening? I am using gdb, by the way.</p>
<p>EDIT: Yes, of course is compiled with debug information. It only happens at so... | [
{
"answer_id": 19493016,
"author": "Arks",
"author_id": 1582090,
"author_profile": "https://Stackoverflow.com/users/1582090",
"pm_score": 0,
"selected": false,
"text": "template <typename T>\nint doit(T a) {\n return a.do(); // <-- breakpoint here\n}\n...\nA a;\ncout << doit(a);\n"
},
... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/366094/"
] |
204,289 | <p>Been trying to find a working implementation of a WPF listview (or listbox) where
you can order items by dragging them up or down.</p>
<p>I have found a few, but none really works,
for example this one
<a href="http://www.codeproject.com/KB/WPF/ListViewDragDropManager.aspx?msg=2765618#xx2765618xx" rel="nofollow nor... | [
{
"answer_id": 204462,
"author": "rudigrobler",
"author_id": 5147,
"author_profile": "https://Stackoverflow.com/users/5147",
"pm_score": 1,
"selected": false,
"text": "<ListBox src:DragAndDrop.DragEnabled=\"true\"/> \n <ListBox src:DragAndDrop.DropEnabled=\"true\"/> \n"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/204289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28149/"
] |
204,303 | <p>I'm starting to investigate T4 for Code Generation.</p>
<p>I get that you have a basic template in which you can embed little chunks of c#/vb which can perform clever stuff...</p>
<pre><code><#@ template language="VB" debug="True" hostspecific="True" #>
<#@ output extension=".vb" debug="True" hostspecific... | [
{
"answer_id": 204367,
"author": "Enrico Campidoglio",
"author_id": 26396,
"author_profile": "https://Stackoverflow.com/users/26396",
"pm_score": 2,
"selected": true,
"text": "<#@ template language=\"C#\" #>\n<# HelloWorld(); #>\n<#+\n private string _field = \"classy\";\n private ... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
204,305 | <p>I have an asp.net server control (with the asp: in its definition). The button has been set to do post back.</p>
<p>On the server side, I have the on click event handler
e.g btnSave_click()</p>
<p>On the client side, I have a javascript function to be invoked on the click event
e.g btnSave.Attributes.Add("onclick"... | [
{
"answer_id": 204325,
"author": "Biri",
"author_id": 968,
"author_profile": "https://Stackoverflow.com/users/968",
"pm_score": 3,
"selected": true,
"text": "close.Attributes[\"OnClick\"] = \"return confirm('Are you sure?')\";\n"
},
{
"answer_id": 204454,
"author": "Jason Whi... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13370/"
] |
204,308 | <p>I regularly want to check if an object has a member or not. An example is the creation of a singleton in a function. For that purpose, you can use <code>hasattr</code> like this:</p>
<pre><code>class Foo(object):
@classmethod
def singleton(self):
if not hasattr(self, 'instance'):
self.in... | [
{
"answer_id": 204318,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "instance instance instance"
},
{
"answer_id": 204481,
"author": "Andrea Ambu",
"author_id": 21384,
"auth... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7136/"
] |
204,316 | <p>According to this</p>
<p><a href="http://perldoc.perl.org/UNIVERSAL.html" rel="noreferrer">http://perldoc.perl.org/UNIVERSAL.html</a></p>
<p>I shouldn't use UNIVERSAL::isa() and should instead use $obj->isa() or CLASS->isa().</p>
<p>This means that to find out if something is a reference in the first place and th... | [
{
"answer_id": 204352,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "isa UNIVERSAL::isa isa isa FooBar::method FooBar->method $foobar->method FooBar::method"
},
{
"answer_id": 204355,
... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2386199/"
] |
204,320 | <p>Is there a way to declare a variable as Nullable in c#?</p>
<pre><code>struct MyStruct {
int _yer, _ner;
public MyStruct() {
_yer = Nullable<int>; //This does not work.
_ner = 0;
}
}
</code></pre>
| [
{
"answer_id": 204326,
"author": "Joel Cunningham",
"author_id": 5360,
"author_profile": "https://Stackoverflow.com/users/5360",
"pm_score": 1,
"selected": false,
"text": "int? yer;\n"
},
{
"answer_id": 204327,
"author": "Kev",
"author_id": 419,
"author_profile": "htt... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17211/"
] |
204,334 | <p><strong>What?</strong></p>
<p>I have a DLGTEMPLATE loaded from a resource DLL, how can I change the strings assigned to the controls at runtime programmatically?</p>
<p>I want to be able to do this before the dialog is created, such that I can tell that the strings on display came from the resource DLL, and not fr... | [
{
"answer_id": 205935,
"author": "Aidan Ryan",
"author_id": 1042,
"author_profile": "https://Stackoverflow.com/users/1042",
"pm_score": 1,
"selected": false,
"text": "CMyDialog::OnInitDialog()\n{\n ::EnumChildWindows(\n this->GetSafeHwnd(),\n CMyDialog::UpdateControlText... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2387/"
] |
204,343 | <p>In .net, is there a way using reflection to determine if a parameter on a method is marked with the "params" keyword?</p>
| [
{
"answer_id": 204377,
"author": "Nathan Baulch",
"author_id": 8799,
"author_profile": "https://Stackoverflow.com/users/8799",
"pm_score": 5,
"selected": false,
"text": "ParamArrayAttribute ParameterInfo //use string.Format(str, args) as a test\nvar method = typeof(string).GetMethod(\"Fo... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13943/"
] |
204,360 | <p>What's the term for this design?</p>
<pre><code>object.method1().method2().method3()
</code></pre>
<p>..when all methods return *this?</p>
<p>I found the term for this a while ago, but lost it meanwhile.
I have no clue how to search for this on google :)
Also if anyone can think of a better title for the question... | [
{
"answer_id": 28081241,
"author": "Barry",
"author_id": 2069064,
"author_profile": "https://Stackoverflow.com/users/2069064",
"pm_score": 2,
"selected": false,
"text": "vector<int> v; \nv += 1,2,3,4,5,6,7,8,9;\n\ntypedef pair< string,string > str_pair;\ndeque<str_pair> deq;\npush_front(... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21240/"
] |
204,363 | <p>Is it possible to create a simple 3D model (for example in 3DS MAX) and then import it to Android?</p>
| [
{
"answer_id": 741926,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "gl.glFrontFace(GL10.GL_CCW);\n"
},
{
"answer_id": 742087,
"author": "Maciej Gryka",
"author_id": 3037,
"au... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3037/"
] |
204,369 | <p>Recently our company has started measuring the cyclomatic complexity (CC) of the functions in our code on a weekly basis, and reporting which functions have improved or worsened. So we have started paying a lot more attention to the CC of functions.</p>
<p>I've read that CC could be informally calculated as 1 + th... | [
{
"answer_id": 204415,
"author": "PW.",
"author_id": 927,
"author_profile": "https://Stackoverflow.com/users/927",
"pm_score": 0,
"selected": false,
"text": "if (condition1 && condition2 && condition3)\n Console.WriteLine(\"wibble\");\n bool/boolean theWeatherIsFine = condition1 && c... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7261/"
] |
204,396 | <p>When returning objects from a class, when is the right time to release the memory?</p>
<p>Example,</p>
<pre><code>class AnimalLister
{
public:
Animal* getNewAnimal()
{
Animal* animal1 = new Animal();
return animal1;
}
}
</code></pre>
<p>If i create an instance of Animal Lister and get Animal ref... | [
{
"answer_id": 204408,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 5,
"selected": false,
"text": "std::tr1::shared_ptr boost::shared_ptr Animal* std::tr1::shared_ptr<Animal>"
},
{
"answer_id": 204410,
"author":... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28202/"
] |
204,398 | <p>Let's have the following class hierarchy:</p>
<pre><code>public class ParentClass implements SomeInterface {
}
public class ChildClass extends ParentClass {
}
</code></pre>
<p>Then let's have these two instances:</p>
<pre><code>ParentClass parent;
ChildClass child;
</code></pre>
<p>Then we have the following TR... | [
{
"answer_id": 204418,
"author": "user28205",
"author_id": 28205,
"author_profile": "https://Stackoverflow.com/users/28205",
"pm_score": 5,
"selected": true,
"text": "interface SomeInterface {}\nabstract class AbstractParentClass {}\nclass ParentClass extends AbstractParentClass implemen... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/446104/"
] |
204,406 | <p>I am trying to convert all DateTime values in a DataTable to strings. Here is the method I use:</p>
<pre><code>private static void ConvertDateTimesToStrings(DataTable dataTable)
{
if (dataTable == null)
{
return;
}
for (int rowIndex = 0; rowIndex < dataTable.Rows.Count; rowIndex++ )
... | [
{
"answer_id": 204419,
"author": "Biri",
"author_id": 968,
"author_profile": "https://Stackoverflow.com/users/968",
"pm_score": 4,
"selected": false,
"text": "if (dataTable.Columns[0].DataType == typeof(DateTime))\n{\n}\n"
},
{
"answer_id": 204507,
"author": "Eduardo Campañó"... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31505/"
] |
204,444 | <p>As can be seen in the Mozilla changlog for JavaScript 1.7 they have added destructuring assignment. Sadly I'm not very fond of the syntax (why write a and b twice?):</p>
<pre><code>var a, b;
[a, b] = f();
</code></pre>
<p>Something like this would have been a lot better:</p>
<pre><code>var [a, b] = f();
</code>... | [
{
"answer_id": 205254,
"author": "Ates Goral",
"author_id": 23501,
"author_profile": "https://Stackoverflow.com/users/23501",
"pm_score": 2,
"selected": false,
"text": "window[\"foo\"] = \"bar\";\nalert(foo); // Gives \"bar\"\n function destructure(dest, src) { \n dest = dest.split(\... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13995/"
] |
204,461 | <p>Suppose you have:</p>
<pre><code>A-B-C
</code></pre>
<p>Now your build/test fails. The fix should be merged in A.
My current work-flow is like this:</p>
<pre><code>$ git commit -m "fixA"
A-B-C-fixA
$ git rebase -i A~1
</code></pre>
<p>And squash fixA in A, result in: </p>
<pre><code>A'-B-C
</code></pre>
<p>... | [
{
"answer_id": 4607280,
"author": "Jo Liss",
"author_id": 525872,
"author_profile": "https://Stackoverflow.com/users/525872",
"pm_score": 5,
"selected": true,
"text": "--autosquash rebase --fixup --squash commit git/Documentation/RelNotes $ grep -i -A1 autosquash\\\\\\|fixup *\n1.7.0.txt... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1277510/"
] |
204,465 | <p>I'm planning to develop an app for the iPhone and that app would have to access a couple of SOAP services. While doing some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services, a bit of Googling lead to the conclusion that there is no support for SOAP in the iPhone SDK. </... | [
{
"answer_id": 14586865,
"author": "Bennya",
"author_id": 1569335,
"author_profile": "https://Stackoverflow.com/users/1569335",
"pm_score": 2,
"selected": false,
"text": "SampleServiceProxy *proxy = [[SampleServiceProxy alloc]initWithUrl:@\"YOUR\n URL\" AndDelegate:self];\n\n[prox... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25277/"
] |
204,467 | <p>I have trouble using Perl grep() with a string that <em>may</em> contain chars that are interpreted as regular expressions quantifiers. </p>
<p>I got the following error when the grep pattern is "g++" because the '+' symbols
are interpreted as quantifiers. Here is the output of for program that follows:</p>
<pre><... | [
{
"answer_id": 204474,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 6,
"selected": true,
"text": "\\Q return grep (!/\\Q$filter/, @output);\n"
},
{
"answer_id": 204943,
"author": "pjf",
"author_id": ... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18804/"
] |
204,468 | <p>So I have the following:</p>
<pre><code>public class Singleton
{
private Singleton(){}
public static readonly Singleton instance = new Singleton();
public string DoSomething(){ ... }
public string DoSomethingElse(){ ... }
}
</code></pre>
<p>Using reflection how can I invoke the DoSomething Method? </p... | [
{
"answer_id": 204508,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "string methodName = \"DoSomething\"; // e.g. read from XML\nMethodInfo method = typeof(Singleton).GetMethod(methodName);\... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6204/"
] |
204,476 | <p>What is the correct (most efficient) way to define the <code>main()</code> function in C and C++ — <code>int main()</code> or <code>void main()</code> — and why? And how about the arguments?
If <code>int main()</code> then <code>return 1</code> or <code>return 0</code>?</p>
<hr>
<p><em>There are numerous duplicates ... | [
{
"answer_id": 204483,
"author": "workmad3",
"author_id": 16035,
"author_profile": "https://Stackoverflow.com/users/16035",
"pm_score": 10,
"selected": true,
"text": "main main void main() main int main()\n int main(int argc, char* argv[])\n int main(int argc, char** argv)\n int main() r... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25632/"
] |
204,488 | <p>I am trying to create a new contact using Dynamic Entity. The sample i found in CRM SDK had this code.</p>
<pre><code>// Set the properties of the contact using property objects.
StringProperty firstname = new StringProperty();
firstname.Name = "firstname";
firstname.Value = "Jesper";
... | [
{
"answer_id": 204985,
"author": "SaaS Developer",
"author_id": 7215,
"author_profile": "https://Stackoverflow.com/users/7215",
"pm_score": 3,
"selected": true,
"text": " StringProperty sp_Field1 = new StringProperty(\"Field1\",\"Value1\");\n StringProperty sp_Field2 = new StringPr... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2245/"
] |
204,505 | <p>I use LINQ to Objects instructions on an ordered array.
Which operations shouldn't I do to be sure the order of the array is not changed?</p>
| [
{
"answer_id": 204516,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": false,
"text": "Dictionary<,>"
},
{
"answer_id": 204777,
"author": "Amy B",
"author_id": 8155,
"author_profile": ... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28216/"
] |
204,519 | <p>I've got nutch and lucene setup to crawl and index some sites and I'd like to use a .net website instead of the JSP site that comes with nutch.</p>
<p>Can anyone recommend some solutions?</p>
<p>I've seen solutions where there was an app running on the index server which the .Net site used remoting to connect to.<... | [
{
"answer_id": 582489,
"author": "Sam",
"author_id": 37379,
"author_profile": "https://Stackoverflow.com/users/37379",
"pm_score": 1,
"selected": false,
"text": "private void Form1_Load(object sender, EventArgs e)\n {\n searchurl.Text = \"http://localhost:8080/opensearc... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/253/"
] |
204,538 | <p>I am having a listbox in ASP.net. I am populating the listbox values from another listbox in a page dynamically. During postbacks the values of output listbox are not persisted.
(while going to another page and come back to this page).</p>
<p>Please suggest some good answer. EnableViewstate = "true" is not working.... | [
{
"answer_id": 204551,
"author": "Lou Franco",
"author_id": 3937,
"author_profile": "https://Stackoverflow.com/users/3937",
"pm_score": 3,
"selected": true,
"text": "if(!IsPostBack) {}\n"
},
{
"answer_id": 204577,
"author": "thmsn",
"author_id": 28145,
"author_profile... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22162/"
] |
204,548 | <p>How to change overview rule <strong>background</strong> color in Eclipse 3.4.0.I20080617-2000 (vertical bar on right of editing window with some annotations) ? </p>
<p>General > Editors > Text Editors > Annotations allows only to change colors of marks itself not background of whole bar.</p>
<p>It looks like my we... | [
{
"answer_id": 6994150,
"author": "Rachel K. Westmacott",
"author_id": 846145,
"author_profile": "https://Stackoverflow.com/users/846145",
"pm_score": 1,
"selected": false,
"text": "(Window -> Preferences -> General -> Editors -> Text Editors -> Background color => BLACK"
},
{
"a... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501/"
] |
204,549 | <p>I need to insert some data into a table in Oracle. </p>
<p>The only problem is one of the fields is a timestamp(6) type and it is required data. I don't care about what actually goes in here I just need to get the right syntax for an entry so that the database will accept it.</p>
<p>I'm using the gui web client to... | [
{
"answer_id": 204620,
"author": "Mike Woodhouse",
"author_id": 1060,
"author_profile": "https://Stackoverflow.com/users/1060",
"pm_score": 4,
"selected": false,
"text": "create table x ( a timestamp(6));\ninsert into x values ( current_timestamp );\nselect * from x;\n T\n---------------... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22061/"
] |
204,553 | <p>im using httpclient and last-modified header in order to retrieve the last updated date of an html file however when i try this on a linux box it returns yesterdays date but when i use a windows machine it returns todays date. is anyone aware of issues using this header field in linux?</p>
| [
{
"answer_id": 205456,
"author": "Mihai Limbășan",
"author_id": 14444,
"author_profile": "https://Stackoverflow.com/users/14444",
"pm_score": 0,
"selected": false,
"text": "date date MMDDhhmmCCYY.ss date 101519412008.27"
}
] | 2008/10/15 | [
"https://Stackoverflow.com/questions/204553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24481/"
] |
204,557 | <p>I'm working on scripts that apply database schema updates. I've setup all my SQL update scripts using start transaction/commit. I pass these scripts to psql on the command line.</p>
<p>I now need to apply multiple scripts at the same time, and in one transaction. So far the only solution I've come up with is to rem... | [
{
"answer_id": 204592,
"author": "MysticSlayer",
"author_id": 28139,
"author_profile": "https://Stackoverflow.com/users/28139",
"pm_score": 4,
"selected": true,
"text": "CREATE TABLE t1 (a integer PRIMARY KEY);\n\nCREATE FUNCTION test_exception() RETURNS boolean LANGUAGE plpgsql AS\n$$BE... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5801/"
] |
204,564 | <p>Is there any way to get the custom attributes of a specific object I am receiving in a method?</p>
<p>I do not want nor can to iterate over Type.GetMembers() and search for my member. I have the object, which is also a member, that has the attribute.</p>
<p>How do I get the attribute?</p>
<pre><code>class Custom
... | [
{
"answer_id": 204573,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 1,
"selected": false,
"text": "abstract MyBase\n{\n public string Name;\n protected MyBase()\n {\n //look up value of Name attribute and assign to N... | 2008/10/15 | [
"https://Stackoverflow.com/questions/204564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2130892/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.