qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
368,006 | <p>I want my background worker to add items to a list box, it appears to do so when debugging but the listbox doesn't show the values. I suspect this is something to do with adding items whilst inside the background worker thread, do I need to add these to an array and then populate the list box from the array during <... | [
{
"answer_id": 368009,
"author": "Quibblesome",
"author_id": 1143,
"author_profile": "https://Stackoverflow.com/users/1143",
"pm_score": 1,
"selected": false,
"text": "Form.Invoke\n"
},
{
"answer_id": 368017,
"author": "Oliver Friedrich",
"author_id": 44532,
"author_p... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
368,014 | <p>Is there any way to detect if the iPhone wakes up from sleep while you're app is running? Eg: your app is running, the user locks the screen (or the screen auto locks) and some time later the user unlocks the screen and up pops your app. Is there some way to get an event at that point or detect it somehow? </p>
<p>... | [
{
"answer_id": 368066,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "https://Stackoverflow.com/users/582",
"pm_score": 4,
"selected": true,
"text": "applicationDidBecomeActive:"
},
{
"answer_id": 1490753,
"author": "noodl_es",
"author_id": 170237,
"au... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6044/"
] |
368,018 | <p>I'm trying to replace every multiline import inside a Python source file.. So, the source goes like</p>
<pre><code>from XXX import (
AAA,
BBB,
)
from YYY import (
CCC,
DDD,
EEE,
...
)
...other instructions...
</code></pre>
<p>and I'd like to get something like</p>
<pre><code>from XXX import AAA,... | [
{
"answer_id": 368037,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 2,
"selected": true,
"text": "lineIter= iter(aFile)\nfor aLine in lineIter:\n if aLine.startswith(\"import\"):\n if aLine.endswith(\"(\"):\n ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3497/"
] |
368,021 | <p>When my app is run in the iPhone simulator, the delegate method</p>
<pre><code>- (void)applicationWillTerminate:(UIApplication *)application
</code></pre>
<p>is only called the first time I hit the iPhone simulator's home button.</p>
<p>After the home button is pressed and the app is launched again, hitting the h... | [
{
"answer_id": 368064,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "https://Stackoverflow.com/users/582",
"pm_score": 6,
"selected": true,
"text": "NSLog"
},
{
"answer_id": 4372705,
"author": "Linuxmint",
"author_id": 524358,
"author_profile": "https... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26088/"
] |
368,039 | <p>I seem to have an app on my Dev server that has lots of open connections (they should be there, but some bad data layer was used to open them, that forgot to close them). I just want them closed so I can keep other apps running on the server. How can I force all the connections to close?</p>
| [
{
"answer_id": 368052,
"author": "gbn",
"author_id": 27535,
"author_profile": "https://Stackoverflow.com/users/27535",
"pm_score": 2,
"selected": false,
"text": "DECLARE @kill_id smallint \nDECLARE spid_cursor CURSOR FOR\nselect spid from sysprocesses \nwhere dbid = > 4 and last_batch < ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5055/"
] |
368,041 | <p>I would like to show the user with a spinner, that something is done in background but do not know how this works in a batchfile.</p>
<p>Does anyone have a clue?</p>
| [
{
"answer_id": 368793,
"author": "Patrick Cuff",
"author_id": 7903,
"author_profile": "https://Stackoverflow.com/users/7903",
"pm_score": 1,
"selected": false,
"text": "WScript.StdOut.Write(chr(8) & WScript.Arguments(0))\n"
},
{
"answer_id": 368865,
"author": "chakrit",
"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44532/"
] |
368,049 | <p>I'd like to insert a new field with a Default value using Visual C++ Code.
I have wrote this:</p>
<pre><code>CADODatabase pDB;
String strConnessione = _T("Provider=Microsoft.Jet.OLEDB.4.0;""Data Source=");
strConnessione = strConnessione + "MioDatabase.mdb";
pDB.SetConnectionString(strConnessione);
pDB.Open();
que... | [
{
"answer_id": 368572,
"author": "Philippe Grondier",
"author_id": 11436,
"author_profile": "https://Stackoverflow.com/users/11436",
"pm_score": 2,
"selected": false,
"text": "strSql = \"ALTER TABLE MyTable ADD COLUMN MyField DECIMAL (28,3);\"\nstrSql = \"ALTER TABLE MyTable ADD COLUMN M... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
368,057 | <p>Say I have a package "mylibrary".</p>
<p>I want to make "mylibrary.config" available for import, either as a dynamically created module, or a module imported from an entirely different place that would then basically be "mounted" inside the "mylibrary" namespace.</p>
<p>I.e., I do:</p>
<pre><code>import sys, type... | [
{
"answer_id": 368178,
"author": "Martin v. Löwis",
"author_id": 33006,
"author_profile": "https://Stackoverflow.com/users/33006",
"pm_score": 5,
"selected": true,
"text": ">>> import sys,types,xml\n>>> xml.config = sys.modules['xml.config'] = types.ModuleType('xml.config')\n>>> import x... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15677/"
] |
368,074 | <p>I have a problem in integrating PHP and JQuery:</p>
<p>My main file is <code>MyFile.html</code> and the AJAX call file is <code>ajax.php</code>.</p>
<p>The <code>ajax.php</code> function returns links to <code>myFile.html</code> as </p>
<p><code><a href Link.php?action=Function ></a></code> (i.e <cod... | [
{
"answer_id": 368113,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "="
},
{
"answer_id": 368175,
"author": "William Brendel",
"author_id": 2405,
"author_profile": "https://S... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44984/"
] |
368,094 | <p>In Java, what are the performance and resource implications of using</p>
<pre><code>System.currentTimeMillis()
</code></pre>
<p>vs. </p>
<pre><code>new Date()
</code></pre>
<p>vs. </p>
<pre><code>Calendar.getInstance().getTime()
</code></pre>
<p>As I understand it, <code>System.currentTimeMillis()</code> is ... | [
{
"answer_id": 368100,
"author": "Bombe",
"author_id": 43582,
"author_profile": "https://Stackoverflow.com/users/43582",
"pm_score": 4,
"selected": false,
"text": "System.currentTimeMillis()"
},
{
"answer_id": 368103,
"author": "krosenvold",
"author_id": 23691,
"autho... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15452/"
] |
368,114 | <p>I have an HTML form with two buttons as follows:</p>
<pre><code><input type="submit" name="confirm" value="Yes, Delete" />
<button name="confirm" type="button" onclick="history.back()" value="No, Go Back">No, Go Back</button>
</code></pre>
<p>Now, when I click on either in Firefox, the behavior ... | [
{
"answer_id": 368151,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<button>"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3831/"
] |
368,139 | <p>I was given a task of write the coding guidelines for my team, and it was going great until my manager asked me to write an explanation of <strong>Why Error Handling is Important</strong>.</p>
<p>I know it instinctively, but how do I express this in words?</p>
<p>I tried to google it first but came up empty, so I ... | [
{
"answer_id": 368165,
"author": "Christian Payne",
"author_id": 5188,
"author_profile": "https://Stackoverflow.com/users/5188",
"pm_score": 1,
"selected": false,
"text": "System.IO.FileNotFoundException"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44375/"
] |
368,143 | <p>I'm new to ASP.NET MVC and all tutorials, samples, and the like I seem to find are very basic.</p>
<p>Is it possible (and if yes, a good design) to have routes like so:
.../Organization/10/User/5/Edit
.../Organization/10/User/List</p>
<p>In other words; can the urls mirror your domain model?</p>
| [
{
"answer_id": 368243,
"author": "Garry Shutler",
"author_id": 6369,
"author_profile": "https://Stackoverflow.com/users/6369",
"pm_score": 1,
"selected": false,
"text": "\"~/Organization/{orgId}/{Controller}/{id}/{action}\"\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46343/"
] |
368,154 | <p>I'm creating a installer for a c# windows project using VS 2008. I'm trying to write a custom action that copies a settings file from the source directory of the MSI file stored on a file server (e.g. \server\fileshare\myappinstaller\mysetting.xml) to the target directory on the computer on which my application is b... | [
{
"answer_id": 2094661,
"author": "habakuk",
"author_id": 254041,
"author_profile": "https://Stackoverflow.com/users/254041",
"pm_score": 3,
"selected": false,
"text": " Public Overrides Sub Commit(ByVal savedState As System.Collections.IDictionary)\n MyBase.Commit(savedState)\... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/254/"
] |
368,160 | <p>I have a dataset in a worksheet that can be different every time. I am creating a pivottable from that data, but it is possible that one of the PivotItems is not there. For example:</p>
<pre><code>.PivotItems("Administratie").Visible = False
</code></pre>
<p>If that specific value is not in my dataset, the VBA scr... | [
{
"answer_id": 368211,
"author": "Patrick Cuff",
"author_id": 7903,
"author_profile": "https://Stackoverflow.com/users/7903",
"pm_score": 0,
"selected": false,
"text": "Public Function Test()\n On Error GoTo Test_EH\n\n Dim pvtField As PivotField\n Dim pvtItem As PivotItem\n ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42389/"
] |
368,169 | <p>I have some code that prints out databse values into a repeater control on an asp.net page. However, some of the values returned are null/blank - and this makes the result look ugly when there are blank spaces. </p>
<p>How do you do conditional logic in asp.net controls i.e. print out a value if one exists, else ... | [
{
"answer_id": 368225,
"author": "Matt Woodward",
"author_id": 40593,
"author_profile": "https://Stackoverflow.com/users/40593",
"pm_score": 4,
"selected": true,
"text": "<strong><% If (Eval(\"Address2\").Length > 0) Then %><%#Eval(\"Address2\")%><% Else %>No data available for Address 2... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5175/"
] |
368,170 | <p>I'm trying to write some code to find a specific XmlNode object based on the URL in the XML sitemap but can't get it to find anything.</p>
<p>The sitemap is the standard ASP.net sitemap and contains:</p>
<pre><code><siteMapNode url="~/lev/index.aspx" title="Live-Eye-Views">
--- Child Items ---
</siteMapNo... | [
{
"answer_id": 368239,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": true,
"text": "<siteMap xmlns=\"http://schemas.microsoft.com/AspNet/SiteMap-File-1.0\" >\n <siteMapNode url=\"~/lev/index.aspx\" title=\"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33721/"
] |
368,176 | <p>I need to find 2 elements in an unsorted array such that the difference between them is less than or equal to (Maximum - Minimum)/(number of elements in the array).</p>
<p>In O(n).</p>
<p>I know the max and min values.</p>
<p>Can anyone think of something?</p>
<p>Thank you!</p>
| [
{
"answer_id": 369817,
"author": "Sid Datta",
"author_id": 18390,
"author_profile": "https://Stackoverflow.com/users/18390",
"pm_score": 1,
"selected": false,
"text": "2n"
},
{
"answer_id": 53613333,
"author": "Jonathan Weiss",
"author_id": 6706019,
"author_profile": ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
368,184 | <p>I found some code in a project which looks like that : </p>
<pre><code>int main(int argc, char *argv[])
{
// some stuff
try {
theApp.Run();
} catch (std::exception& exc) {
cerr << exc.what() << std::endl;
exit(EXIT_FAILURE);
}
return (EXIT_SUCCESS);
}
</code></pre>
<p>I don't understan... | [
{
"answer_id": 368217,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "int main(void)\n{\n try\n {\n // your code \n }\n catch ( /* YourPossibleExceptions i.e. barfs you ex... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20986/"
] |
368,192 | <p>I have this little function</p>
<pre><code>function makewindows(){
child1 = window.open ("about:blank");
child1.document.write("<?php echo htmlspecialchars(json_encode($row2['ARTICLE_DESC']), ENT_QUOTES); ?>");
child1.document.close();
}
</code></pre>
<p>Which whatever I try, simply outputs the php code as ... | [
{
"answer_id": 368216,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 0,
"selected": false,
"text": "http://localhost/yourpage.php"
},
{
"answer_id": 368231,
"author": "some",
"author_id": 36866,
"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
368,194 | <p>I'm using <a href="https://tablelayout.dev.java.net/" rel="nofollow noreferrer">TableLayout</a> for my swing GUI. Initially only some basic labels, buttons and text fields where required which I could later on access by:</p>
<pre><code>public Component getComponent(String componentName) {
return getComponent(co... | [
{
"answer_id": 368216,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 0,
"selected": false,
"text": "http://localhost/yourpage.php"
},
{
"answer_id": 368231,
"author": "some",
"author_id": 36866,
"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33429/"
] |
368,200 | <p>Simple question. How do you disable the text selection of DocumentViewer in WPF? This is the feature where an XPS document is displayed by the viewer and then text can be highlighted via mouse. The highlighted text can also be copied but I have already disabled this. I just don't know how to disable the highlighting... | [
{
"answer_id": 415155,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<Style TargetType=\"{x:Type ScrollViewer}\" x:Key=\"CustomScrollPresenter\">\n <Setter Property=\"Template\">\n <Set... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
368,215 | <p>Considering the following table</p>
<p>I have a large table from which I can query to get the following table</p>
<pre><code>type no of times type occurs
101 450
102 562
103 245
111 25
112 28
113 21
</code></pre>
<p>Now suppose I wanted to ge... | [
{
"answer_id": 415155,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "<Style TargetType=\"{x:Type ScrollViewer}\" x:Key=\"CustomScrollPresenter\">\n <Setter Property=\"Template\">\n <Set... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31132/"
] |
368,219 | <p>I have a relatively simple form which asks a variety of questions. One of those questions is answered via a Select Box. What I would like to do is if the person selects a particular option, they are prompted for more information.</p>
<p>With the help of a few online tutorials, I've managed to get the Javascript to ... | [
{
"answer_id": 368232,
"author": "Tom",
"author_id": 20,
"author_profile": "https://Stackoverflow.com/users/20",
"pm_score": 5,
"selected": true,
"text": "onchange"
},
{
"answer_id": 368292,
"author": "suitedupgeek",
"author_id": 42428,
"author_profile": "https://Stac... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42428/"
] |
368,253 | <p>I have a <code>NSTimer</code> object that I need to invalidate if a user taps on a button or if they exit a view.</p>
<p>So I have:</p>
<pre><code>[myNSTimer invalidate];
</code></pre>
<p>inside my button handler and inside <code>viewWillDisappear</code>. If user taps on a button and then exists a view the app th... | [
{
"answer_id": 368263,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "https://Stackoverflow.com/users/582",
"pm_score": 6,
"selected": true,
"text": "release"
},
{
"answer_id": 368379,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "htt... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44091/"
] |
368,260 | <p>Sometimes Eclipse comes up saying "hey you should debug this line!!!" but doesn't actually close the program. I can then continue to play big two, and even go through the same events that caused the error the first time and get another error box to pop up!</p>
<p>The bug is simple, I'll fix it, I just want to know ... | [
{
"answer_id": 368297,
"author": "Bent André Solheim",
"author_id": 44380,
"author_profile": "https://Stackoverflow.com/users/44380",
"pm_score": 2,
"selected": false,
"text": "public class ThreadTest {\n\n public static void main(String[] args) {\n\n Runnable test = new Runnab... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
368,262 | <p>I am compiling a c++ static library in vs2008, and in the solution i also have a startup project that uses the lib, and that works fine. </p>
<p>But when using the lib in another solution i get an run-time check failure.
"The value of ESP was not properly saved across a functioncall"
Stepping through the code i not... | [
{
"answer_id": 370228,
"author": "Mr.Ree",
"author_id": 37946,
"author_profile": "https://Stackoverflow.com/users/37946",
"pm_score": 5,
"selected": true,
"text": "class Foo { virtual void f(); };\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46357/"
] |
368,265 | <p>I want to make a very simple event bus which will allow any client to subscribe to a particular type of event and when any publisher pushes an event on the bus using <code>EventBus.PushEvent()</code> method only the clients that subscribed to that particular event type will get the event.</p>
<p>I am using C# and .... | [
{
"answer_id": 1681066,
"author": "Volker von Einem",
"author_id": 104631,
"author_profile": "https://Stackoverflow.com/users/104631",
"pm_score": 2,
"selected": false,
"text": "[Publishes(\"TimerTick\")]\npublic event EventHandler Expired;\nprivate void OnTick(Object sender, EventArgs e... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46358/"
] |
368,271 | <p>I would like to know how to modify the below code to strip <code>=20</code> characters at the end of many lines, and mainly to sort the messages chronologically from first received or sent to last. I am not sure if this would be an internal Perl routine or not. </p>
<pre><code>#!/usr/bin/perl
use warnings;
use stri... | [
{
"answer_id": 368309,
"author": "innaM",
"author_id": 7498,
"author_profile": "https://Stackoverflow.com/users/7498",
"pm_score": 3,
"selected": true,
"text": "=20"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
368,280 | <p>As made clear in update 3 on <a href="https://stackoverflow.com/questions/367440/javascript-associative-array-without-tostring-etc#367454">this answer</a>, this notation:</p>
<pre><code>var hash = {};
hash[X]
</code></pre>
<p>does not actually hash the object <code>X</code>; it actually just converts <code>X</code> ... | [
{
"answer_id": 368504,
"author": "Eugene Lazutkin",
"author_id": 26394,
"author_profile": "https://Stackoverflow.com/users/26394",
"pm_score": 10,
"selected": true,
"text": "var key = function(obj){\n // Some unique object-dependent key\n return obj.totallyUniqueEmployeeIdKey; // Just ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
368,281 | <p>I'm pulling my hair out on this one.</p>
<p>I have a site which is version controlled using Subversion. I use aptana (eclipse, subclipse) to do the svn. I have been checking in and out files, updating etc and everything is fine. However the system we have been building has been adding its own files and folders.</p>... | [
{
"answer_id": 368293,
"author": "Keltia",
"author_id": 16143,
"author_profile": "https://Stackoverflow.com/users/16143",
"pm_score": 0,
"selected": false,
"text": "svn"
},
{
"answer_id": 368307,
"author": "Avi",
"author_id": 1605,
"author_profile": "https://Stackover... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28241/"
] |
368,288 | <p>I'm having trouble with the following two items:</p>
<ul>
<li>How to retrieve all of the subkey values in ClassesRoot\Typelib, and;</li>
<li>How to find a match for a known value (path/dll name) in the array of subkey values.</li>
</ul>
<p>As background info, I'm trying to find a way to check if a DLL has been reg... | [
{
"answer_id": 368397,
"author": "WOPR",
"author_id": 46255,
"author_profile": "https://Stackoverflow.com/users/46255",
"pm_score": 1,
"selected": false,
"text": "public void Foo()\n{\n foreach (string s in Microsoft.Win32.Registry.CurrentUser.GetSubKeyNames())\n {\n Microsoft.W... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2493/"
] |
368,295 | <p>I'm using <code>FontMetrics.getHeight()</code> to get the height of the string, but it gives me a wrong value, cutting off the descenders of string characters. Is there a better function I can use?</p>
| [
{
"answer_id": 368308,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 4,
"selected": false,
"text": "getMaxDescent()"
},
{
"answer_id": 368448,
"author": "Ned Batchelder",
"author_id": 14343,
"auth... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9476/"
] |
368,323 | <p>i've got the following linq2sql query, and i'm setting the result to a POCO. One of my POCO properties is an enumeration.</p>
<pre><code>public IQueryable<Models.Achievement> GetAchievements()
{
return from a in _sqlDatabase.Achievements
select new Models.Achievement
{
... | [
{
"answer_id": 368335,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "select new {..., AchievementType = (AchievementType) foo.Bar, ...}\n"
},
{
"answer_id": 368342,
"author": ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
368,329 | <p>Besides the fact that <code>$_REQUEST</code> reads from cookies, are there any reasons why I should use <code>$_GET</code> and <code>$_POST</code> instead of <code>$_REQUEST</code>? What are theoretical and practical reasons for doing so?</p>
| [
{
"answer_id": 368337,
"author": "Karsten",
"author_id": 28144,
"author_profile": "https://Stackoverflow.com/users/28144",
"pm_score": 2,
"selected": false,
"text": "$_GET['foo'] = 'bar'\n$_POST['foo'] = 'baz'\n"
},
{
"answer_id": 368339,
"author": "Powerlord",
"author_id... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26155/"
] |
368,338 | <p>can I pass a cursor in a procedure?</p>
<pre><code>CURSOR BLT_CURSOR IS
SELECT BLT.sol_id,
BLT.bill_id,
BLT.bank_id
FROM BLT;
</code></pre>
<p>Is my cursor.</p>
<pre><code>Procedure abc(i want to pass the cursor here)
</code></pre>
<p>How do I do it.</p>
| [
{
"answer_id": 368533,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": "https://Stackoverflow.com/users/18747",
"pm_score": 4,
"selected": false,
"text": "PROCEDURE abc( p_cursor IN SYS_REFCURSOR) IS\n v_sol_id blt.sol_id%TYPE;\n v_bill_id blt.bill_id%TYPE;\n v_bank... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
368,351 | <p>Given the following table in SQL Server 2005:</p>
<pre><code>ID Col1 Col2 Col3
-- ---- ---- ----
1 3 34 76
2 32 976 24
3 7 235 3
4 245 1 792
</code></pre>
<p>What is the best way to write the query that yields the following result (i.e. one that yie... | [
{
"answer_id": 368381,
"author": "George Mastros",
"author_id": 1408129,
"author_profile": "https://Stackoverflow.com/users/1408129",
"pm_score": 7,
"selected": true,
"text": "Select Id,\n Case When Col1 < Col2 And Col1 < Col3 Then Col1\n When Col2 < Col1 And Col2 < Col3... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21379/"
] |
368,359 | <p>I have a long running function in MATLAB that I tried to speed up by adding caching and wound up slowing down my performance significantly. My code is basically searching for continuous "horizontal" lines in an edge detected image and the original code looks something like this:</p>
<pre><code>function lineLength ... | [
{
"answer_id": 368391,
"author": "schnaader",
"author_id": 34065,
"author_profile": "https://Stackoverflow.com/users/34065",
"pm_score": 0,
"selected": false,
"text": "for every pixel p in img\n if (pixel p set)\n linelength = 1\n p2 = p\n while (pixel p2 set) and (p2 in same c... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4797/"
] |
368,362 | <p>Sample data:
!!Part|123456,ABCDEF,ABC132!!</p>
<p>The comma delimited list can be any number of any combination of alphas and numbers </p>
<p>I want a regex to match the entries in the comma separated list:</p>
<p>What I have is:
!!PART\|(\w+)(?:,{1}(\w+))*!!</p>
<p>Which seems to do the job, the thing is I want... | [
{
"answer_id": 368389,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": " if (tag.StartsWith(\"!!Part|\") && tag.EndsWith(\"!!\"))\n {\n tag = tag.Substring(7, tag.L... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39643/"
] |
368,369 | <p>I'm working on a site similar to digg in the respect that users can submit "stories". </p>
<p>I keep track of how many "votes" and "similar adds" each item got. Similar adds are defined as two users adding the same "link". </p>
<p>Here is <em>part</em> of the algorithm (essentially the most important):</p>
<pre><... | [
{
"answer_id": 368509,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": "https://Stackoverflow.com/users/18747",
"pm_score": 0,
"selected": false,
"text": "select sum(dayval)\nfrom\n( select count(*) / (current_date-day+1) dayval\n from votes\n where story_id = 123\n an... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23695/"
] |
368,384 | <p>After deploying our huge distributed system to one of our clients we experience an unexpected error. During the investigation we replace the assembly causing the error with one where we have added some diagnostic code. The dll we use is built in debug mode. And suddenly it all works!</p>
<p>Replacing the debug dll ... | [
{
"answer_id": 368408,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": false,
"text": "Debug.WriteLine"
},
{
"answer_id": 368429,
"author": "Ed Guiness",
"author_id": 4200,
"author_pro... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22621/"
] |
368,385 | <p>Is it possible to implement <a href="http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization" rel="noreferrer">RAII</a> in pure C? </p>
<p>I assume it isn't possible in any sane way, but perhaps is it possible using some kind of dirty trick. Overloading the standard <code>free</code> function comes to m... | [
{
"answer_id": 368444,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 1,
"selected": false,
"text": "free"
},
{
"answer_id": 368731,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15109/"
] |
368,414 | <p>I have a view which is selecting rows from a table in a different database. I'd like to grant select access to the view, but not direct access to the base table. The view has a where clause restricting the number of rows.</p>
<p>Can I grant select to the view and not the base table, or do I need to switch to a st... | [
{
"answer_id": 368428,
"author": "James Orr",
"author_id": 41457,
"author_profile": "https://Stackoverflow.com/users/41457",
"pm_score": 4,
"selected": false,
"text": "GRANT SELECT ON [viewname] TO [user]\n"
},
{
"answer_id": 6383578,
"author": "Kosmo",
"author_id": 80293... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37591/"
] |
368,430 | <p>I am working on creating a .asmx webservice to meet the specific needs of an integration environment and for the life of me I cannot figure out how to get one section of it to work. The key is that the request WSDL needs to be something like the following. (Note I removed the soap envelope and namespace informatio... | [
{
"answer_id": 368479,
"author": "Ihar Voitka",
"author_id": 46313,
"author_profile": "https://Stackoverflow.com/users/46313",
"pm_score": 3,
"selected": true,
"text": "wsdl.exe /serverInterface"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13279/"
] |
368,432 | <p>Is there any way to set the style for the lineends for the TCanvas.LineTo method? It seems to default to rounded ends, which looks very bad for several lines in a row of different colours when Pen.Width is set to a large value (e.g. 9).</p>
<p>It looks like this (rounded ends):</p>
<pre><code> ********........****... | [
{
"answer_id": 368606,
"author": "Uli Gerhardt",
"author_id": 1431618,
"author_profile": "https://Stackoverflow.com/users/1431618",
"pm_score": 3,
"selected": true,
"text": "PS_ENDCAP_*"
},
{
"answer_id": 59089189,
"author": "NineBerry",
"author_id": 101087,
"author_p... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21506/"
] |
368,438 | <p>I have to work on some code that's using generic lists to store a collection of custom objects.</p>
<p>Then it does something like the following to check if a given object's in the collection and do something if so:</p>
<pre><code>List<CustomObject> customObjects;
//fill up the list
List<CustomObject> ... | [
{
"answer_id": 368457,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "Dictionary<CustomObject,CustomObject> ...\n"
},
{
"answer_id": 368465,
"author": "Frans Bouma",
"autho... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1311500/"
] |
368,450 | <p>Is there a tool that will show me what applications are writing to the hard drive in real time? I'm thinking something like Task Manager but for I/O. I've got a number of background processes running, and can never tell when Visual Studio is holding everything up, or some other process is hogging the disk (especiall... | [
{
"answer_id": 30905723,
"author": "duhaime",
"author_id": 1727392,
"author_profile": "https://Stackoverflow.com/users/1727392",
"pm_score": 2,
"selected": false,
"text": "Task Manager"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23935/"
] |
368,459 | <p>For example I have two tables. The first table is student while the second table are the courses that the a student is taking. How can I use a select statement so that I can see two columns student and courses so that the courses are separated by commas.</p>
<p>Thanks.</p>
| [
{
"answer_id": 368489,
"author": "Ian Varley",
"author_id": 37539,
"author_profile": "https://Stackoverflow.com/users/37539",
"pm_score": 0,
"selected": false,
"text": "SELECT \n S.*,\n SC.*\n FROM\n Students S\n INNER JOIN Student_Courses SC\n ON S.student_id = SC.stud... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
368,463 | <p>We are in the process of designing a simple service-oriented architecture using WCF as the implementation framework. There are a handful of services that a few applications use. These services are mostly used internally, so a basic authentication and authorization scheme (such as Windows-based) is enough.</p>
<p>We... | [
{
"answer_id": 368536,
"author": "Joseph DeCarlo",
"author_id": 46362,
"author_profile": "https://Stackoverflow.com/users/46362",
"pm_score": 3,
"selected": true,
"text": "[OperationContract(Namespace=\"www.fu.com\", Action=\"*\")]\nvoid CallThis(Message msg);\n"
},
{
"answer_id"... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16026/"
] |
368,468 | <p>i wonder if there is a simple way to remove already registered types from a unity container or at least replace existing Interface/Type mappings with another one.
is it enough to just map another class type to an interface and the old one is overwritten?</p>
<hr>
<p>this should not happen very often. actually hard... | [
{
"answer_id": 5437437,
"author": "Eric Bock",
"author_id": 70863,
"author_profile": "https://Stackoverflow.com/users/70863",
"pm_score": 4,
"selected": false,
"text": "\npublic interface IService\n{\n void DoSomething();\n}\n\npublic class SomeService : IService\n{\n public void D... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20227/"
] |
368,480 | <p>I am trying to display an HTML page inside another SharePoint webpart page.</p>
<p>I used the Out-of-the-box page viewer webpart, but the page viewer webpart displays a disabled scrollbar inside it.</p>
<p>I also tried using a content editor webpart with an IFRAME tag in it, but still it didnt't work.</p>
<p>This... | [
{
"answer_id": 9439688,
"author": "Karlo",
"author_id": 1231877,
"author_profile": "https://Stackoverflow.com/users/1231877",
"pm_score": 2,
"selected": false,
"text": "#s4-workspace {\n\n overflow-y: hidden !important;\n\n overflow-x: hidden !important;\n\n}\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1909/"
] |
368,490 | <p>I am looking to determine from a large code base, what files are actually being used over a period of time. I need to know about CFM pages and CFCs as well as any included CFM files etc. </p>
<p>I know I can get <em>some</em> of this info using logging in application.cfm, or by using IIS, but I will still be missin... | [
{
"answer_id": 371405,
"author": "Peter Boughton",
"author_id": 9360,
"author_profile": "https://Stackoverflow.com/users/9360",
"pm_score": 3,
"selected": true,
"text": "classic.cfm"
},
{
"answer_id": 383266,
"author": "Stewart Robinson",
"author_id": 47424,
"author_p... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/446733/"
] |
368,494 | <p>I have a WCF service that has been hosted on a Windows Service and uses the BasicHttp endpoint to serve Windows Mobile devices that has been connected to it.</p>
<p>The problem is that with the Device Emulator. I can connect to the service and using it without any problems, but with an actual device. I receive the ... | [
{
"answer_id": 29384299,
"author": "Oğuzhan Soykan",
"author_id": 3514288,
"author_profile": "https://Stackoverflow.com/users/3514288",
"pm_score": 1,
"selected": false,
"text": "[OperationContract]\n[WebInvoke(Method = \"POST\", ResponseFormat = WebMessageFormat.Json)]\nstring CheckServ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34623/"
] |
368,505 | <p>Is it possible to select column data using the ordinal_position for a table column? I know using ordinal positions is a bad practice but for a one-off data import process I need to be able to use the ordinal position to get the column data.</p>
<p>So for example </p>
<pre><code>create table Test(
Col1 int,
... | [
{
"answer_id": 368525,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 2,
"selected": false,
"text": "select table_name, column_name, ordinal_position, data_type\nfrom information_schema.columns\norder by 1,3\n"
},
{
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3635/"
] |
368,542 | <p>I was thinking of implementing shortcut keys in a pet web application, I am developing for me. I am using c# and asp.net. </p>
<p>I have seen very few web-sites( frankly I remember only g-mail), which have shortcut keys. </p>
<p>Has anyone ever implemented shortcut keys for a web application, if yes how to go abou... | [
{
"answer_id": 20795304,
"author": "pratik patel",
"author_id": 3106345,
"author_profile": "https://Stackoverflow.com/users/3106345",
"pm_score": -1,
"selected": false,
"text": "use this javascript on your master page this work using keycode.........\n\n\n--------------------------------... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41968/"
] |
368,545 | <p>I wrote a <code>while loop</code> in a function, but don't know how to stop it. When it doesn't meet its final condition, the loop just go for ever. How can I stop it?</p>
<pre><code>def determine_period(universe_array):
period=0
tmp=universe_array
while True:
tmp=apply_rules(tmp)#aplly_rules is... | [
{
"answer_id": 368550,
"author": "Mapad",
"author_id": 28165,
"author_profile": "https://Stackoverflow.com/users/28165",
"pm_score": 6,
"selected": true,
"text": "def determine_period(universe_array):\n period=0\n tmp=universe_array\n while True:\n tmp=apply_rules(tmp)#ap... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44354/"
] |
368,551 | <p>Given a list of strings, what is the best method for concatenating these strings into a comma separated list with no comma at the end. (VB.NET or C#) (Using either StringBuilder or String Concat.)</p>
<pre><code>Dim strResult As String = ""
Dim lstItems As New List(Of String)
lstItems.Add("Hello")
lstItems.Add("Wor... | [
{
"answer_id": 368564,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 5,
"selected": false,
"text": "Dim Result As String\nDim Items As New List(Of String)\nItems.Add(\"Hello\")\nItems.Add(\"World\")\n\nResult = String.... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21826/"
] |
368,557 | <p>I have a small program to order and sort email messages, outputting to a textfile using <code>$msg->decoded->string</code>. The perl program outputs to <code>stdout</code>, and I redirect it to a txt file. However, gedit is unable to open this text file because of a character set problem, and I would like to k... | [
{
"answer_id": 368696,
"author": "Dave Vogt",
"author_id": 35189,
"author_profile": "https://Stackoverflow.com/users/35189",
"pm_score": 1,
"selected": false,
"text": "open my $fh, '>:encoding(UTF-8)', $file;\n"
},
{
"answer_id": 368748,
"author": "Leon Timmermans",
"auth... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
368,603 | <p>I need to write a 'simple' util to convert from ASCII to EBCDIC? </p>
<p>The Ascii is coming from Java, Web and going to an AS400. I've had a google around, can't seem to find a easy solution (maybe coz there isn't one :( ). I was hoping for an opensource util or paid for util that has already been written. </p>... | [
{
"answer_id": 368632,
"author": "JeeBee",
"author_id": 17832,
"author_profile": "https://Stackoverflow.com/users/17832",
"pm_score": 2,
"selected": false,
"text": "String(byte[] bytes, [int offset, int length,] String enc)"
},
{
"answer_id": 27737881,
"author": "dmolony",
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31751/"
] |
368,612 | <p>I have an .Net Froms application that displays web pages through a WebBrowser control.</p>
<p>Is there anyway that I can detect if the control shows a '<em>Page not found</em>' or '<em>Cannot display webpage</em>' error?
There doesn't seem to be any error event handlers.</p>
| [
{
"answer_id": 368734,
"author": "Darin Dimitrov",
"author_id": 29407,
"author_profile": "https://Stackoverflow.com/users/29407",
"pm_score": 5,
"selected": true,
"text": "private void button1_Click(object sender, EventArgs e)\n{\n SHDocVw.WebBrowser instance = (SHDocVw.WebBrowser)web... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18107/"
] |
368,613 | <p>I've got a collection of records to process, and the processing can be parallelized, so I've created an <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html" rel="nofollow noreferrer">ExecutorService</a> (via <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/... | [
{
"answer_id": 368671,
"author": "Tim Frey",
"author_id": 1471,
"author_profile": "https://Stackoverflow.com/users/1471",
"pm_score": 2,
"selected": false,
"text": "public class Task implements Runnable {\n private final ExecutorService threadPool;\n private final SubTask[] subtask... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4203/"
] |
368,636 | <p>I've seen a good bit of setuptools bashing on the internets lately. Most recently, I read James Bennett's <a href="http://www.b-list.org/weblog/2008/dec/14/packaging/" rel="noreferrer">On packaging</a> post on why no one should be using setuptools. From my time in #python on Freenode, I know that there are a few sou... | [
{
"answer_id": 370062,
"author": "ianb",
"author_id": 20218,
"author_profile": "https://Stackoverflow.com/users/20218",
"pm_score": 6,
"selected": true,
"text": "python -c 'import setuptools; __file__=\"setup.py\"; execfile(__file__)' \\\n install \\\n --single-version-externally-m... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18866/"
] |
368,642 | <p>I'm getting the error when accessing a Stored Procedure in SQL Server</p>
<pre><code>Server Error in '/' Application.
Procedure or function 'ColumnSeek' expects parameter '@template', which was not supplied.
</code></pre>
<p>This is happening when I call a Stored Procedure with a parameter through .net's data con... | [
{
"answer_id": 368659,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "AS\nSELECT Column_Name, ...\nFROM ...\nWHERE TABLE_NAME = @template\n"
},
{
"answer_id": 2766541,
"author... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26140/"
] |
368,651 | <p>Using the standard win32 api, what's the best way to detect more than one user is logged on? I have an upgrade to our software product that can't be run when more than one user is logged in. (I know this is something to be avoided because of its annoyance factor, but the product is very complicated. You'll have t... | [
{
"answer_id": 368937,
"author": "Mick",
"author_id": 12458,
"author_profile": "https://Stackoverflow.com/users/12458",
"pm_score": 2,
"selected": false,
"text": "unit main;\n\ninterface\n\nuses\n Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,\n Dialogs, Std... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24898/"
] |
368,653 | <p>In a web-application implemented in java using JSP and Servlets; if I store information in the user session, this information is shared from all the tabs from the same browser. How to differ sessions in the browser-tabs?
In this example: </p>
<pre><code><%@page language="java"%>
<%
String user = request.g... | [
{
"answer_id": 19384101,
"author": "Mike A.",
"author_id": 782695,
"author_profile": "https://Stackoverflow.com/users/782695",
"pm_score": 3,
"selected": false,
"text": "//Events \n$(window).ready(function() {generateWindowID()});\n$(window).focus(function() {setAppId()});\n$(window).mou... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46388/"
] |
368,668 | <p>I'm interested in assigning the tag name of the root element in an xml document to an xslt variable. For instance, if the document looked like (minus the DTD):</p>
<pre><code><foo xmlns="http://.....">
<bar>1</bar>
</foo>
</code></pre>
<p>and I wanted to assign the string 'foo' to an x... | [
{
"answer_id": 368727,
"author": "Dirk Vollmar",
"author_id": 40347,
"author_profile": "https://Stackoverflow.com/users/40347",
"pm_score": 6,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Tr... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26241/"
] |
368,669 | <p>We have many projects that use a common base of shared components (dlls).
Currently the development build for each project links against dlls built from the trunk of the components. (ie trunk builds use the dlls from other trunk builds)</p>
<p>When we do a release build, we have a script that goes through the proj... | [
{
"answer_id": 368753,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 4,
"selected": true,
"text": "trunk"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3590/"
] |
368,725 | <p>Given the schema</p>
<pre>
PERSON { name, spouse }
</pre>
<p>where PERSON.spouse is a foreign key to PERSON.name, NULLs will be necessary when a person is unmarried or we don't have any info.</p>
<p>Going with the argument against nulls, how do you avoid them in this case?</p>
<p>I have an alternate schema</p>
... | [
{
"answer_id": 368795,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 2,
"selected": false,
"text": "PERSON { A, B }\nPERSON { B, C }\nPERSON { C, NULL }\n"
},
{
"answer_id": 369057,
"author": "Tom H",
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21294/"
] |
368,742 | <p>Suppose I have a method that takes an object of some kind as an argument. Now say that if this method is passed a null argument, it's a fatal error and an exception should be thrown. Is it worth it for me to code something like this (keeping in mind this is a trivial example):</p>
<pre><code>void someMethod(Some... | [
{
"answer_id": 368759,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 7,
"selected": true,
"text": "ArgumentNullException"
},
{
"answer_id": 368760,
"author": "Chris Marisic",
"author_id": 37055,
"aut... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
368,744 | <p>Suppose a shell script (/bin/sh or /bin/bash) contained several commands. How can I cleanly make the script terminate if any of the commands has a failing exit status? Obviously, one can use if blocks and/or callbacks, but is there a cleaner, more concise way? Using && is not really an option either, beca... | [
{
"answer_id": 368754,
"author": "mat",
"author_id": 42083,
"author_profile": "https://Stackoverflow.com/users/42083",
"pm_score": 7,
"selected": true,
"text": "sh"
},
{
"answer_id": 1222559,
"author": "Barun",
"author_id": 147021,
"author_profile": "https://Stackover... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28558/"
] |
368,750 | <p>Finally, I have a question to ask on Stack Overflow! :-)</p>
<p>The main target is for Java but I believe it is mostly language agnostic: if you don't have native assert, you can always simulate it.</p>
<p>I work for a company selling a suite of softwares written in Java. The code is old, dating back to Java 1.3 a... | [
{
"answer_id": 368811,
"author": "Stefan Teitge",
"author_id": 12463,
"author_profile": "https://Stackoverflow.com/users/12463",
"pm_score": 2,
"selected": false,
"text": "List returnListOfSize(int size) {\n // complex list creation\n assert list.size == size;\n}\n"
},
{
"a... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15459/"
] |
368,761 | <p>I need to start and stop SQL Server from the command line. I am willing to write a small C# program if necessary, but I suspect that there's something (PowerShell, maybe?) that currently exists that does this gracefully.</p>
<p>Thank you.</p>
| [
{
"answer_id": 368772,
"author": "P Daddy",
"author_id": 36388,
"author_profile": "https://Stackoverflow.com/users/36388",
"pm_score": 5,
"selected": true,
"text": "net {start|stop} mssqlserver"
},
{
"answer_id": 73737652,
"author": "Kai - Kazuya Ito",
"author_id": 817243... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2536/"
] |
368,762 | <p>So What I'm essentially trying to do is have something happen 70% of the time, another few things happen 10% of the time each if that makes sense but my app doesn't seem to do any of the actions I'm guessing I'm misunderstanding the loop syntax or something, anyway if anyone could take a look and maybe give me some ... | [
{
"answer_id": 368772,
"author": "P Daddy",
"author_id": 36388,
"author_profile": "https://Stackoverflow.com/users/36388",
"pm_score": 5,
"selected": true,
"text": "net {start|stop} mssqlserver"
},
{
"answer_id": 73737652,
"author": "Kai - Kazuya Ito",
"author_id": 817243... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
368,766 | <p>I'm looking for a little help on programmatically passing parameters to a SSRS report via VB.NET and ASP.NET. This seems like it should be a relatively simple thing to do, but I haven't had much luck finding help on this.</p>
<p>Does anyone have any suggestions on where to go to get help with this, or perhaps even... | [
{
"answer_id": 368851,
"author": "Abram Simon",
"author_id": 46204,
"author_profile": "https://Stackoverflow.com/users/46204",
"pm_score": 5,
"selected": true,
"text": "LocalReport myReport = new LocalReport();\nmyReport.ReportPath = Server.MapPath(\"~/Path/To/Report.rdlc\");\n\nReportPa... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6602/"
] |
368,771 | <p>How do I post a form to an external site using an ASP.NET MVC controller?</p>
<p><strong>EDIT:</strong> Ok... I have a view with some data on it. After the user completes the form I need to do a postback with a specified form format to an external site (like for paypal). After I posted the constructed form I need t... | [
{
"answer_id": 368785,
"author": "Ian P",
"author_id": 10853,
"author_profile": "https://Stackoverflow.com/users/10853",
"pm_score": 0,
"selected": false,
"text": "<% using (Html.Form<Controller>(\"Action\", c => c.Method())) { %>\n"
},
{
"answer_id": 369050,
"author": "chakr... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
368,786 | <p>Here's an interesting question. I have a system that attempts to run some initialization code. If it fails, we call the deinitializer to clean everything up.</p>
<p>Because we call the deinitializer in exception handling, we run the risk that both initialize and deinitialize will fail, and hypothetically, it now se... | [
{
"answer_id": 368796,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 3,
"selected": false,
"text": " static void Main(string[] args)\n {\n try\n {\n principalMethod();\n }\n... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40352/"
] |
368,802 | <p>I have a really simple Java class that effectively decorates a Map with input validation, with the obvious void set() and String get() methods.</p>
<p>I'd like to be able to effectively call those methods and handle return values and exceptions from outside the JVM, but still on the same machine <strong>Update: the... | [
{
"answer_id": 1540974,
"author": "Travis Wilson",
"author_id": 8735,
"author_profile": "https://Stackoverflow.com/users/8735",
"pm_score": 1,
"selected": false,
"text": "i = new bsh.Interpreter();\ni.set( \"myapp\", this ); // Provide a reference to your app\ni.eval(\"server(7000)\");\... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2362/"
] |
368,805 | <p>Any thoughts on why this isn't working? I really thought 'ignore' would do the right thing.</p>
<pre><code>>>> 'add \x93Monitoring\x93 to list '.encode('latin-1','ignore')
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
UnicodeDecodeError: 'ascii' codec can't decode byt... | [
{
"answer_id": 368828,
"author": "rob",
"author_id": 43927,
"author_profile": "https://Stackoverflow.com/users/43927",
"pm_score": 2,
"selected": false,
"text": ">>> u'add \\x93Monitoring\\x93 to list '.encode('latin-1','ignore')\n'add \\x93Monitoring\\x93 to list '\n"
},
{
"answ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13009/"
] |
368,807 | <p>The following html code works in Firefox, but for some reason fails in IE (Label2 is not shown). Is that a bug or I miss something?</p>
<p>Any help would be appreciated.</p>
<pre><code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
... | [
{
"answer_id": 368857,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackoverflow.com/users/45109",
"pm_score": 3,
"selected": false,
"text": "<sidequestion>"
},
{
"answer_id": 368893,
"author": "Shog9",
"author_id": 811,
"author_profile": "http... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42512/"
] |
368,813 | <p>According to HTML specs, the <code>select</code> tag in HTML doesn't have a <code>readonly</code> attribute, only a <code>disabled</code> attribute. So if you want to keep the user from changing the dropdown, you have to use <code>disabled</code>.</p>
<p>The only problem is that disabled HTML form inputs don't get ... | [
{
"answer_id": 368822,
"author": "kemiller2002",
"author_id": 1942,
"author_profile": "https://Stackoverflow.com/users/1942",
"pm_score": 7,
"selected": false,
"text": "$('#yourSelect').prop('disabled', true);\n"
},
{
"answer_id": 368834,
"author": "bezmax",
"author_id": ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6681/"
] |
368,830 | <p>I currently have some code that pulls down a list of users in a group and then iterates through that group to determine if a given account exists, but it seems like there ought to be a more concise (and perhaps faster) way to accomplish this.</p>
<p>This code (VB.NET) attempts to use the member property of the grou... | [
{
"answer_id": 368890,
"author": "huseyint",
"author_id": 39,
"author_profile": "https://Stackoverflow.com/users/39",
"pm_score": 5,
"selected": true,
"text": "static bool IsUserMemberOf(string userName, string groupName)\n{\n using (var ctx = new PrincipalContext(ContextType.Domain))... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30018/"
] |
368,831 | <p>i would to know how to write a profiler? What books and / or articles recommended? Can anyone help me please?</p>
<p>Someone has already done something like this?</p>
| [
{
"answer_id": 738647,
"author": "Mike Dunlavey",
"author_id": 23771,
"author_profile": "https://Stackoverflow.com/users/23771",
"pm_score": 3,
"selected": false,
"text": "I"
},
{
"answer_id": 874632,
"author": "Mike Dunlavey",
"author_id": 23771,
"author_profile": "h... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24639/"
] |
368,832 | <p>I have a PHP script (running on a Linux server) that ouputs the names of some files on the server. It outputs these file names in a simple text-only format.</p>
<p>This output is read from a VB.NET program by using HttpWebRequest, HttpWebResponse, and a StreamReader.</p>
<p>The problem is that some of the file nam... | [
{
"answer_id": 368848,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 1,
"selected": false,
"text": "utf8_encode($file)"
},
{
"answer_id": 368939,
"author": "Ates Goral",
"author_id": 23501,
"author_pr... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5956/"
] |
368,858 | <p>I've been working with <a href="http://www.microsoft.com/Sqlserver/" rel="nofollow noreferrer">Microsoft SQL Server</a> with many years now but have only just recently started to use <a href="http://www.mysql.com/" rel="nofollow noreferrer">MySQL</a> with my web applications, and I'm hungry for knowledge.</p>
<p>To... | [
{
"answer_id": 368894,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 4,
"selected": false,
"text": "mysql> show processlist;\nshow processlist;\n+----+-------------+-----------------+------+---------+------+----... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/383/"
] |
368,879 | <p>I have an application which tries to load some expected registry settings within its constructor.</p>
<p>What is the most appropriate .NET Exception from the BCL to throw if these (essential, non-defaultable) registry settings cannot be loaded?</p>
<p>For example:</p>
<pre><code> RegistryKey registryKey = Registr... | [
{
"answer_id": 368891,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 4,
"selected": true,
"text": "throw new ArgumentException(\"Could not find registry key: \" + theKey);\n"
},
{
"answer_id": 368898,
"author": "... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5975/"
] |
368,904 | <p>I have a classic 3-tier ASP.Net 3.5 web application with forms that display business objects and allow them to be edited. Controls on the form correspond to a property of the underlying business object. The user will have read/write, readonly, or no access to the various controls depending on his/her role. Very conv... | [
{
"answer_id": 1743719,
"author": "Julian Bromwich",
"author_id": 212262,
"author_profile": "https://Stackoverflow.com/users/212262",
"pm_score": 3,
"selected": true,
"text": "/** NO permissions.\n * Presentation: \"hidden\"\n * Database: \"no access\"\n */\nNONE(0),\n\n/** VIEW ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44394/"
] |
368,913 | <p>What's a good way to serialize a Delphi object tree to XML--using RTTI and not custom code?</p>
<p>I would have loved to find that this feature is already built into Delphi, but it doesn't seem to be.</p>
<p>I've found a few components (posted, below) that seem like they might perform this function. Have you used... | [
{
"answer_id": 368972,
"author": "Andreas Hausladen",
"author_id": 44005,
"author_profile": "https://Stackoverflow.com/users/44005",
"pm_score": 5,
"selected": true,
"text": "uses\n JvAppXMLStorage;\n\nvar\n Storage: TJvAppXMLFileStorage;\nbegin\n Storage := TJvAppXMLFileStorage.Creat... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32841/"
] |
368,924 | <p>Is there any simple way to access the <code>DataContext</code> in a linq2sql entity class.</p>
<p>I'm trying to create something like <code>EntitySet</code> but I cannot figure out how the <code>EntitySet</code> has access to the context that created the entity object in the first place.</p>
<p>I want to have a re... | [
{
"answer_id": 369618,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "EntitySet<T>"
},
{
"answer_id": 818987,
"author": "Monty",
"author_id": 83791,
"author_profile": ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35371/"
] |
368,926 | <p>What's the easiest way to figure out if a window is opened modally or not?</p>
<p><strong>CLARIFICATION:</strong></p>
<p>I open a window calling </p>
<pre><code>myWindow.ShowDialog();
</code></pre>
<p>I have a footer with an "OK" & "Cancel" button that I only want to show if the window is opened modally. Now... | [
{
"answer_id": 368969,
"author": "Stephen Wrighton",
"author_id": 7516,
"author_profile": "https://Stackoverflow.com/users/7516",
"pm_score": 0,
"selected": false,
"text": "dim f as myWindow\nf.show\nsomeOtherMethod()\n"
},
{
"answer_id": 369021,
"author": "BenAlabaster",
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17744/"
] |
368,927 | <p>I am working in the Linux environment, and I have a C++ program, what I want is when I cancel the program with ctrl+c I would like that the program executes a function, to close some files and print some sutff, is there any way to do this?. Thank you. </p>
| [
{
"answer_id": 368949,
"author": "Colin Pickard",
"author_id": 12744,
"author_profile": "https://Stackoverflow.com/users/12744",
"pm_score": 2,
"selected": false,
"text": "void sigint_handler(int sig)\n{\n [do some cleanup]\n signal(SIGINT, SIG_DFL);\n kill(getpid(), SIGINT);\n}... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39160/"
] |
368,929 | <p>Say I want to design a database for a community site with blogs, photos, forums etc., one way to do this is to single out the concept of a "post", as a blog entry, a blog comment, a photo, a photo comment, a forum post all can be thought as a post. So, I could potentially have one table named Post [PostID, PostType... | [
{
"answer_id": 369019,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 2,
"selected": false,
"text": "Post"
},
{
"answer_id": 369223,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32240/"
] |
368,943 | <p>How do I get the div from within this (the last) list item?</p>
<p>Currently I have this, which is just plain ugly...any suggestions on a cleaner selector/ solution?</p>
<pre><code>var div = ul.append("<li><div></div></li>").contents("li:last-child")[0].children[0];
</code></pre>
<p>Thanks... | [
{
"answer_id": 368955,
"author": "doekman",
"author_id": 56,
"author_profile": "https://Stackoverflow.com/users/56",
"pm_score": 0,
"selected": false,
"text": "var div = ul.append(\"<li><div></div></li>\").contents(\"li:last-child > div\")[0];\n"
},
{
"answer_id": 368960,
"au... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5791/"
] |
368,954 | <p>Probably not much more to elaborate on here - I'm using a NumericStepper control and I want the user to use the buttons only to change the value in the NS, not by typing into the control - I couldn't find a property to disable the text - does it exist? </p>
<p>If it doesn't, how would I subclass this thing to disab... | [
{
"answer_id": 369039,
"author": "Paul Mignard",
"author_id": 3435,
"author_profile": "https://Stackoverflow.com/users/3435",
"pm_score": 1,
"selected": false,
"text": "mx_internal::inputField.enabled = false;\n"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3435/"
] |
368,956 | <p>I have forms in my page a get and a post and i want add pager on my get form .. so i cant page through the results.. </p>
<p>The problem that i am having is when i move to the second page it does not display anything..</p>
<p>I am using this library for paging ..
<a href="http://stephenwalther.com/Blog/archive/200... | [
{
"answer_id": 369049,
"author": "maxnk",
"author_id": 45862,
"author_profile": "https://Stackoverflow.com/users/45862",
"pm_score": 1,
"selected": false,
"text": "1. make form on the page:\n <form id=\"myForm\" action=\"your/url\" method=\"post\">\n <input type=\"hidden\" name... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43838/"
] |
368,963 | <p>I wish to store a single variable in my application that will be saved between runs. This will be a version number that will be used to trigger an update option and so will change only rarely.</p>
<p>Does anyone have suggestions on the best way of implementing this? Considering it's such a simple requirement I am i... | [
{
"answer_id": 377065,
"author": "ayaz",
"author_id": 23191,
"author_profile": "https://Stackoverflow.com/users/23191",
"pm_score": 0,
"selected": false,
"text": "c:\\System\\Apps\\${AppName}\\${filename}"
}
] | 2008/12/15 | [
"https://Stackoverflow.com/questions/368963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33604/"
] |
368,966 | <p>I'm trying to do query result pagination with hibernate and displaytag, and Hibernate <code>DetachedCriteria</code> objects are doing their best to stand in the way. Let me explain...</p>
<p>The easiest way to do pagination with displaytag seems to be implementing the <code>PaginatedList</code> interface that has, ... | [
{
"answer_id": 374333,
"author": "agnul",
"author_id": 6069,
"author_profile": "https://Stackoverflow.com/users/6069",
"pm_score": 1,
"selected": false,
"text": "DetachedCriteria"
},
{
"answer_id": 805842,
"author": "agnul",
"author_id": 6069,
"author_profile": "https... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6069/"
] |
368,967 | <p>There example on the net and code given in Learn OpenCv,Orielly.</p>
<p>After many attempts the out.avi file is written with 0 bytes.
I wonder where i went wrong.</p>
<p>The following are the code i used...</p>
<pre><code>int main(int argc, char* argv[]) {
CvCapture* input = cvCaptureFromFile(argv[1]);
Ip... | [
{
"answer_id": 397703,
"author": "sgielen",
"author_id": 13104,
"author_profile": "https://Stackoverflow.com/users/13104",
"pm_score": 0,
"selected": false,
"text": "if(colourImage == NULL) {\n printf(\"Warning - got NULL colourImage\\n\");\n continue;\n}\ncvNamedWindow( \"test\", ... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43076/"
] |
368,976 | <p>I have an abstract class defining a pure virtual method in c++:</p>
<pre><code>class Base
{
Base();
~Base();
virtual bool Test() = 0;
};
</code></pre>
<p>I have subclassed this with a number of other classes (which provide an implementation for Test()), which I'll refer to as A, B, C, etc. I now want to create an... | [
{
"answer_id": 368984,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": true,
"text": "int main(int argc, char* argv[])\n{\n int size = 0;\n Base** bases = new Base*[10];\n\n bases[size+... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18909/"
] |
368,981 | <p>I have a full path which I would like to remove certain levels of it. So for instance,</p>
<pre><code>/home/john/smith/web/test/testing/nothing/
</code></pre>
<p>I would like to get rid of 4 levels, so I get</p>
<pre><code>/test/testing/nothing/
</code></pre>
<p>What would be a good of doing this?</p>
<p>Thanks... | [
{
"answer_id": 368989,
"author": "troelskn",
"author_id": 18180,
"author_profile": "https://Stackoverflow.com/users/18180",
"pm_score": 4,
"selected": true,
"text": "join(\"/\", array_slice(explode(\"/\", $path), 5));\n"
},
{
"answer_id": 371208,
"author": "Jay",
"author_... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
368,997 | <p>I have a column that contains dates, when I click the column header the column is sorted numerically and not by date. How would I sort this by date? The date is in the format dd/mm/yy.</p>
<p>Example (sorted oldest first):</p>
<p>10/12/08 <--December
10/09/08 <--September
12/12/08 <--December</p>
<p>Many... | [
{
"answer_id": 369014,
"author": "Gunny",
"author_id": 12830,
"author_profile": "https://Stackoverflow.com/users/12830",
"pm_score": 3,
"selected": false,
"text": "myDataTable.Columns[\"ColumnName\"].DataType = System.Type.GetType(\"System.Date\");\n"
},
{
"answer_id": 3324967,
... | 2008/12/15 | [
"https://Stackoverflow.com/questions/368997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.