qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
220,188 | <p><a href="http://www.w3.org/TR/REC-html40/interact/scripts.html" rel="noreferrer"><strong>According to spec</strong></a>, only the <code>BODY</code> and <code>FRAMESET</code> elements provide an "onload" event to attach to, but I would like to know when a dynamically-created DOM element has been added to the DOM in J... | [
{
"answer_id": 220192,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 1,
"selected": false,
"text": "DOMNodeInserted DOMNodeInsertedIntoDocument"
},
{
"answer_id": 220224,
"author": "Darryl Hein",
"au... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1790/"
] |
220,202 | <p>The subject doesn't say much cause it is not easy to question in one line.
I have to execute a few programs which I read from the registry. I have to read from a field where somebody saves the whole paths and arguments.<br>
I've been using System.Diagnostics.ProcessStartInfo setting the name of the program and its a... | [
{
"answer_id": 220553,
"author": "Danny Frencham",
"author_id": 29830,
"author_profile": "https://Stackoverflow.com/users/29830",
"pm_score": 4,
"selected": true,
"text": "Process myProcess = New Process;\nmyProcess.StartInfo.FileName = \"cmd.exe\";\nmyProcess.StartInfo.Arguments = \"/C ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23893/"
] |
220,203 | <p>Or if any body knows of an alternative control that does?</p>
<p>It would be handy to serve up content to the WebBrowser control that has embedded images & other resources from a database without having a dependency on these resources being hosted on a webserver or to create temporary files on the local file sy... | [
{
"answer_id": 220239,
"author": "sbeskur",
"author_id": 10446,
"author_profile": "https://Stackoverflow.com/users/10446",
"pm_score": 1,
"selected": false,
"text": "this.webBrowser1.Url = new System.Uri(@\"C:\\TempFiles\\MyTest.mht\");\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/220203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29799/"
] |
220,211 | <p>I'm creating a web application for work where the user has to enter the name of the person that requested the job. I'd like to create a simple AJAX auto-suggest dropdown so they don't need to type the entire name. On the backend, the database will provide suggestions based on previous entries. The website is buil... | [
{
"answer_id": 220264,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 4,
"selected": true,
"text": "function autocomplete () {\n $this->set('people',\n $this->Person->findAll(\"name LIKE '%{$this->data['Perso... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5982/"
] |
220,229 | <p>I'm looking for Ruby's Active record for PHP. Something that is so simple that I just define my fields, extend the base ORM class, and I get ACID operations for free. I should get default getters and setters without writing any code, but overriding a default getter or setter is as easy as declaring get$fieldName or ... | [
{
"answer_id": 223836,
"author": "dcousineau",
"author_id": 20265,
"author_profile": "https://Stackoverflow.com/users/20265",
"pm_score": 4,
"selected": false,
"text": "./doctrine build-all-reload ./doctrine generate-models-db ./doctrine generate-yaml-db $object->save()"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/220229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2112692/"
] |
220,231 | <p>How do I access a page's HTTP response headers via JavaScript?</p>
<p>Related to <a href="https://stackoverflow.com/questions/220149/how-do-i-access-the-http-request-header-fields-via-javascript"><strong>this question</strong></a>, which was modified to ask about accessing two specific HTTP headers.</p>
<blockquot... | [
{
"answer_id": 220233,
"author": "keparo",
"author_id": 19468,
"author_profile": "https://Stackoverflow.com/users/19468",
"pm_score": 9,
"selected": true,
"text": "getAllResponseHeaders() fetchSimilarHeaders() myXMLHttpRequest.getAllResponseHeaders();\n getAllResponseHeaders() XMLHttpReq... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19468/"
] |
220,234 | <p>In the <code>IDisposable.Dispose</code> method is there a way to figure out if an exception is being thrown?</p>
<pre><code>using (MyWrapper wrapper = new MyWrapper())
{
throw new Exception("Bad error.");
}
</code></pre>
<p>If an exception is thrown in the <code>using</code> statement I want to know about it w... | [
{
"answer_id": 220249,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": "try\n{\n MyWrapper wrapper = new MyWrapper();\n\n}\ncatch (Exception e)\n{\n wrapper.CaughtException = true;\n}\nfina... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11829/"
] |
220,236 | <p>I'm trying to figure out a decent solution (especially from the SEO side) for embedding fonts in web pages. So far I have seen <a href="http://web.archive.org/web/20100208164146/http://www.spoono.com/html/tutorials/tutorial.php?id=19" rel="noreferrer">the W3C solution</a>, which doesn't even work on Firefox, and <a ... | [
{
"answer_id": 220277,
"author": "savetheclocktower",
"author_id": 25720,
"author_profile": "https://Stackoverflow.com/users/25720",
"pm_score": 3,
"selected": false,
"text": "font-family: \"Lucida Grande\", \"Verdana\", sans-serif"
},
{
"answer_id": 1967226,
"author": "fence... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8047/"
] |
220,243 | <p>How can I comment a JSP expression like: <code><%= map.size() %></code></p>
<p>Is there something like <code><%= // map.size() %>?</code></p>
| [
{
"answer_id": 220251,
"author": "jim",
"author_id": 27628,
"author_profile": "https://Stackoverflow.com/users/27628",
"pm_score": -1,
"selected": false,
"text": "<!-- map.size here because --> \n<%= map.size() %>\n <%= map.size() // map.size here because %>\n"
},
{
"answer_id": ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14015/"
] |
220,250 | <p>I am curious as to why an implicit cast fails in...</p>
<pre><code>int? someValue = SomeCondition ? ResultOfSomeCalc() : null;
</code></pre>
<p>and why I have to perform an explicit cast instead</p>
<pre><code>int? someValue = SomeCondition ? ResultofSomeCalc() : (int?)null;
</code></pre>
<p>It seems to me that ... | [
{
"answer_id": 220269,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 4,
"selected": false,
"text": "object someValue = true ? new Nullable<int>(ResultOfSomeCalc()) : null;\n\nobject someValue = true ? (int?)ResultO... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10387/"
] |
220,254 | <p>I have been using code similar to this</p>
<pre><code>MessageDlg('', mtWarning, [mbOK], 0);
</code></pre>
<p>throughout my project, (thanks to the GExperts Message Dialog tool :) ) and i was wondering if anyone knows of a way do override the call and show my own custom Form.</p>
<p>The only way i can think to do ... | [
{
"answer_id": 222330,
"author": "X-Ray",
"author_id": 14031,
"author_profile": "https://Stackoverflow.com/users/14031",
"pm_score": 0,
"selected": false,
"text": "function MessageDlgEx(Caption, Msg: string; AType: TMsgDlgType;\n AButtons: array of string;\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11016/"
] |
220,266 | <p>So after installing NUnit, the assemblies (<code>nunit.framework</code>, etc.) now appear in the <code>References > Add Reference</code> dialog, but they're not in the <code>%WINDIR%\Microsoft.NET\Framework\v2.0.50727</code> dir and there is no <code>NUnit</code> registry entry for the Assembly Path <code>(i.e. H... | [
{
"answer_id": 220285,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 0,
"selected": false,
"text": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework\\AssemblyFolders\\v3.0\n HKEY_LOCAL_MACHINE\\SOFTWARE\\Micr... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
220,273 | <p>Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a <code>div</code> above another <code>div</code> when they are not in that order in the HTML? Both <code>div</code>s contain data that varies in height and width.</p>
<pre><code><div id="w... | [
{
"answer_id": 220321,
"author": "Bobby Jack",
"author_id": 5058,
"author_profile": "https://Stackoverflow.com/users/5058",
"pm_score": 2,
"selected": false,
"text": "#wrapper { position: relative; margin-top: 4em; }\n#firstDiv { position: absolute; top: 0; width: 100%; }\n#secondDiv { p... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12368/"
] |
220,274 | <p>I remember when MS was developing Cassini - I believe they rolled it into VS 05/08, so I think this is a Cassini web server question. </p>
<p>I am using Windows XP with Visual Studio 2008, and find it quite inconvenient when I want to test a web page/styling with multiple browsers and multiple OSes. Right now I h... | [
{
"answer_id": 220279,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 2,
"selected": false,
"text": "C:\\Windows\\system32\\drivers\\etc\n"
},
{
"answer_id": 1732123,
"author": "ronsky",
"author_id":... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8426/"
] |
220,298 | <p>I would like to have my warnings set to the highest level using Microsoft Visual C++ compiler. Similar to using -pedantic on gcc. What compiler switches do you use to have the most warnings enabled?</p>
| [
{
"answer_id": 220314,
"author": "Menkboy",
"author_id": 29539,
"author_profile": "https://Stackoverflow.com/users/29539",
"pm_score": 1,
"selected": false,
"text": "/W4 /Wall"
},
{
"answer_id": 63542701,
"author": "boqpoq",
"author_id": 14150291,
"author_profile": "h... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13676/"
] |
220,323 | <p>I have a class with the following member functions:</p>
<pre><code>
/// caller pid
virtual pid_t Pid() const = 0;
/// physical memory size in KB
virtual uint64_t Size() const = 0;
/// resident memory for this process
virtual uint64_t Rss() const = 0;
/// cpu used by this process
virtual double PercentCpu() c... | [
{
"answer_id": 220546,
"author": "DGentry",
"author_id": 4761,
"author_profile": "https://Stackoverflow.com/users/4761",
"pm_score": 3,
"selected": false,
"text": "#include <sys/resource.h>\n\nstruct rusage r_usage;\n\nif (getrusage(RUSAGE_SELF, &r_usage)) {\n /* ... error handling ..... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29810/"
] |
220,340 | <p>I want to be able to check the status of a publication and subscription in SQL Server 2008 T-SQL. I want to be able to determine if its okay, when was the last successful, sync, etc.. Is this possible?</p>
| [
{
"answer_id": 4036445,
"author": "Denaem",
"author_id": 331461,
"author_profile": "https://Stackoverflow.com/users/331461",
"pm_score": 5,
"selected": false,
"text": "SELECT \n(CASE \n WHEN mdh.runstatus = '1' THEN 'Start - '+cast(mdh.runstatus as varchar)\n WHEN mdh.runstatus =... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17222/"
] |
220,342 | <p>In MonoRail you can just CancelLayout() to not render the layout. In ASP.NET MVC, the only way to affect the layout seems to be to pass the layout name into the View() method like View("myview", "mylayout"); only it seems that passing null or an empty string doesn't do what I'd want. </p>
<p>I ended up creating an ... | [
{
"answer_id": 4730049,
"author": "expdiant",
"author_id": 108260,
"author_profile": "https://Stackoverflow.com/users/108260",
"pm_score": 7,
"selected": false,
"text": " @{\n Layout = \"\"; \n }\n"
},
{
"answer_id": 10137056,
"author": "berzinsu",
"author_id":... | 2008/10/20 | [
"https://Stackoverflow.com/questions/220342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11229/"
] |
220,374 | <p>I have just started migrating my homegrown persistence framework to JPA.</p>
<p>Given that the persistence frameworks hide a lot of the plumbing, I'm interested in knowing if NOT closing EntityManagers will create a resource leak, or if the frameworks will collect and close them for me.</p>
<p>I intend in all plac... | [
{
"answer_id": 12474357,
"author": "Puneet",
"author_id": 1366477,
"author_profile": "https://Stackoverflow.com/users/1366477",
"pm_score": 3,
"selected": false,
"text": "EntityManager @PersistenceContext maxPoolSize EntityManager EntityManagerFactory entitymanager.close() c3p0"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20150/"
] |
220,382 | <p>I need to write robust code in .NET to enable a windows service (server 2003) to restart itself. What is the best way to so this? Is there some .NET API to do it?</p>
| [
{
"answer_id": 220451,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 9,
"selected": true,
"text": "Environment.Exit(1)"
},
{
"answer_id": 538825,
"author": "Community",
"author_id": -1,
"author_... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1363/"
] |
220,387 | <p>What's the simplest way to join one or more arrays (or ArrayLists) in Visual Basic?</p>
<p>I'm using .NET 3.5, if that matters much.</p>
| [
{
"answer_id": 220481,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 4,
"selected": false,
"text": "int[] a = new int[] { 1, 2, 3, 4, 5 };\nint[] b = new int[] { 6, 7, 8, 9, 10 };\nint[] c = a.Union(b).ToArray();\n... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13563/"
] |
220,392 | <p>This is the exception that I'm getting when I'm trying to bind to a System.Type.Name.</p>
<p>Here is what I'm doing:</p>
<pre><code>this.propertyTypeBindingSource.DataSource = typeof(System.Type);
/* snip */
this.nameTextBox1.DataBindings.Add(
new System.Windows.Forms.Binding(
"Text",
this.p... | [
{
"answer_id": 220425,
"author": "Evgeny",
"author_id": 26447,
"author_profile": "https://Stackoverflow.com/users/26447",
"pm_score": 3,
"selected": true,
"text": "public class StubPropertyType\n{\n public StubPropertyType(Type type)\n {\n this.StubPropertyTypeName = type.Na... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26447/"
] |
220,393 | <p>This seems like a pretty stupid question, but I'm trying to figure out the best way to do this. Would you simply redirect to a /Logout page and have the controller call the FormsAuthentication.SignOut function?</p>
<p>That was my first thought, but then I wondered if it could be abused by third party websites. Le... | [
{
"answer_id": 220403,
"author": "Schotime",
"author_id": 29376,
"author_profile": "https://Stackoverflow.com/users/29376",
"pm_score": 2,
"selected": false,
"text": "public ActionResult Logout()\n{\n FormsAuthentication.SignOut();\n return RedirectToAction(\"Index\", \"Home\");\n}... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
220,405 | <p>I have a web application that I'm writing (C#, MSSQL) and I need to store the timestamp when a record is stored in the system. Normally, I would just do this with SQL and the DATETIME function. However, the server is located in a different time zone than our company is located... AND we may change to another serve... | [
{
"answer_id": 220706,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 5,
"selected": true,
"text": "-- convert UTC to local time\ncreate FUNCTION [dbo].[udfUtcToLocalTime]\n(\n @gmt datetime\n)\nRETURNS datetime\nAS... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20848/"
] |
220,423 | <p>From time to time, I run into communications issue with other programmers, when we talk about NULL. Now NULL could be
<BR>
<BR> a NULL pointer
<BR> the NUL character
<BR> an empty data element in some sort of database.</p>
<p><BR> NUL seems to be the most confusing. It is the ASCII character 0x00.
<BR> I tend ... | [
{
"answer_id": 220434,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 4,
"selected": true,
"text": "'\\0' NULL 0 '\\0' int char char"
},
{
"answer_id": 220530,
"author": "James Curran",
"author_id": 12... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734/"
] |
220,432 | <p>Say I have an array of strings in a php array called $foo with a few hundred entries, and I have a MySQL table 'people' that has a field named 'name' with a few thousand entries. What is an efficient way to find out which strings in $foo aren't a 'name' in an entry in 'people' without submitting a query for every s... | [
{
"answer_id": 220497,
"author": "jakber",
"author_id": 29812,
"author_profile": "https://Stackoverflow.com/users/29812",
"pm_score": 1,
"selected": false,
"text": " $list = join(\",\", $foo);\n\n// fetch all rows of the result of \n// \"SELECT name FROM people WHERE name IN($list)\" \n/... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10393/"
] |
220,437 | <p>According to the <a href="http://ca3.php.net/manual/en/function.get-magic-quotes-gpc.php" rel="noreferrer">PHP manual</a>, in order to make code more portable, they recommend using something like the following for escaping data:</p>
<pre><code>if (!get_magic_quotes_gpc()) {
$lastname = addslashes($_POST['lastna... | [
{
"answer_id": 220490,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 3,
"selected": false,
"text": "<?php\n\n// Strips slashes recursively only up to 3 levels to prevent attackers from\n// causing a stack overflow error.\n... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13281/"
] |
220,439 | <p>I'm trying to make a triangle (isosceles triangle) to move around the screen and at the same time slightly rotate it when a user presses a directional key (like right or left).</p>
<p>I would like the nose (top point) of the triangle to lead the triangle at all times. (Like that old asteroids game).</p>
<p>My prob... | [
{
"answer_id": 220468,
"author": "Loren Pechtel",
"author_id": 10659,
"author_profile": "https://Stackoverflow.com/users/10659",
"pm_score": 2,
"selected": false,
"text": "x' = x + speed * cos(angle)\ny' = y + speed * sin(angle)\n"
},
{
"answer_id": 220471,
"author": "jakber"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26310/"
] |
220,445 | <p>How would I be able to programmatically search and replace some text in a large number of PDF files? I would like to remove a URL that has been added to a set of files. I have been able to remove the link using javascript under Batch Processing in Adobe Pro, but the link text remains. I have seen recommendations ... | [
{
"answer_id": 220791,
"author": "Chris Dolan",
"author_id": 14783,
"author_profile": "https://Stackoverflow.com/users/14783",
"pm_score": 5,
"selected": true,
"text": " $ cpan install CAM::PDF\n # start a new terminal if this is your first cpan module\n $ changepagestring.pl input.pdf o... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/363015/"
] |
220,465 | <p>I have an application which I have made a 256 x 256 Windows Vista icon for.</p>
<p>I was wondering how I would be able to use a 256x256 PNG file in the ico file used as the application icon and show it in a picture box on a form.</p>
<p>I am using VB.NET, but answers in C# are fine. I'm thinking I may have to... | [
{
"answer_id": 220474,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 2,
"selected": false,
"text": "using System.Runtime.InteropServices;\n // Constants that we need in the function call\nprivate const int SHGFI_IC... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
220,470 | <p>This works, but is it the proper way to do it???</p>
<p>I have a custom server control that has an [input] box on it. I want it to kinda mimic the ASP.NET TextBox, but not completely. When the textbox is rendered i have a javascript that allows users to select values that are then placed in that input box.</p>
<... | [
{
"answer_id": 220586,
"author": "gregmac",
"author_id": 7913,
"author_profile": "https://Stackoverflow.com/users/7913",
"pm_score": 2,
"selected": true,
"text": "partial class MyControl : System.Web.UI.UserControl, IStateManager\n{\n [Serializable()]\n protected struct MyControlSt... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26685/"
] |
220,488 | <p>I have an input which at some points happens to have the focus. If the user click in the "background" of the page, the input loses its focus. I was trying to simulate the click on the background with the following code, but this doesn't work (you will notice that the input still has the focus). Any suggestion on how... | [
{
"answer_id": 220491,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 5,
"selected": true,
"text": "blur() <script type=\"text/javascript\">\n YAHOO.util.Event.onDOMReady(function() {\n document.getElemen... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5295/"
] |
220,507 | <p>I write a large static method that takes a generic as a parameter argument. I call this method, and the framework throws a System.InvalidProgramException. This exception is thrown even before the first line of the method is executed.</p>
<p>I can create a static class which takes the generic argument, and then make... | [
{
"answer_id": 220491,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 5,
"selected": true,
"text": "blur() <script type=\"text/javascript\">\n YAHOO.util.Event.onDOMReady(function() {\n document.getElemen... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28506/"
] |
220,525 | <p>I'm working on a GUI application in WxPython, and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the application, running more than once doesn't make any sense, and will fail quickly. Under Win32, I can simply make a named mutex a... | [
{
"answer_id": 220539,
"author": "Adam Liss",
"author_id": 29157,
"author_profile": "https://Stackoverflow.com/users/29157",
"pm_score": 0,
"selected": false,
"text": "linux# pidof myapp\n8947\nlinux# pidof nonexistent_app\n\nlinux#\n"
},
{
"answer_id": 220542,
"author": "Rob... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29825/"
] |
220,547 | <p>Does anyone knows how to detect printable characters in java?</p>
<p>After a while ( trial/error ) I get to this method:</p>
<pre><code> public boolean isPrintableChar( char c ) {
Character.UnicodeBlock block = Character.UnicodeBlock.of( c );
return (!Character.isISOControl(c)) &&
... | [
{
"answer_id": 221115,
"author": "jb.",
"author_id": 7918,
"author_profile": "https://Stackoverflow.com/users/7918",
"pm_score": 4,
"selected": false,
"text": "Font.canDisplay(int)\n"
},
{
"answer_id": 418560,
"author": "OscarRyz",
"author_id": 20654,
"author_profile"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654/"
] |
220,560 | <p>I am changing document template macros. The one thing I can't find out how to do is to customize error messages. For example an error message in a document is</p>
<p>"Error! No table of figures entries found"</p>
<p>I would like to change this to display something else. Is it possible to do this with Word VBA or V... | [
{
"answer_id": 220573,
"author": "CtrlDot",
"author_id": 19487,
"author_profile": "https://Stackoverflow.com/users/19487",
"pm_score": 0,
"selected": false,
"text": "On Error Resume Next\n' try action\nIf Err.Number <> 0 Then\n ' handle w/ custom message\n Err.Clear\nEnd If\n If Err.Nu... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27294/"
] |
220,585 | <p>I am having a real problem at work with a highly ingrained developer obsessed with ms access. Users moan about random crashes, locking errors, freeze's, the application slowing down (especially in 2007) but seem to be very resistant to moving it. Most of the time they blame the computer and can't be convinced it's t... | [
{
"answer_id": 220986,
"author": "Philippe Grondier",
"author_id": 11436,
"author_profile": "https://Stackoverflow.com/users/11436",
"pm_score": 1,
"selected": false,
"text": "type_Of_TheConnexion"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
220,603 | <p>I'm calling a web service that returns an array of objects in JSON. I want to take those objects and populate a div with HTML. Let's say each object contains a url and a name.</p>
<p>If I wanted to generate the following HTML for each object:</p>
<pre><code><div><img src="the url" />the name</div&... | [
{
"answer_id": 220619,
"author": "savetheclocktower",
"author_id": 25720,
"author_profile": "https://Stackoverflow.com/users/25720",
"pm_score": 3,
"selected": false,
"text": "// assuming JSON looks like this:\n// { 'src': 'foo/bar.jpg', 'name': 'Lorem ipsum' }\n var html = \"<div><img s... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/67719/"
] |
220,613 | <p>I have a coworker who is planning a database for a new app that will have several tables with over 30 fields each. Is this excessive? Maybe I'm just not enterprisey enough to understand. </p>
<p>Edit: Also, a lot of the fields are option-type sort of things (like on a request form, would you like your widget to be ... | [
{
"answer_id": 220689,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 3,
"selected": false,
"text": "BaseTable:\n Id\n NonOptionFields\nOptionTable:\n Id\n OptionName\n OptionValue\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29840/"
] |
220,624 | <p>How do I write the getDB() function and use it properly?</p>
<p>Here is a code snippet of my App Object:</p>
<pre><code>public class MyApp extends UiApplication {
private static PersistentObject m_oStore;
private static MyBigObjectOfStorage m_oDB;
static {
store = PersistentStore.getPersisten... | [
{
"answer_id": 220724,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "public MyBigObjectOfStorage getDB() {\n Object o = store.getContents();\n if ( o instanceof MyBigObjectOfStorage ) {\n ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22917/"
] |
220,630 | <p>If I make two iPhone applications, how can/should I share custom data (not contacts and stuff like that) among them?</p>
<p>Thanks!</p>
| [
{
"answer_id": 1522707,
"author": "livingtech",
"author_id": 18961,
"author_profile": "https://Stackoverflow.com/users/18961",
"pm_score": 2,
"selected": false,
"text": "NSUserDefaults"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
220,638 | <p>How can I best set up my PHP (LAMP) development environment so that I have development, staging and production servers. One-"click" deployment to any of those, as well as one-click rollback to any revision. Rollback should also rollback the database schema and data to how it was when that source code was current.<... | [
{
"answer_id": 225524,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 5,
"selected": true,
"text": "capfile role :www, \"web01\", \"web02\", \"web03\"\nrole :web, \"web01\", \"web02\", \"web03\", \"web04\"\nrole :db, \"db01\", \... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29838/"
] |
220,642 | <p>I need a Linux text editor to replace Textpad 4.7.3 (a Windows nagware app), but all the alternatives I've tried are either bloated or incomplete. Here are the features I find most important, in descending order:</p>
<ul>
<li>Regex search, mark, and replace (across all open files, even), regex search in directory t... | [
{
"answer_id": 220753,
"author": "Mark Porter",
"author_id": 29462,
"author_profile": "https://Stackoverflow.com/users/29462",
"pm_score": 3,
"selected": false,
"text": "* Regex search mark, and replace (across all open files, even), regex\n * Tabbed editor with proper keyboard shortcuts... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20772/"
] |
220,643 | <p>In my app I've got a thread which displays for some time "please wait" dialog window, sometimes it is a very tiny amout of time and there is some glitch while drawing UI (I guess).</p>
<p>I get the exception "Thread was being aborted" and completly have no idea how get rid of it. I mean Catch that exception in some... | [
{
"answer_id": 220948,
"author": "Veldmuis",
"author_id": 18826,
"author_profile": "https://Stackoverflow.com/users/18826",
"pm_score": -1,
"selected": false,
"text": "Thread.Sleep(500);\n backgroundOpertionThread.Start();\n backgroundOpertionThread.Abort();\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24824/"
] |
220,658 | <p>Could someone explain? I understand the basic concepts behind them but I often see them used interchangeably and I get confused. </p>
<p>And now that we're here, how do they differ from a regular function?</p>
| [
{
"answer_id": 220715,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 8,
"selected": false,
"text": "function foo() { return \"This string is returned from the 'foo' function\"; }\n foo(); //returns the string above\n @f... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9776/"
] |
220,668 | <p>I've been searching around for a Continuous Integration solution for Ruby on Rails, but haven't been too pleased with the results. I came from a .NET shop that used CruiseControl.NET and was really spoiled with its ease of use and rich status/reporting.</p>
<p>Ideally I'm looking for:</p>
<ul>
<li><p>The obvious ... | [
{
"answer_id": 220692,
"author": "craigb",
"author_id": 18590,
"author_profile": "https://Stackoverflow.com/users/18590",
"pm_score": 5,
"selected": false,
"text": "CruiseControl Ruby Rake"
},
{
"answer_id": 8055423,
"author": "TALlama",
"author_id": 5657,
"author_pro... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/650/"
] |
220,672 | <p>I have an excel sheet full of times.</p>
<p>They are formatted so that they look like: 1:00:15</p>
<p>However if I change the format on the cells to text, they change to the underlying numeric representation of the time: 0.041840278</p>
<p>How can I convert the cells to be text cells but still have the time in th... | [
{
"answer_id": 220734,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 6,
"selected": false,
"text": "=TEXT(A1,\"hh:mm:ss AM/PM\")"
},
{
"answer_id": 32119433,
"author": "LukStorms",
"author_id": 400341... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/147/"
] |
220,717 | <p>What would be the most efficient data type to store a UUID/GUID in databases that do not have a native UUID/GUID data type? 2 BIGINTs?</p>
<p>And what would be the most efficient code (C# preferred) to convert to and from a GUID to that type?</p>
<p>Thanks.</p>
| [
{
"answer_id": 221016,
"author": "Brannon",
"author_id": 5745,
"author_profile": "https://Stackoverflow.com/users/5745",
"pm_score": 4,
"selected": true,
"text": "binary(16) System.Guid byte[] ToByteArray()"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8280/"
] |
220,718 | <p>I am trying to use <code>set.insert (key)</code> as a conditional, where if the key is inserted correctly (meaning that the key does NOT already exist in the set ) then it should go on and perform some kind of code. For example, something like:</p>
<pre><code>if (set.insert( key )) {
// some kind of code
}
</co... | [
{
"answer_id": 220721,
"author": "Don Neufeld",
"author_id": 13097,
"author_profile": "https://Stackoverflow.com/users/13097",
"pm_score": 2,
"selected": false,
"text": "if( set.insert( key ).second ) {\n // some kind of code\n}\n"
},
{
"answer_id": 220722,
"author": "Char... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29326/"
] |
220,719 | <p>I have an application that detects if there is another instance of the app running and exits if one is found. This part seems to work reliably. My app takes a command-line argument that I would like to pass to the already running instance. I have the following code so far:</p>
<h2>Project1.dpr</h2>
<pre><code>prog... | [
{
"answer_id": 220852,
"author": "Tim Knipe",
"author_id": 10493,
"author_profile": "https://Stackoverflow.com/users/10493",
"pm_score": 4,
"selected": false,
"text": "procedure IPCSendMessage(target: HWND; const message: string);\nvar\n cds: TCopyDataStruct;\nbegin\n cds.dwData := 0;... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2189521/"
] |
220,742 | <p>I need a serviceable shell for MSYS. This is my current dilemma: </p>
<p>The default rxvt.exe has a scroll bar and copy and paste, but doesn't send control characters or arrow keys to a running program in the shell (like interpreters/debuggers). This is a real thorn when using the Haskell interpreter ghci.</p>
<... | [
{
"answer_id": 220759,
"author": "Hugh Allen",
"author_id": 15069,
"author_profile": "https://Stackoverflow.com/users/15069",
"pm_score": 2,
"selected": false,
"text": "sh.exe"
},
{
"answer_id": 9124305,
"author": "Doug",
"author_id": 353820,
"author_profile": "https:... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14903/"
] |
220,747 | <p>I have three related tables "A(id, val)", "B(id, val)", and a link table with a value "AB(aid, bid, val)"</p>
<p>I am querying against B to bring back A values, for example:</p>
<pre><code>SELECT A.*
FROM A INNER JOIN AB ON A.id = AB.aid INNER JOIN B ON AB.bid = B.id
WHERE B.val = 'foo';
</code></pre>
<p>Every A... | [
{
"answer_id": 220798,
"author": "Blorgbeard",
"author_id": 369,
"author_profile": "https://Stackoverflow.com/users/369",
"pm_score": 2,
"selected": false,
"text": "select a.*\nfrom a\nleft join (\n select aid, max(val) as val \n from ab \n group by aid\n) abmax on abmax.aid=a.i... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
220,751 | <p>I have a DataTable that has a boolean column called [Invalid]. I need to divide this data up by this Invalid column - valid rows can be edited, invalid rows cannot. My original plan was to use two BindingSources and set the Filter property ([Invalid] = 'false', for instance), which plays right into my hands because ... | [
{
"answer_id": 220798,
"author": "Blorgbeard",
"author_id": 369,
"author_profile": "https://Stackoverflow.com/users/369",
"pm_score": 2,
"selected": false,
"text": "select a.*\nfrom a\nleft join (\n select aid, max(val) as val \n from ab \n group by aid\n) abmax on abmax.aid=a.i... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5133/"
] |
220,758 | <p>I was fortunate enough to be able to start fresh with Grails. However, many people have asked me how to add Groovy and/or Grails to a legacy Java/JSP web app. Do people have experience or recommendations on how to best include Groovy and Grails into a large legacy application?</p>
| [
{
"answer_id": 262203,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "http://www.ibm.com/developerworks/java/library/j-pg03155\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
220,767 | <p>How exactly do you make an auto-refreshing <code>div</code> with JavaScript (specifically, jQuery)?</p>
<p>I know about the <code>setTimeout</code> method, but is it really a good practice ? Is there a better method?</p>
<pre><code>function update() {
$.get("response.php", function(data) {
$("#some_div... | [
{
"answer_id": 220800,
"author": "gregmac",
"author_id": 7913,
"author_profile": "https://Stackoverflow.com/users/7913",
"pm_score": 6,
"selected": true,
"text": "function update() {\n $.get(\"response.php\", function(data) {\n $(\"#some_div\").html(data);\n window.setTimeout(upda... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26721/"
] |
220,772 | <p>Before I explain what I'm trying to do, note that I have the good fortune of only having to target Webkit (meaning, I can use lots of neat CSS).</p>
<p>So, basically, I want to have a block with a flexible height, position fixed, maximum height being that of the available window height, with some elements at the to... | [
{
"answer_id": 220800,
"author": "gregmac",
"author_id": 7913,
"author_profile": "https://Stackoverflow.com/users/7913",
"pm_score": 6,
"selected": true,
"text": "function update() {\n $.get(\"response.php\", function(data) {\n $(\"#some_div\").html(data);\n window.setTimeout(upda... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17964/"
] |
220,773 | <p>I wrote a simple javascript image rotator which picks a random image on each page load. The issue is that if i use a default image, that default image will show up for a second before the javascript loads and replaces it. Obviously if someone has javascript disabled i want them to see an image. How can i have a def... | [
{
"answer_id": 220789,
"author": "Ates Goral",
"author_id": 23501,
"author_profile": "https://Stackoverflow.com/users/23501",
"pm_score": 0,
"selected": false,
"text": "window.onload = function () {\n var img = document.getElementById(\"rotating_image\");\n\n // Hide the default im... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7894/"
] |
220,775 | <p>Should you always check parameters and throw exceptions in .NET when the parameters are not what you expected? E.g. null objects or empty strings?</p>
<p>I started doing this, but then thought that this will bloat my code a lot if it’s done on every single method. Should I check parameters for both private and publ... | [
{
"answer_id": 220782,
"author": "Robert Gould",
"author_id": 15124,
"author_profile": "https://Stackoverflow.com/users/15124",
"pm_score": 1,
"selected": false,
"text": "if value == not_valid then\n#if DEBUG\n log failure\n value = a_safe_default_value\n#elsif RELASE\n throw\n#endif\... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
220,777 | <p>One of the modules for my app uses functions from a .pyd file. There's an option to exclude dlls (exclude_dlls) but is there one for including them? The build process doesn't seem to be copying the .pyd in my module despite copying the rest of the files (.py). I also need to include a .dll. How do I get py2exe to i... | [
{
"answer_id": 220892,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 2,
"selected": false,
"text": "script = \"PyInvaders.py\" #name of starting .PY\nproject_name = os.path.splitext(os.path.split(script)[1])[0]\nset... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20879/"
] |
220,796 | <p>I have all the web pages of a website. My task is to change all HTML files to <code>.asp</code> files and change the links. I have about 280 HTML files.<br>
Is there any software or web service which can read a website and show me the link structure of the site (to make my job easier) similar to a site map?</p>
| [
{
"answer_id": 220843,
"author": "Julien Grenier",
"author_id": 23051,
"author_profile": "https://Stackoverflow.com/users/23051",
"pm_score": 2,
"selected": false,
"text": "find . -type f -name '*html' | awk '{ print \"mv \" $0 \" \" substr($0,0,length($0)-4)} | sh' find . type f -name ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12178/"
] |
220,813 | <p>I have several branches in TFS (dev, test, stage) and when I merge changes into the test branch I want the automated build and deploy script to find all the updated SQL files and deploy them to the test database.</p>
<p>I thought I could do this by finding all the changesets associated with the build since the last... | [
{
"answer_id": 252916,
"author": "mjallday",
"author_id": 6084,
"author_profile": "https://Stackoverflow.com/users/6084",
"pm_score": 4,
"selected": true,
"text": "TeamFoundationServer tfs = new TeamFoundationServer(TfsServerUrl);\nVersionControlServer vcs = (VersionControlServer)tfs.Get... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6084/"
] |
220,818 | <p>How can I detect keyboard event in C language without using third party libraries? Should I use signal handling?</p>
| [
{
"answer_id": 220876,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 4,
"selected": true,
"text": "getch();\n static struct termios save_termios;\nstatic int term_saved;\n\nint tty_raw(int fd) { /* R... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/130278/"
] |
220,822 | <p>Strange performance outcome, I have a LINQ to SQL query which uses several let statements to get various info it looks like this</p>
<pre><code> public IQueryable<SystemNews> GetSystemNews()
{
using (var t = new TransactionScope(TransactionScopeOption.Required,
new TransactionOptions { Is... | [
{
"answer_id": 221090,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "_datacontext.Log = Console.Out;\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22093/"
] |
220,828 | <p>I have an application running on multiple IIS servers that need to parse a CSV file that is placed on a common network drive. If I use the <a href="http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.created.aspx" rel="nofollow noreferrer">System.IO.FileSystemWatcher Created event</a> to be notified... | [
{
"answer_id": 220957,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": true,
"text": "FileStream fs = new FileStream(\n FilePath, \n FileMode.Open,\n FileAccess.ReadWrite, \n FileShare.None\n);\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4555/"
] |
220,832 | <p>If I have the string <code>.....ZZ..ZZ.....</code> or <code>.Z.1.Z.23Z.4.Z55</code>,</p>
<p>Is there an easy way of shifting all <code>Z</code>characters in the string one space right of the current position?</p>
<p>Some additional test strings are:</p>
<ul>
<li><code>.Z</code></li>
<li><code>Z.</code></li>
<li><... | [
{
"answer_id": 220837,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 4,
"selected": true,
"text": "int main ()\n{\n char text[] = \"...Z.Z.Z...\", temp;\n int text_len = strlen (text), i;\n for (i = text_len -... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29326/"
] |
220,846 | <p>Our groups legacy ASP 3.0 web apps were able to take advantage of a global error file by setting up a custom error file within IIS's Custom Error's tab. I'm unable to find a similar solution for ASP.NET apps. </p>
<p>Does anyone know if there is a way to have a centralized "Error.aspx" page (for example) that wil... | [
{
"answer_id": 220875,
"author": "SaaS Developer",
"author_id": 7215,
"author_profile": "https://Stackoverflow.com/users/7215",
"pm_score": 1,
"selected": false,
"text": "<customErrors defaultRedirect=\"[url]\"></customErrors>"
},
{
"answer_id": 221340,
"author": "Ben R",
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4646/"
] |
220,847 | <p>in the multi-threaded app I am porting to Symbian using Open C, I have an object that uses an RFile to read/write data to file. This object is supposed to be accessed from different threads (it is threadsafe), however there is the issue that apparently RFile objects can only be accessed within one thread only. As so... | [
{
"answer_id": 2049095,
"author": "Dynite",
"author_id": 16177,
"author_profile": "https://Stackoverflow.com/users/16177",
"pm_score": 0,
"selected": false,
"text": "RFile::TransferToClient(const RMessage2 &,TInt)const\n RFile::TransferToProcess(RProcess &,TInt,TInt)const\n RFile::Transf... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27101/"
] |
220,855 | <p>By default gcc/g++ prints a warning message with the line number only. I am looking for the option by which g++ or gcc associates the build warning messages with the warning ids, so that the warning messages can be identified easily (without parsing). Also can there be any more option to get a more detailed warning ... | [
{
"answer_id": 220912,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 1,
"selected": false,
"text": "-Wno-pragmas -Wno-oveflow"
},
{
"answer_id": 221132,
"author": "JesperE",
"author_id": 13051,
"aut... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29857/"
] |
220,867 | <p>What is the best way to deal with XML documents, XSD etc in C# 2.0? </p>
<p>Which classes to use etc. What are the best practices of parsing and making XML documents etc. </p>
<p>EDIT: .Net 3.5 suggestions are also welcome.</p>
| [
{
"answer_id": 220981,
"author": "nyxtom",
"author_id": 19753,
"author_profile": "https://Stackoverflow.com/users/19753",
"pm_score": 9,
"selected": true,
"text": "XmlDocument document = new XmlDocument();\ndocument.LoadXml(\"<People><Person Name='Nick' /><Person Name='Joe' /></People>\"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688440/"
] |
220,872 | <p>Just wondering if anyone has seen any usable progress bar for C# .net apps. My app takes about 20-60 secs to load and I would love to show users a progress bar while they wait. I saw <a href="http://www.codeproject.com/KB/aspnet/ASPNETAJAXPageLoader.aspx" rel="nofollow noreferrer">this one</a> but the sample site ... | [
{
"answer_id": 223796,
"author": "Dhaust",
"author_id": 242,
"author_profile": "https://Stackoverflow.com/users/242",
"pm_score": 3,
"selected": true,
"text": "<asp:ScriptManager ID=\"ScriptManager1\" runat=\"server\" />\n <asp:UpdateProgress runat=\"server\" id=\"PageUpdateProgress\"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5234/"
] |
220,878 | <p>Slashdot's RSS feed is <a href="http://rss.slashdot.org/Slashdot/slashdot" rel="nofollow noreferrer">http://rss.slashdot.org/Slashdot/slashdot</a>. If I download the XML file directly, I only get a few of the posts from today. However, if I subscribe to the feed in Google Reader, and keep scrolling down in their "in... | [
{
"answer_id": 43125793,
"author": "wle8300",
"author_id": 1775026,
"author_profile": "https://Stackoverflow.com/users/1775026",
"pm_score": 1,
"selected": false,
"text": "https://pub.center/feed/02702624d8a4c825dde21af94e9169773454e0c3/articles?limit=10&page=1 https://pub.center/feed/02... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25068/"
] |
220,879 | <p>I don't need this, obviously; I'm just curious about what's going on here. Am I missing
something simple? Can I rely on this behaviour in all versions of Perl?)</p>
<p>Perl v5.8.8:</p>
<pre><code>%h = ( 0=>'zero', 1=>'one', 2=>'two' );
while ($k = each %h) {
$v = delete $h{$k};
print "deleted $v; ... | [
{
"answer_id": 220999,
"author": "cjm",
"author_id": 8355,
"author_profile": "https://Stackoverflow.com/users/8355",
"pm_score": 5,
"selected": false,
"text": "each while ($line = <FILE>)\n defined while ($key = each %hash)\n case OP_SASSIGN:\n if (k1->op_type == OP_READDIR\n || k1... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
220,887 | <p>In Ruby I have often written a number of small classes, and had a main class organize the little guys to get work done. I do this by writing </p>
<pre><code>require "converter.rb"
require "screenFixer.rb"
.
.
.
</code></pre>
<p>at the top of the main class. How do I do this in Java? Is it "import?"</p>
<p>Also, c... | [
{
"answer_id": 220904,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "\npublic class Example {\n public Example(IConverter converter, IScreenFixer screenFixer) {\n\n }\n}\n\n"
},
{
"an... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
220,891 | <p>I have a COM SDK written in C++ and I'd like to create documentation for my product. I understand that most people will probably not use C++ for integration with this COM component, but many will. </p>
<p>Which method is best to describe the API, without losing details that a C++ developer would need to know. </p... | [
{
"answer_id": 220904,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "\npublic class Example {\n public Example(IConverter converter, IScreenFixer screenFixer) {\n\n }\n}\n\n"
},
{
"an... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
220,902 | <p>I'm building a python application from some source code I've found <a href="http://code.google.com/p/enso" rel="nofollow noreferrer">Here</a></p>
<p>I've managed to compile and fix some problems by searching the web, but I'm stuck at this point:</p>
<p>When running the application this message appears.</p>
<p><a ... | [
{
"answer_id": 221200,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 0,
"selected": false,
"text": "INFO:root:Skipping provider enso.platform.osx.\nINFO:root:Skipping provider enso.platform.linux.\nINFO:root:Added provide... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654/"
] |
220,906 | <p>I am writing one web chat program using AJAX (a little bit). It is working when both users open a chat page, but I want to open a window when one user send data to others.</p>
| [
{
"answer_id": 221119,
"author": "jeff porter",
"author_id": 26778,
"author_profile": "https://Stackoverflow.com/users/26778",
"pm_score": 0,
"selected": false,
"text": "winRef = window.open( URL, name [ , features [, replace ] ] )\n"
},
{
"answer_id": 13311866,
"author": "Jo... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
220,907 | <p>How does reverse proxy server work? Is it used to secure the main server? Is it used as a firewall? What are the reasons for using a proxy server? Could someone give a real world example?</p>
| [
{
"answer_id": 220991,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 2,
"selected": false,
"text": "RewriteRule ^(.*) http://www.testsiteXY.com$1 [P]\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/220907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
220,966 | <p>I have a 2 variable 100x100 data table in excel.</p>
<p>I need to have a function that returns all the possible sets of variables that yield a given target value.
What I am looking at is some kind of a reursive 2 dimensional lookup function. Can someone point me in the right direction?</p>
| [
{
"answer_id": 221395,
"author": "Vaibhav Garg",
"author_id": 27795,
"author_profile": "https://Stackoverflow.com/users/27795",
"pm_score": 0,
"selected": false,
"text": "Dim arr As Range\nDim tempval As Range\nDim op As Integer\n\nSet arr = Worksheets(\"sheet1\").Range(\"b2:ao41\")\nop ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27795/"
] |
220,975 | <p>How to put underline for first letter for access key for ?</p>
| [
{
"answer_id": 220985,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 0,
"selected": false,
"text": "<asp:button id=\"Button1\" runat=\"server\" Text=\"Print\" AccessKey=\"P\" />\n"
},
{
"answer_id": 221022,
"au... | 2008/10/21 | [
"https://Stackoverflow.com/questions/220975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29867/"
] |
221,001 | <p>I want to convert from char representing a hexadecimal value (in upper or lower case) to byte, like</p>
<pre><code>'0'->0, '1' -> 1, 'A' -> 10, 'a' -> 10, 'f' -> 15 etc...
</code></pre>
<p>I will be calling this method extremely often, so performance is important. Is there a faster way than to use a... | [
{
"answer_id": 221012,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": false,
"text": "if (c >= '0' && c <= '9')\n{\n return c - '0';\n}\nif (c >= 'a' && c <= 'f')\n{\n return c - 'a' + 10;\n}\nif (c >... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
221,002 | <p>I'm implementing an audit log on a database, so everything has a CreatedAt and a RemovedAt column. Now I want to be able to list all revisions of an object graph but the best way I can think of for this is to use unions. I need to get every unique CreatedAt and RemovedAt id.</p>
<p>If I'm getting a list of countrie... | [
{
"answer_id": 221114,
"author": "Aleris",
"author_id": 20417,
"author_profile": "https://Stackoverflow.com/users/20417",
"pm_score": 1,
"selected": false,
"text": "AuditLog table\n EntityName varchar(2000),\n Action varchar(255),\n EntityId int,\n OccuranceDate datetime\n se... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/407256/"
] |
221,006 | <p>So from what little I understand about packaging for Macs, I see that the actual program that launches is the one defined under the CFBundleExecutable key in Info.plist.</p>
<pre><code><key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
</code></pre>
<p>Now, my app doesnt wor... | [
{
"answer_id": 221114,
"author": "Aleris",
"author_id": 20417,
"author_profile": "https://Stackoverflow.com/users/20417",
"pm_score": 1,
"selected": false,
"text": "AuditLog table\n EntityName varchar(2000),\n Action varchar(255),\n EntityId int,\n OccuranceDate datetime\n se... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16925/"
] |
221,025 | <p>In this sentence:</p>
<pre><code>myCommand.ExecuteReader(CommandBehavior.CloseConnection)
</code></pre>
<p>does it close connection in case of exception?</p>
| [
{
"answer_id": 221034,
"author": "Danny Frencham",
"author_id": 29830,
"author_profile": "https://Stackoverflow.com/users/29830",
"pm_score": -1,
"selected": false,
"text": "SqlCommand myCommand = new SqlCommand();\n\ntry\n{\n myCommand.dostuff();\n}\ncatch(Exception ex)\n{\n // displ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29600/"
] |
221,031 | <p>I have a Java service which now will execute in a batch mode. Multi threaded support is added to the service so for every batch request a thread pool will be dedicated to execute the batch. The question is how do I test this? I have functional tests that pass under the threaded version of the service but, somehow, I... | [
{
"answer_id": 221057,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 3,
"selected": false,
"text": "@Test(invocationCount=10, threadPool=10)\npublic void testSomethingConcurrently() {\n ...\n}\n testSomethingConcur... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28501/"
] |
221,052 | <p>Could anyone provide any example of NAnt script for C++ project build automation?</p>
<p>Thanks!</p>
| [
{
"answer_id": 221107,
"author": "endian",
"author_id": 25462,
"author_profile": "https://Stackoverflow.com/users/25462",
"pm_score": 0,
"selected": false,
"text": "<Solution>"
},
{
"answer_id": 222560,
"author": "Mike Marshall",
"author_id": 29798,
"author_profile": ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22996/"
] |
221,063 | <p>How can i find out this information?</p>
<hr>
<p>Ie, </p>
<p>I can install boost 1.35 with a command like</p>
<pre><code>sudo port install boost
</code></pre>
<p>only to get boost 1.36 via port i would do something like this? </p>
<pre><code>sudo port install boost-1.36
</code></pre>
<p>Hope that clears up my... | [
{
"answer_id": 221107,
"author": "endian",
"author_id": 25462,
"author_profile": "https://Stackoverflow.com/users/25462",
"pm_score": 0,
"selected": false,
"text": "<Solution>"
},
{
"answer_id": 222560,
"author": "Mike Marshall",
"author_id": 29798,
"author_profile": ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
221,079 | <p>I'm trying to add a pojo to a collection in another pojo. I'm sure I'm making a really stupid mistake somewhere along the lines but I can't figure out how to solve it.</p>
<p>I have a pojo LookupTable which contains a list of Columns:</p>
<pre><code>public class LookupTable {
private long id;
// More propertie... | [
{
"answer_id": 221110,
"author": "Chris Kimpton",
"author_id": 48310,
"author_profile": "https://Stackoverflow.com/users/48310",
"pm_score": 2,
"selected": false,
"text": "lookupTableDao.findById lookupTableDao.saveOrUpdate Session Column"
},
{
"answer_id": 7704473,
"author":... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26066/"
] |
221,091 | <p>How can I extract information from a website (<a href="http://tv.yahoo.com/listings" rel="nofollow noreferrer">http://tv.yahoo.com/listings</a>) and then create an XML file out of it? I want to save it so to parse later and display information using JavaScript?</p>
<p>I am quite new to Perl and I have no idea abo... | [
{
"answer_id": 222621,
"author": "cjm",
"author_id": 8355,
"author_profile": "https://Stackoverflow.com/users/8355",
"pm_score": 2,
"selected": false,
"text": "use XMLTV;"
},
{
"answer_id": 223662,
"author": "draegtun",
"author_id": 12195,
"author_profile": "https://S... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,154 | <p>The number is bigger than <code>int</code> & <code>long</code> but can be accomodated in <code>Decimal</code>. But the normal <code>ToString</code> or <code>Convert</code> methods don't work on <code>Decimal</code>.</p>
| [
{
"answer_id": 221174,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": " decimal d = 588063595292424954445828M;\n int[] bits = decimal.GetBits(d);\n if (bits[3] != 0) throw new Inv... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,160 | <p><code>termios.h</code> defines:</p>
<pre><code>#define TIOCM_OUT1 0x2000
#define TIOCM_OUT2 0x4000
</code></pre>
<p>But what are the flags good for?</p>
| [
{
"answer_id": 221174,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": " decimal d = 588063595292424954445828M;\n int[] bits = decimal.GetBits(d);\n if (bits[3] != 0) throw new Inv... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,165 | <p>I'm building a database that will store information on a range of objects (such as scientific papers, specimens, DNA sequences, etc.) that all have a presence online and can be identified by a URL, or an identifier such as a <a href="http://www.doi.org/" rel="noreferrer" title="DOI">DOI</a>. Using these GUIDs as the... | [
{
"answer_id": 221249,
"author": "Steve McLeod",
"author_id": 2959,
"author_profile": "https://Stackoverflow.com/users/2959",
"pm_score": 1,
"selected": false,
"text": "http://example.com/view?id=1ccb9467-e326-4fed-b9a7-7edcba52be84\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9684/"
] |
221,169 | <p>I'm new to Flex, although not new to programming. I want to write a generic event handler that will be called by all my textinput boxes when they receive focus. When they have focus, I want to change the colour of the textinput box. When they lose focus, I want to restore the "inactive" color profile. I could writ... | [
{
"answer_id": 221182,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 1,
"selected": false,
"text": "// 'focusOut' for blur\nstage.addEventListener('focusIn', function(e:Event):void {\n // The focused control is e... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7703/"
] |
221,170 | <p>How do I declare a private function in Fortran?</p>
| [
{
"answer_id": 222003,
"author": "SumoRunner",
"author_id": 18975,
"author_profile": "https://Stackoverflow.com/users/18975",
"pm_score": 1,
"selected": false,
"text": "Private xxx, yyy, zzz\n\nreal function xxx (v)\n ...\nend function xxx\n\ninteger function yyy()\n ...\nend function ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
221,178 | <p>In my Spring MVC based applications i use Freemarker and i like it very much, but it's lacking advantages provided by Composite View pattern. </p>
<p>I'm thinking of trying to use Tiles2 together with Freemarker - does anyone know where do i find a simple example of SpringMVC together with Tiles2+Freemarker?</p>
| [
{
"answer_id": 224746,
"author": "miceuz",
"author_id": 24443,
"author_profile": "https://Stackoverflow.com/users/24443",
"pm_score": 2,
"selected": false,
"text": "<definition name=\"template\" template=\"/WEB-INF/ftl/main.ftl\">\n <servlet>\n <servlet-name>freemarker</servlet-name>\... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24443/"
] |
221,181 | <p>How can I access Ethernet statistics from C/C++ code like <strong>netstat -e</strong>?</p>
<pre><code>Interface Statistics
Received Sent
Bytes 21010071 15425579
Unicast packets 95512 94166
Non-unicast packets 12510 ... | [
{
"answer_id": 221237,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": false,
"text": "SELECT * FROM Win32_PerfFormattedData_Tcpip_IP\nSELECT * FROM Win32_PerfFormattedData_Tcpip_TCP\nSELECT * FROM Win32_PerfF... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17617/"
] |
221,185 | <p>How can I compile/run C or C++ code in a Unix console or a Mac terminal?</p>
| [
{
"answer_id": 221189,
"author": "P-A",
"author_id": 4975,
"author_profile": "https://Stackoverflow.com/users/4975",
"pm_score": 3,
"selected": false,
"text": "./[name of the program] ./a.out"
},
{
"answer_id": 221193,
"author": "Andrey Neverov",
"author_id": 6698,
"a... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4975/"
] |
221,192 | <p>I have a page, with some code in js and jQuery and it works very well. But unfortunately, all my site is very very old, and uses frames. So when I loaded my page inside a frame, <code>$(document).ready()</code> doesn't fire up.</p>
<p>My frameset looks like:</p>
<pre><code><frameset rows="79,*" frameBorder="1" ... | [
{
"answer_id": 221234,
"author": "Aleris",
"author_id": 20417,
"author_profile": "https://Stackoverflow.com/users/20417",
"pm_score": -1,
"selected": false,
"text": "$(document).ready() jquery.js"
},
{
"answer_id": 221441,
"author": "matma",
"author_id": 29880,
"autho... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29880/"
] |
221,194 | <p>I have table employee like,
<br>
employee
(
emp_id int primary key,
emp_name varchar(50),
mngr_id int)</p>
<p>and here mngr_id would either null or contain valid emp_id. This way it form the hierarchy of employees in the organization.</p>
<p>In order to traverse the entire hierarchy I had to write the recursive st... | [
{
"answer_id": 3318497,
"author": "Jon Black",
"author_id": 298016,
"author_profile": "https://Stackoverflow.com/users/298016",
"pm_score": 2,
"selected": false,
"text": "delimiter ;\n\ndrop procedure if exists employee_hier;\n\ndelimiter #\n\ncreate procedure employee_hier\n(\nin p_emp_... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/959/"
] |
221,224 | <p>Consider the following code snippet</p>
<pre><code>private void ProcessFile(string fullPath) {
XmlTextReader rdr = new XmlTextReader("file:\\\\" + fullPath);
while (rdr.Read()) {
//Do something
}
return;
}
</code></pre>
<p>Now, this functions fine when passed a path like:</p>
<p>"C:\Work F... | [
{
"answer_id": 221243,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": true,
"text": "file:/// # #"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1389021/"
] |
221,254 | <p>In Visual Studio, when you compile foo.idl, MIDL generates the proxy information in foo_p.c.</p>
<p>Unfortunately, for Win32 and x64 files, it uses the same filename. For Win32, the file starts with:</p>
<pre><code>#if !defined(_M_IA64) && !defined(_M_AMD64)
</code></pre>
<p>For x64, the file starts with:... | [
{
"answer_id": 221319,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 3,
"selected": true,
"text": "foo_p_w32.c foo_p_x64.c foo_p_x64.c"
},
{
"answer_id": 4918170,
"author": "dexblack",
"author_id": 534513,
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8446/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.