qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
88,651
<p>Is it possible to get notifications using <a href="http://www.microsoft.com/sql/technologies/reporting/default.mspx" rel="nofollow noreferrer">SQL Server Reporting Services</a>? Say for example I have a report that I want by mail if has for example suddenly shows more than 10 rows or if a specific value drop below 1...
[ { "answer_id": 239482, "author": "James Green", "author_id": 31736, "author_profile": "https://Stackoverflow.com/users/31736", "pm_score": 3, "selected": true, "text": "exec ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx'\n" ...
2008/09/17
[ "https://Stackoverflow.com/questions/88651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/298/" ]
88,710
<p>I need to create a repeatable process for deploying SQL Server Reporting Services reports. I am not in favor of using Visual Studio and or Business Development Studio to do this. The rs.exe method of scripting deployments also seems rather clunky. Does anyone have a very elegant way that they have been able to de...
[ { "answer_id": 91077, "author": "Lukáš Rampa", "author_id": 10560, "author_profile": "https://Stackoverflow.com/users/10560", "pm_score": 6, "selected": true, "text": "'=====================================================================\n' File: PublishReports.rss\n'\n' Summary:...
2008/09/17
[ "https://Stackoverflow.com/questions/88710", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16980/" ]
88,711
<p>I want to use <a href="http://alistapart.com/articles/sprites" rel="noreferrer">CSS sprites</a> on a web site instead of separate image files, for a large collection of small icons that are all the same size. How can I concatenate (tile) them into one big image using <a href="http://www.imagemagick.org/" rel="norefe...
[ { "answer_id": 8187638, "author": "Alexander M.", "author_id": 1044587, "author_profile": "https://Stackoverflow.com/users/1044587", "pm_score": 5, "selected": false, "text": "montage -background transparent -geometry +4+4 *.png sprite.gif\n" }, { "answer_id": 10655028, "auth...
2008/09/17
[ "https://Stackoverflow.com/questions/88711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2670/" ]
88,717
<p>I want to load one or more DLLs dynamically so that they run with a different security or basepath than my main application. How do I load these DLLs into a separate AppDomain and instantiate objects from them?</p>
[ { "answer_id": 93045, "author": "Jon Turner", "author_id": 16979, "author_profile": "https://Stackoverflow.com/users/16979", "pm_score": 6, "selected": true, "text": "AppDomain domain = AppDomain.CreateDomain(\"New domain name\");\n//Do other things to the domain like set the security po...
2008/09/17
[ "https://Stackoverflow.com/questions/88717", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16979/" ]
88,743
<p>I'm using jmockit for unit testing (with TestNG), and I'm having trouble using the Expectations class to mock out a method that takes a primitive type (boolean) as a parameter, using a matcher. Here's some sample code that illustrates the problem.</p> <pre><code>/***************************************************...
[ { "answer_id": 90136, "author": "Kris Pruden", "author_id": 16977, "author_profile": "https://Stackoverflow.com/users/16977", "pm_score": 3, "selected": true, "text": " protected final <T> T with(Matcher<T> argumentMatcher)\n {\n argMatchers.add(argumentMatcher);\n\n TypeVa...
2008/09/17
[ "https://Stackoverflow.com/questions/88743", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16977/" ]
88,773
<p>There must be a generic way to transform some hierachical XML such as:</p> <pre><code>&lt;element1 A="AValue" B="BValue"&gt; &lt;element2 C="DValue" D="CValue"&gt; &lt;element3 E="EValue1" F="FValue1"/&gt; &lt;element3 E="EValue2" F="FValue2"/&gt; &lt;/element2&gt; ... &lt;/element1&gt; </code>...
[ { "answer_id": 88875, "author": "Darrel Miller", "author_id": 6819, "author_profile": "https://Stackoverflow.com/users/6819", "pm_score": 4, "selected": true, "text": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n xmlns:msxsl=\"urn:schemas-micros...
2008/09/17
[ "https://Stackoverflow.com/questions/88773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
88,775
<p>I work at a college and have been developing an ASP.NET site with many, many reports about students, attendance stats... The basis for the data is an MSSQL server DB which is the back end to our student management system. This has a regular maintenance period on Thursday mornings for an unknown length of time (depen...
[ { "answer_id": 88854, "author": "Matt Blaine", "author_id": 16272, "author_profile": "https://Stackoverflow.com/users/16272", "pm_score": 1, "selected": false, "text": "protected void Application_Error(object sender, EventArgs e)\n{\n Exception e = Server.GetLastError().GetBaseExcepti...
2008/09/17
[ "https://Stackoverflow.com/questions/88775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16989/" ]
88,791
<p>I was wondering what people thought of using properties as object initializers in C#. For some reason it seems to break the fundamentals of what constructors are used for.</p> <p>An example...</p> <pre><code>public class Person { string firstName; string lastName; public string FirstName { g...
[ { "answer_id": 88807, "author": "Jorge Ferreira", "author_id": 6508, "author_profile": "https://Stackoverflow.com/users/6508", "pm_score": 4, "selected": true, "text": "Person _p$1 = new Person();\n_p$1.FirstName = \"Joe\";\n_p$1.LastName = \"Smith\";\nPerson p = _p$1;\n" }, { "a...
2008/09/17
[ "https://Stackoverflow.com/questions/88791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/342514/" ]
88,800
<p>How can I restore a mysql database that was dropped using a "drop database" command? I have access to binary logs which should make this type of rollback possible.</p>
[ { "answer_id": 28412669, "author": "melloc", "author_id": 2817739, "author_profile": "https://Stackoverflow.com/users/2817739", "pm_score": 0, "selected": false, "text": "drop database" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/88800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17002/" ]
88,831
<p>Anyone has ever programmed a PHP (or Perl) function to get the ceiling value Excel style?</p>
[ { "answer_id": 88888, "author": "Jacob", "author_id": 8119, "author_profile": "https://Stackoverflow.com/users/8119", "pm_score": 3, "selected": false, "text": "function excel_ceil($num){\n return ($num>0)?ceil($num):floor($num);\n}\n" }, { "answer_id": 10091498, "author":...
2008/09/18
[ "https://Stackoverflow.com/questions/88831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
88,838
<p>In Java, I have a String and I want to encode it as a byte array (in UTF8, or some other encoding). Alternately, I have a byte array (in some known encoding) and I want to convert it into a Java String. How do I do these conversions?</p>
[ { "answer_id": 88847, "author": "Jorge Ferreira", "author_id": 6508, "author_profile": "https://Stackoverflow.com/users/6508", "pm_score": 4, "selected": false, "text": "String original = \"hello world\";\nbyte[] utf8Bytes = original.getBytes(\"UTF-8\");\n" }, { "answer_id": 8886...
2008/09/18
[ "https://Stackoverflow.com/questions/88838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14570/" ]
88,850
<p>Is there a polynomial time algorithm for finding a Hamiltonian walk in a graph?</p> <p>My algorithm is N factorial and is really slow.</p>
[ { "answer_id": 3949267, "author": "user477959", "author_id": 477959, "author_profile": "https://Stackoverflow.com/users/477959", "pm_score": 1, "selected": false, "text": "SR={ x : R(x) ≠ ∅ }" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/88850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13813/" ]
88,904
<p>We're working on a very large .NET WinForms composite application - not CAB, but a similar home grown framework. We're running in a Citrix and RDP environment running on Windows Server 2003. </p> <p>We're starting to run into random and difficult to reproduct "Error creating window handle" error that seems to be ...
[ { "answer_id": 39303696, "author": "Sudhakar Mallu", "author_id": 6789962, "author_profile": "https://Stackoverflow.com/users/6789962", "pm_score": 2, "selected": false, "text": "For k = 1 To Panel.Controls.Count\n Panel.Controls.Item(0).Dispose()\nNext\n" }, { "answer_id": 39...
2008/09/18
[ "https://Stackoverflow.com/questions/88904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8133/" ]
88,918
<p>This is my first experience using the Zend Framework. I am attempting to follow the <a href="http://framework.zend.com/docs/quickstart/introduction" rel="nofollow noreferrer">Quick Start</a> tutorial. Everything was working as expected until I reached the section on the <a href="http://framework.zend.com/docs/quicks...
[ { "answer_id": 89347, "author": "dragonmantank", "author_id": 204, "author_profile": "https://Stackoverflow.com/users/204", "pm_score": 2, "selected": false, "text": "$frontController->throwExceptions(true);\n" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/88918", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3210/" ]
88,929
<p>Is there a command that would allow me to check if the string <code>"xyz"</code> was ever in file <code>foo.c</code> in the repository and print which revisions they were found in? </p>
[ { "answer_id": 89008, "author": "CaptainPicard", "author_id": 15203, "author_profile": "https://Stackoverflow.com/users/15203", "pm_score": 6, "selected": true, "text": "git log -Sxyz foo.c\n" }, { "answer_id": 51486627, "author": "Nwyfiant", "author_id": 9020923, "au...
2008/09/18
[ "https://Stackoverflow.com/questions/88929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4883/" ]
88,931
<p>When defining or calling functions with enough arguments to span multiple lines, I want vim to line them up. For example,</p> <pre><code>def myfunction(arg1, arg2, arg, ... argsN-1, argN) </code></pre> <p>The idea is for argsN-1 to have its 'a' lined up with args1.</p> <p>Does anyone have a way to ...
[ { "answer_id": 89119, "author": "solinent", "author_id": 13852, "author_profile": "https://Stackoverflow.com/users/13852", "pm_score": 3, "selected": false, "text": ":set cino=(0\n" }, { "answer_id": 89169, "author": "rampion", "author_id": 9859, "author_profile": "ht...
2008/09/18
[ "https://Stackoverflow.com/questions/88931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7706/" ]
88,957
<p>When <code>{0}</code> is used to initialize an object, what does it mean? I can't find any references to <code>{0}</code> anywhere, and because of the curly braces Google searches are not helpful.</p> <p>Example code:</p> <pre><code>SHELLEXECUTEINFO sexi = {0}; // what does this do? sexi.cbSize = sizeof(SHELLEXECU...
[ { "answer_id": 88960, "author": "Don Neufeld", "author_id": 13097, "author_profile": "https://Stackoverflow.com/users/13097", "pm_score": 9, "selected": true, "text": "{0} 0 0 struct S { int a; char* b; int c; };\nS ss = { 1, \"asdf\" };\n ss.a 1 ss.b \"asdf\" ss.c int() 0" }, { ...
2008/09/18
[ "https://Stackoverflow.com/questions/88957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17027/" ]
88,971
<p>I'm building a toy database in C# to learn more about compiler, optimizer, and indexing technology.</p> <p>I want to maintain maximum parallelism between (at least read) requests for bringing pages into the buffer pool, but I am confused about how best to accomplish this in .NET.</p> <p>Here are some options and the...
[ { "answer_id": 89123, "author": "Doug McClean", "author_id": 11173, "author_profile": "https://Stackoverflow.com/users/11173", "pm_score": 0, "selected": false, "text": "Seek BeginRead EndRead" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/88971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11173/" ]
88,991
<p>I do not mean the compile errors because I made a syntax mistake or whatever. In C++ we can create compile time errors based on conditions as in the following example:</p> <pre><code>template&lt;int&gt; struct CompileTimeError; template&lt;&gt; struct CompileTimeError&lt;true&gt; {}; #define STATIC_CHECK(expr, msg...
[ { "answer_id": 90563, "author": "Matt Quail", "author_id": 15790, "author_profile": "https://Stackoverflow.com/users/15790", "pm_score": 3, "selected": true, "text": "@MyStaticCheck(false, \"Compile Time Error, kind-of\")\npublic static void main(String[] args) {\n return;\n}\n" }, ...
2008/09/18
[ "https://Stackoverflow.com/questions/88991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6508/" ]
89,051
<p>What I'd like to know is if there is a nice way to queue jQuery functions to execute after a set amount of time. This wouldn't pause the execution of other functions, just the ones following in the chain. Perhaps an example of what I'd envisage it would look like would illustrate:</p> <pre><code>$('#alert') .sh...
[ { "answer_id": 89076, "author": "Prestaul", "author_id": 5628, "author_profile": "https://Stackoverflow.com/users/5628", "pm_score": 4, "selected": true, "text": "var el = $('#alert');\nel.show()\nsetTimeout(function() { el.hide() }, 5000);\n jQuery.fn.extend({\n delayedHide: function...
2008/09/18
[ "https://Stackoverflow.com/questions/89051", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9021/" ]
89,056
<p>I have heard of some methods, but none of them have stuck. Personally I try to avoid complex types in C and try to break them into component typedef.</p> <p>I'm now faced with maintaining some legacy code from a so called 'three star programmer', and I'm having a hard time reading some of the ***code[][].</p> <p>H...
[ { "answer_id": 89100, "author": "Eli Courtwright", "author_id": 1694, "author_profile": "https://Stackoverflow.com/users/1694", "pm_score": 5, "selected": false, "text": "cdecl" }, { "answer_id": 90549, "author": "Friedrich", "author_id": 15068, "author_profile": "htt...
2008/09/18
[ "https://Stackoverflow.com/questions/89056", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4319/" ]
89,112
<p>What are the steps and techniques to debug an apparent hang due to a deadlock in a Win32 production process. I heard that WinDbg can be used for this purpose but could you please provide clear hints on how this can be accomplished?</p>
[ { "answer_id": 89164, "author": "1800 INFORMATION", "author_id": 3146, "author_profile": "https://Stackoverflow.com/users/3146", "pm_score": 2, "selected": false, "text": "WaitForSingleObject" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/89112", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6508/" ]
89,118
<p>I am getting an 403 access forbidden when attempting to open a page under a vhost where the document root is sitting on a different drive than where apache is sitting. I installed using the apachefriends release. This is my httpd-vhosts.conf file: </p> <p><pre><code> NameVirtualHost 127.0.0.1</p> <p>&lt;VirtualHos...
[ { "answer_id": 91885, "author": "Mark Embling", "author_id": 6844, "author_profile": "https://Stackoverflow.com/users/6844", "pm_score": 6, "selected": false, "text": "<Directory \"F:/bar/public\">\n Order Allow,Deny\n Allow from All\n # Any other directory-specific stuff\n</Dir...
2008/09/18
[ "https://Stackoverflow.com/questions/89118", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6752/" ]
89,154
<pre><code>boolean a = false, b = true; if ( a &amp;&amp; b ) { ... }; </code></pre> <p>In most languages, <code>b</code> will not get evaluated because <code>a</code> is false so <code>a &amp;&amp; b</code> cannot be true. My question is, wouldn't short circuiting be slower in terms of architecture? In a pipeline, do...
[ { "answer_id": 89179, "author": "Shog9", "author_id": 811, "author_profile": "https://Stackoverflow.com/users/811", "pm_score": 3, "selected": false, "text": "if ( ConfirmAction() && DestroyAllData() )\n Reboot();\n if ( myDodgyVar != null && myDodgyVar.IsActive() )\n DoSomethingWith...
2008/09/18
[ "https://Stackoverflow.com/questions/89154", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12682/" ]
89,178
<p>For example:</p> <pre><code>&gt;&gt;&gt; x = [1, 1, 2, 'a', 'a', 3] &gt;&gt;&gt; unique(x) [1, 2, 'a', 3] </code></pre> <p>Assume list elements are hashable.</p> <p><strong>Clarification:</strong> The result should keep the first duplicate in the list. For example, [1, 2, 3, 2, 3, 1] becomes [1, 2, 3].</p>
[ { "answer_id": 89198, "author": "Matthew Schinckel", "author_id": 188, "author_profile": "https://Stackoverflow.com/users/188", "pm_score": -1, "selected": false, "text": "x = [1, 1, 2, 'a', 'a', 3]\ny = []\nfor each in x:\n if each not in y:\n y.append(each)\n" }, { "a...
2008/09/18
[ "https://Stackoverflow.com/questions/89178", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16976/" ]
89,181
<p>How do i check out a specific directory from CVS and omit the tree leading up to that directory?</p> <p>EX. </p> <p>Id like to checkout to this directory C:/WebHost/MyWebApp/www</p> <p>My CVS Project directory structure is MyWebApp/Trunk/www</p> <p>How do i omit the Trunk and MyWebApp directories?</p>
[ { "answer_id": 89269, "author": "Alex M", "author_id": 9652, "author_profile": "https://Stackoverflow.com/users/9652", "pm_score": 6, "selected": true, "text": "-d/cvsroot checkout -d directory project/path/directory -d -N checkout" }, { "answer_id": 89299, "author": "Orion E...
2008/09/18
[ "https://Stackoverflow.com/questions/89181", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16703/" ]
89,188
<p>Is it possible to get the x,y coordinates of a Flex app within an HTML page? I know you can use ExternalInterface.ObjecID to get the "id attribute of the object tag in Internet Explorer, or the name attribute of the embed tag in Netscape" but I can't seem to get past that step. It seems like it should be possible ...
[ { "answer_id": 91732, "author": "Theo", "author_id": 1109, "author_profile": "https://Stackoverflow.com/users/1109", "pm_score": 3, "selected": true, "text": "var jsCode : String = \"function( id ) { return $('#' + id).offset(); }\";\n\nvar offset : Object = ExternalInterface.call(jsCode...
2008/09/18
[ "https://Stackoverflow.com/questions/89188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15899/" ]
89,193
<p>Speaking as a non-C# savvy programmer, I'm curious as to the evaluation semantics of LINQ queries like the following:</p> <pre><code>var people = from p in Person where p.age &lt; 18 select p var otherPeople = from p in people where p.firstName equals "Daniel" ...
[ { "answer_id": 89211, "author": "David Thibault", "author_id": 5903, "author_profile": "https://Stackoverflow.com/users/5903", "pm_score": 1, "selected": false, "text": "people otherPeople IQueryable<Person> otherPeople .ToList() people List<Person>" }, { "answer_id": 89982, ...
2008/09/18
[ "https://Stackoverflow.com/questions/89193", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9815/" ]
89,203
<p>What is the difference in C# between <code>Convert.ToDecimal(string)</code> and <code>Decimal.Parse(string)</code>?</p> <p>In what scenarios would you use one over the other?</p> <p>What impact does it have on performance?</p> <p>What other factors should I be taking into consideration when choosing between the t...
[ { "answer_id": 89231, "author": "dimarzionist", "author_id": 10778, "author_profile": "https://Stackoverflow.com/users/10778", "pm_score": 2, "selected": false, "text": "TryParse()" }, { "answer_id": 89235, "author": "David J. Sokol", "author_id": 1390, "author_profil...
2008/09/18
[ "https://Stackoverflow.com/questions/89203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3821/" ]
89,212
<p>I'm familiar with object-oriented architecture, including use of design patterns and class diagrams for visualization, and I know of service-oriented architecture with its contracts and protocol bindings, but <strong>is there anything characteristic about a software architecture for a system written in a functional ...
[ { "answer_id": 89276, "author": "Kyle Cronin", "author_id": 658, "author_profile": "https://Stackoverflow.com/users/658", "pm_score": 2, "selected": false, "text": "(define (make-counter)\n (let ((count 0))\n (lambda ()\n (set! count (+ count 1))\n count)))\n\n(define x (ma...
2008/09/18
[ "https://Stackoverflow.com/questions/89212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1659/" ]
89,228
<p>How do I call an external command within Python as if I'd typed it in a shell or command prompt?</p>
[ { "answer_id": 89237, "author": "nimish", "author_id": 3926, "author_profile": "https://Stackoverflow.com/users/3926", "pm_score": 8, "selected": false, "text": "import os\nos.system(\"your command\")\n" }, { "answer_id": 89238, "author": "Alexandra Franks", "author_id": ...
2008/09/18
[ "https://Stackoverflow.com/questions/89228", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17085/" ]
89,233
<p>Using Windows Server 2003 in a multi-user environment (via Remote Desktop, using it as an application server), how to mount a (preferably encrypted) volume in a way, that won't show up on any other user's desktop?</p> <p>Tried, and failed approaches:</p> <ul> <li><p>tweaking user rights -display of mounted volume ...
[ { "answer_id": 89249, "author": "Robit", "author_id": 17026, "author_profile": "https://Stackoverflow.com/users/17026", "pm_score": 0, "selected": false, "text": "A 1 00 00 00\nB 2 00 00 00\nC 4 00 00 00\nD 8 00 00 00\nE 16 00 00 00\nF 32 00 00 00\nG 64 00 00 00\nH 128 00 00 00\nI 00 1 0...
2008/09/18
[ "https://Stackoverflow.com/questions/89233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9440/" ]
89,245
<p>Suppose a large composite application built on several foundation components packaged in their own assemblies: (database reading, protocol handlers, etc.). For some deployments, this can include over 20 assemblies. Each of these assemblies has settings or configuration information. Our team tends to like the VS ...
[ { "answer_id": 89261, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 5, "selected": true, "text": "<pages configSource=\"pages.config\"/>\n <pages />" }, { "answer_id": 90118, "author": "sontek", "author_id": 17...
2008/09/18
[ "https://Stackoverflow.com/questions/89245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6996/" ]
89,246
<p>I’m trying to run this SQL using get external.</p> <p>It works, but when I try to rename the sub-queries or anything for that matter it remove it.</p> <p>I tried <code>as</code>, <code>as</code> and the name in <code>''</code>, <code>as</code> then the name in <code>""</code>, and the same with space. What is the...
[ { "answer_id": 89314, "author": "jttraino", "author_id": 3203, "author_profile": "https://Stackoverflow.com/users/3203", "pm_score": 1, "selected": false, "text": "dbo.d_agent_define select list_name, app_name, \nmap.fname + ' ' + map.lname as agent_login, \ninput, \nconvert(varchar,date...
2008/09/18
[ "https://Stackoverflow.com/questions/89246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13122/" ]
89,257
<p>I've run into what appears to be a variable scope issue I haven't encountered before. I'm using Perl's CGI module and a call to DBI's do() method. Here's the code structure, simplified a bit:</p> <pre><code>use DBI; use CGI qw(:cgi-lib); &amp;ReadParse; my $dbh = DBI-&gt;connect(...............); my $test = $in{tes...
[ { "answer_id": 89282, "author": "Alex M", "author_id": 9652, "author_profile": "https://Stackoverflow.com/users/9652", "pm_score": 2, "selected": false, "text": "use strict; our %in;\n strict" }, { "answer_id": 89573, "author": "Dan", "author_id": 17121, "author_profi...
2008/09/18
[ "https://Stackoverflow.com/questions/89257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17092/" ]
89,266
<p>I'm designing a language. First, I want to decide what code to generate. The language will have lexical closures and prototype based inheritance similar to javascript. But I'm not a fan of gc and try to avoid as much as possible. So the question: Is there an elegant way to implement closures without resorting to all...
[ { "answer_id": 89346, "author": "Allen", "author_id": 6043, "author_profile": "https://Stackoverflow.com/users/6043", "pm_score": 4, "selected": false, "text": "gcc" }, { "answer_id": 89386, "author": "Daniel Spiewak", "author_id": 9815, "author_profile": "https://Sta...
2008/09/18
[ "https://Stackoverflow.com/questions/89266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7988/" ]
89,275
<p>What is the best C++ IDE or editor for using on Windows? I use Notepad++, but am missing IntelliSense from Visual Studio.</p>
[ { "answer_id": 2640588, "author": "pyon", "author_id": 46571, "author_profile": "https://Stackoverflow.com/users/46571", "pm_score": 1, "selected": false, "text": "msdev.exe" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/89275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2039/" ]
89,320
<p>The scenario is this</p> <p>We have two applications A and B, both which are running in separate database (Oracle 9i ) transactions</p> <p>Application A - inserts some data into the database, then calls Application B Application B - inserts some data into the database, related (via foreign keys) to A's data. Returns...
[ { "answer_id": 89819, "author": "Brad Gilbert", "author_id": 1337, "author_profile": "https://Stackoverflow.com/users/1337", "pm_score": 0, "selected": false, "text": "App_A =={0}=> database # App_A stores information for App_B\nApp_A ------> App_B # App_A ...
2008/09/18
[ "https://Stackoverflow.com/questions/89320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3839/" ]
89,332
<p>I frequently use <code>git stash</code> and <code>git stash pop</code> to save and restore changes in my working tree. Yesterday, I had some changes in my working tree that I had stashed and popped, and then I made more changes to my working tree. I'd like to go back and review yesterday's stashed changes, but <code...
[ { "answer_id": 89388, "author": "Nathan Jones", "author_id": 5848, "author_profile": "https://Stackoverflow.com/users/5848", "pm_score": 6, "selected": false, "text": "git fsck --unreachable | grep commit git show <sha1> git cherry-pick -m 1 <sha1>" }, { "answer_id": 89394, "...
2008/09/18
[ "https://Stackoverflow.com/questions/89332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/893/" ]
89,350
<p>quick question: my customer has a situation where he has his database with a varchar field and the corresponding jdbc code is storing/retrieving a boolean.</p> <p>I guess that the boolean values false and true are going to be translated to "0" and "1" but I would like to have a confirmation of this (I can't find th...
[ { "answer_id": 89405, "author": "Daniel Spiewak", "author_id": 9815, "author_profile": "https://Stackoverflow.com/users/9815", "pm_score": 0, "selected": false, "text": "BOOLEAN VARCHAR true false 0 1" }, { "answer_id": 89533, "author": "Joe Skora", "author_id": 14057, ...
2008/09/18
[ "https://Stackoverflow.com/questions/89350", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7611/" ]
89,372
<p>Has anyone been able to get a variable record length text file (CSV) into SQL Server via SSIS?</p> <p>I have tried time and again to get a CSV file into a SQL Server table, using SSIS, where the input file has varying record lengths. For this question, the two different record lengths are 63 and 326 bytes. All r...
[ { "answer_id": 9721041, "author": "Chris H", "author_id": 1271693, "author_profile": "https://Stackoverflow.com/users/1271693", "pm_score": 1, "selected": false, "text": "1" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/89372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14728/" ]
89,387
<p>Since Rails is not multithreaded (yet), it seems like a threaded web framework would be a better choice for a Facebook application. (reason being is cuz each Rails process can only handle one request at a time, and facebook actions tend to be slow, because there is a lot of network communication between your app an...
[ { "answer_id": 90716, "author": "Zach", "author_id": 9128, "author_profile": "https://Stackoverflow.com/users/9128", "pm_score": 2, "selected": false, "text": "gem install facebooker\n" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/89387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17076/" ]
89,402
<p>I need a very fast algorithm for the following task. I have already implemented several algorithms that complete it, but they're all too slow for the performance I need. It should be fast enough that the algorithm can be run at least 100,000 times a second on a modern CPU. It will be implemented in C++.</p> <p>I am...
[ { "answer_id": 89424, "author": "Dark Shikari", "author_id": 11206, "author_profile": "https://Stackoverflow.com/users/11206", "pm_score": 0, "selected": false, "text": "if(src1[x] < src2[x])\n dst[x] = src1[x];\nelse\n dst[x] = src2[x];\n" }, { "answer_id": 89688, "aut...
2008/09/18
[ "https://Stackoverflow.com/questions/89402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6223/" ]
89,418
<p>Assume I have an "images" folder directory under the root of my application. How can I, from within a .css file, reference an image in this directory using an ASP.NET app relative path. </p> <p>Example:</p> <p>When in development, the path of <strong>~/Images/Test.gif</strong> might resolve to <strong>/MyApp/Ima...
[ { "answer_id": 89431, "author": "Allain Lalonde", "author_id": 2443, "author_profile": "https://Stackoverflow.com/users/2443", "pm_score": 3, "selected": false, "text": "background-image: url(../images/test.gif);\n" }, { "answer_id": 442383, "author": "Marcel Popescu", "a...
2008/09/18
[ "https://Stackoverflow.com/questions/89418", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10834/" ]
89,441
<p>I have Visual Studio web test attached nicely to a data source, but I need to be able to iterate over each entry in the data source. How should I do this?</p>
[ { "answer_id": 89492, "author": "Ola Karlsson", "author_id": 10696, "author_profile": "https://Stackoverflow.com/users/10696", "pm_score": 2, "selected": true, "text": "[DataSource(\"System.Data.SqlClient\",\n \"Data Source=VSTS;Initial Catalog=ContactManagerWebTest;\n Integrated S...
2008/09/18
[ "https://Stackoverflow.com/questions/89441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13813/" ]
89,465
<p>Currently, WScript pops up message box when there is a script error. These scripts are called by other processes, and are ran on a server, so there is nobody to dismiss the error box. </p> <p>What I'd like is for the error message to be dumped to STDOUT, and execution to return the calling process. Popping as a MSG...
[ { "answer_id": 89804, "author": "Jay Michaud", "author_id": 8613, "author_profile": "https://Stackoverflow.com/users/8613", "pm_score": 2, "selected": false, "text": "cscript //? cscript //H:CScript On Error Resume Next" }, { "answer_id": 96124, "author": "aphoria", "auth...
2008/09/18
[ "https://Stackoverflow.com/questions/89465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1965/" ]
89,480
<p>For reasons I won't go into, I wish to ban an entire company from accessing my web site. Checking the remote hostname in php using gethostbyaddr() works, but this slows down the page load too much. Large organizations (eg. hp.com or microsoft.com) often have blocks of IP addresses. Is there anyway I get the full lis...
[ { "answer_id": 89495, "author": "UnkwnTech", "author_id": 115, "author_profile": "https://Stackoverflow.com/users/115", "pm_score": 5, "selected": true, "text": "Deny from x.x.x.x\n Deny from 192.168.0\n Deny from sub.domain.tld\n $ips = array('1.1.1.1', '2.2.2.2', '3.3.3.3');\nif(in_arr...
2008/09/18
[ "https://Stackoverflow.com/questions/89480", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15947/" ]
89,487
<p>I suppose it allows for moving changes from one branch to the next but that's what cherry picking is for and if you're not making a commit of your changes, perhaps you shouldn't be moving them around?</p> <p>I have on occasion applied the wrong stash at the wrong branch, which left me wondering about this question....
[ { "answer_id": 89572, "author": "Patrick_O", "author_id": 11084, "author_profile": "https://Stackoverflow.com/users/11084", "pm_score": 4, "selected": false, "text": "git checkout -b new_stash\ngit commit -a -m \"stashed changes\"\n git reset HEAD^\ngit branch -d new_stash\n git pull\n g...
2008/09/18
[ "https://Stackoverflow.com/questions/89487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2108922/" ]
89,488
<p>I've been trying to implement a C#-like event system in C++ with the tr1 function templates used to store a function that handles the event. </p> <p>I created a vector so that multiple listeners can be attached to this event, i.e.:</p> <pre><code>vector&lt; function&lt;void (int)&gt; &gt; listenerList; </code></p...
[ { "answer_id": 89595, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 0, "selected": false, "text": "typeid typeid #include <cstdio>\n#include <functional>\n\nusing std::printf;\nusing std::tr1::function;\n\nint main(int, char...
2008/09/18
[ "https://Stackoverflow.com/questions/89488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17136/" ]
89,489
<p>I was following along with the railscast regarding the restful_authentication plugin.</p> <p>He recommended running the command:</p> <p>script/generate authenticated user session</p> <p>Which I did, and everything generated "fine", but then sessions wouldn't work. Checking the site again, he mentions a naming sta...
[ { "answer_id": 89525, "author": "Orion Edwards", "author_id": 234, "author_profile": "https://Stackoverflow.com/users/234", "pm_score": 1, "selected": false, "text": "script/destroy grep -R" }, { "answer_id": 90044, "author": "Misplaced", "author_id": 13710, "author_p...
2008/09/18
[ "https://Stackoverflow.com/questions/89489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9450/" ]
89,490
<p>How do I set the symbol for the <em>angle</em> or <em>annuity</em> operation in LaTeX? Specifically, this is the actuarial <em>a</em> angle <em>s</em> = (1-v<sup>s</sup>)/i.</p>
[ { "answer_id": 89851, "author": "Joseph Holsten", "author_id": 16981, "author_profile": "https://Stackoverflow.com/users/16981", "pm_score": 3, "selected": false, "text": "\\DeclareRobustCommand{\\lcroof}[1]{\n \\hbox{\\vtop{\\vbox{%\n \\hrule\\kern 1pt\\hbox{%\n $\\scriptst...
2008/09/18
[ "https://Stackoverflow.com/questions/89490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16981/" ]
89,504
<p>I've got a standard Rails app with Nginx and Mongrel running at <a href="http://mydomain" rel="noreferrer">http://mydomain</a>. I need to run a Wordpress blog at <a href="http://mydomain.com/blog" rel="noreferrer">http://mydomain.com/blog</a>. My preference would be to host the blog in Apache running on either the...
[ { "answer_id": 89530, "author": "joelhardi", "author_id": 11438, "author_profile": "https://Stackoverflow.com/users/11438", "pm_score": 3, "selected": false, "text": "server {\n listen example.com:80;\n server_name example.com;\n charset utf-8;\n error_log /www...
2008/09/18
[ "https://Stackoverflow.com/questions/89504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14619/" ]
89,543
<p>I want to set something up so that if an Account within my app is disabled, I want all requests to be redirected to a "disabled" message.</p> <p>I've set this up in my ApplicationController:</p> <pre><code>class ApplicationController &lt; ActionController::Base before_filter :check_account def check_account ...
[ { "answer_id": 89647, "author": "Ian Terrell", "author_id": 9269, "author_profile": "https://Stackoverflow.com/users/9269", "pm_score": 3, "selected": false, "text": "before_filter :check_account, :except => :disabled\n def check_account\n return if self.controller_name == \"main\" ...
2008/09/18
[ "https://Stackoverflow.com/questions/89543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14530/" ]
89,576
<p>I am trying to connect to a Microsoft SQL 2005 server which is not on port 1433. How do I indicate a different port number when connecting to the server using SQL Management Studio?</p>
[ { "answer_id": 89583, "author": "Nescio", "author_id": 14484, "author_profile": "https://Stackoverflow.com/users/14484", "pm_score": 11, "selected": true, "text": "127.0.0.1,6283" }, { "answer_id": 89677, "author": "James", "author_id": 2719, "author_profile": "https:...
2008/09/18
[ "https://Stackoverflow.com/questions/89576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5836/" ]
89,588
<p>You do <code>AssignProcessToJobObject</code> and it fails with "access denied" but only when you are running in the debugger. Why is this?</p>
[ { "answer_id": 89589, "author": "1800 INFORMATION", "author_id": 3146, "author_profile": "https://Stackoverflow.com/users/3146", "pm_score": 6, "selected": true, "text": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n <assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\"...
2008/09/18
[ "https://Stackoverflow.com/questions/89588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3146/" ]
89,603
<p>When writing C/C++ code, in order to debug the binary executable the debug option must be enabled on the compiler/linker. In the case of GCC, the option is -g. When the debug option is enabled, how does the affect the binary executable? What additional data is stored in the file that allows the debugger function ...
[ { "answer_id": 89669, "author": "Bernard", "author_id": 61, "author_profile": "https://Stackoverflow.com/users/61", "pm_score": 2, "selected": false, "text": "-g -S" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/89603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10216/" ]
89,606
<p>I have a table that got into the "db_owner" schema, and I need it in the "dbo" schema.</p> <p>Is there a script or command to run to switch it over?</p>
[ { "answer_id": 89635, "author": "Stephen Wrighton", "author_id": 7516, "author_profile": "https://Stackoverflow.com/users/7516", "pm_score": 6, "selected": false, "text": "ALTER SCHEMA [NewSchema] TRANSFER [OldSchema].[Table1]\n" }, { "answer_id": 89658, "author": "Craig", ...
2008/09/18
[ "https://Stackoverflow.com/questions/89606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1220/" ]
89,607
<p>I have added some code which compiles cleanly and have just received this Windows error:</p> <pre><code>--------------------------- (MonTel Administrator) 2.12.7: MtAdmin.exe - Application Error --------------------------- The exception Privileged instruction. (0xc0000096) occurred in the application at location ...
[ { "answer_id": 89643, "author": "Tim Williscroft", "author_id": 2789, "author_profile": "https://Stackoverflow.com/users/2789", "pm_score": 2, "selected": false, "text": "std::string" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/89607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3137/" ]
89,609
<p>I'm looking for the best way to take a simple input:</p> <pre><code>echo -n "Enter a string here: " read -e STRING </code></pre> <p>and clean it up by removing non-alphanumeric characters, lower(case), and replacing spaces with underscores.</p> <p>Does order matter? Is <code>tr</code> the best / only way to go ab...
[ { "answer_id": 89642, "author": "Devin Reams", "author_id": 16248, "author_profile": "https://Stackoverflow.com/users/16248", "pm_score": 0, "selected": false, "text": "tr export CLEANSTRING=\"`echo -n \"${STRING}\" | tr -cd '[:alnum:] [:space:]' | tr '[:space:]' '-' | tr '[:upper:]' '[...
2008/09/18
[ "https://Stackoverflow.com/questions/89609", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16248/" ]
89,650
<p>I would like to pass an argument(s) to a method being defined using define_method, how would I do that?</p>
[ { "answer_id": 89661, "author": "easeout", "author_id": 10906, "author_profile": "https://Stackoverflow.com/users/10906", "pm_score": 9, "selected": true, "text": "define_method(:say_hi) { |other| puts \"Hi, \" + other }\n" }, { "answer_id": 109379, "author": "Jörg W Mittag",...
2008/09/18
[ "https://Stackoverflow.com/questions/89650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1681/" ]
89,672
<p>When you create a new content type in Drupal using the Content Creation Kit, you automatically get Title and Body fields in the generated form. Is there a way to remove them?</p>
[ { "answer_id": 1196442, "author": "Volomike", "author_id": 105539, "author_profile": "https://Stackoverflow.com/users/105539", "pm_score": 2, "selected": false, "text": "<?php echo $node->field_staff_email[0]['email']; ?>\n <?php echo $node->field_staff_name[0]['value'] . '-' . gmdate('Y...
2008/09/18
[ "https://Stackoverflow.com/questions/89672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5808/" ]
89,696
<p>I have Oracle SQL Developer already installed and am able to connect to and query Oracle databases.</p> <p>Using Help -> Check for Updates I was able to install the Oracle MySQL Browser extension but there are no connection options for MySQL databases.</p>
[ { "answer_id": 26598840, "author": "codingknob", "author_id": 668624, "author_profile": "https://Stackoverflow.com/users/668624", "pm_score": 0, "selected": false, "text": "ntlmauth.dll" }, { "answer_id": 37999123, "author": "Ale", "author_id": 6505642, "author_profil...
2008/09/18
[ "https://Stackoverflow.com/questions/89696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5808/" ]
89,705
<p>I'm going through the problems on projecteuler.net to learn how to program in Erlang, and I am having the hardest time creating a prime generator that can create all of the primes below 2 million, in less than a minute. Using the sequential style, I have already written three types of generators, including the Sieve...
[ { "answer_id": 89726, "author": "theo", "author_id": 7870, "author_profile": "https://Stackoverflow.com/users/7870", "pm_score": -1, "selected": false, "text": "For Each NUMBER in LIST_OF_PRIMES\n If TEST_VALUE % NUMBER == 0\n Then FALSE\nEND\nTRUE\n\nif isPrime == TRUE add ...
2008/09/18
[ "https://Stackoverflow.com/questions/89705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8040/" ]
89,708
<p>I am trying to extract a gif image embedded as a resource within my ISAPI dll using WebBroker technology. The resource has been added to the DLL using the following RC code:</p> <pre><code>LOGO_GIF RCDATA logo.gif </code></pre> <p>Using resource explorer I verified it is in the DLL properly.</p> <p>using the fol...
[ { "answer_id": 90496, "author": "Tim Knipe", "author_id": 10493, "author_profile": "https://Stackoverflow.com/users/10493", "pm_score": 3, "selected": true, "text": "rc := tResourceStream.Create(hInstance,'LOGO_GIF', MakeIntResource(RT_RCDATA));\n" }, { "answer_id": 90742, "a...
2008/09/18
[ "https://Stackoverflow.com/questions/89708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9217/" ]
89,741
<p>I'd like to know what the currently checked out revision number is for a file or directory. Is there a way to do this in TortoiseSVN on Windows ?</p>
[ { "answer_id": 89817, "author": "DevelopingChris", "author_id": 1220, "author_profile": "https://Stackoverflow.com/users/1220", "pm_score": 5, "selected": false, "text": "svn info\n" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/89741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5324/" ]
89,745
<p>I am trying to find the virtual file that contains the current users id. I was told that I could find it in the proc directory, but not quite sure which file.</p>
[ { "answer_id": 89763, "author": "Adam Pierce", "author_id": 5324, "author_profile": "https://Stackoverflow.com/users/5324", "pm_score": 2, "selected": false, "text": "/proc getuid() $USER" }, { "answer_id": 89765, "author": "dreamlax", "author_id": 10320, "author_prof...
2008/09/18
[ "https://Stackoverflow.com/questions/89745", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17162/" ]
89,752
<p>How can I get <strong>hierarchy recordset</strong> in ms access through <strong>select</strong> statement?</p>
[ { "answer_id": 89763, "author": "Adam Pierce", "author_id": 5324, "author_profile": "https://Stackoverflow.com/users/5324", "pm_score": 2, "selected": false, "text": "/proc getuid() $USER" }, { "answer_id": 89765, "author": "dreamlax", "author_id": 10320, "author_prof...
2008/09/18
[ "https://Stackoverflow.com/questions/89752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
89,767
<p>I'm currently trying to port a SIP stack library (pjSIP) to the PSP Console (using the PSPSDK toolchain), but I'm having too much trouble with the makefiles (making the proper changes and solving linking issues). </p> <p>Does anyone know a good text, book or something to get some insight on porting libraries?</p> ...
[ { "answer_id": 414319, "author": "Paulo Lopes", "author_id": 51560, "author_profile": "https://Stackoverflow.com/users/51560", "pm_score": 2, "selected": false, "text": "LDFLAGS=\"-L$(psp-config --pspsdk-path)/lib -lc -lpspuser\" ./configure --host psp --prefix=$(pwd)/../target/psp\n mip...
2008/09/18
[ "https://Stackoverflow.com/questions/89767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2731698/" ]
89,791
<p>When I start my process from Visual Studio, it is always created inside a job object. I would like to know how to turn this behaviour off. Any ideas?</p> <p>I expect that it is created in a job object to be debugged. I want to place my program in a different job object.</p> <p>It's not the hosting process. I'm tal...
[ { "answer_id": 4232259, "author": "Tom Minka", "author_id": 513835, "author_profile": "https://Stackoverflow.com/users/513835", "pm_score": 5, "selected": false, "text": "devenv.exe VSLauncher.exe Run gpedit.msc Administrative Templates\\Windows Components\\Application Compatibility Turn...
2008/09/18
[ "https://Stackoverflow.com/questions/89791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3146/" ]
89,796
<p>I've been using the YUI Components and want to begin using the Loader Utility to specify my dependencies on my page. From your experience, is the YUI Loader Utility a reliable way to load Javascript dependencies in web pages?</p>
[ { "answer_id": 3638698, "author": "Kreegr", "author_id": 296765, "author_profile": "https://Stackoverflow.com/users/296765", "pm_score": 1, "selected": false, "text": "var TheBase = function(oConfig){\nvar thisBase = this;\nvar EVENTS = {\n ON_SCRIPTS_LOADED : \"onScriptsLoaded\"\n ...
2008/09/18
[ "https://Stackoverflow.com/questions/89796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3289/" ]
89,820
<p>I am using mssql and am having trouble using a subquery. The real query is quite complicated, but it has the same structure as this:</p> <pre><code>select customerName, customerId, ( select count(*) from Purchases where Purchases.customerId=customerData.customerId ) as numberTransactions fro...
[ { "answer_id": 89831, "author": "Jonathan Rupp", "author_id": 12502, "author_profile": "https://Stackoverflow.com/users/12502", "pm_score": 4, "selected": true, "text": "order by 3\n" }, { "answer_id": 89834, "author": "Jason Punyon", "author_id": 6212, "author_profil...
2008/09/18
[ "https://Stackoverflow.com/questions/89820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6062/" ]
89,866
<p>We are creating a Real-Time Process in VxWorks 6.x, and we would like to limit the amount of memory which can be allocated to the heap. How do we do this?</p>
[ { "answer_id": 89911, "author": "Benoit", "author_id": 10703, "author_profile": "https://Stackoverflow.com/users/10703", "pm_score": 3, "selected": true, "text": "\n char * envp[] = {\"HEAP_INITIAL_SIZE=0x20000\", \"HEAP_MAX_SIZE=0x100000\", NULL);\n rtpSpawn (\"myrtp.vxe\", NULL, en...
2008/09/18
[ "https://Stackoverflow.com/questions/89866", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10703/" ]
89,873
<p>Is it possible to manipulate the components, such as <code>year</code>, <code>month</code>, <code>day</code> of a <code>date</code> in VBA? I would like a function that, given a day, a month, and a year, returns the corresponding date.</p>
[ { "answer_id": 89899, "author": "Swati", "author_id": 12682, "author_profile": "https://Stackoverflow.com/users/12682", "pm_score": 4, "selected": true, "text": "DateSerial(YEAR, MONTH, DAY)\n DateSerial(2008, 8, 19) 8/19/2008" }, { "answer_id": 89903, "author": "Prestaul", ...
2008/09/18
[ "https://Stackoverflow.com/questions/89873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10439/" ]
89,891
<p>I just learned about how the Java Collections Framework implements data structures in linked lists. From what I understand, <code>Iterators</code> are a way of traversing through the items in a data structure such as a list. Why is this interface used? Why are the methods <code>hasNext()</code>, <code>next()</code> ...
[ { "answer_id": 90068, "author": "coobird", "author_id": 17172, "author_profile": "https://Stackoverflow.com/users/17172", "pm_score": 2, "selected": false, "text": "Iterator implements implements hasNext(), next(), remove() LinkedList LinkedList implements Iterator LinkedList LinkedList ...
2008/09/18
[ "https://Stackoverflow.com/questions/89891", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17182/" ]
89,897
<p>Maybe the need to do this is a 'design smell' but thinking about another question, I was wondering what the cleanest way to implement the <strong>inverse</strong> of this:</p> <pre><code>foreach(ISomethingable somethingableClass in collectionOfRelatedObjects) { somethingableClass.DoSomething(); } </code></pre> <...
[ { "answer_id": 89933, "author": "J D OConal", "author_id": 17023, "author_profile": "https://Stackoverflow.com/users/17023", "pm_score": 3, "selected": false, "text": "foreach (ParentType parentType in collectionOfRelatedObjects) {\n if (!(parentType is ISomethingable)) {\n }\n}\n"...
2008/09/18
[ "https://Stackoverflow.com/questions/89897", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12726/" ]
89,908
<p>I have three models:</p> <pre><code>class ReleaseItem &lt; ActiveRecord::Base has_many :pack_release_items has_one :pack, :through =&gt; :pack_release_items end class Pack &lt; ActiveRecord::Base has_many :pack_release_items has_many :release_items, :through=&gt;:pack_release_items end class PackReleaseIt...
[ { "answer_id": 90003, "author": "Misplaced", "author_id": 13710, "author_profile": "https://Stackoverflow.com/users/13710", "pm_score": 4, "selected": true, "text": "model_id PackReleaseItems pack_id release_item_id" }, { "answer_id": 90055, "author": "Ian Terrell", "auth...
2008/09/18
[ "https://Stackoverflow.com/questions/89908", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13179/" ]
89,909
<p>I know how to do this if I iterate through all of the characters in the string but I am looking for a more elegant method.</p>
[ { "answer_id": 89915, "author": "easeout", "author_id": 10906, "author_profile": "https://Stackoverflow.com/users/10906", "pm_score": -1, "selected": false, "text": "([a-z][A-Z][0-9]\\_\\-)*\n" }, { "answer_id": 89919, "author": "Thomas", "author_id": 14637, "author_p...
2008/09/18
[ "https://Stackoverflow.com/questions/89909", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4527/" ]
89,959
<p>I am just starting out with DI &amp; unit testing and have hit a snag which I am sure is a no brainer for those more experienced devs :</p> <p>I have a class called MessageManager which receives data and saves it to a db. Within the same assembly (project in Visual Studio) I have created a repository interface with...
[ { "answer_id": 89983, "author": "user11087", "author_id": 11087, "author_profile": "https://Stackoverflow.com/users/11087", "pm_score": 1, "selected": false, "text": "Foo f = new Foo();\nBar b = new Bar();\nf.setBar(b);\nb.setFoo(f);\n" }, { "answer_id": 90045, "author": "Sim...
2008/09/18
[ "https://Stackoverflow.com/questions/89959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17194/" ]
89,987
<p>My DataView is acting funny and it is sorting things alphabetically and I need it to sort things numerically. I have looked all across the web for this one and found many ideas on how to sort it with ICompare, but nothing really solid.</p> <p>So my questions are </p> <ol> <li>How do I implement ICompare on a Data...
[ { "answer_id": 90498, "author": "rslite", "author_id": 15682, "author_profile": "https://Stackoverflow.com/users/15682", "pm_score": 2, "selected": false, "text": "DataView dv = new DataView(dt);\nArrayList lst = new ArrayList();\nlst.AddRange(dv.Table.Rows);\nlst.Sort(new MyComparer());...
2008/09/18
[ "https://Stackoverflow.com/questions/89987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7644/" ]
89,989
<p>I want to download a lot of urls in a script but I do not want to save the ones that lead to HTTP errors.</p> <p>As far as I can tell from the man pages, neither <code>curl</code> or <code>wget</code> provide such functionality. Does anyone know about another downloader who does?</p>
[ { "answer_id": 90009, "author": "Thomas", "author_id": 14637, "author_profile": "https://Stackoverflow.com/users/14637", "pm_score": 5, "selected": false, "text": "-f curl -f --fail $ curl -fO http://google.com/aoeu\n$ cat aoeu\n<HTML><HEAD><meta http-equiv=\"content-type\" content=\"tex...
2008/09/18
[ "https://Stackoverflow.com/questions/89989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/65724/" ]
90,002
<p>If you were to mandate a minimum percentage code-coverage for unit tests, perhaps even as a requirement for committing to a repository, what would it be?</p> <p>Please explain how you arrived at your answer (since if all you did was pick a number, then I could have done that all by myself ;)</p>
[ { "answer_id": 795683, "author": "Gary Kephart", "author_id": 17967, "author_profile": "https://Stackoverflow.com/users/17967", "pm_score": 2, "selected": false, "text": "<cobertura-check linerate=\"0\"\n branchrate=\"0\"\n totallinerate=\"70\"\n ...
2008/09/18
[ "https://Stackoverflow.com/questions/90002", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16050/" ]
90,023
<h2>Update: giving a much more thorough example.</h2> <p>The first two solutions offered were right along the lines of what I was trying to say <em>not</em> to do. I can't know location, it needs to be able to look at the whole document tree. So a solution along these lines, with /Books/ specified as the context will...
[ { "answer_id": 90795, "author": "rslite", "author_id": 15682, "author_profile": "https://Stackoverflow.com/users/15682", "pm_score": 3, "selected": true, "text": "//Book[not(@ID) or @ID = 5]\n SET @Xml.modify('delete(//*[@category!=1])')\nSELECT @Xml\n INSERT INTO #temp VALUES(@Xml)\nUPD...
2008/09/18
[ "https://Stackoverflow.com/questions/90023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8507/" ]
90,029
<p>I'm trying to create a deployment tool that will install software based on the hardware found on a system. I'd like the tool to be able to determine if the optical drive is a writer (to determine if burning software sould be installed) or can read DVDs (to determine if a player should be installed). I tried uing the...
[ { "answer_id": 90072, "author": "blowdart", "author_id": 2525, "author_profile": "https://Stackoverflow.com/users/2525", "pm_score": 1, "selected": false, "text": "Win32_DiskDrive Win32_PhysicalMedia" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/90029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
90,049
<p>I'm using a table to design the layout of my web page. I want the table to fill the page even if it doesn't contain much content. Here's the CSS I'm using:</p> <pre class="lang-css prettyprint-override"><code>html, body { height: 100%; margin: 0; padding: 0; } #container { min-height: 100%; wi...
[ { "answer_id": 90109, "author": "Vincent McNabb", "author_id": 16299, "author_profile": "https://Stackoverflow.com/users/16299", "pm_score": 4, "selected": true, "text": "height min-height #container" }, { "answer_id": 6577742, "author": "deathlock", "author_id": 651170, ...
2008/09/18
[ "https://Stackoverflow.com/questions/90049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17216/" ]
90,052
<p>Ok, so i'm working on a regular expression to search out all the header information in a site.</p> <p>I've compiled the regular expression:</p> <pre><code>regex = re.compile(r''' &lt;h[0-9]&gt;\s? (&lt;a[ ]href="[A-Za-z0-9.]*"&gt;)?\s? [A-Za-z0-9.,:'"=/?;\s]*\s? [A-Za-z0-9.,:'"=/?;\s]? ''', re.X) ...
[ { "answer_id": 90206, "author": "molasses", "author_id": 11293, "author_profile": "https://Stackoverflow.com/users/11293", "pm_score": 1, "selected": false, "text": "import re\n\nhtml = '''\n<body>\n\n<h1>Dog </h1>\n<h2>Cat </h2>\n<h3>Fancy </h3>\n<h1>Tall cup of lemons</h1>\n<h1><a href...
2008/09/18
[ "https://Stackoverflow.com/questions/90052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
90,061
<p>The application I'm writing is almost complete and I'd like people who speak different languages to use it.</p> <p>I'm not sure where to start, what's the difference between globalisation and culture in regards to programming?</p> <p>How does one take uncommon phrases such as "this application was built to do this...
[ { "answer_id": 90133, "author": "easeout", "author_id": 10906, "author_profile": "https://Stackoverflow.com/users/10906", "pm_score": 0, "selected": false, "text": "save=Save\nclose=Close\nok=OK\nareYouSure=Are you sure?\n save=I don't know how to say anything in Spanish, oops\nclose=......
2008/09/18
[ "https://Stackoverflow.com/questions/90061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17211/" ]
90,067
<p>I'm using the following html to load dojo from Google's hosting.</p> <pre><code>&lt;script src="http://www.google.com/jsapi"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt;google.load("dojo", "1.1.1");&lt;/script&gt; &lt;script type="text/javascript"&gt; dojo.require("dojox.gfx"); ... </code></pre> <p>Thi...
[ { "answer_id": 90088, "author": "William Keller", "author_id": 17095, "author_profile": "https://Stackoverflow.com/users/17095", "pm_score": 0, "selected": false, "text": "google.dojo.require" }, { "answer_id": 90169, "author": "Felipe", "author_id": 2333, "author_pro...
2008/09/18
[ "https://Stackoverflow.com/questions/90067", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17209/" ]
90,075
<p>Businesses Analyst from my team keeps sending us the updated Requirements documents often and I end up hunting the recent changes by comparing the old version. Is their a good way of comparing the Word documents? </p> <p>Note: We have the track changes option ON, but now the documents looks like a blood bath, compl...
[ { "answer_id": 3119456, "author": "Daenyth", "author_id": 350351, "author_profile": "https://Stackoverflow.com/users/350351", "pm_score": 1, "selected": false, "text": "diff" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/90075", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4718/" ]
90,092
<p>I have a table in <code>MySQL</code> that has 3 fields and I want to enforce uniqueness among two of the fields. Here is the table <code>DDL</code>:</p> <pre><code>CREATE TABLE `CLIENT_NAMES` ( `ID` int(11) NOT NULL auto_increment, `CLIENT_NAME` varchar(500) NOT NULL, `OWNER_ID` int(11) NOT NULL, PRIMARY KEY (`ID...
[ { "answer_id": 90129, "author": "Terry G Lorber", "author_id": 809, "author_profile": "https://Stackoverflow.com/users/809", "pm_score": -1, "selected": false, "text": "CLIENT_NAME" }, { "answer_id": 90189, "author": "Aeon", "author_id": 13289, "author_profile": "http...
2008/09/18
[ "https://Stackoverflow.com/questions/90092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4082/" ]
90,121
<p>The question is how to make the similar thing like symlink in windows like in *nix. It's really hard to write whole path to the file in console (even using [tab], it's not the way if you need to change language). Adding everything in PATH is tiring too. It'll be great to make a symlink running one command.</p> <p>A...
[ { "answer_id": 90132, "author": "William Keller", "author_id": 17095, "author_profile": "https://Stackoverflow.com/users/17095", "pm_score": -1, "selected": false, "text": "mklink" }, { "answer_id": 90395, "author": "willson", "author_id": 11972, "author_profile": "ht...
2008/09/18
[ "https://Stackoverflow.com/questions/90121", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11972/" ]
90,151
<p>Anyone got a working example of using ruby to post to a presigned URL on s3</p>
[ { "answer_id": 98952, "author": "Dan Harper", "author_id": 14530, "author_profile": "https://Stackoverflow.com/users/14530", "pm_score": 1, "selected": false, "text": "AWS::S3::S3Object.url_for(self.full_filename,\n self.bucket_name, {\n ...
2008/09/18
[ "https://Stackoverflow.com/questions/90151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17232/" ]
90,176
<p>I am writing a simple checkers game in Java. When I mouse over the board my processor ramps up to 50% (100% on a core).</p> <p>I would like to find out what part of my code(assuming its my fault) is executing during this.</p> <p>I have tried debugging, but step-through debugging doesn't work very well in this cas...
[ { "answer_id": 90575, "author": "Rejeev Divakaran", "author_id": 10980, "author_profile": "https://Stackoverflow.com/users/10980", "pm_score": 1, "selected": false, "text": "while(true){\n if(status) break;\n // Thread.sleep(60000); // such a statement would have avoided busy wait\n}\n...
2008/09/18
[ "https://Stackoverflow.com/questions/90176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2598/" ]
90,178
<p>I am working on a web application where I want the content to fill the height of the entire screen.</p> <p>The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.</p> <p>I have a header <code>div</c...
[ { "answer_id": 90414, "author": "Jerph", "author_id": 1701, "author_profile": "https://Stackoverflow.com/users/1701", "pm_score": 4, "selected": false, "text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n...
2008/09/18
[ "https://Stackoverflow.com/questions/90178", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16299/" ]
90,181
<p>I've just run into a display glitch in IE6 with the ExtJS framework. - Hopefully someone can point me in the right direction.</p> <p>In the following example, the bbar for the panel is displayed 2ems narrower than the panel it is attached to (it's left aligned) in IE6, where as in Firefox it is displayed as the sam...
[ { "answer_id": 90414, "author": "Jerph", "author_id": 1701, "author_profile": "https://Stackoverflow.com/users/1701", "pm_score": 4, "selected": false, "text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n...
2008/09/18
[ "https://Stackoverflow.com/questions/90181", "https://Stackoverflow.com", "https://Stackoverflow.com/users/797/" ]
90,184
<p>I need a pseudorandom number generator algorithm for a assembler program assigned in a course, and I would prefer a simple algorithm. However, I cannot use an external library. </p> <p>What is a good, simple pseudorandom number generator algorithm for assembly?</p>
[ { "answer_id": 92554, "author": "ICW", "author_id": 17664, "author_profile": "https://Stackoverflow.com/users/17664", "pm_score": 2, "selected": false, "text": "MOD 2^32 RNG = (69069*RNG + 69069) MOD 2^32\n" }, { "answer_id": 104462, "author": "Nils Pipenbrinck", "author_...
2008/09/18
[ "https://Stackoverflow.com/questions/90184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10344/" ]
90,203
<p>What is the difference between different optimization levels in GCC? Assuming I don't care to have any debug hooks, why wouldn't I just use the highest level of optimization available to me? does a higher level of optimization necessarily (i.e. provably) generate a faster program?</p>
[ { "answer_id": 90228, "author": "Todd Gamblin", "author_id": 9122, "author_profile": "https://Stackoverflow.com/users/9122", "pm_score": 4, "selected": false, "text": "-O2 -O3 -O3 -O3" }, { "answer_id": 152710, "author": "Mihai Limbășan", "author_id": 14444, "author_p...
2008/09/18
[ "https://Stackoverflow.com/questions/90203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17231/" ]
90,238
<p>As an example in pseudocode:</p> <pre><code>if ((a mod 2) == 0) { isEven = true; } else { isEven = false; } </code></pre>
[ { "answer_id": 90242, "author": "martinatime", "author_id": 1353, "author_profile": "https://Stackoverflow.com/users/1353", "pm_score": 7, "selected": false, "text": "boolean isEven = a % 2 == 0;\n" }, { "answer_id": 90244, "author": "J D OConal", "author_id": 17023, ...
2008/09/18
[ "https://Stackoverflow.com/questions/90238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17245/" ]
90,246
<p>I want to let users specify a date that may or may not include a day and month (but will have at least the year.) The problem is when it is stored as a datetime in the DB; the missing day/month will be saved as default values and I'll lose the original format and meaning of the date.</p> <p>My idea was to store the...
[ { "answer_id": 90282, "author": "André Chalella", "author_id": 4850, "author_profile": "https://Stackoverflow.com/users/4850", "pm_score": 0, "selected": false, "text": "int" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/90246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9128/" ]
90,288
<p>If you have an 68K application written using CodeWarrior for Palm OS, how do you assign individual functions to different segments without manually moving files around in the segment tab in the IDE?</p>
[ { "answer_id": 90282, "author": "André Chalella", "author_id": 4850, "author_profile": "https://Stackoverflow.com/users/4850", "pm_score": 0, "selected": false, "text": "int" } ]
2008/09/18
[ "https://Stackoverflow.com/questions/90288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1323/" ]
90,308
<p>This is probably too much to ask, but is there any language that does a really terrific job of representing time and date operations? I'll grant straight away that it's <b>really hard</b> to write a truly great time library. That said, are there any widespread languages that have one? Basically, I want something ...
[ { "answer_id": 90339, "author": "Redbeard", "author_id": 14977, "author_profile": "https://Stackoverflow.com/users/14977", "pm_score": 1, "selected": false, "text": "start_time = 5.months_ago.at_end_of_week \nend_time = 6.months.since(start_time)\n" }, { "answer_id": 90341, ...
2008/09/18
[ "https://Stackoverflow.com/questions/90308", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]