qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
85,892
<p>I'm trying to determine if there's a way in Visual Basic 2008 (Express edition if that matters) to do inline collection initialization, a la JavaScript or Python:</p> <pre><code>Dim oMapping As Dictionary(Of Integer, String) = {{1,"First"}, {2, "Second"}} </code></pre> <p>I know Visual Basic 2008 supports array in...
[ { "answer_id": 29078431, "author": "James Lawruk", "author_id": 88204, "author_profile": "https://Stackoverflow.com/users/88204", "pm_score": 3, "selected": false, "text": "Dim list As New List(Of String) From {\"First\", \"Second\"}\n Dim oMapping As New Dictionary(Of Integer, String) F...
2008/09/17
[ "https://Stackoverflow.com/questions/85892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7542/" ]
85,916
<p>I'm looking for a Ruby's equivalent of <a href="http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html" rel="nofollow noreferrer">Code Like a Pythonista: Idiomatic Python</a></p> <p>Desirable features:</p> <ul> <li>easy to read</li> <li>single document which covers all topics: tips, tricks, guidelin...
[ { "answer_id": 86205, "author": "AShelly", "author_id": 10396, "author_profile": "https://Stackoverflow.com/users/10396", "pm_score": 3, "selected": false, "text": "until while not x = x * 2 until x > 100\n" }, { "answer_id": 486370, "author": "assplecake", "author_id":...
2008/09/17
[ "https://Stackoverflow.com/questions/85916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4279/" ]
85,928
<p>Before I start, I know there is this post and it doesn't answer my question: <a href="https://stackoverflow.com/questions/3017/how-to-generate-getters-and-setters-in-visual-studio">How to generate getters and setters in Visual Studio?</a></p> <p>In Visual Studio 2008 there is the ability to auto generate getters an...
[ { "answer_id": 85991, "author": "Eddie Deyo", "author_id": 9323, "author_profile": "https://Stackoverflow.com/users/9323", "pm_score": 2, "selected": false, "text": "public string SomeString { get; set; }\n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/85928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8426/" ]
85,935
<p>I have an old .dot file with a few dozen styles in it.<br> I need to place them into <b>another .dot file </b> that I received. Is there a better way to get them in there than manually recreating each style?</p>
[ { "answer_id": 6180191, "author": "AIS", "author_id": 776717, "author_profile": "https://Stackoverflow.com/users/776717", "pm_score": 0, "selected": false, "text": "Go to Tools > Templates & Add-Ins... Click Organizer button..." } ]
2008/09/17
[ "https://Stackoverflow.com/questions/85935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5653/" ]
85,978
<p>For a given table 'foo', I need a query to generate a set of tables that have foreign keys that point to foo. I'm using Oracle 10G.</p>
[ { "answer_id": 86104, "author": "Mike Monette", "author_id": 6166, "author_profile": "https://Stackoverflow.com/users/6166", "pm_score": 7, "selected": true, "text": "select table_name\nfrom all_constraints\nwhere constraint_type='R'\nand r_constraint_name in \n (select constraint_name\...
2008/09/17
[ "https://Stackoverflow.com/questions/85978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9940/" ]
85,992
<p>How do I enumerate the properties of a JavaScript object?</p> <p>I actually want to list all the defined variables and their values, but I've learned that defining a variable actually creates a property of the window object.</p>
[ { "answer_id": 86014, "author": "Jason Bunting", "author_id": 1790, "author_profile": "https://Stackoverflow.com/users/1790", "pm_score": 11, "selected": true, "text": "for(var propertyName in myObject) {\n // propertyName is what you want\n // you can get the value like this: myObje...
2008/09/17
[ "https://Stackoverflow.com/questions/85992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4777/" ]
85,996
<p>I wrote myself a little downloading application so that I could easily grab a set of files from my server and put them all onto a new pc with a clean install of Windows, without actually going on the net. Unfortunately I'm having problems creating the folder I want to put them in and am unsure how to go about it.<...
[ { "answer_id": 86009, "author": "GEOCHET", "author_id": 5640, "author_profile": "https://Stackoverflow.com/users/5640", "pm_score": 3, "selected": false, "text": "Directory.Exists(TheFolderName) Directory.CreateDirectory(TheFolderName) Imports System.IO" }, { "answer_id": 86016, ...
2008/09/17
[ "https://Stackoverflow.com/questions/85996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
86,002
<p>I need to write a Delphi application that pulls entries up from various tables in a database, and different entries will be in different currencies. Thus, I need to show a different number of decimal places and a different currency character for every Currency data type ($, Pounds, Euros, etc) depending on the curr...
[ { "answer_id": 87306, "author": "Francesca", "author_id": 9842, "author_profile": "https://Stackoverflow.com/users/9842", "pm_score": 4, "selected": true, "text": "function CurrFormatFromLCID(const AValue: Currency; const LCID: Integer = LOCALE_SYSTEM_DEFAULT): string;\nvar\n AFormatSet...
2008/09/17
[ "https://Stackoverflow.com/questions/86002", "https://Stackoverflow.com", "https://Stackoverflow.com/users/42219/" ]
86,018
<p>If you are using HAML and SASS in your Rails application, then any templates you define in public/stylesheet/*.sass will be compiled into *.css stylesheets. From your code, you use stylesheet_link_tag to pull in the asset by name without having to worry about the extension. </p> <p>Many people dislike storing gener...
[ { "answer_id": 86457, "author": "mislav", "author_id": 11687, "author_profile": "https://Stackoverflow.com/users/11687", "pm_score": 5, "selected": true, "text": "/public/stylesheets/*.css\n" }, { "answer_id": 98772, "author": "Nate", "author_id": 12779, "author_profi...
2008/09/17
[ "https://Stackoverflow.com/questions/86018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13472/" ]
86,030
<p>I just finished a small project where changes were required to a pre-compiled, but no longer supported, ASP.NET web site. The code was ugly, but it was ugly before it was even compiled, and I'm quite impressed that everything still seems to work fine.</p> <p>It took some editing, e.g. to remove control declaration...
[ { "answer_id": 364287, "author": "Aaron Powell", "author_id": 11388, "author_profile": "https://Stackoverflow.com/users/11388", "pm_score": 0, "selected": false, "text": "<>" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8741/" ]
86,046
<p>I'm wondering the <em>best</em> way to start a pthread that is a member of a C++ class? My own approach follows as an answer...</p>
[ { "answer_id": 86253, "author": "ravenspoint", "author_id": 16582, "author_profile": "https://Stackoverflow.com/users/16582", "pm_score": 5, "selected": false, "text": "#include <boost/thread.hpp>\n\n// define class to model or control a particular kind of widget\nclass cWidget\n{\npubli...
2008/09/17
[ "https://Stackoverflow.com/questions/86046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10774/" ]
86,049
<p>How do I ignore files in Subversion?</p> <p>Also, how do I find files which are not under version control?</p>
[ { "answer_id": 86052, "author": "andyuk", "author_id": 2108, "author_profile": "https://Stackoverflow.com/users/2108", "pm_score": 11, "selected": true, "text": "global-ignores global-ignores C:\\Users\\{you}\\AppData\\Roaming\\Subversion\\config Software\\Tigris.org\\Subversion\\Config\...
2008/09/17
[ "https://Stackoverflow.com/questions/86049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2108/" ]
86,083
<p>I'm looking for libraries to:</p> <ul> <li>read and write meta data (for example ID3v2 tags in mp3 and all)</li> <li>convert compressed to to raw audio data and if possible raw audio data to mp3, ogg, aac, ...</li> <li>digitally process the audio data (energy, timbre, Mel Frequency Cepstral Coefficients - MFCC, FFT...
[ { "answer_id": 1685699, "author": "Art Clarke", "author_id": 204512, "author_profile": "https://Stackoverflow.com/users/204512", "pm_score": 2, "selected": false, "text": "* read and write meta data (for example ID3v2 tags in mp3 and all):\n * convert compressed to to raw audio data and ...
2008/09/17
[ "https://Stackoverflow.com/questions/86083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
86,105
<p>My web application has a login page that submits authentication credentials via an AJAX call. If the user enters the correct username and password, everything is fine, but if not, the following happens:</p> <ol> <li>The web server determines that although the request included a well-formed Authorization header, the...
[ { "answer_id": 170628, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "xmlHttp=new XMLHttpRequest();\nxmlHttp.mozBackgroundRequest = true;\nxmlHttp.open(\"GET\",URL,true,USERNAME,PASSWORD);\nxmlHtt...
2008/09/17
[ "https://Stackoverflow.com/questions/86105", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9897/" ]
86,119
<p>I am trying to have Apache follow a symlink to a raid array server that will contain some large data files. I have tried modifying <code>httpd.conf</code> to have an entry like this</p> <pre><code>&lt;Directory "/Users/imagine/Sites"&gt; Options FollowSymLinks AllowOverride all Order allow,deny Allow from ...
[ { "answer_id": 86137, "author": "Alex M", "author_id": 9652, "author_profile": "https://Stackoverflow.com/users/9652", "pm_score": 1, "selected": false, "text": "drwx--x--x /var/log/apache2/error_log ServerRoot ErrorLog httpd.conf httpd.conf" }, { "answer_id": 86153, "author"...
2008/09/17
[ "https://Stackoverflow.com/questions/86119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
86,129
<p>I can make a DAO recordset in VB6/Access do anything - add data, clean data, move data, get data dressed in the morning and take it to school. But I don't even know where to start in .NET. </p> <p>I'm not having any problems retrieving data from the database, but what do real people do when they need to edit data a...
[ { "answer_id": 86137, "author": "Alex M", "author_id": 9652, "author_profile": "https://Stackoverflow.com/users/9652", "pm_score": 1, "selected": false, "text": "drwx--x--x /var/log/apache2/error_log ServerRoot ErrorLog httpd.conf httpd.conf" }, { "answer_id": 86153, "author"...
2008/09/17
[ "https://Stackoverflow.com/questions/86129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16415/" ]
86,138
<p>I need to get the default printer name. I'll be using C# but I suspect this is more of a framework question and isn't language specific.</p>
[ { "answer_id": 86185, "author": "OwenP", "author_id": 2547, "author_profile": "https://Stackoverflow.com/users/2547", "pm_score": 8, "selected": true, "text": "PrinterSettings PrinterSettings System.Drawing.Printing PrinterSettings settings = new PrinterSettings();\nConsole.WriteLine(set...
2008/09/17
[ "https://Stackoverflow.com/questions/86138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7176/" ]
86,151
<p>Polyglot, or multiple language, solutions allow you to apply languages to problems which they are best suited for. Yet, at least in my experience, software shops tend to want to apply a "super" language to all aspects of the problem they are trying to solve. Sticking with that language come "hell or high water" ev...
[ { "answer_id": 179390, "author": "bugmagnet", "author_id": 426, "author_profile": "https://Stackoverflow.com/users/426", "pm_score": 2, "selected": false, "text": "Perl Statistics::Benford PDK GNAT ObjectAda MASM32 WinAsm libiconv Delphi libuninum C Visual C++ VB6 VBScript" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13930/" ]
86,163
<p>Reading through the Flickr API documentation it keeps stating I require an API key to use their REST protocols. I am only building a photo viewer, gathering information available from Flickr's <a href="http://www.flickr.com/services/feeds/docs/photos_public/" rel="noreferrer">public photo feed</a> (For instance, I a...
[ { "answer_id": 101798, "author": "Jeff Winkworth", "author_id": 1306, "author_profile": "https://Stackoverflow.com/users/1306", "pm_score": 4, "selected": true, "text": "min_upload_date" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86163", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1306/" ]
86,171
<p><strong>First, a little background:</strong></p> <p>I'm displaying a data set with 288 rows and 8 columns (2304 records) using a ScrollableDataTable and the performance leaves a lot to be desired. An AJAX request that rerenders the control takes nearly 20 seconds to complete, compared to 7 seconds when rendering t...
[ { "answer_id": 340818, "author": "Zack Marrapese", "author_id": 43222, "author_profile": "https://Stackoverflow.com/users/43222", "pm_score": 2, "selected": true, "text": "rich:dataTable rows reRender=\"paginator\" rich:datascroller" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5933/" ]
86,175
<p>On all my Windows servers, except for one machine, when I execute the following code to allocate a temporary files folder:</p> <pre><code>use CGI; my $tmpfile = new CGITempFile(1); print "tmpfile='", $tmpfile-&gt;as_string(), "'\n"; </code></pre> <p>The variable <code>$tmpfile</code> is assigned the value <code>'....
[ { "answer_id": 86874, "author": "ChrisN", "author_id": 3853, "author_profile": "https://Stackoverflow.com/users/3853", "pm_score": 4, "selected": true, "text": "$CGITempFile::TMPDIRECTORY find_tempdir find_tempdir" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86175", "https://Stackoverflow.com", "https://Stackoverflow.com/users/419/" ]
86,202
<p>Does <a href="https://facelets.dev.java.net/" rel="nofollow noreferrer">Facelets</a> have any features for neater or more readable internationalised user interface text labels that what you can otherwise do using JSF?</p> <p>For example, with plain JSF, using h:outputFormat is a very verbose way to interpolate vari...
[ { "answer_id": 100277, "author": "Peter Hilton", "author_id": 2670, "author_profile": "https://Stackoverflow.com/users/2670", "pm_score": 2, "selected": false, "text": "<h:outputText value=\"#{my:message('label.widget.count', widgetCount)}\"/>\n #{my:message('label.widget.count', widgetC...
2008/09/17
[ "https://Stackoverflow.com/questions/86202", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2670/" ]
86,219
<p>Does anyone know of any 'standard' way to interface with a telephony system (think Cisco CCM) from a C/C++ app in *nix? I have used MS TAPI in the past but this is Windows only and don't want to go the jTAPI (Java) route, which seems to be the only option on the face of it.</p> <p>I want to monitor the phone syste...
[ { "answer_id": 40348467, "author": "isapir", "author_id": 968244, "author_profile": "https://Stackoverflow.com/users/968244", "pm_score": 0, "selected": false, "text": "crontab #!/bin/sh\n\nHOST=\"192.168.0.200\"\nPORT=\"2300\"\nUSER=\"SMDR\"\nPASS=\"PCCSMDR\"\n\nFILE=/var/smdr/smdr-`dat...
2008/09/17
[ "https://Stackoverflow.com/questions/86219", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9236/" ]
86,220
<p>I have a Perl script that I'm attempting to set up using Perl Threads (use threads). When I run simple tests everything works, but when I do my actual script (which has the threads running multiple SQL<em>Plus sessions), each SQL</em>Plus session runs in order (i.e., thread 1's sqlplus runs steps 1-5, then thread 2...
[ { "answer_id": 89898, "author": "Brad Gilbert", "author_id": 1337, "author_profile": "https://Stackoverflow.com/users/1337", "pm_score": 1, "selected": false, "text": "threads::yield" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86220", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16575/" ]
86,262
<p>I normally run VS 2008 at home and LINQ is built in. At work we are still using VS 2005 and I have the opportunity to start a new project that I would like to use LINQ to SQL.</p> <p>After doing some searching all I could come up with was the MAY 2006 CTP of LINQ would have to be installed for LINQ to work in VS 2...
[ { "answer_id": 89898, "author": "Brad Gilbert", "author_id": 1337, "author_profile": "https://Stackoverflow.com/users/1337", "pm_score": 1, "selected": false, "text": "threads::yield" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7712/" ]
86,269
<p>So, I am seeing a curious problem. If I have a function</p> <pre><code>// counter wraps around to beginning eventually, omitted for clarity. var counter; cycleCharts(chartId) { // chartId should be undefined when called from setInterval console.log('chartId: ' + chartId); if(typeof chartId == 'undefine...
[ { "answer_id": 86309, "author": "Kent Fredric", "author_id": 15614, "author_profile": "https://Stackoverflow.com/users/15614", "pm_score": 3, "selected": true, "text": " var cycleId = setInterval(function(){ cycleCharts(); }, 10000); \n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13289/" ]
86,271
<p>I am attempting to find xml files with large swaths of commented out xml. I would like to programmatically search for xml comments that stretch beyond a given number of lines. Is there an easy way of doing this?</p>
[ { "answer_id": 86332, "author": "Sam", "author_id": 9406, "author_profile": "https://Stackoverflow.com/users/9406", "pm_score": 1, "selected": false, "text": "<!-- (.[^-->]|[\\r\\n][^-->]){5}(.[^-->]|[\\r\\n][^-->])*? -->\n" }, { "answer_id": 108475, "author": "Mattio", "...
2008/09/17
[ "https://Stackoverflow.com/questions/86271", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
86,278
<p>I have searched around, and it seems that this is a limitation in MS Access, so I'm wondering what creative solutions other have found to this puzzle.</p> <p>If you have a continuous form and you want a field to be a combo box of options that are specific to that row, Access fails to deliver; the combo box row sour...
[ { "answer_id": 88772, "author": "David-W-Fenton", "author_id": 9787, "author_profile": "https://Stackoverflow.com/users/9787", "pm_score": 1, "selected": false, "text": "[MySubForm].[Form]!MyID\n" }, { "answer_id": 322563, "author": "Community", "author_id": -1, "auth...
2008/09/17
[ "https://Stackoverflow.com/questions/86278", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14253/" ]
86,292
<p>I would much prefer to do this without catching an exception in <code>LoadXml()</code> and using this results as part of my logic. Any ideas for a solution that doesn't involve manually parsing the xml myself? I think VB has a return value of false for this function instead of throwing an XmlException. Xml input i...
[ { "answer_id": 86341, "author": "Rasmus Faber", "author_id": 5542, "author_profile": "https://Stackoverflow.com/users/5542", "pm_score": 7, "selected": true, "text": "public class MyXmlDocument: XmlDocument\n{\n bool TryParseXml(string xml){\n try{\n ParseXml(xml);\n return...
2008/09/17
[ "https://Stackoverflow.com/questions/86292", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1551/" ]
86,378
<p>I am looking into mechanisms for better search capabilities against our database. It is currently a huge bottleneck (causing long-lasting queries that are hurting our database performance).</p> <p>My boss wanted me to look into <a href="http://lucene.apache.org/solr/" rel="nofollow noreferrer">Solr</a>, but on clo...
[ { "answer_id": 96566, "author": "erickson", "author_id": 3474, "author_profile": "https://Stackoverflow.com/users/3474", "pm_score": 2, "selected": false, "text": "Directory IndexReader" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/122/" ]
86,402
<p>Is my best be going to be a shell script which replaces symlinks with copies, or is there another way of telling Git to follow symlinks?</p> <p>PS: I know it's not very secure, but I only want to do it in a few specific cases.</p>
[ { "answer_id": 86459, "author": "Kent Fredric", "author_id": 15614, "author_profile": "https://Stackoverflow.com/users/15614", "pm_score": 7, "selected": true, "text": " /foo/\n /foo/baz\n /bar/foo --> /foo\n /bar/foo/baz\n git add /bar/foo/baz\n" }, { "answer_id": 405445, ...
2008/09/17
[ "https://Stackoverflow.com/questions/86402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15368/" ]
86,408
<p>Let's say I have an aspx page with this calendar control:</p> <pre><code>&lt;asp:Calendar ID="Calendar1" runat="server" SelectedDate="" &gt;&lt;/asp:Calendar&gt; </code></pre> <p>Is there anything I can put in for SelectedDate to make it use the current date by default, without having to use the code-behind?</p>
[ { "answer_id": 86543, "author": "Philip Rieck", "author_id": 12643, "author_profile": "https://Stackoverflow.com/users/12643", "pm_score": 5, "selected": true, "text": "<asp:Calendar ID=\"Calendar1\" runat=\"server\" SelectedDate=\"<%# DateTime.Today %>\" />\n" }, { "answer_id":...
2008/09/17
[ "https://Stackoverflow.com/questions/86408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3043/" ]
86,413
<p>What is the best way to create a fixed width file in C#. I have a bunch of fields with lengths to write out. Say 20,80.10,2 etc all left aligned. Is there an easy way to do this? </p>
[ { "answer_id": 86462, "author": "Andrew Burgess", "author_id": 12096, "author_profile": "https://Stackoverflow.com/users/12096", "pm_score": 3, "selected": false, "text": "handle.WriteLine(s20.PadRight(20));\nhandle.WriteLine(s80.PadRight(80));\nhandle.WriteLine(s10.PadRight(10));\nhandl...
2008/09/17
[ "https://Stackoverflow.com/questions/86413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3208/" ]
86,417
<p>I have a custom (code-based) workflow, deployed in WSS via features in a .wsp file. The workflow is configured with a custom task content type (ie, the Workflow element contains a TaskListContentTypeId attribute). This content type's declaration contains a FormUrls element pointing to a custom task edit page.</p> ...
[ { "answer_id": 86462, "author": "Andrew Burgess", "author_id": 12096, "author_profile": "https://Stackoverflow.com/users/12096", "pm_score": 3, "selected": false, "text": "handle.WriteLine(s20.PadRight(20));\nhandle.WriteLine(s80.PadRight(80));\nhandle.WriteLine(s10.PadRight(10));\nhandl...
2008/09/17
[ "https://Stackoverflow.com/questions/86417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5782/" ]
86,428
<p>I would like to reload an <code>&lt;iframe&gt;</code> using JavaScript. The best way I found until now was set the iframe’s <code>src</code> attribute to itself, but this isn’t very clean. Any ideas?</p>
[ { "answer_id": 86441, "author": "scunliffe", "author_id": 6144, "author_profile": "https://Stackoverflow.com/users/6144", "pm_score": 4, "selected": false, "text": "window.frames['frameNameOrIndex'].location.reload();\n" }, { "answer_id": 86771, "author": "Ed.", "author_i...
2008/09/17
[ "https://Stackoverflow.com/questions/86428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8276/" ]
86,435
<p>I'm receiving feedback from a developer that "The only way visual basic (6) can deal with a UNC path is to map it to a drive." Is this accurate? And, if so, what's the underlying issue and are there any alternatives other than a mapped drive?</p>
[ { "answer_id": 86482, "author": "Darrel Miller", "author_id": 6819, "author_profile": "https://Stackoverflow.com/users/6819", "pm_score": 3, "selected": true, "text": "Sub Main()\n\n Dim fs As New FileSystemObject ' Add Reference to Microsoft Scripting Runtime\n MsgBox fs.FileExist...
2008/09/17
[ "https://Stackoverflow.com/questions/86435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5199/" ]
86,458
<p>Does a free .NET library exist with which I can upload a file to a SFTP (SSH FTP) server, which throws exceptions on problems with the upload and allows the monitoring of its progress?</p>
[ { "answer_id": 3057802, "author": "Martin Vobr", "author_id": 16132, "author_profile": "https://Stackoverflow.com/users/16132", "pm_score": 3, "selected": false, "text": "// create client, connect and log in \nSftp client = new Sftp();\nclient.Connect(hostname);\nclient.Login(username, p...
2008/09/17
[ "https://Stackoverflow.com/questions/86458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1595/" ]
86,477
<p>In JavaScript:</p> <pre><code>encodeURIComponent("©√") == "%C2%A9%E2%88%9A" </code></pre> <p>Is there an equivalent for C# applications? For escaping HTML characters I used:</p> <pre><code>txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]", m =&gt; @"&amp;#" + ((int)m.Value[0]).ToString() + ";"); </co...
[ { "answer_id": 86484, "author": "David Thibault", "author_id": 5903, "author_profile": "https://Stackoverflow.com/users/5903", "pm_score": 4, "selected": false, "text": "HttpUtility.HtmlEncode HttpUtility.UrlEncode System.Web" }, { "answer_id": 86492, "author": "Billy Jo", ...
2008/09/17
[ "https://Stackoverflow.com/questions/86477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1414/" ]
86,491
<p>ASP.NET 2.0 provides the <code>ClientScript.RegisterClientScriptBlock()</code> method for registering JavaScript in an ASP.NET Page.</p> <p>The issue I'm having is passing the script when it's located in another directory. Specifically, the following syntax does not work:</p> <pre><code>ClientScript.RegisterClien...
[ { "answer_id": 86496, "author": "Mitchel Sellers", "author_id": 13279, "author_profile": "https://Stackoverflow.com/users/13279", "pm_score": -1, "selected": false, "text": "<script type='text/javascript' src='yourpathhere'></script>\n" }, { "answer_id": 86523, "author": "Nic...
2008/09/17
[ "https://Stackoverflow.com/questions/86491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16587/" ]
86,513
<p>The eval function is a powerful and easy way to dynamically generate code, so what are the caveats?</p>
[ { "answer_id": 86530, "author": "Brian", "author_id": 15901, "author_profile": "https://Stackoverflow.com/users/15901", "pm_score": 4, "selected": false, "text": "goto" }, { "answer_id": 87099, "author": "MarkR", "author_id": 13724, "author_profile": "https://Stackove...
2008/09/17
[ "https://Stackoverflow.com/questions/86513", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5471/" ]
86,515
<p>I'm using CVS on Windows (with the WinCVS front end), and would like to add details of the last check in to the email from our automated build process, whenever a build fails, in order to make it easier to fix.</p> <p>I need to know the files that have changed, the user that changed them, and the comment.</p> <p>I...
[ { "answer_id": 86605, "author": "Rob Wells", "author_id": 2974, "author_profile": "https://Stackoverflow.com/users/2974", "pm_score": 2, "selected": true, "text": "cvs history -c -a -D \"7 days ago\" |\n gawk '{ print \"$1 == \\\"\" $6 \"\\\" && $2 == \\\"\" $8 \"/\" $7 \"\\\" { print...
2008/09/17
[ "https://Stackoverflow.com/questions/86515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1078/" ]
86,526
<p>I have an Ant script that performs a copy operation using the <a href="http://ant.apache.org/manual/Tasks/copy.html" rel="noreferrer">'copy' task</a>. It was written for Windows, and has a hardcoded C:\ path as the 'todir' argument. I see the 'exec' task has an OS argument, is there a similar way to branch a copy ba...
[ { "answer_id": 86593, "author": "sblundy", "author_id": 4893, "author_profile": "https://Stackoverflow.com/users/4893", "pm_score": 1, "selected": false, "text": "build.properties" }, { "answer_id": 86597, "author": "jsight", "author_id": 1432, "author_profile": "http...
2008/09/17
[ "https://Stackoverflow.com/questions/86526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/99021/" ]
86,531
<p>Trying to keep all the presentation stuff in the xhtml on this project and I need to format some values in a selectItem tag have a BigDecimal value and need to make it look like currency. Is there anyway to apply a <code>&lt;f:convertNumber pattern="$#,##0.00"/&gt;</code> Inside a <code>&lt;f:selectItem&gt;</code> t...
[ { "answer_id": 88805, "author": "William", "author_id": 9193, "author_profile": "https://Stackoverflow.com/users/9193", "pm_score": 3, "selected": true, "text": "itemLabel ValueExpression <f:selectItem>" }, { "answer_id": 88866, "author": "Andreas Petersson", "author_id":...
2008/09/17
[ "https://Stackoverflow.com/questions/86531", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9193/" ]
86,534
<p>I have a .csv file that is frequently updated (about 20 to 30 times per minute). I want to insert the newly added lines to a database as soon as they are written to the file.</p> <p>The <a href="http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx" rel="nofollow noreferrer">FileSystemWatcher</a>...
[ { "answer_id": 86887, "author": "RichS", "author_id": 6247, "author_profile": "https://Stackoverflow.com/users/6247", "pm_score": 3, "selected": true, "text": " public void File_Changed( object source, FileSystemEventArgs e )\n {\n lock ( this )\n {\n if ( !...
2008/09/17
[ "https://Stackoverflow.com/questions/86534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4714/" ]
86,545
<p>I've seen a few fixes for allowing PNG images to have transparency in Internet Explorer 6, but I've yet to find one that also allows you to set the background position in CSS. If you use sprites, it's a deal-breaker. I've resorted to using GIF's (which are not as high quality), not using transparent images at all, o...
[ { "answer_id": 86976, "author": "Ryan Grove", "author_id": 14985, "author_profile": "https://Stackoverflow.com/users/14985", "pm_score": 1, "selected": false, "text": "clip" }, { "answer_id": 479899, "author": "Kornel", "author_id": 27009, "author_profile": "https://S...
2008/09/17
[ "https://Stackoverflow.com/questions/86545", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13281/" ]
86,550
<p>Subversion has a superb client on Windows (Tortoise, of course). Everything I've tried on Linux just - well - sucks in comparison....</p>
[ { "answer_id": 86586, "author": "HappySmileMan", "author_id": 14073, "author_profile": "https://Stackoverflow.com/users/14073", "pm_score": 5, "selected": false, "text": "svn svn co svn://site-goes-here.org/trunk add remove move commit copy update svn help" }, { "answer_id": 8695...
2008/09/17
[ "https://Stackoverflow.com/questions/86550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
86,558
<p>What do you think is the best way to create SEO friendly URLs (dynamically) in Rails?</p>
[ { "answer_id": 86589, "author": "John Topley", "author_id": 1450, "author_profile": "https://Stackoverflow.com/users/1450", "pm_score": 4, "selected": true, "text": "to_param" }, { "answer_id": 89552, "author": "Patrick McKenzie", "author_id": 15046, "author_profile":...
2008/09/17
[ "https://Stackoverflow.com/questions/86558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15846/" ]
86,561
<p>Is there any difference to the following code:</p> <pre><code>class Foo { inline int SomeFunc() { return 42; } int AnotherFunc() { return 42; } }; </code></pre> <p>Will both functions gets inlined? Does inline actually make any difference? Are there any rules on when you should or shouldn't inline code? I o...
[ { "answer_id": 86581, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 5, "selected": false, "text": "inline inline" }, { "answer_id": 87602, "author": "unwieldy", "author_id": 14963, "author_profile": "h...
2008/09/17
[ "https://Stackoverflow.com/questions/86561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9236/" ]
86,563
<p>I'm creating a custom drop down list with AJAX dropdownextender. Inside my drop panel I have linkbuttons for my options.</p> <pre><code>&lt;asp:Label ID="ddl_Remit" runat="server" Text="Select remit address." Style="display: block; width: 300px; padding:2px; padding-right: 50px; font-family: Tahoma; font-size:...
[ { "answer_id": 87045, "author": "pinkeerach", "author_id": 16104, "author_profile": "https://Stackoverflow.com/users/16104", "pm_score": 0, "selected": false, "text": "lb.Attributes.Add(\"onclick\", \"setDDL('\" + lb.Text + \"');\");\n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86563", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1491425/" ]
86,570
<p>I'm thinking about making a simple map control in WPF, and am thinking about the design of the basic map interface and am wondering if anyone has some good advice for this. </p> <p>What I'm thinking of is using a ScrollViewer (sans scroll bars) as my "view port" and then stacking everything up on top of a canvas. ...
[ { "answer_id": 58973320, "author": "abhijithkp", "author_id": 8498276, "author_profile": "https://Stackoverflow.com/users/8498276", "pm_score": 1, "selected": false, "text": "<Window x:Class=\"WPFTestApplication.InsertPushpin\"\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/pr...
2008/09/17
[ "https://Stackoverflow.com/questions/86570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4580/" ]
86,582
<p>Edit: From another question I provided an answer that has links to a lot of questions/answers about singletons: <a href="https://stackoverflow.com/questions/1008019/c-singleton-design-pattern/1008289#1008289">More info about singletons here:</a></p> <p>So I have read the thread <a href="https://stackoverflow.com...
[ { "answer_id": 86649, "author": "Eli Courtwright", "author_id": 1694, "author_profile": "https://Stackoverflow.com/users/1694", "pm_score": 4, "selected": false, "text": "import static" }, { "answer_id": 86681, "author": "artur02", "author_id": 13937, "author_profile"...
2008/09/17
[ "https://Stackoverflow.com/questions/86582", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14065/" ]
86,604
<p>I've run on a little problem today: I have a JS drop down menu and when I inserted a GoogleMap... the Menu is rendered behind the Google Map... Any ideas on how to chance the z Index of the Google Map?</p> <p>Thanks!</p>
[ { "answer_id": 94216, "author": "Jeremy Wadhams", "author_id": 8995, "author_profile": "https://Stackoverflow.com/users/8995", "pm_score": 4, "selected": true, "text": "<SELECT>" }, { "answer_id": 3846592, "author": "Bill Citrine", "author_id": 464701, "author_profile...
2008/09/17
[ "https://Stackoverflow.com/questions/86604", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1657/" ]
86,607
<p>I have two classes, and want to include a static instance of one class inside the other and access the static fields from the second class via the first. </p> <p>This is so I can have non-identical instances with the same name. </p> <pre><code>Class A { public static package1.Foo foo; } Class B { publ...
[ { "answer_id": 86625, "author": "Jason Cohen", "author_id": 4926, "author_profile": "https://Stackoverflow.com/users/4926", "pm_score": 3, "selected": false, "text": "Foo.bar\n A.foo.bar\n bar Foo bar Foo" }, { "answer_id": 86647, "author": "axk", "author_id": 578, "a...
2008/09/17
[ "https://Stackoverflow.com/questions/86607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12982/" ]
86,636
<p>Here is a problem I've struggled with ever since I first started learning object-oriented programming: how should one implement a logger in "proper" OOP code?</p> <p>By this, I mean an object that has a method that we want every other object in the code to be able to access; this method would output to console/file...
[ { "answer_id": 86702, "author": "Eric Schoonover", "author_id": 3957, "author_profile": "https://Stackoverflow.com/users/3957", "pm_score": 0, "selected": false, "text": "Logger" }, { "answer_id": 238759, "author": "EricSchaefer", "author_id": 8976, "author_profile": ...
2008/09/17
[ "https://Stackoverflow.com/questions/86636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16633/" ]
86,653
<p>I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted. </p> <p>Right now, I call <code>to_json</code> and my JSON is all on one line. At times this can be difficult to see if there is a problem in the JSON output stream.</p> <p>Is there way to configure to make my JSON "pretty" or nicely...
[ { "answer_id": 1823885, "author": "lambshaanxy", "author_id": 218340, "author_profile": "https://Stackoverflow.com/users/218340", "pm_score": 11, "selected": true, "text": "pretty_generate() require 'json'\nmy_object = { :array => [1, 2, 3, { :sample => \"hash\"} ], :foo => \"bar\" }\npu...
2008/09/17
[ "https://Stackoverflow.com/questions/86653", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10333/" ]
86,669
<p>Dijkstra's <a href="http://en.wikipedia.org/wiki/Shunting_yard_algorithm" rel="noreferrer" title="Wikipedia: Shunting Yard algorithm">Shunting Yard algorithm</a> is used to parse an infix notation and generate <a href="http://en.wikipedia.org/wiki/Reverse_Polish_notation" rel="noreferrer" title="Wikipedia: Reverse P...
[ { "answer_id": 87004, "author": "Paul Reiners", "author_id": 7648, "author_profile": "https://Stackoverflow.com/users/7648", "pm_score": 3, "selected": false, "text": "(defun rpn-to-inf (pre)\n (if (atom pre)\n pre\n (cond ((eq (car (last pre)) 'setf)\n (list (rpn-to-i...
2008/09/17
[ "https://Stackoverflow.com/questions/86669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2077/" ]
86,685
<p>I am having a really hard time attempting to debug LINQ to SQL and submitting changes.</p> <p>I have been using <a href="http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx" rel="noreferrer">http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx</a>, whic...
[ { "answer_id": 90007, "author": "sirrocco", "author_id": 5246, "author_profile": "https://Stackoverflow.com/users/5246", "pm_score": 1, "selected": false, "text": "JobMaster newJobToCreate = new JobMaster();\nnewJobToCreate.JobID = 9999\nnewJobToCreate.ProjectID = \"New Project\";\nthis....
2008/09/17
[ "https://Stackoverflow.com/questions/86685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7561/" ]
86,696
<p>Our ASP.NET application must be able to export web content to PDF and Word documents.</p> <p>In the past, we've used <a href="http://www.aspose.com/" rel="noreferrer">Aspose's</a> libraries to accomplish this, but we've found them to be a little too low-level in terms of document construction. e.g. We've found ours...
[ { "answer_id": 92048, "author": "martin", "author_id": 8421, "author_profile": "https://Stackoverflow.com/users/8421", "pm_score": 3, "selected": false, "text": "List overview = new List(false, 10); //false =unordered, true= numbered\noverview.Add(new ListItem(\"This is an item\"));\nove...
2008/09/17
[ "https://Stackoverflow.com/questions/86696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7194/" ]
86,710
<p>I am trying to get a DataGrid under CE 5.0 / .NET CF 2.0 that a user can edit. The document at <a href="http://msdn.microsoft.com/en-us/library/ms838165.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms838165.aspx</a> indicates that some environments do not support editing - </p> <blockquo...
[ { "answer_id": 23513709, "author": "Enor", "author_id": 3611488, "author_profile": "https://Stackoverflow.com/users/3611488", "pm_score": 1, "selected": false, "text": "DataTable dataTable = (DataTable)grdOrders.DataSource;\nDataView dataView = dataTable.DefaultView;\n DataView dataView ...
2008/09/17
[ "https://Stackoverflow.com/questions/86710", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1743/" ]
86,726
<p>I have the following type :</p> <pre><code>// incomplete class definition public class Person { private string name; public string Name { get { return this.name; } } } </code></pre> <p>I want this type to be <strong>created</strong> and <strong>updated</strong> with some sort of dedicated ...
[ { "answer_id": 86786, "author": "fryguybob", "author_id": 4592, "author_profile": "https://Stackoverflow.com/users/4592", "pm_score": 1, "selected": false, "text": "IPerson public class Creator\n{\n private class Person : IPerson\n {\n public string Name { get; set; }\n }...
2008/09/17
[ "https://Stackoverflow.com/questions/86726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4687/" ]
86,763
<p>I'm trying to create a build script for my current project, which includes an Excel Add-in. The Add-in contains a VBProject with a file modGlobal with a variable version_Number. This number needs to be changed for every build. The exact steps:</p> <ol> <li>Open XLA document with Excel.</li> <li>Switch to VBEdit...
[ { "answer_id": 119465, "author": "Joe", "author_id": 13087, "author_profile": "https://Stackoverflow.com/users/13087", "pm_score": 3, "selected": true, "text": "'\n' ConvertToXla.vbs\n'\n' VBScript to convert an Excel spreadsheet (.xls) into an Excel Add-In (.xla)\n'\n' The script ...
2008/09/17
[ "https://Stackoverflow.com/questions/86763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1390/" ]
86,766
<p>Often I find myself interacting with files in some way but after writing the code I'm always uncertain how robust it actually is. The problem is that I'm not entirely sure how file related operations can fail and, therefore, the best way to handle exceptions.</p> <p>The simple solution would seem to be just to catch...
[ { "answer_id": 86855, "author": "Scott Dorman", "author_id": 1559, "author_profile": "https://Stackoverflow.com/users/1559", "pm_score": 3, "selected": false, "text": "using (StreamReader reader = file.OpenText())\n{\n List<string> text = new List<string>();\n while (!reader.EndOfStr...
2008/09/17
[ "https://Stackoverflow.com/questions/86766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4055/" ]
86,780
<p>Say I have two strings,</p> <pre><code>String s1 = "AbBaCca"; String s2 = "bac"; </code></pre> <p>I want to perform a check returning that <code>s2</code> is contained within <code>s1</code>. I can do this with:</p> <pre><code>return s1.contains(s2); </code></pre> <p>I am pretty sure that <code>contains()</code>...
[ { "answer_id": 86832, "author": "Dave L.", "author_id": 3093, "author_profile": "https://Stackoverflow.com/users/3093", "pm_score": 9, "selected": true, "text": "Pattern.compile(Pattern.quote(wantedStr), Pattern.CASE_INSENSITIVE).matcher(source).find();\n" }, { "answer_id": 90780...
2008/09/17
[ "https://Stackoverflow.com/questions/86780", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2628/" ]
86,790
<p>I'm designing a web site navigation hierarchy. It's a tree of nodes. Nodes represent web pages.</p> <p>Some nodes on the tree are special. I need a name for them.</p> <p>There are multiple such nodes. Each is the "root" of a sub-tree with pages that have a distinct logo, style sheet, or layout. Think of differen...
[ { "answer_id": 86851, "author": "Daren Thomas", "author_id": 2260, "author_profile": "https://Stackoverflow.com/users/2260", "pm_score": 1, "selected": false, "text": "AreaNode" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/83/" ]
86,793
<p>If a user select all items in a .NET 2.0 ListView, the ListView will fire a <strong>SelectedIndexChanged</strong> event for every item, rather than firing an event to indicate that the <em>selection</em> has changed.</p> <p>If the user then clicks to select just one item in the list, the ListView will fire a <stron...
[ { "answer_id": 87204, "author": "Ian Boyd", "author_id": 12597, "author_profile": "https://Stackoverflow.com/users/12597", "pm_score": 2, "selected": false, "text": "Timer changeDelayTimer = null;\n\nprivate void lvResults_SelectedIndexChanged(object sender, EventArgs e)\n{\n if (...
2008/09/17
[ "https://Stackoverflow.com/questions/86793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12597/" ]
86,797
<p>I've got two controls in my Interface Builder file, and each of those controls I've created a separate delegate class for in code (Control1Delegate and Control2Delegate). I created two "Objects" in interface builder, made them of that type, and connected the controls to them as delegates. The delegates work just fin...
[ { "answer_id": 88063, "author": "Barry Wark", "author_id": 2140, "author_profile": "https://Stackoverflow.com/users/2140", "pm_score": 4, "selected": true, "text": "IBOutlet id outletToOtherDelegate; awakeFromNib awakeFromNib" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15813/" ]
86,800
<p>I've recently embarked upon the <em>grand voyage</em> of Wordpress theming and I've been reading through the Wordpress documentation for how to write a theme. One thing I came across <a href="http://codex.wordpress.org/Theme_Development" rel="nofollow noreferrer">here</a> was that the <code>style.css</code> file mu...
[ { "answer_id": 86841, "author": "Martin", "author_id": 15840, "author_profile": "https://Stackoverflow.com/users/15840", "pm_score": 1, "selected": false, "text": "/*\nTHEME NAME: Parallax\nTHEME URI: http://parallaxdenigrate.net\nVERSION: .1\nAUTHOR: Martin Jacobsen\nAUTHOR URI: http://...
2008/09/17
[ "https://Stackoverflow.com/questions/86800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16562/" ]
86,824
<p>I'm getting a <code>ConnectException: Connection timed out</code> with some frequency from my code. The URL I am trying to hit is up. The same code works for some users, but not others. It seems like once one user starts to get this exception they continue to get the exception.</p> <p>Here is the stack trace:</p...
[ { "answer_id": 87352, "author": "Powerlord", "author_id": 15880, "author_profile": "https://Stackoverflow.com/users/15880", "pm_score": 3, "selected": false, "text": "urlConnection.setConnectTimeout(1000);\n" }, { "answer_id": 327614, "author": "Community", "author_id": -...
2008/09/17
[ "https://Stackoverflow.com/questions/86824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16677/" ]
86,849
<p>If I have the following:</p> <pre><code>{"hdrs": ["Make","Model","Year"], "data" : [ {"Make":"Honda","Model":"Accord","Year":"2008"} {"Make":"Toyota","Model":"Corolla","Year":"2008"} {"Make":"Honda","Model":"Pilot","Year":"2008"}] } </code></pre> <p>And I have a "hdrs" name (i.e. "Make"), how can I refe...
[ { "answer_id": 86903, "author": "Stephen Wrighton", "author_id": 7516, "author_profile": "https://Stackoverflow.com/users/7516", "pm_score": 0, "selected": false, "text": "var x = data[0].Make;\nvar z = data[0].Model;\nvar y = data[0].Year;\n" }, { "answer_id": 86909, "author...
2008/09/17
[ "https://Stackoverflow.com/questions/86849", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2755/" ]
86,878
<p>I am having problem that even though I specify the level to ERROR in the root tag, the specified appender logs all levels (debug, info, warn) to the file regardless the settings. I am not a Log4j expert so any help is appreciated.</p> <p>I have checked the classpath for log4j.properties (there is none) except the lo...
[ { "answer_id": 87151, "author": "matt b", "author_id": 4249, "author_profile": "https://Stackoverflow.com/users/4249", "pm_score": 3, "selected": false, "text": "-Dlog4j.debug" }, { "answer_id": 87644, "author": "Michael", "author_id": 13379, "author_profile": "https:...
2008/09/17
[ "https://Stackoverflow.com/questions/86878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15045/" ]
86,901
<p>I would like a panel in GWT to fill the page without actually having to set the size. Is there a way to do this? Currently I have the following:</p> <pre><code>public class Main implements EntryPoint { public void onModuleLoad() { HorizontalSplitPanel split = new HorizontalSplitPanel(); /...
[ { "answer_id": 97037, "author": "Drejc", "author_id": 6482, "author_profile": "https://Stackoverflow.com/users/6482", "pm_score": 0, "selected": false, "text": "split.setWidth(\"100%\");\nsplit.setHeight(\"100%\");\n" }, { "answer_id": 958857, "author": "Ben Bederson", "a...
2008/09/17
[ "https://Stackoverflow.com/questions/86901", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10333/" ]
86,905
<p>In <a href="https://stackoverflow.com/questions/48669/are-there-any-tools-out-there-to-compare-the-structure-of-2-web-pages">this post</a> I asked if there were any tools that compare the structure (not actual content) of 2 HTML pages. I ask because I receive HTML templates from our designers, and frequently miss mi...
[ { "answer_id": 87022, "author": "Martin08", "author_id": 8203, "author_profile": "https://Stackoverflow.com/users/8203", "pm_score": 0, "selected": false, "text": "?<=^|>)[^><]+?(?=<|$ \"\"" }, { "answer_id": 87129, "author": "raldi", "author_id": 7598, "author_profil...
2008/09/17
[ "https://Stackoverflow.com/questions/86905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2757/" ]
86,907
<p>I'm using exim on both the sending and relay hosts, the sending host seems to offer:</p> <pre><code>HELO foo_bar.example.com </code></pre> <p>Response: </p> <pre><code>501 Syntactically invalid HELO argument(s) </code></pre>
[ { "answer_id": 89160, "author": "Jörg W Mittag", "author_id": 2988, "author_profile": "https://Stackoverflow.com/users/2988", "pm_score": 0, "selected": false, "text": "HELO" }, { "answer_id": 8723533, "author": "Mazatec", "author_id": 220519, "author_profile": "https...
2008/09/17
[ "https://Stackoverflow.com/questions/86907", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12850/" ]
86,911
<p>I am looking for a tool that can serialize and/or transform SQL Result Sets into XML. Getting dumbed down XML generation from SQL result sets is simple and trivial, but that's not what I need.</p> <p>The solution has to be database neutral, and accepts only regular SQL query results (no db xml support used). A part...
[ { "answer_id": 86978, "author": "Daniel Spiewak", "author_id": 9815, "author_profile": "https://Stackoverflow.com/users/9815", "pm_score": 2, "selected": false, "text": "#!/usr/bin/env jruby\n\nimport java.sql.DriverManager\n\n# TODO some magic to load the driver\nconn = DriverManager.g...
2008/09/17
[ "https://Stackoverflow.com/questions/86911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10034/" ]
86,919
<p>I have a simple xml document that looks like the following snippet. I need to write a XSLT transform that basically 'unpivots' this document based on some of the attributes.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;root xmlns:z="foo"&gt; &lt;z:row A="1" X="2" Y="n1" Z="500"/&gt; &lt;...
[ { "answer_id": 87086, "author": "Darrel Miller", "author_id": 6819, "author_profile": "https://Stackoverflow.com/users/6819", "pm_score": 0, "selected": false, "text": "<xsl:template match=\"z:row\">\n <xsl:element name=\"z:row\">\n <xsl:attribute name=\"A\">\n <xsl:...
2008/09/17
[ "https://Stackoverflow.com/questions/86919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4088/" ]
86,947
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/73713/how-do-i-check-for-nulls-in-an-operator-overload-without-infinite-recursion">How do I check for nulls in an &#39;==&#39; operator overload without infinite recursion?</a> </p> </blockquote> <p>When I over...
[ { "answer_id": 86986, "author": "Timothy Carter", "author_id": 4660, "author_profile": "https://Stackoverflow.com/users/4660", "pm_score": 0, "selected": false, "text": "if ((object)uq1 == null) \n return ((object)uq2 == null)\nelse if ((object)uq2 == null)\n return false;\nelse\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/86947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5056/" ]
86,949
<p>Unix.....>>netstat -al | grep 8787 (will see packets on port 8787)</p>
[ { "answer_id": 177920, "author": "Alnitak", "author_id": 6782, "author_profile": "https://Stackoverflow.com/users/6782", "pm_score": 0, "selected": false, "text": "-s 0 -X" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/86949", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13143/" ]
86,963
<p>More than once I've lost work by accidentally killing a temporary buffer in Emacs. Can I set up Emacs to give me a warning when I kill a buffer not associated with a file?</p>
[ { "answer_id": 87080, "author": "EfForEffort", "author_id": 14113, "author_profile": "https://Stackoverflow.com/users/14113", "pm_score": 5, "selected": true, "text": "kill-buffer-query-functions buffer-file-name (defun maybe-kill-buffer ()\n (if (and (not buffer-file-name)\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/86963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/207/" ]
86,987
<p>I'm trying this with Oracle SQL Developer and am on an Intel MacBook Pro. But I believe this same error happens with other clients. I can ping the server hosting the database fine so it appears not to be an actual network problem.</p> <p>Also, I believe I'm filling in the connection info correctly. It's somethin...
[ { "answer_id": 124193, "author": "dreeves", "author_id": 4234, "author_profile": "https://Stackoverflow.com/users/4234", "pm_score": 1, "selected": true, "text": "Host=blessedhost\nHostName=blessedhost.whatever.com\nUser=alice\nCompression=yes\nProtocol=2\nLocalForward=2202 oraclemachine...
2008/09/17
[ "https://Stackoverflow.com/questions/86987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4234/" ]
86,992
<p>I have an application with multiple &quot;pick list&quot; entities, such as used to populate choices of dropdown selection boxes. These entities need to be stored in the database. How do one persist these entities in the database?</p> <p>Should I create a new table for each pick list? Is there a better solution?</p...
[ { "answer_id": 87014, "author": "neouser99", "author_id": 10669, "author_profile": "https://Stackoverflow.com/users/10669", "pm_score": 0, "selected": false, "text": "select optionDesc from Options where 'MyList' = optionList\n" }, { "answer_id": 87051, "author": "Blorgbeard"...
2008/09/17
[ "https://Stackoverflow.com/questions/86992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8852/" ]
87,007
<p>We've got some in-house applications built in MFC, with OpenGL drawing routines. They all use the same code to draw on the screen and either print the screen or save it to a JPEG file. Everything's been working fine in Windows XP, and I need to find a way to make them work on Vista.</p> <p>In three of our applica...
[ { "answer_id": 95881, "author": "Roel", "author_id": 11449, "author_profile": "https://Stackoverflow.com/users/11449", "pm_score": 1, "selected": false, "text": "mainfrm = static_cast<CMainFrame*>(::AfxGetMainWnd()); - mainfrm\n\n- mainfrm->MDIGetActive()\n\n- mainfrm->MDIGetActive()->Ge...
2008/09/17
[ "https://Stackoverflow.com/questions/87007", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14148/" ]
87,010
<p>From browsing on this site and elsewhere, I've learned that serving websites as XHTML at present <a href="http://hixie.ch/advocacy/xhtml" rel="nofollow noreferrer">is considered harmful</a>.</p> <p>Delivering XHTML and serving it as <code>application/xhtml+xml</code> isn't supported by the majority of people browsi...
[ { "answer_id": 194820, "author": "Kornel", "author_id": 27009, "author_profile": "https://Stackoverflow.com/users/27009", "pm_score": 2, "selected": true, "text": "<object> <embed> <img> background-image data: data-*" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/87010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15479/" ]
87,021
<p>Given a moderately complex XML structure (dozens of elements, hundreds of attributes) with no XSD and a desire to create an object model, what's an elegant way to avoid writing boilerplate from_xml() and to_xml() methods? </p> <p>For instance, given:</p> <pre><code>&lt;Foo bar="1"&gt;&lt;Bat baz="blah"/&gt;&lt;/Fo...
[ { "answer_id": 87079, "author": "Jim Deville", "author_id": 1591, "author_profile": "https://Stackoverflow.com/users/1591", "pm_score": 0, "selected": false, "text": "class Bar\n def initialize(el)\n self.from_xml(XPath.first(el, \"./bat\"))\n end\nend\n" }, { "answer_id": 9...
2008/09/17
[ "https://Stackoverflow.com/questions/87021", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10116/" ]
87,030
<p>Where can I download the JSSE and JCE source code for the latest release of Java? The source build available at <a href="https://jdk6.dev.java.net/" rel="noreferrer">https://jdk6.dev.java.net/</a> does not include the javax.crypto (JCE) packages nor the com.sun.net.ssl.internal (JSSE) packages.</p> <p>Not being ab...
[ { "answer_id": 87106, "author": "PW.", "author_id": 927, "author_profile": "https://Stackoverflow.com/users/927", "pm_score": 4, "selected": false, "text": "src/share/classes/javax/net\nsrc/share/classes/com/sun/net/ssl\nsrc/share/classes/sun/security/ssl\nsrc/share/classes/sun/net/www/p...
2008/09/17
[ "https://Stackoverflow.com/questions/87030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
87,096
<p>I really hate using STL containers because they make the debug version of my code run really slowly. What do other people use instead of STL that has reasonable performance for debug builds?</p> <p>I'm a game programmer and this has been a problem on many of the projects I've worked on. It's pretty hard to get 60 f...
[ { "answer_id": 87265, "author": "rhinovirus", "author_id": 16715, "author_profile": "https://Stackoverflow.com/users/16715", "pm_score": 3, "selected": false, "text": "#define _SECURE_SCL 0\n#define _HAS_ITERATOR_DEBUGGING 0\n" }, { "answer_id": 87400, "author": "Jeff", "...
2008/09/17
[ "https://Stackoverflow.com/questions/87096", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16679/" ]
87,101
<p>What is a good way to select all or select no items in a listview without using:</p> <pre><code>foreach (ListViewItem item in listView1.Items) { item.Selected = true; } </code></pre> <p>or</p> <pre><code>foreach (ListViewItem item in listView1.Items) { item.Selected = false; } </code></pre> <p>I know the under...
[ { "answer_id": 87265, "author": "rhinovirus", "author_id": 16715, "author_profile": "https://Stackoverflow.com/users/16715", "pm_score": 3, "selected": false, "text": "#define _SECURE_SCL 0\n#define _HAS_ITERATOR_DEBUGGING 0\n" }, { "answer_id": 87400, "author": "Jeff", "...
2008/09/17
[ "https://Stackoverflow.com/questions/87101", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12597/" ]
87,107
<p>I've setup a new .net 2.0 website on IIS 7 under Win Server 2k8 and when browsing to a page it gives me a 404.17 error, claiming that the file (default.aspx in this case) appears to be a script but is being handled by the static file handler. It SOUNDS like the module mappings for ASP.Net got messed up, but they lo...
[ { "answer_id": 87412, "author": "Jonathan Rupp", "author_id": 12502, "author_profile": "https://Stackoverflow.com/users/12502", "pm_score": 6, "selected": true, "text": "%windir%\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_regiis.exe -i \n" }, { "answer_id": 3461991, "autho...
2008/09/17
[ "https://Stackoverflow.com/questions/87107", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16729/" ]
87,134
<p>I'm making a WinForms app with a ListView set to detail so that several columns can be displayed.</p> <p>I'd like for this list to scroll when the mouse is over the control and the user uses the mouse scroll wheel. Right now, scrolling only happens when the ListView has focus.</p> <p>How can I make the ListView sc...
[ { "answer_id": 25816903, "author": "Chris W", "author_id": 890258, "author_profile": "https://Stackoverflow.com/users/890258", "pm_score": 3, "selected": false, "text": "public class FormContainingListView : Form, IMessageFilter\n{\n public FormContainingListView()\n {\n // ...
2008/09/17
[ "https://Stackoverflow.com/questions/87134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6151/" ]
87,177
<p>I had data in XML that had line feeds, spaces, and tabs that I wanted to preserve in the output HTML (so I couldn't use &lt;p&gt;) but I also wanted the lines to wrap when the side of the screen was reached (so I couldn't use &lt;pre&gt;).</p>
[ { "answer_id": 92703, "author": "JeniT", "author_id": 6739, "author_profile": "https://Stackoverflow.com/users/6739", "pm_score": 1, "selected": false, "text": "<br> <xsl:template name=\"replace-spaces\">\n <xsl:param name=\"text\" />\n <xsl:choose>\n <xsl:when test=\"contains($text...
2008/09/17
[ "https://Stackoverflow.com/questions/87177", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6770/" ]
87,184
<p>There seems to be no good way to localize a WPF application. MSDN seems to think that littering my XAML with <code>x:Uid</code>'s, generating CSV files, and then generating new assemblies (using their sample code!) is the answer. Worse, this process doesn't address how to localize images, binary blobs (say, PDF fi...
[ { "answer_id": 87478, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 4, "selected": true, "text": "http://blog.taggersoft.com/2008/07/wpf-application-localization-pattern_29.html" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/87184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16742/" ]
87,190
<p>Does anyone know of a .NET library that will process HTML e-mails and can be used to trim out the reply-chain? It needs to be able to accept HTML -or- text mails and then trim out everything but the actual response, removing the trail of messages that are not original content. I don't expect it to be able to handl...
[ { "answer_id": 87478, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 4, "selected": true, "text": "http://blog.taggersoft.com/2008/07/wpf-application-localization-pattern_29.html" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/87190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7104/" ]
87,192
<p>After reading <a href="http://www.colder.ch/news/08-24-2007/28/late-static-bindings-expl.html" rel="noreferrer">this description</a> of late static binding (LSB) I see pretty clearly what is going on. Now, under which sorts of circumstances might that be most useful or needed?</p>
[ { "answer_id": 87457, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "class User extends ActiveRecord User::find(1) ActiveRecord::find() find() User find() ActiveRecord self ActiveRecord" }, { ...
2008/09/17
[ "https://Stackoverflow.com/questions/87192", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11252/" ]
87,200
<p>I have finally started messing around with creating some apps that work with RESTful web interfaces, however, I am concerned that I am hammering their servers every time I hit F5 to run a series of tests..</p> <p>Basically, I need to get a series of web responses so I can test I am parsing the varying responses corr...
[ { "answer_id": 707607, "author": "dr. evil", "author_id": 40322, "author_profile": "https://Stackoverflow.com/users/40322", "pm_score": 0, "selected": false, "text": "using System;\nusing System.IO;\nusing System.Net;\nusing NUnit.Framework;\nusing TypeMock;\n\nnamespace MockHttpWebReque...
2008/09/17
[ "https://Stackoverflow.com/questions/87200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/832/" ]
87,220
<p>How does gcc implement stack unrolling for C++ exceptions on linux? In particular, how does it know which destructors to call when unrolling a frame (i.e., what kind of information is stored and where is it stored)?</p>
[ { "answer_id": 4506050, "author": "Electron", "author_id": 550759, "author_profile": "https://Stackoverflow.com/users/550759", "pm_score": 5, "selected": true, "text": ".eh_frame .gcc_except_table .eh_frame .debug_frame -g .gcc_except_table" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/87220", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16480/" ]
87,221
<p><a href="https://stackoverflow.com/questions/2262/aspnet-url-rewriting">So this post</a> talked about how to actually implement url rewriting in an ASP.NET application to get "friendly urls". That works perfect and it is great for sending a user to a specific page, but does anyone know of a good solution for creati...
[ { "answer_id": 87263, "author": "John Sheehan", "author_id": 1786, "author_profile": "https://Stackoverflow.com/users/1786", "pm_score": 0, "selected": false, "text": "public class UrlBuilder\n{\n public static string BuildProductUrl(int id)\n {\n if (true) // replace with l...
2008/09/17
[ "https://Stackoverflow.com/questions/87221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13279/" ]
87,222
<p>How do i represent CRLF using Hex in C#?</p>
[ { "answer_id": 87312, "author": "James Curran", "author_id": 12725, "author_profile": "https://Stackoverflow.com/users/12725", "pm_score": 7, "selected": true, "text": " \"\\x0d\\x0a\"\n" }, { "answer_id": 27848240, "author": "Anonymous", "author_id": 4434369, "author...
2008/09/17
[ "https://Stackoverflow.com/questions/87222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
87,224
<p>It is obviosly some Perl extensions. Perl version is 5.8.8.</p> <p>I found Error.pm, but now I'm looking for Core.pm. </p> <p>While we're at it: how do you guys search for those modules. I tried Google, but that didn't help much. Thanks.</p> <hr> <p>And finally, after I built everything, running: </p> <pre><cod...
[ { "answer_id": 87311, "author": "Michael Carman", "author_id": 8233, "author_profile": "https://Stackoverflow.com/users/8233", "pm_score": 2, "selected": true, "text": "perl Makefile.pl\nmake\nmake test\nmake install\n" }, { "answer_id": 87768, "author": "cjm", "author_id...
2008/09/17
[ "https://Stackoverflow.com/questions/87224", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14690/" ]
87,262
<p>I need to find the frequency of a sample, stored (in vb) as an array of byte. Sample is a sine wave, known frequency, so I can check), but the numbers are a bit odd, and my maths-foo is weak. Full range of values 0-255. 99% of numbers are in range 235 to 245, but there are some outliers down to 0 and 1, and up to 2...
[ { "answer_id": 87613, "author": "AShelly", "author_id": 10396, "author_profile": "https://Stackoverflow.com/users/10396", "pm_score": 4, "selected": true, "text": "for (i=lower=0;i< N*(X/100); lower++)\n i+=count[lower];\n//repeat in other direction for upper\n A[i] = 255*(A[i]-lower)/(...
2008/09/17
[ "https://Stackoverflow.com/questions/87262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2135219/" ]
87,290
<p>Although I don't have an iPhone to test this out, my colleague told me that embedded media files such as the one in the snippet below, only works when the iphone is connected over the WLAN connection or 3G, and does not work when connecting via GPRS.</p> <pre><code>&lt;html&gt;&lt;body&gt; &lt;object data="http://j...
[ { "answer_id": 596046, "author": "Diogenes", "author_id": 69528, "author_profile": "https://Stackoverflow.com/users/69528", "pm_score": 1, "selected": false, "text": "<div class=\"music\">\n <p>Pachelbel's Canon</p>\n <!--[if !IE]>-->\n <object id=\"Cannon\" type=\"audio/mpeg\" data=\...
2008/09/17
[ "https://Stackoverflow.com/questions/87290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6225/" ]
87,299
<p>I want to ditch my current editor. I feel I need something else. That do not expose my hands to the risk of RSI. I need to see why I should change editor. And it would be nice to believe, that I will be coding when I'm 80 years old.</p> <p>All the big guys out there are using Vim. The only Emacs guy I know are RMS....
[ { "answer_id": 87321, "author": "Max Cantor", "author_id": 16034, "author_profile": "https://Stackoverflow.com/users/16034", "pm_score": 4, "selected": false, "text": "*\n" }, { "answer_id": 87341, "author": "Linulin", "author_id": 12481, "author_profile": "https://St...
2008/09/17
[ "https://Stackoverflow.com/questions/87299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15054/" ]