qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
381,371 | <p>I have a sqlite (v3) table with this column definition:</p>
<pre><code>"timestamp" DATETIME DEFAULT CURRENT_TIMESTAMP
</code></pre>
<p>The server that this database lives on is in the CST time zone. When I insert into my table without including the timestamp column, sqlite automatically populates that field with ... | [
{
"answer_id": 381394,
"author": "BrianH",
"author_id": 40619,
"author_profile": "https://Stackoverflow.com/users/40619",
"pm_score": 8,
"selected": true,
"text": "SELECT datetime(1092941466, 'unixepoch', 'localtime');\n"
},
{
"answer_id": 381402,
"author": "Roger Lipscombe",... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40619/"
] |
381,373 | <p>I have a webservice in java that receives a list of information to be inserted or updated in a database. I don't know which one is to insert or update.</p>
<p>Which one is the best approach to abtain better performance results:</p>
<ol>
<li><p>Iterate over the list(a object list, with the table pk on it), try to i... | [
{
"answer_id": 381620,
"author": "chaos",
"author_id": 47529,
"author_profile": "https://Stackoverflow.com/users/47529",
"pm_score": 1,
"selected": false,
"text": "INSERT INTO foo\nSET bar='baz', howmanybars=1\nON DUPLICATE KEY UPDATE howmanybars=howmanybars+1\n"
},
{
"answer_id"... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28921/"
] |
381,395 | <p>I'm using the <code>File::Find</code> module to traverse a directory tree. Once I find a specific file, I want to stop searching. How can I do that?</p>
<pre><code> find (\$processFile, $mydir);
sub processFile() {
if ($_ =~ /target/) {
# How can I return from find here?
}
}
</code><... | [
{
"answer_id": 381454,
"author": "innaM",
"author_id": 7498,
"author_profile": "https://Stackoverflow.com/users/7498",
"pm_score": 4,
"selected": true,
"text": "eval {\n find (\\$processFile, $mydir);\n};\n\nif ( $@ ) {\n if ( $@ =~ m/^found it/ ) {\n # be happy\n }\n e... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1094969/"
] |
381,396 | <p>I have several listboxes that get each of their data from a separate stored procedure. </p>
<p>If the user selects an option in 1 listbox, it should filter the other listboxes. </p>
<p>I have done this before by adding logic to the stored procedure, but sometimes it seems to get very long. </p>
<p>Does anyone ... | [
{
"answer_id": 381411,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 3,
"selected": true,
"text": " DataView dvCities = dtCities.DefaultView; \n dvCities.RowFilter = \"State=\" + lbStates.SelectedItem;\n ... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33690/"
] |
381,401 | <p>By default C# compares DateTime objects to the 100ns tick. However, my database returns DateTime values to the nearest millisecond. What's the best way to compare two DateTime objects in C# using a specified tolerance?</p>
<p>Edit: I'm dealing with a truncation issue, not a rounding issue. As Joe points out below, ... | [
{
"answer_id": 381420,
"author": "Micah",
"author_id": 17744,
"author_profile": "https://Stackoverflow.com/users/17744",
"pm_score": 6,
"selected": true,
"text": "if((myDate - myOtherDate) > TimeSpan.FromSeconds(10))\n{\n //Do something here\n}\n"
},
{
"answer_id": 381428,
... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19112/"
] |
381,403 | <p>I am using C# .Net 2.0 to write a webservices client. The server's soap implementation is tested and is pretty solid. gSoap/C++ applications had no problem reading the responses. However the .Net implementation complains "There is an error in XML document" while calling one of the methods. Similar responses recieved... | [
{
"answer_id": 381476,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 3,
"selected": true,
"text": "<webServices>\n <soapExtensionTypes>\n <add type=\"DebugTools.SOAP.SOAPTrace.SoapTraceExtension, DebugTools.SOAP\" \n ... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1781/"
] |
381,405 | <p>I have a Div with five float divs inside:</p>
<pre><code>var div=document.createElement("div");
div.className="cssDivNino";
var divFolio=document.createElement("div");
divFolio.className="cssFolio";
div.appendChild(divFolio);
var divCurp=document.createElement("div");
divCurp.className="cssCurp";
div.appendChild(... | [
{
"answer_id": 381421,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 3,
"selected": true,
"text": "<table>"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15039/"
] |
381,408 | <p>When I am editing a cell in a <code>dataGrid</code>, the changes are not applied to the <code>dataProvider</code> until I finish editing. Is there a way that I can make the changes appear in the <code>dataProvider</code> whilst editing?</p>
<p>I would assume that the way of doing this would be to subclass the edit... | [
{
"answer_id": 381421,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 3,
"selected": true,
"text": "<table>"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40397/"
] |
381,414 | <p>If I have a large set of continuous ranges ( e.g. [0..5], [10..20], [7..13],[-1..37] ) and can arrange those sets into any data-structure I like, <b>what's the most efficient way to test <em>which</em> sets a particular test_number belongs to?</b></p>
<p>I've thought about storing the sets in a balanced binary tree... | [
{
"answer_id": 381442,
"author": "RB.",
"author_id": 15393,
"author_profile": "https://Stackoverflow.com/users/15393",
"pm_score": -1,
"selected": false,
"text": "For Each SetOfNumbers\n For Each NumberInSet\n Put SetOfNumbers into Bin(NumberInSet)\n"
},
{
"answer_id": 381... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20712/"
] |
381,434 | <p>I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my flows does have a page that must trigger a form submit at certain events. For each different action, a different view must be presented. So, I'm trying to activate the following javascript code to perform the submission:</p>
<pre><cod... | [
{
"answer_id": 381439,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 0,
"selected": false,
"text": "function myFormSubmit( eventId ) {\n var formAction = document.myForm.action;\n //document.myForm.action = formAction ... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9025/"
] |
381,443 | <p>I have an ASP.Net 3.5 website running in IIS 6 on Windows Server 2003 R2. It is a relatively small internal application that probably serves less than ten users at any given time. The server has 4 Gig of memory and shows that 3+ Gig is available while the site is active.</p>
<p>Just minutes after restarting the w... | [
{
"answer_id": 2514569,
"author": "Dominic Zukiewicz",
"author_id": 128444,
"author_profile": "https://Stackoverflow.com/users/128444",
"pm_score": 1,
"selected": false,
"text": "/* This one is quicker as it doesn't have to do the extra calculations */\n=IF(B2>1073741824,4294967296-B2,B2... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25121/"
] |
381,445 | <p>I have a client of my web based application who heavily uses the data from our system for powerpoint presentations.</p>
<p>We currently allow data to export in more traditional file types...PDF, CSV, HTML, and a few others. Powerpoint doesn't seem to be really automated.</p>
<p>Is there a way, on the ASP.NET serv... | [
{
"answer_id": 381457,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 3,
"selected": true,
"text": " Dim fs As System.IO.FileStream = _\n\n New System.IO.FileStream(\"c:\\mypath\\myfile.ppt\", _\n\n System.IO.Fil... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24126/"
] |
381,451 | <p>I'm creating a WPF app and have a system tray icon with a context menu. For the menu items I want to use WPF commands but when I assign them they are always greyed out even though the (same) commands are enabled in other places.</p>
<pre><code>MenuItem menuItem = new MenuItem();
menuItem.Header = "Exit";
menuItem.C... | [
{
"answer_id": 382443,
"author": "Szymon Rozga",
"author_id": 7583,
"author_profile": "https://Stackoverflow.com/users/7583",
"pm_score": 2,
"selected": false,
"text": "CommandManager.InvalidateQuerySuggested();"
},
{
"answer_id": 17013291,
"author": "Mario",
"author_id":... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4055/"
] |
381,452 | <p>I have a simple NAnt build file, which attempts to perform an update from subversion on the specified directory. An example of the test build file content is:</p>
<pre><code><?xml version="1.0" ?>
<project name="Project_name" default="update">
<property name="root" value="C:\Subversion\UpdateDir" ove... | [
{
"answer_id": 388489,
"author": "James Gregory",
"author_id": 27206,
"author_profile": "https://Stackoverflow.com/users/27206",
"pm_score": 3,
"selected": true,
"text": "svn cleanup"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15669/"
] |
381,455 | <p>I love to Extend my Assert.AreEqual to many different classes, the known one is the CollectionAssert of course, but I can think of some more such as: <a href="http://www.human-debugger.net/blog/2008/12/21/TddExtendingAssertToSupportImages.aspx" rel="noreferrer">ImageAssert</a>, XmlAssert etc..</p>
<p>Did you Create... | [
{
"answer_id": 381497,
"author": "Joseph Ferris",
"author_id": 15906,
"author_profile": "https://Stackoverflow.com/users/15906",
"pm_score": 2,
"selected": false,
"text": "Enforce.That(variable).IsNotNull();\nEnforce.That(variable).IsInRange(10, 20);\nEnforce.That(variable).IsTypeOf(type... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47817/"
] |
381,478 | <p>I have a multi-project solution. I believe it is best practice to put all <strong>externally</strong> referenced assemblies (e.g. OSS stuff) in a folder that is on the relative path of the solution and it's component projects.</p>
<p>I'd like to create a real folder called <strong>Libs</strong> within the same Win... | [
{
"answer_id": 381482,
"author": "Micah",
"author_id": 17744,
"author_profile": "https://Stackoverflow.com/users/17744",
"pm_score": 2,
"selected": false,
"text": "Development/\n Trunk/\n Binaries/ -- Shared libraries\n Source/\n Test/ \n Docs/ -- Documen... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7961/"
] |
381,485 | <p>Having fallen behind in the world of ORM and modern data access, I'm looking to move away from DataSets (<em>shudder</em>) and into a proper mapping framework.</p>
<p>I've just about got my head around Linq to SQL, an I'm now looking into NHibernate with the view to using it in our next project.</p>
<p>With old sc... | [
{
"answer_id": 385473,
"author": "Berkshire",
"author_id": 24269,
"author_profile": "https://Stackoverflow.com/users/24269",
"pm_score": 1,
"selected": false,
"text": "Select cust.Address, cust.Email from customers cust where cust.Name = \"fred\"\n"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28543/"
] |
381,487 | <p>Specifically I want to know what the data structure for the imports (idata) section looks like.</p>
| [
{
"answer_id": 382888,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 3,
"selected": true,
"text": "LoadImage"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47741/"
] |
381,501 | <p>I discovered to have some problem to fully understand callbacks scoping when trying to learn Jquery. I would add that i have little experience with the Javascript language The code:</p>
<pre><code>var globDom; // placeholder for DOM fragment
// Getting xml file; jquery parses the file and give me back a DOM fr... | [
{
"answer_id": 381572,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 1,
"selected": true,
"text": "0.001 globdom = undefined;\n0.002 $.get(somerequest, callback)\n0.003 alert(globdom)\n\n.. 50 milliseconds later ..\n\n0.053 sa... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47506/"
] |
381,502 | <p>I'm writing small and very <a href="http://en.wikipedia.org/wiki/DRY" rel="noreferrer">DRY</a> framework, which heavily relies on metadata. I'd like to know if there is a way to obtain method parameter names, i.e. given some method</p>
<pre><code>public void a(int myIntParam, String theString) { ... }
</code></pre>... | [
{
"answer_id": 384929,
"author": "Jonny Heggheim",
"author_id": 48011,
"author_profile": "https://Stackoverflow.com/users/48011",
"pm_score": 4,
"selected": false,
"text": "import com.sun.org.apache.bcel.internal.classfile.ClassParser;\nimport com.sun.org.apache.bcel.internal.classfile.J... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1764/"
] |
381,508 | <p>I'm trying to write out a <code>Byte[]</code> array representing a complete file to a file.</p>
<p>The original file from the client is sent via TCP and then received by a server. The received stream is read to a byte array and then sent to be processed by this class. </p>
<p>This is mainly to ensure that the rec... | [
{
"answer_id": 381528,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 3,
"selected": false,
"text": "fs.Write(myByteArray, 0, myByteArray.Length);\n"
},
{
"answer_id": 381529,
"author": "Kev",
"author_id": 419,
... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5648/"
] |
381,517 | <p>Is there a way to set the prefix on the Signature of a Signed XML Document (SignedXml class in .Net)?</p>
<p>So instead of:</p>
<pre><code><Signature xmlns="http://www.w3.org/2000/09/xmldsig#>
...
</Signature>
</code></pre>
<p>I could have the following:</p>
<pre><code><ds:Signature xmlns:ds="http... | [
{
"answer_id": 382161,
"author": "Eric Rosenberger",
"author_id": 41624,
"author_profile": "https://Stackoverflow.com/users/41624",
"pm_score": 4,
"selected": true,
"text": "XmlElement signature = signedXml.GetXml();\nforeach (XmlNode node in signature.SelectNodes(\n \"descendant-or-s... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28660/"
] |
381,537 | <p>I am deploying ASP.NET and Web Service solutions to IIS for a <strong>development</strong> server. It looks like the last person that did this job deployed all the .pdb files too. I asked about it, and was told that they "provide better stack trace info in the logs" if they are left on the server.</p>
<p>Is there a... | [
{
"answer_id": 382087,
"author": "CodingWithSpike",
"author_id": 28278,
"author_profile": "https://Stackoverflow.com/users/28278",
"pm_score": 5,
"selected": false,
"text": "using System;\nusing System.Text;\n\nnamespace PdbSpeedTest\n{\n class Program\n {\n static void Main... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28278/"
] |
381,542 | <p>As Joel points out in <a href="https://stackoverflow.blog/2008/12/18/podcast-34/">Stack Overflow podcast #34</a>, in <a href="https://rads.stackoverflow.com/amzn/click/com/0131103628" rel="noreferrer" rel="nofollow noreferrer">C Programming Language</a> (aka: K & R), there is mention of this property of arrays i... | [
{
"answer_id": 381549,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 12,
"selected": true,
"text": "[]"
},
{
"answer_id": 381551,
"author": "David Thornley",
"author_id": 14148,
"author_profile": "https://S... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/356/"
] |
381,545 | <p>I have a SSRS report and using PL/SQL for the dataset creation.
My report needs two tables
1 one gives detailed view.(dataset 1)
2 one below that gives a summary table (data should come from the calculations based on the data in 1 table) </p>
<p>I am using a temporary table for the dataset one. </p>
<p>What are ... | [
{
"answer_id": 381549,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 12,
"selected": true,
"text": "[]"
},
{
"answer_id": 381551,
"author": "David Thornley",
"author_id": 14148,
"author_profile": "https://S... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
381,546 | <p>I'd like to write a simple detail formatter that displays <code>byte[]</code> data in the form of a <code>String</code> (using <code>String.<init>([B)</code> to do the dirty work).</p>
<p>However, I'm not sure how to find the class name for <code>[B</code> to use when creating the formatter. Is this even pos... | [
{
"answer_id": 381560,
"author": "Michael Borgwardt",
"author_id": 16883,
"author_profile": "https://Stackoverflow.com/users/16883",
"pm_score": 0,
"selected": false,
"text": "byte[].class\n"
},
{
"answer_id": 381934,
"author": "Jason Day",
"author_id": 737,
"author_p... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23309/"
] |
381,548 | <p>We are working with some new Cutting Tools that can have it's hardware parameters altered through the serial port instead of just a control panel. </p>
<p>When the hardware parameters are altered the hardware will take a few seconds to reconfigure itself and then signal that it is ready to be used.</p>
<p>Our setu... | [
{
"answer_id": 381560,
"author": "Michael Borgwardt",
"author_id": 16883,
"author_profile": "https://Stackoverflow.com/users/16883",
"pm_score": 0,
"selected": false,
"text": "byte[].class\n"
},
{
"answer_id": 381934,
"author": "Jason Day",
"author_id": 737,
"author_p... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7890/"
] |
381,552 | <p>I'm wanting to keep the font size of a navigation menu the same size for all browsers. I set the font-size of the navigation menu text to a specific pixel size. In IE this works, but not in FF. </p>
<p>The problem is, if a person changes their browser's font size, then it completely ruins the menu layout in FF.<... | [
{
"answer_id": 3371037,
"author": "Kyle Cureau",
"author_id": 377856,
"author_profile": "https://Stackoverflow.com/users/377856",
"pm_score": 0,
"selected": false,
"text": "updateBaseFontSize : function(fontSize,reloadBool){\n /*Format 1 is fed from the plug; format2 is th... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/396/"
] |
381,558 | <p>I have a web application that I'm working on for work and its not very Firefox friendly (design was made 2 years before I started with the company). There are some CSS issues that I am having problems with and I can't use a CSS Reset because the page design is pretty much set in stone and it would cause more work th... | [
{
"answer_id": 381619,
"author": "Kristof Neirynck",
"author_id": 11451,
"author_profile": "https://Stackoverflow.com/users/11451",
"pm_score": 1,
"selected": false,
"text": "* {\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n -ms-... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20183/"
] |
381,563 | <p>I am using <strong>InstallShield 2009</strong> to generate an <strong>MSI</strong> for a codebase I have inherited. The code is comprised of <strong>VB6</strong>, and <strong>.NET 2.0</strong> code (C# and C++). I'm developing and installing on <strong>Windows XP SP2</strong>.</p>
<p>I created the <em>InstallShield... | [
{
"answer_id": 381619,
"author": "Kristof Neirynck",
"author_id": 11451,
"author_profile": "https://Stackoverflow.com/users/11451",
"pm_score": 1,
"selected": false,
"text": "* {\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n -ms-... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2455/"
] |
381,568 | <p>Should the representation(html, xml, json) returned by a RESTful web service be determined by the url or by the Accept HTTP header?</p>
| [
{
"answer_id": 398210,
"author": "Shonzilla",
"author_id": 31625,
"author_profile": "https://Stackoverflow.com/users/31625",
"pm_score": 3,
"selected": false,
"text": "Accept"
},
{
"answer_id": 14322774,
"author": "Andriy Drozdyuk",
"author_id": 74865,
"author_profile... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32899/"
] |
381,573 | <p>I started dabbling in groovy yesterday. There's an example on the groovy website that I understand but I would like to know more about why it works the way it does. What's confusing me is <code>who[1..-1]</code>. Is this like saying <code>who[1..who.length()-1]</code>? I can't find any documentation on this synt... | [
{
"answer_id": 381598,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 4,
"selected": true,
"text": "-x"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33178/"
] |
381,580 | <p>In my javascript I have this</p>
<pre><code> loopDeLoop:
while (foo !== bar) {
switch (fubar) {
case reallyFubar:
if (anotherFoo == anotherBar) {
break loopDeLoop;
}
break;
defa... | [
{
"answer_id": 381651,
"author": "EndangeredMassa",
"author_id": 106,
"author_profile": "https://Stackoverflow.com/users/106",
"pm_score": 0,
"selected": false,
"text": "var done = false;\nwhile (foo !== bar && !done) {\n switch (fubar) {\n case reallyFubar:\n if (an... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4232/"
] |
381,586 | <p>I have a piece of Java code I can't edit which I want to debug.</p>
<p>The issue is that one of my 10,000 records has a data error and is causing the application to crash.</p>
<p>I can remote debug the live application and add watch which would pick up the id of the record as each is processed. The problem is when... | [
{
"answer_id": 382375,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 0,
"selected": false,
"text": "org.eclipse.jdt.internal.debug.ui.JavaWatchExpressionDelegate"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
381,592 | <p>I'm want to parse a custom string format that is persisting an object graphs state. This is ASP.NET scenario and I wanted something easy to use on the client (JavaScript) and server (C#).</p>
<p>I have a format something like </p>
<pre><code>{Name1|Value1|Value2|...|ValueN}{Name2|Value1|...}{...}{NameN|...}
</cod... | [
{
"answer_id": 381676,
"author": "Markus Jarderot",
"author_id": 22364,
"author_profile": "https://Stackoverflow.com/users/22364",
"pm_score": 4,
"selected": true,
"text": "(?<!\\\\)(?:\\\\\\\\)*\\{(.*?(?<!\\\\)(?:\\\\\\\\)*)\\}\n"
},
{
"answer_id": 627683,
"author": "Communi... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44656/"
] |
381,596 | <p>I need to <code>POST</code> data to a url in the middle of a script.</p>
<ol>
<li>User fills out form:</li>
<li>Form submits to <code>process.asp</code>: I need to <code>POST</code> data to a 3rd Party integration at this point.</li>
<li><code>process.asp</code> finishes and directs user to thank you page.</li>
</o... | [
{
"answer_id": 381613,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": false,
"text": "CreateObject(\"Scripting.????\")"
},
{
"answer_id": 381625,
"author": "Frank Krueger",
"author_id": 33... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47838/"
] |
381,621 | <p>In our C++ course they suggest not to use C++ arrays on new projects anymore. As far as I know Stroustroup himself suggests not to use arrays. But are there significant performance differences?</p>
| [
{
"answer_id": 381656,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 9,
"selected": true,
"text": "new"
},
{
"answer_id": 381672,
"author": "Frank Krueger",
"author_id": 338,
"author_prof... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25418/"
] |
381,622 | <p>I have a result from an SQL query that I would like to sort alphabetical, but there are a couple of commonly used results that I would like to float to the top.
Is there a simple way I can achieve this either by doing clever SQL or by sorting the (asp.net) datatable once I have it filled?</p>
<p>I know the databas... | [
{
"answer_id": 381628,
"author": "Greg Dean",
"author_id": 1200558,
"author_profile": "https://Stackoverflow.com/users/1200558",
"pm_score": 2,
"selected": false,
"text": "ORDER BY Special DESC, Name ASC\n"
},
{
"answer_id": 381633,
"author": "EndangeredMassa",
"author_id... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5552/"
] |
381,668 | <p>I'm trying to create a color-picker which must dynamically generate its images and figured it would be a whole lot easier to generate SVG than a raster image. Unfortunately, I can't figure out how to represent the big, two-dimensional gradient which will form the centerpiece of the picker.</p>
<p>For example, if t... | [
{
"answer_id": 59079752,
"author": "Paul Wheeler",
"author_id": 229247,
"author_profile": "https://Stackoverflow.com/users/229247",
"pm_score": 4,
"selected": true,
"text": "mix-blend-mode"
},
{
"answer_id": 73099781,
"author": "Florian P",
"author_id": 11429509,
"aut... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46387/"
] |
381,685 | <p>I just finished reading a book on scala. What strikes me is that every single example in the whole book was numerical in some form or another.</p>
<p>Like a lot of programmers, the only math I use is from discrete and combinatorial mathematics, and usually that's not math I program in an explicit way. I'm really mi... | [
{
"answer_id": 381822,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 2,
"selected": false,
"text": ">>> testlist\n[1, 2, 3, 5, 3, 1, 2, 1, 6]\n>>> [i for i,x in enumerate(testlist) if x == 1]\n[0, 5, 7]\n"
},
{
... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23691/"
] |
381,691 | <p>Well i need to make it so any user can have a foo.com/username in my site where i user a Zend framework. </p>
<p>The thing is that i want foo.com/login and other controllers to keep working as they do, so i already validate that no user can be named as one of the controllers im going to use. The htaccess cant be c... | [
{
"answer_id": 381822,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 2,
"selected": false,
"text": ">>> testlist\n[1, 2, 3, 5, 3, 1, 2, 1, 6]\n>>> [i for i,x in enumerate(testlist) if x == 1]\n[0, 5, 7]\n"
},
{
... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47846/"
] |
381,695 | <p>I'm writing a small and inadequate linear algebra library in C++ for a project (I'm sorry). I'm implementing matrices and operations using double precision numbers. I'm doing right? Should I implement a template class instead? Is there a more precise type around?</p>
| [
{
"answer_id": 381705,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 3,
"selected": false,
"text": "double"
},
{
"answer_id": 381714,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_pr... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25418/"
] |
381,718 | <p>How do I check if a variable, specifically a pointer, is defined in C++? Suppose I have a class:</p>
<pre><code>class MyClass {
public:
MyClass();
~MyClass() {
delete pointer; // if defined!
}
initializePointer() {
pointer = new OtherClass();
}
private:
OtherClass* poi... | [
{
"answer_id": 381729,
"author": "Nik Reiman",
"author_id": 14302,
"author_profile": "https://Stackoverflow.com/users/14302",
"pm_score": 2,
"selected": false,
"text": "MyClass::MyClass() : pointer(NULL)\n{\n}\n\nMyClass::~MyClass()\n{\n if(pointer != NULL) { delete pointer; }\n}\n"
... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25418/"
] |
381,733 | <p>Syntactic sugar for properties for example in C#:</p>
<pre><code>private int x;
public int X{
get { return x; }
set { x = value; }
}
</code></pre>
<p>or simply</p>
<pre><code> public int X{ get; set; }
</code></pre>
<p>I am missing verbatim strings in java... @"C:\My Documents\" instead of "C:\\My Docum... | [
{
"answer_id": 381740,
"author": "Matt Briggs",
"author_id": 10771,
"author_profile": "https://Stackoverflow.com/users/10771",
"pm_score": 2,
"selected": false,
"text": "public int X { get; set; }\n"
},
{
"answer_id": 381784,
"author": "Chris Cudmore",
"author_id": 18907,... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35323/"
] |
381,734 | <p>I want to perform this <em>CODE</em> equivlant in the castle xml config file.</p>
<p>// Foo(string name)</p>
<p>IFoo f = new Foo(StaticBarClass.Name);</p>
<p><br>
<br><br>
<em>XML</em></p>
<p>Now for the XML, I know everything (e.g. the blah) except for the stuff inside the parameter part.</p>
<p>What would the... | [
{
"answer_id": 381740,
"author": "Matt Briggs",
"author_id": 10771,
"author_profile": "https://Stackoverflow.com/users/10771",
"pm_score": 2,
"selected": false,
"text": "public int X { get; set; }\n"
},
{
"answer_id": 381784,
"author": "Chris Cudmore",
"author_id": 18907,... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
381,744 | <p>Is there anyway to change the content-type of an XML document, in the XML document? </p>
<p>I'm working with a really old system that passes back HTML (and we are trying to make it return XML). I'm retrieving it from XMLHttpRequest, and I noticed using netcat that it isn't passing back any content-type headers. <... | [
{
"answer_id": 381763,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": true,
"text": "Content-Type"
},
{
"answer_id": 382033,
"author": "leeand00",
"author_id": 18149,
"author_profile": "ht... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18149/"
] |
381,758 | <p>Is there an <em>easy</em> way to simulate Invalid Viewstate? </p>
| [
{
"answer_id": 387289,
"author": "Macho Matt",
"author_id": 1446,
"author_profile": "https://Stackoverflow.com/users/1446",
"pm_score": 2,
"selected": false,
"text": "<script language=\"javascript\">\n$(document).ready(function() {\n jQuery('input[@name=__VIEWSTATE]').val(\"this is no... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1446/"
] |
381,760 | <p>My app sends lots and lots of data to SAP. To di this, it builds up an SAP table object and sends it over. I get this error somewhat regularly, but not reliably:</p>
<pre><code>System exception thrown while marshaling .NET type 20081219 to RFCTYPE_BCD
at SAP.Connector.Rfc.RfcMarshal.NetFieldToRfcField(Object src,... | [
{
"answer_id": 382242,
"author": "Igal Serban",
"author_id": 25737,
"author_profile": "https://Stackoverflow.com/users/25737",
"pm_score": 2,
"selected": true,
"text": "MySapProxy proxy = new MySapProxy(); // do this only once.\n\n// and in you main loop:\nusing (proxy.Connection = Conne... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29/"
] |
381,761 | <p>I have been hearing this term quite a lot. I have a bunch of mini questions that I would like to ask.</p>
<ul>
<li>Are business really ready for cloud computing?</li>
<li>Do consumers have the appropriate resources to consume services from the cloud?</li>
<li>Is this technology prone to more attacks?</li>
<li>Some ... | [
{
"answer_id": 381851,
"author": "Geo",
"author_id": 47222,
"author_profile": "https://Stackoverflow.com/users/47222",
"pm_score": 0,
"selected": false,
"text": "* Do consumers have the appropriate resources to consume services from the cloud?\n"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37494/"
] |
381,772 | <p>I want to submit the values of a flex form to a ColdFusion cfc.</p>
<p>If I have a flex form (see below) is the data in the form an object? Or do I have to create an object based on the id's in the form and then pass that new object to the coldfusion component? </p>
<pre><code><mx:Form x="10" y="10" width="790"... | [
{
"answer_id": 381851,
"author": "Geo",
"author_id": 47222,
"author_profile": "https://Stackoverflow.com/users/47222",
"pm_score": 0,
"selected": false,
"text": "* Do consumers have the appropriate resources to consume services from the cloud?\n"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24563/"
] |
381,782 | <p>How would I define an element that can either contain plain text or contain elements? Say I wanted to somehow allow for both of these cases:</p>
<pre><code><xs:element name="field">
<xs:complexType>
<xs:sequence>
<xs:element ref="subfield" minOccurs="0" maxOccurs="unboun... | [
{
"answer_id": 381839,
"author": "David Norman",
"author_id": 34502,
"author_profile": "https://Stackoverflow.com/users/34502",
"pm_score": 6,
"selected": true,
"text": "<xs:element name=\"field\">\n <xs:complexType mixed=\"true\">\n <xs:sequence>\n <xs:element r... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
381,793 | <p>My problem is the following. I have a method which simply takes an XML excerpt and an XPath. It then should create me an array of objects for that XML excerpt. Meaning if I get passed the following XML:</p>
<pre><code><user>
<name>Bob</name>
<age>50</age>
</user>
</code></pre... | [
{
"answer_id": 381862,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 7,
"selected": true,
"text": "id obj = [[NSClassFromString(@\"MySpecialClass\") alloc] init];\n"
},
{
"answer_id": 381916,
"author": "Natha... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
381,795 | <p>Not that I'm trying to prevent 'View Source' or anything silly like that, but I'm making some custom context menus for certain elements.</p>
<p>EDIT: response to answers: I've tried this:</p>
<pre><code><a id="moo" href=''> </a>
<script type="text/javascript">
var moo = document.getElementBy... | [
{
"answer_id": 381848,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 8,
"selected": true,
"text": "onContextMenu"
},
{
"answer_id": 16987577,
"author": "Omar Wagih",
"author_id": 1312519,
"author_pr... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4435/"
] |
381,831 | <p>When I new a WCF service in my solution, can I do the following, have a constructor with parameter to pass in? If yes, how, when and where does the runtime fill in my required IBusinessLogic object?</p>
<pre><code>[ServiceContract]
public interface IServiceContract
{
[OperationContract]
...
}
public class... | [
{
"answer_id": 33014658,
"author": "HuBeZa",
"author_id": 133665,
"author_profile": "https://Stackoverflow.com/users/133665",
"pm_score": 2,
"selected": false,
"text": "var host = new ServiceHost(typeof(MyService), baseAddress);\nvar instanceProvider = new InstanceProviderBehavior<T>(() ... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32240/"
] |
381,859 | <p>I have an <code>ItemsControl</code> that is data bound to a list of <code>decimal</code>s. I need to add one extra control to the <code>ItemsControl</code> (an option to specify the number manually). Is there a way to do this in XAML? I know I can manually add the item in the code behind, but I'm trying to unders... | [
{
"answer_id": 382093,
"author": "Robert Macnee",
"author_id": 19273,
"author_profile": "https://Stackoverflow.com/users/19273",
"pm_score": 6,
"selected": true,
"text": "<Grid xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n xmlns:sys=\"clr-namespace:System;ass... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9323/"
] |
381,864 | <p>As a beginner/intermediate developer one problem I run into as my projects get bigger and more abstracted away as i use more OOP principles I have a problem with naming things. Like when i have multiple projects or class libraries I don't know what to name them. I see things from xxx.Core to xxx.Main or have even ... | [
{
"answer_id": 404308,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "Library\n - Net code\n - DBA code\n - Controller manager code\n - Factories\nApplication\n - Forms\n - Controllers\n - Models\... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23571/"
] |
381,889 | <p>Here is my SQLCommand object:</p>
<pre><code>oCommand.CommandText =
"INSERT INTO hits (id,client_id,client_ip,page,vars) VALUES _
(@@IDENTITY,@client_id,@ip,@page,@vars)"
oCommand.Parameters.Count = 4
>> oCommand.Parameters.Item(0).ParameterName = "@client_id"
>> oCommand.Par... | [
{
"answer_id": 381911,
"author": "Dillie-O",
"author_id": 71,
"author_profile": "https://Stackoverflow.com/users/71",
"pm_score": 2,
"selected": false,
"text": "oCommand = New SqlCommand(\"INSERT INTO hits (id,client_id,client_ip,page,vars) VALUES (@@IDENTITY,@client_id,@ip,@page,@vars)\... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25515/"
] |
381,890 | <p>I am doing some work on a web site that has a secure area which is available to users only after they have logged in. In this area there is a page with links to pdf documents which can be downloaded. The physical documents are outside of the web site's root directory. The links to the pdf documents look something li... | [
{
"answer_id": 381939,
"author": "Samuel",
"author_id": 32465,
"author_profile": "https://Stackoverflow.com/users/32465",
"pm_score": 1,
"selected": false,
"text": "Content-Disposition: inline;\n"
},
{
"answer_id": 390553,
"author": "Stacey Richards",
"author_id": 1142,
... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1142/"
] |
381,918 | <p>After two years of C#, my VB.NET is a bit rusty. I have two Lists. Let's call them originalList and targetList. Here is my C# code:</p>
<pre><code>for(int i = 0; i<originalList.Count; i++)
{
bool isMatch = false;
foreach (string t in targetList)
{
if(String.Compare(originalList[i], t, true) =... | [
{
"answer_id": 381949,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 2,
"selected": false,
"text": "dim i as integer = 0\nWhile i < originalList.Count\n dim isMatch as boolean = false\n for each t as string in target... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
381,920 | <p>I'm looking for a way to redirect output in a groovy script to stderr:</p>
<pre><code>catch(Exception e) {
println "Want this to go to stderr"
}
</code></pre>
| [
{
"answer_id": 381941,
"author": "Dan Vinton",
"author_id": 21849,
"author_profile": "https://Stackoverflow.com/users/21849",
"pm_score": 4,
"selected": false,
"text": "System.err.println \"goes to stderr\"\n"
},
{
"answer_id": 382206,
"author": "codeLes",
"author_id": 30... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14481/"
] |
381,947 | <p>As the title says: Is there a difference between $str == '' and strlen($str) == 0 in PHP? Is there any real speed difference and is one better to use than the other?</p>
| [
{
"answer_id": 381960,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 1,
"selected": false,
"text": "if (empty($str)) {\n ...\n}\n\nif (!$str) {\n ...\n}\n"
},
{
"answer_id": 381975,
"author": "Vilx-",
... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
381,954 | <p>We've recently implemented Amazon S3 in our site which led us to change the way we handled images. We used to call a controller /fotos.php that would read the file from disk, record some statistics, set headers and return the contents of the file as image/jpeg.</p>
<p>All went OK until S3. Fotos.php now does a 302 ... | [
{
"answer_id": 382115,
"author": "Eineki",
"author_id": 29125,
"author_profile": "https://Stackoverflow.com/users/29125",
"pm_score": 3,
"selected": true,
"text": "header('Content-Type: image/jpeg');"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26481/"
] |
381,973 | <p>I'm working on an application that displays some child windows which can either be closed by the user or are automatically closed. While debugging some exceptions that were being thrown, I discovered I was trying to call methods like <code>Hide()</code> on a window that had already been closed; this particular bran... | [
{
"answer_id": 8409736,
"author": "Simon_Weaver",
"author_id": 16940,
"author_profile": "https://Stackoverflow.com/users/16940",
"pm_score": 3,
"selected": false,
"text": "OfType<Window>()"
},
{
"answer_id": 32766135,
"author": "Adrian Rus",
"author_id": 497423,
"auth... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2547/"
] |
381,976 | <p>I have the following sub:</p>
<pre><code> Private Sub Watcher_Changed(ByVal sender As System.Object, ByVal e As FileSystemEventArgs)
If Path.GetExtension(e.Name) = ".p2p" Then
Exit Sub
Else
Try
' multiple change events can be thrown. Check that file hasn't al... | [
{
"answer_id": 912557,
"author": "Matt Palmerlee",
"author_id": 112741,
"author_profile": "https://Stackoverflow.com/users/112741",
"pm_score": 1,
"selected": false,
"text": "private void fsw_Created(object sender, FileSystemEventArgs e)\n{\n if (File.Exists(e.FullPath))\n {\n /... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
381,980 | <p>I am writing a web app using Castle ActiveRecord, and I keep getting this exception whenever I try to access a lazy loaded list of related objects. Here is my code:</p>
<pre><code> using(new SessionScope())
{
foreach (var field in eventObj.RegistrationFields)
{
... | [
{
"answer_id": 386106,
"author": "Neil Hewitt",
"author_id": 22178,
"author_profile": "https://Stackoverflow.com/users/22178",
"pm_score": 4,
"selected": true,
"text": "RegistrationFields"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/381980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14101/"
] |
381,983 | <p>What's the best way retrieve complex queries from a REST service?</p>
<p>Suppose I want to get X collections, apply filters and equations to each one, combine the collections using some other operation and return one result, everything in one request.</p>
<p>It is just too complex (and big) to put everything in th... | [
{
"answer_id": 381990,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 2,
"selected": false,
"text": "POST"
},
{
"answer_id": 453601,
"author": "LiorH",
"author_id": 52954,
"author_profile": "https://St... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22693/"
] |
381,988 | <p>I have been spoiled by either using sql server to store data, or using xml files.</p>
<p>What are common techniques for storing data in flat files other than xml and CSV.</p>
<p>I know many times when I open files that data is all jumbled up, which means it is encoded right? </p>
<p>Are there any common techniqu... | [
{
"answer_id": 382002,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 2,
"selected": false,
"text": "invoice: 34843\ndate : 2001-01-23\nbill-to: &id001\n given : Chris\n family : Dumars\n address:\n lines... | 2008/12/19 | [
"https://Stackoverflow.com/questions/381988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39677/"
] |
382,000 | <p>After watching: <a href="http://www.youtube.com/watch?v=4F72VULWFvc" rel="noreferrer">The Clean Code Talks -- Inheritance, Polymorphism, & Testing</a></p>
<p>I checked my code and noticed a few switch statements can be refactored into polymorphism, but I also noticed I only used switch statements with enums. D... | [
{
"answer_id": 382022,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": false,
"text": "switch"
},
{
"answer_id": 382075,
"author": "recursive",
"author_id": 44743,
"author_profile": "h... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21838/"
] |
382,006 | <p>I'm creating a WPF application where several ListView selections are made in a row (similar to the iTunes browser). The problem is that the default inactive selection color is too light. (see below)
<img src="https://i.stack.imgur.com/hwctc.jpg" alt="Default inactive selection color (too light)"></p>
<p>How can I c... | [
{
"answer_id": 382162,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 7,
"selected": true,
"text": "ListBox"
},
{
"answer_id": 3675110,
"author": "Thies",
"author_id": 41639,
"author_profile": "https... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/317/"
] |
382,009 | <p>In my .net windows service, when my timer elapses and my main method is called, is it best practice to put the timer in sleep mode?</p>
<p>This is in case my main method runs for too long, and the timer elapses before the previous calls main method finishes its execution.</p>
| [
{
"answer_id": 382162,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 7,
"selected": true,
"text": "ListBox"
},
{
"answer_id": 3675110,
"author": "Thies",
"author_id": 41639,
"author_profile": "https... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39677/"
] |
382,051 | <p>I'm trying to find documentation on how I can override a property name in Objective-C with @synthesize. If I have an instance variable name of 'foo', I want to write it's accessor as 'bar'. </p>
<p>Doing something such as</p>
<pre><code>@synthesize foo = bar;
</code></pre>
<p>gives a compile-time error.</p>
| [
{
"answer_id": 382082,
"author": "JamesSugrue",
"author_id": 1075,
"author_profile": "https://Stackoverflow.com/users/1075",
"pm_score": 3,
"selected": true,
"text": "@synthesize firstName, lastName, age = yearsOld;\n"
},
{
"answer_id": 382465,
"author": "Kelan",
"author_... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
382,100 | <p>We are planning to build a dynamic data import tool. Basically taking information on one end in a specified format (access, excel, csv) and upload it into an web service. </p>
<p><strong>The situation is that we do not know the export field names, so the application will need to be able to see the wsdl definition ... | [
{
"answer_id": 944781,
"author": "Erik Engheim",
"author_id": 66634,
"author_profile": "https://Stackoverflow.com/users/66634",
"pm_score": 2,
"selected": false,
"text": "// In this example file format describes a house (complex data object)\nAbstractReader reader = factory.createReader(... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47222/"
] |
382,101 | <p>How do you manage your php codes? Do you prefer functioning within one php file or including larger blocks of "raw code"?</p>
<p>Edit: In fact, my code is pretty nasty, as I don't use any namespaces and classes - only functions and including. I shall look the classes up ^^. </p>
| [
{
"answer_id": 382144,
"author": "Nick Van Brunt",
"author_id": 30470,
"author_profile": "https://Stackoverflow.com/users/30470",
"pm_score": 0,
"selected": false,
"text": "case 'widgetlist':\n $widgets = $DAO->getWidgets(); //get some query\n include('view/showWidgets.php'); //assum... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21209/"
] |
382,107 | <p>I'm studying Juval Lowy's excellent Programming WCF Services and I've just created a really simple in-proc component using his InProcFactory class that comes along with his ServiceModelEx library.</p>
<p>Why would you do this instead of using just regular classes in your project? Using his method requires referenc... | [
{
"answer_id": 382144,
"author": "Nick Van Brunt",
"author_id": 30470,
"author_profile": "https://Stackoverflow.com/users/30470",
"pm_score": 0,
"selected": false,
"text": "case 'widgetlist':\n $widgets = $DAO->getWidgets(); //get some query\n include('view/showWidgets.php'); //assum... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1572436/"
] |
382,108 | <p>How to script a constraint on a field in a table, for an acceptable range of values is between 0 and 100?</p>
| [
{
"answer_id": 382116,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https://Stackoverflow.com/users/2199",
"pm_score": 6,
"selected": true,
"text": "ALTER TABLE Table\nADD CONSTRAINT CK_Table_Column_Range CHECK (\n Column >= 0 AND Column <= 100 --Inclusive\n)\n"
}... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1446/"
] |
382,110 | <p>Can someone point me to an article (or discuss here) that explains how an add-on/extension can read what a user has completed in a form in a browser so you can present data to them based on the search parameters?</p>
<p>An example would be the Sidestep extension that opens a sidebar when a user searches on an airli... | [
{
"answer_id": 382116,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https://Stackoverflow.com/users/2199",
"pm_score": 6,
"selected": true,
"text": "ALTER TABLE Table\nADD CONSTRAINT CK_Table_Column_Range CHECK (\n Column >= 0 AND Column <= 100 --Inclusive\n)\n"
}... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47880/"
] |
382,113 | <p>I am conducting some throughput testing. My application has to</p>
<ol>
<li>read from JMS</li>
<li>do some processing</li>
<li>write to JMS</li>
</ol>
<p>My goal here is to simulate #2, 'some processing'. That is, introduce a delay and occupy the CPU for a given time (e.g. 500ms) before forwarding the event.</p>
... | [
{
"answer_id": 382164,
"author": "cliff.meyers",
"author_id": 41754,
"author_profile": "https://Stackoverflow.com/users/41754",
"pm_score": 2,
"selected": false,
"text": "Collections.shuffle()"
},
{
"answer_id": 382212,
"author": "Michael Myers",
"author_id": 13531,
"... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44437/"
] |
382,150 | <p>I want to pass some parameters to my MVC UserControl like ShowTitle(bool) and the ViewData.Model.Row . How I define my usercontrol and pass them to it?
Tanx</p>
| [
{
"answer_id": 382205,
"author": "liggett78",
"author_id": 19762,
"author_profile": "https://Stackoverflow.com/users/19762",
"pm_score": 1,
"selected": false,
"text": "public partial class MyUserControl : System.Web.Mvc.ViewUserControl<MyUserControlViewData> {\n}\n\npublic class MyUserCo... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46110/"
] |
382,152 | <p>I'm trying to control the coordinates of where my program opens a new window because currently they're opening ontop of each other. Does anyone have a working example of how to do this?</p>
| [
{
"answer_id": 382168,
"author": "JosephStyons",
"author_id": 672,
"author_profile": "https://Stackoverflow.com/users/672",
"pm_score": 3,
"selected": false,
"text": "procedure TForm1.Button1Click(Sender: TObject);\nvar\n frm : TForm;\nbegin\n frm := TForm.Create(Self);\n frm.Left := ... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
382,155 | <p>In Unix the <code>^</code> allows you to repeat a command with some text substituted for new text. For example:</p>
<pre><code>csh% grep "stuff" file1 >> Results
grep "stuff" file1
csh% ^file1^file2^
grep "stuff" file2
csh%
</code></pre>
<p>Is there a Vim equivalent? There are a lot of times I find myself ed... | [
{
"answer_id": 382195,
"author": "palehorse",
"author_id": 312,
"author_profile": "https://Stackoverflow.com/users/312",
"pm_score": 3,
"selected": false,
"text": "hello"
},
{
"answer_id": 382223,
"author": "rampion",
"author_id": 9859,
"author_profile": "https://Stac... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23829/"
] |
382,166 | <p>In a C++ project that uses smart pointers, such as <code>boost::shared_ptr</code>, what is a good design philosophy regarding use of "<strong><code>this</code></strong>"?</p>
<p>Consider that:</p>
<ul>
<li><p>It's dangerous to store the raw pointer contained in any smart pointer for later use. You've given up con... | [
{
"answer_id": 382177,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": true,
"text": "boost::enable_shared_from_this"
},
{
"answer_id": 382178,
"author": "Nemanja Trifunovic",
"a... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16287/"
] |
382,171 | <p>I have a form on an HTML page with multiple submit buttons that perform different actions. However, when the user is typing a value into a text input and hit enters, the browsers generally act as though the next submit button sequentially was activated. I want a particular action to occur, so one solution I found wa... | [
{
"answer_id": 382179,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackoverflow.com/users/45109",
"pm_score": 4,
"selected": true,
"text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1892/"
] |
382,173 | <p>The two methods <code>Thread.Suspend()</code> and <code>Thread.Resume()</code> are obsolete since .NET 2.0. Why? What are other alternatives and any examples?</p>
| [
{
"answer_id": 753286,
"author": "Darcy Casselman",
"author_id": 5062,
"author_profile": "https://Stackoverflow.com/users/5062",
"pm_score": 5,
"selected": false,
"text": "private Thread myThread;\n\nprivate void WorkerThread() \n{\n myThread = Thread.CurrentThread;\n while (true)\... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62776/"
] |
382,174 | <p>Within the Netbeans 6.5's Tools -> Options -> Fonts & Colors -> Syntax dialog, you have the ability to change the look and feel of the Netbeans text editor. When you select a language, you are presented with a preview of your font/color scheme. However, when I preview Java, there are far more options for syntax ... | [
{
"answer_id": 2201353,
"author": "Roja Buck",
"author_id": 217244,
"author_profile": "https://Stackoverflow.com/users/217244",
"pm_score": 2,
"selected": false,
"text": "grep -lr \"some part of the current sample code\" /path/to/netbeans\n"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/382174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34235/"
] |
382,176 | <p>I am working on a project that needs to use a database driven MVC scheme where the route to the controllers and views are controlled through a single database table. However, I haven't been able to find any tutorials that demonstrate this with a current version of the framework (they all appear to have been written ... | [
{
"answer_id": 382298,
"author": "lbrandao",
"author_id": 47883,
"author_profile": "https://Stackoverflow.com/users/47883",
"pm_score": 2,
"selected": false,
"text": "preDispatch()"
},
{
"answer_id": 382319,
"author": "lbrandao",
"author_id": 47883,
"author_profile": ... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20178/"
] |
382,186 | <p>Is there a way, given a set of values <code>(x,f(x))</code>, to find the polynomial of a given degree that best fits the data? </p>
<p>I know <a href="http://en.wikipedia.org/wiki/Polynomial_interpolation" rel="noreferrer">polynomial interpolation</a>, which is for finding a polynomial of degree <code>n</code> give... | [
{
"answer_id": 382274,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 3,
"selected": false,
"text": "import numpy\n\nx = numpy.arange(10)\ny = x**2\n\ncoeffs = numpy.polyfit(x, y, deg=2)\npoly = numpy.poly1d(coeffs)\nprint poly\n... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4958/"
] |
382,197 | <p>I am getting this error on a remote server, but the same code executes fine locally. Please refrain from saying it sucks, or giving me your rant on dynamic sql, I didn't write it, just trying to figure out why it's throwing an exception. The highlighted error is line 56.</p>
<pre><code>Protected Sub drpDateRange_Se... | [
{
"answer_id": 382219,
"author": "Christopher Edwards",
"author_id": 29411,
"author_profile": "https://Stackoverflow.com/users/29411",
"pm_score": 4,
"selected": true,
"text": "dv.RowFilter = \"inspectionType='Buyer' AND postedDate >= #\" & DateTime.Now.AddDays(-1).ToString(\"MMM dd yyyy... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26/"
] |
382,207 | <p>I have tables A and B. Items of table B might exist also in table A, and I want to delete those items. What would the SQL statements to do this look like?</p>
| [
{
"answer_id": 382216,
"author": "HLGEM",
"author_id": 9034,
"author_profile": "https://Stackoverflow.com/users/9034",
"pm_score": 0,
"selected": false,
"text": "delete a\n--select a.*\nfrom tablea a\njoin tableb b on a.someid = b.someid\n"
},
{
"answer_id": 382217,
"author":... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
382,234 | <p>I have an integer field in a ClientDataSet and I need to compare to some values, something like this:</p>
<p>I can use const</p>
<pre><code>const
mvValue1 = 1;
mvValue2 = 2;
if ClientDataSet_Field.AsInteger = mvValue1 then
</code></pre>
<p>or enums</p>
<pre><code>TMyValues = (mvValue1 = 1, mvValue2 = 2);
i... | [
{
"answer_id": 382277,
"author": "X-Ray",
"author_id": 14031,
"author_profile": "https://Stackoverflow.com/users/14031",
"pm_score": 1,
"selected": false,
"text": "TMyType=class\nprivate const // d2007 & later i think\n iMaxItems=1; // d2007 & later i think\nprivate type // d20... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24293/"
] |
382,256 | <p>In Crystal reports, you can define default values for the report parameters.</p>
<p>For example, I might have a date range and set a default start of 12/01/2008 and a default end of 12/31/2008.</p>
<p>Is it possible to modify these defaults at runtime? For example:</p>
<p>1 - Default to the first and last days o... | [
{
"answer_id": 382492,
"author": "Philippe Grondier",
"author_id": 11436,
"author_profile": "https://Stackoverflow.com/users/11436",
"pm_score": 3,
"selected": true,
"text": "If m_rapport.ParameterFields.Count > 0 Then\n For i = 1 To m_rapport.ParameterFields.Count\n If m_rappo... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/672/"
] |
382,263 | <p>We have 5mb of typical text (just plain words). We have 1000 words/phrases to use as terms to search for in this text. </p>
<p>What's the most efficient way to do this in .NET (ideally C#)?</p>
<p>Our ideas include regex's (a single one, lots of them) plus even the String.Contains stuff.</p>
<p>The input is a 2mb... | [
{
"answer_id": 382329,
"author": "Vilx-",
"author_id": 41360,
"author_profile": "https://Stackoverflow.com/users/41360",
"pm_score": 0,
"selected": false,
"text": "class Word\n{\n string Word;\n List<int> Positions;\n}\n"
},
{
"answer_id": 382451,
"author": "user47892",... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47892/"
] |
382,272 | <p>I'm using the CPoint class from MFC. There is no explicitly defined assignment operator or copy constructor (AFAIK). Yet, this works:<br></p>
<pre>
CPoint p1(1, 2), p2;
p2 = p1; // p2 now is equal to p1
</pre>
<p>I'm assuming this is working automagically because of a compiler generated assignment operator. Correc... | [
{
"answer_id": 382284,
"author": "Yuliy",
"author_id": 47527,
"author_profile": "https://Stackoverflow.com/users/47527",
"pm_score": 1,
"selected": false,
"text": "CPoint"
},
{
"answer_id": 382347,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "htt... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47154/"
] |
382,301 | <p>I've set up a number of accordions on a page using the jquery accordion plugin so I can implement expand all and collapse all functionality.</p>
<p>Each ID element is it's own accordion and the code below works to close them all no matter which ones are already open:</p>
<pre><code>$("#contact, #address, #email, #... | [
{
"answer_id": 382828,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 6,
"selected": true,
"text": "filter()"
},
{
"answer_id": 4000776,
"author": "Sil2",
"author_id": 253649,
"author_profile": "https://Stac... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47895/"
] |
382,307 | <p>What is it about this source code that causes it to actually generate a table in IE instead of just doing nothing.</p>
<pre><code> function generateATable()
{
tableContainer = document.getElementById("tableDiv");
var tableElement = document.createElement("table");
... | [
{
"answer_id": 382313,
"author": "Yuliy",
"author_id": 47527,
"author_profile": "https://Stackoverflow.com/users/47527",
"pm_score": 3,
"selected": false,
"text": " tableContainer = document.getElementById(\"tableDiv\");\n var tableElement = document... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18149/"
] |
382,309 | <p>I am trying to create a column in a table that's a foreign key, but in MySQL that's more difficult than it should be. It would require me to go back and make certain changes to an already-in-use table. So I wonder, <strong>how necessary is it for MySQL to be sure that a certain value is appropriate? Couldn't I j... | [
{
"answer_id": 385619,
"author": "staticsan",
"author_id": 28832,
"author_profile": "https://Stackoverflow.com/users/28832",
"pm_score": 0,
"selected": false,
"text": "innodb_flush_log_at_tx_commit"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/382309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1615/"
] |
382,317 | <p>I have an application that starts a Swing gui using java web start. The user has 4 versions of java 1.6 installed (1.6.0.3, 1.6.0.5, 1.6.0.7. 1.6.0.11) </p>
<p>Webstart is selecting java version 1.6.0.11 but JAVA_HOME is set to java version 1.6.0.3. Could this cause any potential problems for webstart? </p>
<ul>... | [
{
"answer_id": 383287,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "C:\\Documents and Settings\\[User]\\Application Data\\Sun\\Java\\Deployment\\deployment.properties\n(for Windows XP)\n\nC:\\User... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47508/"
] |
382,336 | <p>Does anyone know of a good example on how to set up log4net to use the system.data.sqlite provider? </p>
<p>I've been playing around with it lately and I thought I had it all working. It makes a successful connection to the database and "writes" it out. However, when I look at the table data, it never actually c... | [
{
"answer_id": 1369405,
"author": "Pieter Breed",
"author_id": 24172,
"author_profile": "https://Stackoverflow.com/users/24172",
"pm_score": 4,
"selected": false,
"text": "<Reference Include=\"log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitect... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
382,344 | <p>I have a service that I am rewriting to use threading. I understand that state from one thread should not be accessed by another, but I'm a little confused by what constitutes 'state'. Does that mean <em>any</em> field/property/method outside of the method scope?</p>
<p>Specifically, my service looks something lik... | [
{
"answer_id": 382393,
"author": "BenAlabaster",
"author_id": 40650,
"author_profile": "https://Stackoverflow.com/users/40650",
"pm_score": 3,
"selected": true,
"text": "SyncLock MyQueue\n If MyQueue.Length = 0 Then\n PauseFlag.Reset\n End If\nEnd SyncLock\n"
}
] | 2008/12/19 | [
"https://Stackoverflow.com/questions/382344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47225/"
] |
382,358 | <p>Lets say that I have a header user control in a master page, and want to change a property of the user control depending on what content page is loaded inside of the master page. How might I go about this?</p>
<p>Thanks!</p>
| [
{
"answer_id": 382398,
"author": "Shawn",
"author_id": 26,
"author_profile": "https://Stackoverflow.com/users/26",
"pm_score": 5,
"selected": true,
"text": "Page.Master.FindControl('controlID')"
},
{
"answer_id": 382782,
"author": "Mark Carpenter",
"author_id": 47645,
... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/396/"
] |
382,361 | <p>I am working on a project currently where there are SQL strings in the code that are around 3000 lines.</p>
<p>The project is a java project, but this question could probably apply for any language.</p>
<p>Anyway, this is the first time I have ever seen something this bad.
The code base is legacy, so we can sudden... | [
{
"answer_id": 382380,
"author": "stalepretzel",
"author_id": 1615,
"author_profile": "https://Stackoverflow.com/users/1615",
"pm_score": 1,
"selected": false,
"text": "$query = \"SELECT * FROM table WHERE \";\n$query .= \"condition < 5 AND \";\n$query .= \"condition2 > 10 AND \";\n"
}... | 2008/12/19 | [
"https://Stackoverflow.com/questions/382361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45365/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.