qid
int64
4
22.2M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
357,323
<p>I have a page that renders slowly. The trip across the net is quick. The initial load of the page is quick. You can actually see (if your machine is slow enough), the initial layout of the html components. Then some javascript stuff runs, making some of those components all ajaxy. Then finally the css gets appl...
[ { "answer_id": 357346, "author": "Diodeus - James MacFarlane", "author_id": 12579, "author_profile": "https://Stackoverflow.com/users/12579", "pm_score": 2, "selected": false, "text": "document.observe(\"dom:loaded\", function() {\n //your code\n});\n" }, { "answer_id": 417710, ...
2008/12/10
[ "https://Stackoverflow.com/questions/357323", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45108/" ]
357,328
<p>I have four tables (A,B,C,D) where A is the parent of one to many relationships with B and C. C and D are parents to a one to many relationship with table D. Conceptually, the primary keys of these tables could be:</p> <ul> <li>A: Aid </li> <li>B: Aid, bnum (with foreign key to A)</li> <li>C: Aid, cnum (with fore...
[ { "answer_id": 357346, "author": "Diodeus - James MacFarlane", "author_id": 12579, "author_profile": "https://Stackoverflow.com/users/12579", "pm_score": 2, "selected": false, "text": "document.observe(\"dom:loaded\", function() {\n //your code\n});\n" }, { "answer_id": 417710, ...
2008/12/10
[ "https://Stackoverflow.com/questions/357328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9940/" ]
357,353
<p>What happens when I do the following?</p> <pre><code>(define ((func x) y) (if (zero? y) ((func x) 1) 12)) </code></pre> <p>I understand that I can do this:</p> <pre><code>(define curried (func 5)) </code></pre> <p>And now I can use curried. What I'm curious about is in the definition of the f...
[ { "answer_id": 359637, "author": "soegaard", "author_id": 23567, "author_profile": "https://Stackoverflow.com/users/23567", "pm_score": 4, "selected": true, "text": "(define (f x) 42) is short for (define f (lambda (x) 42)) .\n" }, { "answer_id": 360244, "author": "Claudiu", ...
2008/12/10
[ "https://Stackoverflow.com/questions/357353", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15055/" ]
357,355
<p>I see this in a stack trace:</p> <blockquote> <p>myorg.vignettemodules.customregistration.NewsCategoryVAPDAO.getEmailContentByID(I)Lmyorg/pushemail/model/EmailContent;</p> </blockquote> <p>What does the "<code>(I)L</code>" mean?</p>
[ { "answer_id": 357362, "author": "erickson", "author_id": 3474, "author_profile": "https://Stackoverflow.com/users/3474", "pm_score": 5, "selected": true, "text": "int" }, { "answer_id": 357386, "author": "Adam Rosenfield", "author_id": 9530, "author_profile": "https:...
2008/12/10
[ "https://Stackoverflow.com/questions/357355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/543/" ]
357,363
<p>I'm looking for a macro which can be run to select a consistent range of cells so that I can easily copy them to another spreadsheet. The range would be F3:BJ3.</p>
[ { "answer_id": 357377, "author": "e.James", "author_id": 33686, "author_profile": "https://Stackoverflow.com/users/33686", "pm_score": 2, "selected": false, "text": "Public Sub selectCells()\n Range(\"F3:BJ3\").Select\nEnd Sub" }, { "answer_id": 9972614, "author": "Lalit B...
2008/12/10
[ "https://Stackoverflow.com/questions/357363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
357,364
<p>Is a string actually a character array (is-a), or does it have a character array as an internal store (has-a), or is it's own object which can expose itself as a with an array of characters?</p> <p>I am more inclined to say it is it's own object, but then why are we so inclined to always say "A string is an array o...
[ { "answer_id": 357390, "author": "mmx", "author_id": 33708, "author_profile": "https://Stackoverflow.com/users/33708", "pm_score": 3, "selected": false, "text": "System.String" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45/" ]
357,370
<p>I would like to store my FreeMarker templates in a database table that looks something like:</p> <pre><code>template_name | template_content --------------------------------- hello |Hello ${user} goodbye |So long ${user} </code></pre> <p>When a request is received for a template with a particular nam...
[ { "answer_id": 357508, "author": "Dan Vinton", "author_id": 21849, "author_profile": "https://Stackoverflow.com/users/21849", "pm_score": 4, "selected": false, "text": "setTemplateLoader()" }, { "answer_id": 357663, "author": "Ulf Lindback", "author_id": 30354, "autho...
2008/12/10
[ "https://Stackoverflow.com/questions/357370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2648/" ]
357,388
<p>I would class myself as a typical small developer/independant designer and I recently purchased some new hardware for the office and thought I better organise myself better than I have in the past.</p> <p>So I am wondering how you all organise all your files etc so that you can find them easily enough, and relate t...
[ { "answer_id": 357508, "author": "Dan Vinton", "author_id": 21849, "author_profile": "https://Stackoverflow.com/users/21849", "pm_score": 4, "selected": false, "text": "setTemplateLoader()" }, { "answer_id": 357663, "author": "Ulf Lindback", "author_id": 30354, "autho...
2008/12/10
[ "https://Stackoverflow.com/questions/357388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28241/" ]
357,396
<p>I have two classes: Media and Container.</p> <p>I have two lists <code>List&lt;Media&gt;</code> and <code>List&lt;Container&gt;</code></p> <p>I'm passing these lists to another function (one at a time);</p> <p>it can be one or another; </p> <p>what's the proper way to check for the "template" type of the list so...
[ { "answer_id": 357407, "author": "Amy B", "author_id": 8155, "author_profile": "https://Stackoverflow.com/users/8155", "pm_score": 4, "selected": false, "text": "public void MyMethod(List<Media> source)\n{\n //do stuff with a Media List\n}\n\npublic void MyMethod(List<Container> source)...
2008/12/10
[ "https://Stackoverflow.com/questions/357396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33082/" ]
357,399
<p>I have a import directive in my inline .aspx page (no code-behind).</p> <p>Getting an error: The type or namespace name 'Dts' does not exist in the namespace 'Microsoft.SqlServer' (are you missing an assembly reference?)</p> <p>What is the issue? Do I need a /bin directory with the .dll in it or something?</p>
[ { "answer_id": 357430, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https://Stackoverflow.com/users/3043", "pm_score": 3, "selected": true, "text": "<%@ Assembly >" }, { "answer_id": 811406, "author": "Community", "author_id": -1, "author_profile":...
2008/12/10
[ "https://Stackoverflow.com/questions/357399", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39677/" ]
357,404
<p>I just joined a new C++ software project and I'm trying to understand the design. The project makes frequent use of unnamed namespaces. For example, something like this may occur in a class definition file:</p> <pre><code>// newusertype.cc namespace { const int SIZE_OF_ARRAY_X; const int SIZE_OF_ARRAY_Y; bo...
[ { "answer_id": 357427, "author": "Motti", "author_id": 3848, "author_profile": "https://Stackoverflow.com/users/3848", "pm_score": 7, "selected": false, "text": "static" }, { "answer_id": 357464, "author": "Johannes Schaub - litb", "author_id": 34509, "author_profile"...
2008/12/10
[ "https://Stackoverflow.com/questions/357404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6688/" ]
357,410
<p>Is there a way to bypass the following IE popup box:</p> <blockquote> <p>The webapge you are viewing is trying to close the window. Do you want to close this window? Yes|No</p> </blockquote> <p>This is occurring when I add window.close() to the onclick event of an asp.net button control.</p>
[ { "answer_id": 357588, "author": "scunliffe", "author_id": 6144, "author_profile": "https://Stackoverflow.com/users/6144", "pm_score": 3, "selected": false, "text": "window.open('close.html', '_self');\n" }, { "answer_id": 8135456, "author": "d-coder", "author_id": 900390...
2008/12/10
[ "https://Stackoverflow.com/questions/357410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26327/" ]
357,415
<p>I'm sure this is really simple if you know anything about binary files, but I'm a newbie on that score.</p> <p>How would I extract the data from NASA .hgt files? Here is a description from www2.jpl.nasa.gov/srtm/faq.html:</p> <blockquote> <p><b>The SRTM data files have names like "N34W119.hgt". What do the l...
[ { "answer_id": 357469, "author": "codelogic", "author_id": 43427, "author_profile": "https://Stackoverflow.com/users/43427", "pm_score": 3, "selected": false, "text": "from struct import unpack,calcsize\n\n# 'row_length' being 1201 or 3601 and 'row' being the raw data for one row\ndef re...
2008/12/10
[ "https://Stackoverflow.com/questions/357415", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
357,421
<p>I have an Array of Objects that need the duplicates removed/filtered. I was going to just override equals &amp; hachCode on the Object elements, and then stick them in a Set... but I figured I should at least poll stackoverflow to see if there was another way, perhaps some clever method of some other API?</p>
[ { "answer_id": 357444, "author": "brabster", "author_id": 2362, "author_profile": "https://Stackoverflow.com/users/2362", "pm_score": 5, "selected": true, "text": "hashCode()" }, { "answer_id": 357446, "author": "Michael Myers", "author_id": 13531, "author_profile": "...
2008/12/10
[ "https://Stackoverflow.com/questions/357421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32142/" ]
357,425
<p>I have several Models and want to return a queryset of all the Models belonging to a User, I'm wondering if its possible to return one Queryset from multiple Models?</p>
[ { "answer_id": 361340, "author": "Wayne Werner", "author_id": 4080, "author_profile": "https://Stackoverflow.com/users/4080", "pm_score": 4, "selected": true, "text": "qs = getattr(user, '%s_set' % model_name.lower());\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2041708/" ]
357,440
<p>I imagine I can compile a C# DLL and then expose it as a COM object so that it can be CreateObject'd from VBscript. I'm just not sure the steps involved in doing this...</p>
[ { "answer_id": 357456, "author": "mmx", "author_id": 33708, "author_profile": "https://Stackoverflow.com/users/33708", "pm_score": 3, "selected": false, "text": "regasm" }, { "answer_id": 357458, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https:/...
2008/12/10
[ "https://Stackoverflow.com/questions/357440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/245/" ]
357,445
<p>I'm trying to debug the MSBuild Customtask, that I have just created, but for some reason it never stops at the breakpoint. I've even tried this:</p> <pre><code> public override bool Execute() { System.Diagnostics.Debugger.Break(); </code></pre> <p>And added a break point on that line... I even eli...
[ { "answer_id": 357544, "author": "Joel Martinez", "author_id": 5416, "author_profile": "https://Stackoverflow.com/users/5416", "pm_score": 6, "selected": true, "text": "System.Diagnostics.Debugger.Launch();\n" }, { "answer_id": 69756244, "author": "Rainer Sigwald", "autho...
2008/12/10
[ "https://Stackoverflow.com/questions/357445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17787/" ]
357,447
<p>I think the direct answer to the question is 'No' but I'm hoping that someone has written a real simple library to do this (or I can do it...ugh...)</p> <p>Let me demonstrate what I am looking for with an example. Suppose I had the following:</p> <pre><code>class Person { string Name {get; set;} int NumberOfCa...
[ { "answer_id": 357462, "author": "Paolo Tedesco", "author_id": 15622, "author_profile": "https://Stackoverflow.com/users/15622", "pm_score": 2, "selected": false, "text": "class Person : IFormattable\n{\n public override string ToString()\n {\n return \"Person\";\n }\n\n ...
2008/12/10
[ "https://Stackoverflow.com/questions/357447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5056/" ]
357,461
<p>Does anyone know of any eclipe plugin that lets you easily change and use file encodings? I sometimes need to edit template files to do small tweaks, but the files are sometimes ISO, sometimes UTF8, sometimes others, so using eclipse for this leads to disaster :)</p>
[ { "answer_id": 14571816, "author": "Smair", "author_id": 2019711, "author_profile": "https://Stackoverflow.com/users/2019711", "pm_score": 4, "selected": false, "text": "ctrl+c" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357461", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21240/" ]
357,465
<p>Is there a way where I can add a connection string to the ConnectionStringCollection returned by the ConfigurationManager at runtime in an Asp.Net application?</p> <p>I have tried the following but am told that the configuration file is readonly.</p> <pre><code>ConfigurationManager.ConnectionStrings.Add(new Connec...
[ { "answer_id": 357558, "author": "joshperry", "author_id": 30587, "author_profile": "https://Stackoverflow.com/users/30587", "pm_score": 3, "selected": false, "text": "class ConnectionStringProvider\n{\n Dictionary<string, System.Configuration.ConnectionStringSettings> _localStrings =...
2008/12/10
[ "https://Stackoverflow.com/questions/357465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28540/" ]
357,470
<p>I am in charge of providing a theme functionality for a site using a big CSS file (thousands of elements) I've just inherited. Basically we want to allow the user to be able to change the colors on the screen.</p> <p>Every CSS element, besides color definition also have lots of other attributes - size, font, float,...
[ { "answer_id": 357484, "author": "JoshBerke", "author_id": 26160, "author_profile": "https://Stackoverflow.com/users/26160", "pm_score": 3, "selected": true, "text": "a:hover\n{\n text-decoration:none;\n color:Black;\n display:block \n}\n" }, { "answer_id": 357494, "...
2008/12/10
[ "https://Stackoverflow.com/questions/357470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37955/" ]
357,481
<p>I'm trying to write a 2d array into an output file, it's all working fine except in creating the .getline function to draw the array back out of the file. My issue is putting the string length. My current code for the line is;</p> <p>inputFile.getline(myArray, [10][10], '\n');</p> <p>but it doesn't like having the...
[ { "answer_id": 357551, "author": "Rob Kennedy", "author_id": 33732, "author_profile": "https://Stackoverflow.com/users/33732", "pm_score": 3, "selected": true, "text": "myArray" }, { "answer_id": 361362, "author": "Mr.Ree", "author_id": 37946, "author_profile": "https...
2008/12/10
[ "https://Stackoverflow.com/questions/357481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33061/" ]
357,491
<p>I would like to verify that an app I am writing is running on an iPhone. What would be perfect is this: Apple baked an SSL client certificate into each iphone which can be authenticated by a receiving server. I this the case?</p> <p>I have not started researching this yet, I will update with anything I find.</p> ...
[ { "answer_id": 358218, "author": "Rob", "author_id": 386102, "author_profile": "https://Stackoverflow.com/users/386102", "pm_score": 0, "selected": false, "text": "NSMutableURLRequest *request;\nNSMutableDictionary *headers;\nheaders = [[[NSMutableDictionary allocWithZone:[self zone]] in...
2008/12/10
[ "https://Stackoverflow.com/questions/357491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30541/" ]
357,499
<p>I am trying to create a simple page that enters data in to a database and my code is below.</p> <pre><code>&lt;%@ LANGUAGE="VBSCRIPT" %&gt; &lt;% Option Explicit %&gt; &lt;!--#include FILE=dbcano.inc--&gt; &lt;% dim username,password,f_name,l_name,objConn,objs,query username = Request.Form("user") password = ...
[ { "answer_id": 357525, "author": "Scott Isaacs", "author_id": 1664, "author_profile": "https://Stackoverflow.com/users/1664", "pm_score": 0, "selected": false, "text": "query = \"INSERT INTO [user] (username,password,f_name,l_name) VALUES ('\"& username &\"','\"& password &\"','\"&...
2008/12/10
[ "https://Stackoverflow.com/questions/357499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
357,500
<p>I can't create a NT account for everyone that need access to the reports. Does anyone know or have a link to the info to allow anonymous access to reporting services reports ?</p> <p>Thanks</p>
[ { "answer_id": 6976820, "author": "Adam Butler", "author_id": 417721, "author_profile": "https://Stackoverflow.com/users/417721", "pm_score": 0, "selected": false, "text": "Domain Users" }, { "answer_id": 10329807, "author": "Fasil", "author_id": 1358147, "author_prof...
2008/12/10
[ "https://Stackoverflow.com/questions/357500", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6704/" ]
357,505
<p>I have a web forum that I have coded in Python for the App Engine platform. I have noticed that it is not being indexed well by Google and I am trying to fix that.<br> I have used Google Webmaster to submit a sitemap with almost 400 URLs but apparently only 8 were indexed!<br> I even get a warning stating:</p> <blo...
[ { "answer_id": 357624, "author": "jmucchiello", "author_id": 44065, "author_profile": "https://Stackoverflow.com/users/44065", "pm_score": 1, "selected": true, "text": " http://www.example.com/forum.py?thread=1000\n http://www.example.com/forum.py?thread=1000&mode=printer\n" }, { ...
2008/12/10
[ "https://Stackoverflow.com/questions/357505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
357,537
<p>I have a class Pkg and I need to use it under form of QVariant. </p> <p>At the end of my Pkg.h I have:</p> <pre><code>Q_DECLARE_METATYPE(Pkg) </code></pre> <p>and this does not give compile errors, but in my main.cpp I have to do:</p> <pre><code>qRegisterMetaType&lt;Pkg&gt;("Pkg"); </code></pre> <p>and this doe...
[ { "answer_id": 360503, "author": "JuanDeLosMuertos", "author_id": 39339, "author_profile": "https://Stackoverflow.com/users/39339", "pm_score": 0, "selected": false, "text": " item->data(1,Qt::UserRole).value<Pkg>();\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39339/" ]
357,543
<p>Working on an app with notification via e-mail. I'd like to run test with out sending e-mails to production servers and clients. A couple years ago I remember someone bringing down our exchange server with a bad e-mail loop and would prefer to not repeat... </p> <p>Any suggestion for a dev setup? Currently thin...
[ { "answer_id": 358133, "author": "joel.neely", "author_id": 3525, "author_profile": "https://Stackoverflow.com/users/3525", "pm_score": 1, "selected": false, "text": "MessageSender" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1293/" ]
357,560
<p>I have potentially large files that need to be sorted by 1-n keys. Some of these keys might be numeric and some of them might not be. This is a fixed-width columnar file so there are no delimiters.</p> <p>Is there a good way to do this with Unix sort? With one key it is as simple as using '-n'. I have read the ...
[ { "answer_id": 357582, "author": "Ken Gentle", "author_id": 8709, "author_profile": "https://Stackoverflow.com/users/8709", "pm_score": 7, "selected": true, "text": "-k" }, { "answer_id": 357603, "author": "Clinton Pierce", "author_id": 8173, "author_profile": "https:...
2008/12/10
[ "https://Stackoverflow.com/questions/357560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28714/" ]
357,564
<p>Someone asserted on SO today that you should never use anonymous namespaces in header files. Normally this is correct, but I seem to remember once someone told me that one of the standard libraries uses anonymous namespaces in header files to perform some sort of initialization.</p> <p>Am I remembering correctly? ...
[ { "answer_id": 357671, "author": "Max Lybbert", "author_id": 10593, "author_profile": "https://Stackoverflow.com/users/10593", "pm_score": 0, "selected": false, "text": "iostream" }, { "answer_id": 357701, "author": "Johannes Schaub - litb", "author_id": 34509, "autho...
2008/12/10
[ "https://Stackoverflow.com/questions/357564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34502/" ]
357,567
<p>The <a href="http://specs.xmlsoap.org/ws/2005/04/discovery/ws-discovery.pdf" rel="nofollow noreferrer">ws-discovery specifications</a> explains how to protect your network from </p> <ol> <li>message alteration</li> <li>Denial of service</li> <li>replay</li> <li>spoofing</li> </ol> <p>but what about man-in-the-midd...
[ { "answer_id": 357671, "author": "Max Lybbert", "author_id": 10593, "author_profile": "https://Stackoverflow.com/users/10593", "pm_score": 0, "selected": false, "text": "iostream" }, { "answer_id": 357701, "author": "Johannes Schaub - litb", "author_id": 34509, "autho...
2008/12/10
[ "https://Stackoverflow.com/questions/357567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/459737/" ]
357,571
<p>the object of the game in this case is to use a Treeview with a sitemap provider - and implement using CSS. I'm guessing the way to do this is with the CSS adapter kit. </p> <p>I've plugged in the adapters using the DLL implementation and there i get my basic treeview but it seems to pull in all sorts of js that le...
[ { "answer_id": 357694, "author": "Nathan Prather", "author_id": 44595, "author_profile": "https://Stackoverflow.com/users/44595", "pm_score": 2, "selected": true, "text": "<asp:Repeater runat=\"server\" ID=\"menu\" DataSourceID=\"SiteMapDataSource1\">\n <ItemTemplate>\n <li>\n ...
2008/12/10
[ "https://Stackoverflow.com/questions/357571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45131/" ]
357,578
<p>I want to add a single model object that has been instantiated <em>once</em> in XAML, and add it to two different collections (in xaml).</p> <p>The following code renders fine in Blend's Design Time, but I get the following errors at run time:</p> <p><em>For "Post1"</em><br> Object of type 'WpfBlog.Models.Tag' can...
[ { "answer_id": 484322, "author": "Samuel Jack", "author_id": 1727, "author_profile": "https://Stackoverflow.com/users/1727", "pm_score": 3, "selected": false, "text": "<local:PostViewModel Title=\"Post1\">\n <local:PostViewModel.Tags>\n <model:TagCollection>\n <StaticResource...
2008/12/10
[ "https://Stackoverflow.com/questions/357578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4572/" ]
357,593
<p>How come the iPhone Interface Builder doesn't let me set the X,Y coordinates of a top-level UIView? (Meaning, a view whose direct parent is a UIViewController.) The X and Y boxes on the View Size tab are grayed out. I can change the X,Y values in code at runtime, so why not in the Interface Builder?</p> <p>Thanks.<...
[ { "answer_id": 361157, "author": "Alex", "author_id": 35999, "author_profile": "https://Stackoverflow.com/users/35999", "pm_score": 3, "selected": true, "text": "UIViewController" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/44003/" ]
357,594
<pre><code>SELECT * FROM (SELECT ROW_NUMBER() OVER (ORDER BY hrl.Frn) as Row, hrl.unq, hrl.LcnsId, hc.Business,hc.Name,hc.Phone, hrl.Frn,hrl.CallSign, hrl.gsamarkettypeid, gmt.[Market Type Code] + ' - ' + gmt.gsamarkettype, hrl.gsalatitude,hrl.gsalongitude, rsc.RadioServiceCode ...
[ { "answer_id": 357605, "author": "Charles Bretana", "author_id": 32632, "author_profile": "https://Stackoverflow.com/users/32632", "pm_score": 0, "selected": false, "text": "Where ((SELECT ROW_NUMBER() OVER (ORDER BY hrl.Frn)) < 20,\n" }, { "answer_id": 357611, "author": "Ted...
2008/12/10
[ "https://Stackoverflow.com/questions/357594", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33690/" ]
357,600
<p>I can't find much information on <code>const_cast</code>. The only info I could find (on Stack Overflow) is:</p> <blockquote> <p>The <code>const_cast&lt;&gt;()</code> is used to add/remove const(ness) (or volatile-ness) of a variable.</p> </blockquote> <p>This makes me nervous. Could using a <code>const_cast</...
[ { "answer_id": 357607, "author": "Adam Rosenfield", "author_id": 9530, "author_profile": "https://Stackoverflow.com/users/9530", "pm_score": 8, "selected": true, "text": "const_cast" }, { "answer_id": 357645, "author": "Johannes Schaub - litb", "author_id": 34509, "au...
2008/12/10
[ "https://Stackoverflow.com/questions/357600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10606/" ]
357,627
<p>Is there a way to view the register contents in each stack frame in a crash dump? The registers window seems to contain the registers when the exception occurred but it would be useful to be able to see their contents in each stack frame.</p>
[ { "answer_id": 1493528, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "kn" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4086/" ]
357,629
<p>The size and range of the integer value types in C++ are platform specific. Values found on most 32-bit systems can be found at <a href="http://www.cplusplus.com/doc/tutorial/variables.html" rel="noreferrer">Variables. Data Types. - C++ Documentation</a>. How do you determine what the actual size and range are for...
[ { "answer_id": 357637, "author": "Doug T.", "author_id": 8123, "author_profile": "https://Stackoverflow.com/users/8123", "pm_score": 3, "selected": false, "text": "boost::uint32_t\nboost::int32_t\n" }, { "answer_id": 357638, "author": "Adam", "author_id": 1366, "autho...
2008/12/10
[ "https://Stackoverflow.com/questions/357629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1288/" ]
357,639
<p>I'm trying to write a script that will create a file on the server then use <code>header()</code> to redirect the user to that file. Then, after about 10 seconds I want to delete the file. I've tried this:</p> <pre><code>header('Location: '.$url); flush(); sleep(10); unlink($url); </code></pre> <p>But the browser ...
[ { "answer_id": 357670, "author": "pbrodka", "author_id": 33093, "author_profile": "https://Stackoverflow.com/users/33093", "pm_score": 0, "selected": false, "text": "<iframe src=\"<?=$url?>\"></iframe>\n\n....\n<?\nsleep(10);\nunlink($url);\n?>\n" }, { "answer_id": 357681, "a...
2008/12/10
[ "https://Stackoverflow.com/questions/357639", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13557/" ]
357,643
<h2>Repetitive Dates:</h2> <p>Billing cycles come in a lot of different formats, for example: "the first of the month", "third Friday of the month", or "first weekday on or after 21st day after the 13th of the month" (thanks visa!). My goal is to be able to represent these different billing cycles in one easily parsed...
[ { "answer_id": 1712228, "author": "alumb", "author_id": 80, "author_profile": "https://Stackoverflow.com/users/80", "pm_score": 1, "selected": true, "text": "YYYY/MM/DD+YY/MM/DD+DOW\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/80/" ]
357,648
<p>I use Intellij Idea 7 for Java dev. My dev is 'limited' to all J2SE features plus light JSP, Servlets, and super light usage of JPA. No J2EE, no massive use of random frameworks, etc.</p> <p>Is it worth upgrading to ver 8? "Worth it" to me means better "core functionality" in terms of speed (ESPECIALLY startup sp...
[ { "answer_id": 736350, "author": "Jonik", "author_id": 56285, "author_profile": "https://Stackoverflow.com/users/56285", "pm_score": 0, "selected": false, "text": "svn" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
357,650
<p>I currently have a button called Edit and a text box call blah on a ajax updatepanel. is it possible to set the asp.net's textbox Readonly via trigger? </p>
[ { "answer_id": 357689, "author": "GregD", "author_id": 38317, "author_profile": "https://Stackoverflow.com/users/38317", "pm_score": 0, "selected": false, "text": "protected void btnEdit_Click(object sender, EventArgs e)\n {\n\n }\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28647/" ]
357,656
<p>(I'm using the <a href="http://developer.berlios.de/projects/pyprocessing" rel="nofollow noreferrer">pyprocessing</a> module in this example, but replacing processing with multiprocessing should probably work if you run <a href="http://docs.python.org/library/multiprocessing.html" rel="nofollow noreferrer">python 2....
[ { "answer_id": 358392, "author": "monkut", "author_id": 24718, "author_profile": "https://Stackoverflow.com/users/24718", "pm_score": 1, "selected": false, "text": "from multiprocessing import Process\nfrom multiprocessing.connection import Listener\n\n\nclass ListenForConn(Process):\n\n...
2008/12/10
[ "https://Stackoverflow.com/questions/357656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2010/" ]
357,672
<p>I want to dynamically create variables with dynamic names for later use in my transform, but to do this I'd need to dynamically generate XSL and then run it in the same script.</p> <p>This is just a rough pseudo code example of what I'm looking for.</p> <pre><code> &lt;xsl:for-each select="//constants/constan...
[ { "answer_id": 358154, "author": "Dimitre Novatchev", "author_id": 36305, "author_profile": "https://Stackoverflow.com/users/36305", "pm_score": 4, "selected": false, "text": "<xsl:namespace-alias>" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10922/" ]
357,721
<p>I have a client that want to have a web app I'm building for them display <a href="http://en.wikipedia.org/wiki/Heat_map" rel="nofollow noreferrer">heat maps</a> of the data.</p> <p>I haven't worked with heat maps at all and I was wondering if anyone knew of some good tools for generating them.</p> <p>Thanks.</p>
[ { "answer_id": 15800188, "author": "Larsenal", "author_id": 337, "author_profile": "https://Stackoverflow.com/users/337", "pm_score": 0, "selected": false, "text": "<!-- Coloring elements is easy! -->\n<ul id=\"example1\">\n <li>1<li>\n <li>2<li>\n <li>3<li>\n <li>4<li>\n <li>5<li>\...
2008/12/10
[ "https://Stackoverflow.com/questions/357721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10420/" ]
357,739
<p>For my application, I want a <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html" rel="nofollow noreferrer">Combo Box</a> that displays its elements when dropped down as a <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html" rel="nofollow noreferrer">Tree</a>. ...
[ { "answer_id": 357770, "author": "Markus Lausberg", "author_id": 39062, "author_profile": "https://Stackoverflow.com/users/39062", "pm_score": 0, "selected": false, "text": "public Component getListCellRendererComponent(\n JList list,\n ...
2008/12/10
[ "https://Stackoverflow.com/questions/357739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19825/" ]
357,752
<p>I have a web application that uses the current version of JQuery that needs to get some JSON objects back from a REST web service. I'm using the following call to $.getJSON:</p> <p>$.getJSON("<a href="http://localhost:17245/Service.svc/?format=json" rel="nofollow noreferrer">http://localhost:17245/Service.svc/?form...
[ { "answer_id": 357767, "author": "palehorse", "author_id": 312, "author_profile": "https://Stackoverflow.com/users/312", "pm_score": 3, "selected": true, "text": "$.getJSON(\"http://localhost:17245/Service.svc/?format=json\", {}, function(data) {alert(data.id);});\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22848/" ]
357,754
<p>In Ruby, <code>Dir.glob("**/*.rb")</code> (for instance) doesn't traverse symlinked directories. Is it possible to get the <code>**</code> to traverse symlinks?</p> <p>I'm using two gems which find files this way, but I need them to see files within a symlinked directory.</p>
[ { "answer_id": 357798, "author": "Jonathan Lonowski", "author_id": 15031, "author_profile": "https://Stackoverflow.com/users/15031", "pm_score": 4, "selected": false, "text": "Dir.glob(\"**/*/**/b\")" }, { "answer_id": 2724048, "author": "Tim Harper", "author_id": 183863,...
2008/12/10
[ "https://Stackoverflow.com/questions/357754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4937/" ]
357,785
<p>I am interested in enabling code folding in Vim for Python code. I have noticed multiple ways to do so.</p> <p>Does anyone have a preferred way to do Python code folding in Vim? I.e, </p> <ul> <li>Do you have a particular Vim plugin that you use and like?</li> <li>Do you use manual folding or do you place markers ...
[ { "answer_id": 357826, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": false, "text": "#Toggle fold methods \\fo\nlet g:FoldMethod = 0\nmap <leader>fo :call ToggleFold()<cr>\nfun! ToggleFold()\n if g:FoldMethod...
2008/12/10
[ "https://Stackoverflow.com/questions/357785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3045/" ]
357,790
<p>I have a small calculator that I am creating in C# (Sharp Develop). The user enters two values and the code returns the third. I am having trouble rounding the third value once it is returned. I have been through a couple of forums and the msdn site and I understand the code that is posted there, but I cant seem to ...
[ { "answer_id": 357801, "author": "Ian Jacobs", "author_id": 22818, "author_profile": "https://Stackoverflow.com/users/22818", "pm_score": 1, "selected": true, "text": "tb2_kva.Text = Math.Round(z, # Places).ToString();\n" }, { "answer_id": 357805, "author": "JamesSugrue", ...
2008/12/10
[ "https://Stackoverflow.com/questions/357790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45151/" ]
357,803
<p>Basically what I need is an automated way to update the product version number in WiX (3.0 with Votive etc), and then get that version number into an Inno Setup "bootstrapper"</p> <p>I pretty much have the process mostly automated, however version numbers still need to be updated manually which obviously isn't idea...
[ { "answer_id": 357820, "author": "Rob", "author_id": 9236, "author_profile": "https://Stackoverflow.com/users/9236", "pm_score": 1, "selected": false, "text": "<include>" }, { "answer_id": 358668, "author": "Rob", "author_id": 9236, "author_profile": "https://Stackove...
2008/12/10
[ "https://Stackoverflow.com/questions/357803", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23822/" ]
357,804
<p>Today I found out that putting strings in a resource file will cause them to be treated as literals, i.e putting "Text for first line \n Text for second line" will cause the escape character itself to become escaped, and so what's stored is "Text for first line \n Text for second line" - and then these come out in t...
[ { "answer_id": 357811, "author": "codelogic", "author_id": 43427, "author_profile": "https://Stackoverflow.com/users/43427", "pm_score": 5, "selected": true, "text": "\\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45139/" ]
357,810
<p>I am a beginner of python and have a question, very confusing for me. If I define a function first but within the function I have to use a variable which is defined in another function below, can I do it like this? Or how can I import the return things of another function into a function? for example:</p> <pre><cod...
[ { "answer_id": 357853, "author": "Jimmy", "author_id": 4435, "author_profile": "https://Stackoverflow.com/users/4435", "pm_score": 2, "selected": false, "text": "def hello(x,y):\n good=hi(iy,ix)\n \"then do somethings,and use the parameter'good'.\"\n return something\n\ndef hi(i...
2008/12/10
[ "https://Stackoverflow.com/questions/357810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/44354/" ]
357,814
<p>It seems that the choice to use string parsing vs. regular expressions comes up on a regular basis for me anytime a situation arises that I need part of a string, information about said string, etc.</p> <p>The reason that this comes up is that we're evaluating a soap header's action, <strong>after</strong> it has b...
[ { "answer_id": 357863, "author": "benjismith", "author_id": 22979, "author_profile": "https://Stackoverflow.com/users/22979", "pm_score": 6, "selected": true, "text": "1 + 2\n5 * (10 - 6)\n((1 + 1) / (2 + 2)) / 3\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14409/" ]
357,822
<p>This is more an observation than a real question: MS-Access (and VBA in general) is desperately missing a tool where error handling code can be generated automatically, and where the line number can be displayed when an error occurs. Did you find a solution? What is it? I just realized how many hundreds of hours I s...
[ { "answer_id": 357872, "author": "DJ.", "author_id": 10492, "author_profile": "https://Stackoverflow.com/users/10492", "pm_score": 3, "selected": false, "text": "On Error GoTo ErrorHandler\n" }, { "answer_id": 357882, "author": "Philippe Grondier", "author_id": 11436, ...
2008/12/10
[ "https://Stackoverflow.com/questions/357822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11436/" ]
357,824
<p>I would like to automatically align lines of python variable assignments in vim.</p> <p>For example I would like to change this:</p> <pre><code>a = 1 banana = 2 </code></pre> <p>into this</p> <pre><code>a = 1 banana = 2 </code></pre> <p>automatically in vim.</p> <p>Is there a way to do this?</p>
[ { "answer_id": 23134827, "author": "odessos", "author_id": 3545533, "author_profile": "https://Stackoverflow.com/users/3545533", "pm_score": 0, "selected": false, "text": "vap\n\n:!column -t\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3045/" ]
357,825
<p>Have you found such a tool and used it successfully?</p>
[ { "answer_id": 358268, "author": "fenomas", "author_id": 10651, "author_profile": "https://Stackoverflow.com/users/10651", "pm_score": 1, "selected": false, "text": "getTimer()" }, { "answer_id": 444328, "author": "David Hanak", "author_id": 42136, "author_profile": "...
2008/12/10
[ "https://Stackoverflow.com/questions/357825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30741/" ]
357,851
<p>My application is receiving email through SMTP server. There are one or more attachments in the email and email attachment return as byte[] (using sun javamail api).</p> <p>I am trying to zip the attachment files on the fly without writing them to disk first.</p> <p>What is/are possible way to achieve this outcome...
[ { "answer_id": 357856, "author": "Eric", "author_id": 6367, "author_profile": "https://Stackoverflow.com/users/6367", "pm_score": 0, "selected": false, "text": "int read(byte[] b, int off, int len)\n Reads up to len bytes of data into an array of bytes from this input stream...
2008/12/10
[ "https://Stackoverflow.com/questions/357851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/44534/" ]
357,864
<p>What is the best way of handling trying to get data from a DataReader that has more than one column with the same name?</p> <p>Because of the amount of work involved and because we don't want to lose support from a vendor by changing the stored procedures we are using to retrieve the data, I am trying to find anoth...
[ { "answer_id": 58977443, "author": "mrrrk", "author_id": 155791, "author_profile": "https://Stackoverflow.com/users/155791", "pm_score": 1, "selected": false, "text": "using System;\n\nnamespace WhateverProject {\n\n internal static class Extentions {\n\n // If a query returns ...
2008/12/10
[ "https://Stackoverflow.com/questions/357864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8534/" ]
357,903
<p>I am creating a script on the fly to ftp some files from a remote computer. I create a file which is then called from the command line with</p> <pre><code>ftp -s:filename proxy </code></pre> <p>where filename is the file I just created. The file has code similar to the following:</p> <pre><code>anonymous@ip add...
[ { "answer_id": 357934, "author": "DaEagle", "author_id": 43024, "author_profile": "https://Stackoverflow.com/users/43024", "pm_score": 2, "selected": false, "text": "LCD c:\\destination directory\nmget c:\\source directory\\*.*\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22523/" ]
357,911
<p>I have an application with several files that contain configuration parameters and other data that changes as the user uses the application. These files can change with newer versions of my software, but the user can also modify them (or they may be changed by the application itself). Basically, I'm looking for a ...
[ { "answer_id": 360509, "author": "wimh", "author_id": 33499, "author_profile": "https://Stackoverflow.com/users/33499", "pm_score": 2, "selected": false, "text": "<Directory Id=\"MYDIR\" Name=\"MyDir\">\n <Component Id=\"update.cmd\" Guid=\"YOUR-GUID\">\n <File Id=\"update.cmd\...
2008/12/10
[ "https://Stackoverflow.com/questions/357911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26302/" ]
357,923
<p>In an application I'm developing, someone thought it would be ok idea to include commas in the values of a csv file. So what I'm trying to do select these values and then strip the commas out of these values. But the Regex I've built won't match to anything. </p> <p><strong><em>The Regex pattern is:</em></strong>...
[ { "answer_id": 357978, "author": "Ryan Cook", "author_id": 43029, "author_profile": "https://Stackoverflow.com/users/43029", "pm_score": 2, "selected": false, "text": "string ResultString = null;\ntry {\n ResultString = Regex.Replace(myString, \"([0-9]{1,3})(?:(,)?([0-9]{3})?)\", \"$1...
2008/12/10
[ "https://Stackoverflow.com/questions/357923", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41492/" ]
357,929
<p>Ought I to unit test constructors? Say I have a constructor like this:</p> <pre><code>IMapinfoWrapper wrapper; public SystemInfo(IMapinfoWrapper mapinfoWrapper) { this.wrapper = mapinfoWrapper; } </code></pre> <p>Do I need to write a unit test for this construtor? I don't have any getters for the wrapper varia...
[ { "answer_id": 358006, "author": "joel.neely", "author_id": 3525, "author_profile": "https://Stackoverflow.com/users/3525", "pm_score": 0, "selected": false, "text": "SystemInfo" }, { "answer_id": 24241701, "author": "Zoran Horvat", "author_id": 2279448, "author_profi...
2008/12/10
[ "https://Stackoverflow.com/questions/357929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6335/" ]
357,956
<p>In reading Haskell-related stuff I sometimes come across the expression “tying the knot”, I think I understand <em>what</em> it does, but not <em>how</em>.</p> <p>So, are there any good, basic, and simple to understand explanations of this concept?</p>
[ { "answer_id": 393953, "author": "Paul Johnson", "author_id": 49220, "author_profile": "https://Stackoverflow.com/users/49220", "pm_score": 7, "selected": true, "text": "alternates = x where\n x = 0 : y\n y = 1 : x\n" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357956", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34996/" ]
357,963
<p>I am developing a prototype for a game, and certain gameplay rules are to be defined in an ini file so that the game designers can tweak the game parameters without requiring help from me in addition to a re-compile. This is what I'm doing currently:</p> <pre><code>std::ifstream stream; stream.open("rules.ini"); i...
[ { "answer_id": 358115, "author": "Drew Dormann", "author_id": 16287, "author_profile": "https://Stackoverflow.com/users/16287", "pm_score": 4, "selected": true, "text": "argv[0]" } ]
2008/12/10
[ "https://Stackoverflow.com/questions/357963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37472/" ]
357,968
<p>I am working on <a href="http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life" rel="nofollow noreferrer">Conway's Game of Life</a> currently and have gotten stuck. My code doesn't work.</p> <p>When I run my code in GUI, it says:</p> <pre> [[0 0 0 0] [0 1 1 0] [0 1 0 0] [0 0 0 0]] Traceback (most recent call l...
[ { "answer_id": 357982, "author": "Jimmy", "author_id": 4435, "author_profile": "https://Stackoverflow.com/users/4435", "pm_score": 2, "selected": false, "text": "number_neighbors" }, { "answer_id": 358020, "author": "David Locke", "author_id": 1447, "author_profile": ...
2008/12/10
[ "https://Stackoverflow.com/questions/357968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/44354/" ]
357,969
<p>I am trying to combine some of my CSS and it is kind of an easy questions but I am kind of having some trouble, i have this code:</p> <pre><code>h2.post-title, h2.post-title a{ display:block; background-color:#000; padding:3px; color:#ffffff; text-decoration:none; text-transform:uppercase; ...
[ { "answer_id": 357992, "author": "Eran Galperin", "author_id": 10585, "author_profile": "https://Stackoverflow.com/users/10585", "pm_score": 3, "selected": true, "text": "h2.post-title {\n font-size:130%;\n}\n" }, { "answer_id": 357999, "author": "qualbeen", "author_id...
2008/12/10
[ "https://Stackoverflow.com/questions/357969", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
357,997
<p>In Java you can define a new class inline using anonymous inner classes. This is useful when you need to rewrite only a single method of the class.</p> <p>Suppose that you want create a subclass of <code>OptionParser</code> that overrides only a single method (for example <code>exit()</code>). In Java you can write...
[ { "answer_id": 358012, "author": "Joachim Sauer", "author_id": 40342, "author_profile": "https://Stackoverflow.com/users/40342", "pm_score": 4, "selected": false, "text": "def printStuff():\n print \"hello\"\n\ndef doit(what):\n what()\n\ndoit(printStuff) \n" }, { "answer_id"...
2008/12/10
[ "https://Stackoverflow.com/questions/357997", "https://Stackoverflow.com", "https://Stackoverflow.com/users/36131/" ]
358,003
<p>Is there a function in the C Library under Linux which can set the length of a file? Under Windows I know there is a SetFileLength() function. If there is not, what is the best way of shortening a file without deleting and rewriting it?</p>
[ { "answer_id": 358007, "author": "codelogic", "author_id": 43427, "author_profile": "https://Stackoverflow.com/users/43427", "pm_score": 4, "selected": true, "text": "int truncate(const char *path, off_t length);" }, { "answer_id": 358008, "author": "Johannes Schaub - litb", ...
2008/12/10
[ "https://Stackoverflow.com/questions/358003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/44952/" ]
358,025
<p>I need to keep the arrow keys from being able to scroll through my various tabs. Anyone know of a way to do this?</p>
[ { "answer_id": 358030, "author": "Eric", "author_id": 6367, "author_profile": "https://Stackoverflow.com/users/6367", "pm_score": -1, "selected": true, "text": "System::Windows::Forms::KeyPressEventArgs^ e\n" }, { "answer_id": 361144, "author": "Matt", "author_id": 19802...
2008/12/10
[ "https://Stackoverflow.com/questions/358025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19802/" ]
358,037
<p>I am using a program that talks to my COMM port, but I have made another program that I want to "sniff" the comm port messages and perform it's own actions against those messages in addition. Is this possible in .NET c#?</p>
[ { "answer_id": 25639355, "author": "jbutler483", "author_id": 3436942, "author_profile": "https://Stackoverflow.com/users/3436942", "pm_score": 0, "selected": false, "text": "void _serialPort_DataReceived(object sender, SerialDataReceivedEventArgs e)\n{\n int dataLength = _serialPort....
2008/12/10
[ "https://Stackoverflow.com/questions/358037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19854/" ]
358,039
<p>What is the meaning, and where is the Ruby documentation for the syntax of: </p> <pre><code>Array(phrases) </code></pre> <p>which I found browsing the Rails source here:</p> <pre><code># File actionpack/lib/action_view/helpers/text_helper.rb, line 109 ... 119: match = Array(phrases).map { |p| Regexp.esc...
[ { "answer_id": 358078, "author": "Brian Carper", "author_id": 23070, "author_profile": "https://Stackoverflow.com/users/23070", "pm_score": 5, "selected": true, "text": "Kernel#Array" }, { "answer_id": 358085, "author": "AShelly", "author_id": 10396, "author_profile":...
2008/12/10
[ "https://Stackoverflow.com/questions/358039", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37572/" ]
358,048
<p>I am using a third party application and would like to change one of its files. The file is stored in XML but with an invalid doctype.</p> <p>When I try to read use a it errors out becuase the doctype contains "file:///ReportWiz.dtd" (as shown, with quotes) and I get an exception for cannot find file. Is there a wa...
[ { "answer_id": 358104, "author": "McDowell", "author_id": 304, "author_profile": "https://Stackoverflow.com/users/304", "pm_score": 2, "selected": false, "text": " EntityResolver er = new EntityResolver() {\n @Override\n public InputSource resolveEntity(String publicId, ...
2008/12/10
[ "https://Stackoverflow.com/questions/358048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673/" ]
358,069
<p>I just bought Visual Studio 2008 Professional and it came with SQL Server 2005 Developer Edition. I'm used to using SQL Server 2005 at work, but the Developer edition doesn't seem to come with Server Management Studio, so I'm at a bit of a loss. A few questions:</p> <ol> <li>What resources are there for configuri...
[ { "answer_id": 358158, "author": "George Stocker", "author_id": 16587, "author_profile": "https://Stackoverflow.com/users/16587", "pm_score": 2, "selected": false, "text": "D:\\SQL Server x86\\Servers\\setup.exe -SKUUPGRADE=1" } ]
2008/12/11
[ "https://Stackoverflow.com/questions/358069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16587/" ]
358,072
<p>I have a javascript heavy app which has widgets like autocomplete dropdowns and tabs and so forth. Sometimes when dropdowns appear and disappear, or when you switch between tabs, it changes the height of the document. This can cause annoyances if the scrollbar appears and disappears rapidly, because it shifts the pa...
[ { "answer_id": 358190, "author": "ng.mangine", "author_id": 37784, "author_profile": "https://Stackoverflow.com/users/37784", "pm_score": -1, "selected": false, "text": "document.body.watch(\"clientHeight\", function(property, oldHeight, newHeight) {\n // what you want to do when the he...
2008/12/11
[ "https://Stackoverflow.com/questions/358072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5304/" ]
358,092
<p>Is the following possible in SQL Server 2000?</p> <pre><code>CREATE FUNCTION getItemType (@code varchar(18)) RETURNS int AS BEGIN Declare @Type tinyint Select @Type = case len(@code) WHEN 12,14,17 THEN 1 WHEN 13,15,18 THEN 2 WHEN 8,10 THEN 3 ELSE 0 END RETURN (@Type) END </code></pre> <p>Thanks.</p>
[ { "answer_id": 358097, "author": "dkretz", "author_id": 31641, "author_profile": "https://Stackoverflow.com/users/31641", "pm_score": 0, "selected": false, "text": " try \n SELECT CASE\n WHEN LEN(@gcode) IN(x, y, z) THEN a \n END\n etc.\n" }, { "answer_id": 3...
2008/12/11
[ "https://Stackoverflow.com/questions/358092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23667/" ]
358,120
<p>On Internet Explorer, the standard HTML file upload form also allows for direct input of the file name (instead of using the file selector dialog). This makes it possible to enter non-existing files. On other browsers (which do not let you do that) I suppose this case can still occur if you delete the file after hav...
[ { "answer_id": 361947, "author": "Thilo", "author_id": 14955, "author_profile": "https://Stackoverflow.com/users/14955", "pm_score": 2, "selected": false, "text": "try{\n form.submit();\n}\ncatch (e){\n// show some error message\n}\nreturn false;\n" } ]
2008/12/11
[ "https://Stackoverflow.com/questions/358120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14955/" ]
358,136
<p>What is the most efficient way to remove duplicate items from an array under the constraint that axillary memory usage must be to a minimum, preferably small enough to not even require any heap allocations? Sorting seems like the obvious choice, but this is clearly not asymptotically efficient. Is there a better a...
[ { "answer_id": 358171, "author": "Doug Currie", "author_id": 33252, "author_profile": "https://Stackoverflow.com/users/33252", "pm_score": 0, "selected": false, "text": "function removedups (t)\n local result = {}\n local count = 0\n local found\n for i,v in ipairs(t) do\n ...
2008/12/11
[ "https://Stackoverflow.com/questions/358136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23903/" ]
358,147
<p>I have two computers. Both running WinXP SP2 (I don't really know ho similar they are beyond that). I am running MS Visual C# 2008 express edition on both and that's what I'm currently using to program.</p> <p>I made an application that loads in an XML file and displays the contents in a DataGridView.</p> <p>The...
[ { "answer_id": 358164, "author": "Adam Rosenfield", "author_id": 9530, "author_profile": "https://Stackoverflow.com/users/9530", "pm_score": 2, "selected": false, "text": "0D 0A" }, { "answer_id": 358165, "author": "Jonathan Lonowski", "author_id": 15031, "author_prof...
2008/12/11
[ "https://Stackoverflow.com/questions/358147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/44004/" ]
358,160
<p>I've isolated the behaviour into the following test case. I'd be grateful to anyone who can tell me how to expect/verify a property set for a <code>List&lt;T&gt;</code> property - it appears there's something going on inside <code>It.Is&lt;T&gt;(predicate)</code> that isn't making a whole lot of sense to me right no...
[ { "answer_id": 358202, "author": "Mike Scott", "author_id": 43649, "author_profile": "https://Stackoverflow.com/users/43649", "pm_score": 1, "selected": false, "text": "It.Is<T>" }, { "answer_id": 358237, "author": "Matt Hamilton", "author_id": 615, "author_profile": ...
2008/12/11
[ "https://Stackoverflow.com/questions/358160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5017/" ]
358,168
<p>Ok, I'm doing a bunch of RIA/AJAX stuff and need to create a "pretty", custom confirm box which is a DIV (not the built-in javascript confirm). I'm having trouble determining how to accomplish a pause in execution to give the user a chance to accept or decline the condition before either resuming or halting executio...
[ { "answer_id": 473778, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "customConfirm" }, { "answer_id": 1137100, "author": "Community", "author_id": -1, "author_profile": "https...
2008/12/11
[ "https://Stackoverflow.com/questions/358168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
358,185
<p><strong>Background:</strong><br> I have an old web CMS that stored content in XML files, one XML file per page. I am in the process of importing content from that CMS into a new one, and I know I'm going to need to massage the existing XML in order for the import process to work properly.</p> <p>Existing XML:</p> ...
[ { "answer_id": 473778, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "customConfirm" }, { "answer_id": 1137100, "author": "Community", "author_id": -1, "author_profile": "https...
2008/12/11
[ "https://Stackoverflow.com/questions/358185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2614/" ]
358,195
<p>What's the best way to extract the key and value from a string like this:</p> <pre><code>var myString = 'A1234=B1234'; </code></pre> <p>I originally had something like this:</p> <pre><code>myString.split('='); </code></pre> <p>And that works fine, BUT an equal (=) sign could be used as a key or value within the ...
[ { "answer_id": 358201, "author": "Jimmy", "author_id": 4435, "author_profile": "https://Stackoverflow.com/users/4435", "pm_score": 2, "selected": false, "text": "var inQuote = false;\nfor(i=0; i<str.length; i++) {\n if (str.charAt(i) == '\"') {\n inQuote = !inQuote;\n }\n if (...
2008/12/11
[ "https://Stackoverflow.com/questions/358195", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21677/" ]
358,196
<p>I'm new to unit testing and I'm trying to figure out if I should start using more of <code>internal</code> access modifier. I know that if we use <code>internal</code> and set the assembly variable <code>InternalsVisibleTo</code>, we can test functions that we don't want to declare public from the testing project. T...
[ { "answer_id": 358526, "author": "Brian Rasmussen", "author_id": 38206, "author_profile": "https://Stackoverflow.com/users/38206", "pm_score": 7, "selected": false, "text": "PrivateObject" }, { "answer_id": 358572, "author": "Jon Skeet", "author_id": 22656, "author_pr...
2008/12/11
[ "https://Stackoverflow.com/questions/358196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1381/" ]
358,207
<p>What is the best way to get the current system time milliseconds?</p>
[ { "answer_id": 358219, "author": "codelogic", "author_id": 43427, "author_profile": "https://Stackoverflow.com/users/43427", "pm_score": 9, "selected": true, "text": "[[NSDate date] timeIntervalSince1970];\n" }, { "answer_id": 2742378, "author": "Allan Simonsen", "author_...
2008/12/11
[ "https://Stackoverflow.com/questions/358207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
358,209
<p>Greetings!</p> <p>I have a DropDownList within a FormView which are bound to XmlDataSources:</p> <pre><code>&lt;asp:FormView ID="MyFormView" runat="server" DataSourceID="MyXmlDataSource"&gt; &lt;ItemTemplate&gt; &lt;h1&gt;&lt;%# XPath("SomeNode")%&gt;&lt;/h1&gt; &lt;asp:Label ID="MyLabel" runat...
[ { "answer_id": 358588, "author": "sirrocco", "author_id": 5246, "author_profile": "https://Stackoverflow.com/users/5246", "pm_score": 0, "selected": false, "text": "MyFormView.DataBind()" }, { "answer_id": 408729, "author": "Kishh", "author_id": 51109, "author_profile...
2008/12/11
[ "https://Stackoverflow.com/questions/358209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27870/" ]
358,213
<p>How can I mock the database calls to make my application logic been tested without database?</p>
[ { "answer_id": 358235, "author": "thursdaysgeek", "author_id": 22523, "author_profile": "https://Stackoverflow.com/users/22523", "pm_score": 0, "selected": false, "text": "procedure GetData (output arrayOfData)\n arrayOfData.record1.field1 = \"dataA\"\n arrayOfData.record1.field2 = \"d...
2008/12/11
[ "https://Stackoverflow.com/questions/358213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43049/" ]
358,220
<p>Just flicking through one of my favourite books (Ellen Ullman's The Bug) and there is a small bit where one programmer confronts another over three levels of indirection:</p> <pre><code>***object_array = ***winarray; </code></pre> <p>I get the idea of double indirection - a way of passing a pointer into a function...
[ { "answer_id": 358267, "author": "mcherm", "author_id": 14570, "author_profile": "https://Stackoverflow.com/users/14570", "pm_score": 2, "selected": false, "text": "int x = 3;\n" }, { "answer_id": 359514, "author": "P Daddy", "author_id": 36388, "author_profile": "htt...
2008/12/11
[ "https://Stackoverflow.com/questions/358220", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41116/" ]
358,225
<p>this is my log output</p> <pre><code>INFO main digestemails - process inbox INFO main digestemails - checking for emails in c:\development\DCMail\email\KN-Source INFO main digestemails - digesting 003d01c95a7b_3446880_0202fea9@xxxx.com.eml INFO main digestemails - extracting attachments INFO main digestemails - no ...
[ { "answer_id": 358247, "author": "joshperry", "author_id": 30587, "author_profile": "https://Stackoverflow.com/users/30587", "pm_score": 8, "selected": true, "text": "%d" }, { "answer_id": 358641, "author": "Markus Lausberg", "author_id": 39062, "author_profile": "htt...
2008/12/11
[ "https://Stackoverflow.com/questions/358225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21537/" ]
358,230
<p>Can jQuery be extended so that I can use the above syntax?</p> <p>I can't figure out how to prototype whatever it is $() returns, so that I can call $().$()</p> <p>Thanks.</p>
[ { "answer_id": 358234, "author": "nickf", "author_id": 9021, "author_profile": "https://Stackoverflow.com/users/9021", "pm_score": 3, "selected": true, "text": "find()" }, { "answer_id": 25343642, "author": "1j01", "author_id": 2624876, "author_profile": "https://Stac...
2008/12/11
[ "https://Stackoverflow.com/questions/358230", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43005/" ]
358,240
<p>Is there anything better than a <a href="http://en.wikipedia.org/wiki/Trie" rel="nofollow noreferrer">Trie</a> for this situation?</p> <ul> <li>Storing a list of ~100k English words</li> <li>Needs to use minimal memory</li> <li>Lookups need to be reasonable, but don't have to be lightning fast</li> </ul> <p>I'm wo...
[ { "answer_id": 358281, "author": "paxdiablo", "author_id": 14860, "author_profile": "https://Stackoverflow.com/users/14860", "pm_score": 3, "selected": false, "text": "HERE would encode as THIS\nsanctimonious 0,sanctimonious\nsanction ...
2008/12/11
[ "https://Stackoverflow.com/questions/358240", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23977/" ]
358,251
<p>I have made a C# application and I am trying to figure out if I can tap into build events of cctray (cruise control tray)? I don't want to re-invent the wheel, I just want to know when my builds fail or succeed (on a client machine) so than my custom C# application may execute a specific set of routines.</p>
[ { "answer_id": 359967, "author": "Alex", "author_id": 26564, "author_profile": "https://Stackoverflow.com/users/26564", "pm_score": 1, "selected": true, "text": "ProjectStatus[] currentStatuses = managerFactory.GetCruiseManager(ServerUri).GetProjectStatus();\n" } ]
2008/12/11
[ "https://Stackoverflow.com/questions/358251", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19854/" ]
358,263
<p>I have a website where all requests are redirected silently (via <code>.htaccess</code>) to <code>index.php</code> and then PHP is used to show the correct page (by parsing the <code>REQUEST_URI</code>).</p> <p>I was wondering if it's possible to submit POST data to a fake address too?</p> <p>I've currently got my...
[ { "answer_id": 358334, "author": "Tautologistics", "author_id": 44481, "author_profile": "https://Stackoverflow.com/users/44481", "pm_score": 7, "selected": true, "text": "# redirect mail posting to index\nRewriteRule send-mail index.php?send-mail [NC,P]\n" }, { "answer_id": 3583...
2008/12/11
[ "https://Stackoverflow.com/questions/358263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31671/" ]
358,278
<p>I have a bunch of tables in a sql server database (all with a certain prefix, e.g. ABC_table1), and I want to move ALL tables with this prefix to another database.</p> <p>Is there a way in which this can be done?</p> <p>I am using SQL Server 2k5.</p> <p>Thanks</p>
[ { "answer_id": 358330, "author": "Robert Wagner", "author_id": 10784, "author_profile": "https://Stackoverflow.com/users/10784", "pm_score": 1, "selected": false, "text": "SELECT * from sys.schemas\n" } ]
2008/12/11
[ "https://Stackoverflow.com/questions/358278", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32484/" ]
358,297
<p>I have the following HTML</p> <pre><code>&lt;div&gt; &lt;img id="image1" src="http://valleywag.com/assets/resources/2008/03/BlackGoogleLogo.jpg" alt="Why doesn't this float correcly?" style="border-width: 0px; float: left;" /&gt; &lt;div id="divText" style="font-family: Arial, He...
[ { "answer_id": 358316, "author": "Jonathan Lonowski", "author_id": 15031, "author_profile": "https://Stackoverflow.com/users/15031", "pm_score": 0, "selected": false, "text": "<ul style=\"margin-left: 291px;\">" }, { "answer_id": 358343, "author": "Zack The Human", "autho...
2008/12/11
[ "https://Stackoverflow.com/questions/358297", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469/" ]
358,307
<p>I am wondering if there is a "best" way to shuffle a list of elements that contains duplicates such that the case where array[i] == array[i+1] is avoided as much as possible.</p> <p>I am working on a weighted advertising display (I can adjust the number of displays per rotation for any given advertiser) and would l...
[ { "answer_id": 358346, "author": "Matt Mitchell", "author_id": 364, "author_profile": "https://Stackoverflow.com/users/364", "pm_score": 1, "selected": true, "text": "var advertisers = getAdvertisers();\nvar returnList = new List();\nint totalWeight = sumOfAllAdvertisersWeight();\nwhile ...
2008/12/11
[ "https://Stackoverflow.com/questions/358307", "https://Stackoverflow.com", "https://Stackoverflow.com/users/364/" ]
358,318
<p>I want to access Microsoft SQL Server Compact Edition databases from Java. How can I do that? I searched for JDBC driver for SQLCE, but I didn't find any.</p>
[ { "answer_id": 378636, "author": "Mark Jaeger", "author_id": 335648, "author_profile": "https://Stackoverflow.com/users/335648", "pm_score": 1, "selected": false, "text": "Class.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\"); \nConnection con = DriverManager.getConnection(\"jdbc:odbc:<yourODB...
2008/12/11
[ "https://Stackoverflow.com/questions/358318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11238/" ]
358,344
<p>I was reading the great article about binding and unbinding events (because I am a js beginner using jQuery) on <a href="http://www.learningjquery.com/2008/05/working-with-events-part-2" rel="nofollow noreferrer">Karl Swedberg's blog</a>, and I became totally puzzled at this part of the code (simplified for brevity)...
[ { "answer_id": 358359, "author": "Greg Dean", "author_id": 1200558, "author_profile": "https://Stackoverflow.com/users/1200558", "pm_score": 3, "selected": false, "text": "function addItemUnbind() {\n $('#list6 li.special button')\n .unbind('click')\n .bind('click', function() {\n...
2008/12/11
[ "https://Stackoverflow.com/questions/358344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43465/" ]
358,345
<p>I'm having an issue with the following code:</p> <pre><code> private void DataPortal_Fetch(TaskCriteria criteria) { using (var ctx = ContextManager&lt;Gimli.Data.GimliDataContext&gt; .GetManager(Database.ApplicationConnection, false)) { this.RaiseListChangedEve...
[ { "answer_id": 358351, "author": "BFree", "author_id": 15861, "author_profile": "https://Stackoverflow.com/users/15861", "pm_score": 0, "selected": false, "text": "query.Where(row => object.Equals(row.InvoiceId, Guid.Empty))\n" }, { "answer_id": 358371, "author": "mattruma", ...
2008/12/11
[ "https://Stackoverflow.com/questions/358345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1768/" ]
358,347
<p>I'm writing some Java code that uses a FileReader to load data from a few input files. I'm using TDD pretty heavily, and I'd like to add some tests that ensure that I'm cleaning up properly by calling close() on the reader when I'm done with it. Unfortunately, I can't come up with a good way to test for this. Anyone...
[ { "answer_id": 358390, "author": "Chris B.", "author_id": 45176, "author_profile": "https://Stackoverflow.com/users/45176", "pm_score": 2, "selected": false, "text": "FileReader fr = new FileReader(\"somefile\");\n// ... file reader activity\nfr.close();\n\n// After closing the reader, t...
2008/12/11
[ "https://Stackoverflow.com/questions/358347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13210/" ]