qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
26,020
<p>I've done this before in C++ by including sqlite.h but is there a similarly easy way in C#?</p>
[ { "answer_id": 26035, "author": "Espo", "author_id": 2257, "author_profile": "https://Stackoverflow.com/users/2257", "pm_score": 7, "selected": true, "text": "using (var connection = new SqliteConnection(\"Data Source=hello.db\"))\n{\n connection.Open();\n\n var command = connectio...
2008/08/25
[ "https://Stackoverflow.com/questions/26020", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2674/" ]
26,025
<p>I'm about to deploy a mediumsized site powered by Django. I have a dedicated Ubuntu Server. </p> <p>I'm really confused over which serversoftware to use. So i thought to myself: why not ask stackoverflow.</p> <p>What i'm looking for is:</p> <ul> <li>Easy to set up</li> <li>Fast and easy on resources</li> <li>Can ...
[ { "answer_id": 126698, "author": "Roman Odaisky", "author_id": 21055, "author_profile": "https://Stackoverflow.com/users/21055", "pm_score": 2, "selected": false, "text": "mod_wsgi SCRIPT_NAME error_page 404 = @django" }, { "answer_id": 353517, "author": "Oli", "author_id...
2008/08/25
[ "https://Stackoverflow.com/questions/26025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2639/" ]
26,094
<p>When doing calculations on very large numbers where integral data types such as double or int64 falls short, a separate class to handle such large numbers may be needed. </p> <p>Does anyone care to offer an efficient algorithm on how best to do this?</p>
[ { "answer_id": 26116, "author": "jjnguy", "author_id": 2598, "author_profile": "https://Stackoverflow.com/users/2598", "pm_score": 2, "selected": false, "text": "BigInteger BigDecimal integer" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26094", "https://Stackoverflow.com", "https://Stackoverflow.com/users/224/" ]
26,098
<p>I'm writing a C/C++ DLL and want to export certain functions which I've done before using a .def file like this</p> <pre><code>LIBRARY "MyLib" EXPORTS Foo Bar </code></pre> <p>with the code defined as this, for example:</p> <pre><code>int Foo(int a); void Bar(int foo); </code></pre> <p>However, what if I wan...
[ { "answer_id": 26121, "author": "Graeme Perrow", "author_id": 1821, "author_profile": "https://Stackoverflow.com/users/1821", "pm_score": 4, "selected": true, "text": "#define DllExport __declspec(dllexport)\n\nint DllExport Foo( int a ) {\n // implementation\n}\nint DllExport Foo( int...
2008/08/25
[ "https://Stackoverflow.com/questions/26098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/194/" ]
26,113
<p>I'm not talking about tools that let one view a page in combinations of operating systems and browsers like crossbrowsertesting.com but in creating or figuring out the actual CSS.</p>
[ { "answer_id": 26131, "author": "Ross", "author_id": 2025, "author_profile": "https://Stackoverflow.com/users/2025", "pm_score": 0, "selected": false, "text": "/* All browsers read: */\nhtml body {\n margin: 10px;\n}\n\n/* FF, IE7, Op etc. read: */\nhtml > body {\n margin: 0;\n}\n"...
2008/08/25
[ "https://Stackoverflow.com/questions/26113", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2702/" ]
26,123
<p>I want to use Powershell to write some utilities, leveraging our own .NET components to handle the actual work. This is in place of writing a small console app to tie the calls together. My question is where I would find a good source of documentation or tutorial material to help me fast track this?</p>
[ { "answer_id": 26135, "author": "Steven Murawski", "author_id": 1233, "author_profile": "https://Stackoverflow.com/users/1233", "pm_score": 5, "selected": true, "text": "[void][System.Reflection.Assembly]::LoadFrom(PathToYourAssembly)\n" }, { "answer_id": 40611548, "author": ...
2008/08/25
[ "https://Stackoverflow.com/questions/26123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1535/" ]
26,137
<p>I have a couple of questions regarding VBScript and ASP Classic:</p> <ol> <li><p>What is the preferred way to access an MS SQL Server database in VBScript/ASP?</p></li> <li><p>What are best practices in regards to separating model from view from controller?</p></li> <li><p>Any other things I should know about eithe...
[ { "answer_id": 26181, "author": "Michael Pryor", "author_id": 245, "author_profile": "https://Stackoverflow.com/users/245", "pm_score": 5, "selected": true, "text": "Dim db: Set db = Server.CreateObject(\"ADODB.Connection\")\ndb.Open \"yourconnectionstring -> see connectionstrings.com\"\...
2008/08/25
[ "https://Stackoverflow.com/questions/26137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2147/" ]
26,145
<p>I'm making a simple extra java app launcher for Eclipse 3.2 (JBuilder 2007-8) for internal use.</p> <p>So I looked up all the documentations related, including this one <a href="http://www.eclipse.org/articles/Article-Launch-Framework/launch.html" rel="nofollow noreferrer" title="The Launching Framework">The Launch...
[ { "answer_id": 40209, "author": "wbkang", "author_id": 2710, "author_profile": "https://Stackoverflow.com/users/2710", "pm_score": 3, "selected": true, "text": "contextualLaunch org.eclipse.debug.ui.launchShortcuts org.eclipse.ui.commands" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2710/" ]
26,151
<p>C++ 0x has template aliases (sometimes referred to as template typedefs). See <a href="http://en.wikipedia.org/wiki/C%2B%2B0x#Alias_templates" rel="noreferrer">here</a>. Current spec of C++ does not. </p> <p>What do you like to use as work around ? Container objects or Macros ? Do you feel its worth it ?</p>
[ { "answer_id": 26162, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 8, "selected": true, "text": "template <typename T>\nstruct my_string_map {\n typedef std::map<std::string, T> type;\n};\n\n// Invoke:\n\nmy_strin...
2008/08/25
[ "https://Stackoverflow.com/questions/26151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2759/" ]
26,158
<p>How does a stack overflow occur and what are the best ways to make sure it doesn't happen, or ways to prevent one, particularly on web servers, but other examples would be interesting as well?</p>
[ { "answer_id": 26169, "author": "Matt Dillard", "author_id": 863, "author_profile": "https://Stackoverflow.com/users/863", "pm_score": 3, "selected": false, "text": "char hugeArray[100000000];\n" }, { "answer_id": 16691034, "author": "the_mandrill", "author_id": 188414, ...
2008/08/25
[ "https://Stackoverflow.com/questions/26158", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1935/" ]
26,173
<p>I am looking for some JavaScript based component to be used as a course scheduler which would be a cross between Google Calendar and the login time. I do not know if the right term for this is <i>Course Scheduler</i> but I shall describe this in more detail here.</p> <p><b>Course Scheduler</b><br> The widget would ...
[ { "answer_id": 5494743, "author": "bobo", "author_id": 684997, "author_profile": "https://Stackoverflow.com/users/684997", "pm_score": 3, "selected": false, "text": "* Day/week/month view provided.\n* create/update/remove events by drag & drop.\n* Easy way to integrate with database.\n* ...
2008/08/25
[ "https://Stackoverflow.com/questions/26173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/370899/" ]
26,195
<p>I've always wanted to be able to get a reasonably elegant way of getting vimdiff to work with a CVS controlled file. I've found numerous (somewhat hacky) scripts around the internet (best example <a href="http://www.vim.org/tips/tip.php?tip_id=390" rel="noreferrer">here</a>) that basically check out the file you are...
[ { "answer_id": 26649, "author": "Peter Stuifzand", "author_id": 1633, "author_profile": "https://Stackoverflow.com/users/1633", "pm_score": 0, "selected": false, "text": "cvs" }, { "answer_id": 28889, "author": "sanmiguel", "author_id": 24, "author_profile": "https://...
2008/08/25
[ "https://Stackoverflow.com/questions/26195", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24/" ]
26,196
<p>I am looking for a very fast way to filter down a collection in C#. I am currently using generic <code>List&lt;object&gt;</code> collections, but am open to using other structures if they perform better.</p> <p>Currently, I am just creating a new <code>List&lt;object&gt;</code> and looping thru the original list. ...
[ { "answer_id": 26203, "author": "Jorge Córdoba", "author_id": 2695, "author_profile": "https://Stackoverflow.com/users/2695", "pm_score": 9, "selected": true, "text": "List<int> myList = GetListOfIntsFromSomewhere();\n\n// This will filter ints that are not > 7 out of the list; Where ret...
2008/08/25
[ "https://Stackoverflow.com/questions/26196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2470/" ]
26,230
<p>Over the last few months/years, I have shared a folder or two with numerous people on my domain. How do I easily revoke those shares to keep access to my system nice and tidy?</p>
[ { "answer_id": 26235, "author": "Michael Haren", "author_id": 29, "author_profile": "https://Stackoverflow.com/users/29", "pm_score": 1, "selected": false, "text": "Administrative Tools > Computer Management > System Tools > Shared Folders > Shares\n" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26230", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29/" ]
26,233
<p>Given a URL, what would be the most efficient code to download the contents of that web page? I am only considering the HTML, not associated images, JS and CSS.</p>
[ { "answer_id": 26237, "author": "Chris", "author_id": 2134, "author_profile": "https://Stackoverflow.com/users/2134", "pm_score": 5, "selected": false, "text": "using System;\nusing System.Net;\nusing System.IO;\n\npublic class Test\n{\n public static void Main (string[] args)\n {\...
2008/08/25
[ "https://Stackoverflow.com/questions/26233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2141/" ]
26,255
<p>What JavaScript keywords (function names, variables, etc) are reserved?</p>
[ { "answer_id": 147776, "author": "Joseph Holsten", "author_id": 16981, "author_profile": "https://Stackoverflow.com/users/16981", "pm_score": 6, "selected": false, "text": "break do instanceof typeof\ncase else new var\ncatch finally return void\n...
2008/08/25
[ "https://Stackoverflow.com/questions/26255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/399/" ]
26,301
<p>What algorithm taught you the most about programming or a specific language feature?</p> <p>We have all had those moments where all of a sudden we know, just know, we have learned an important lesson for the future based on finally understanding an algorithm written by a programmer a couple of steps up the evolutio...
[ { "answer_id": 26342, "author": "Jason Z", "author_id": 2470, "author_profile": "https://Stackoverflow.com/users/2470", "pm_score": 2, "selected": false, "text": "void InPlaceSwap (int& a, int &b) {\n a ^= b;\n b ^= a;\n a ^= b;\n}\n" }, { "answer_id": 26374, "aut...
2008/08/25
[ "https://Stackoverflow.com/questions/26301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/269/" ]
26,305
<p>I want to be able to play sound files in my program. Where should I look?</p>
[ { "answer_id": 26311, "author": "Greg Hurlman", "author_id": 35, "author_profile": "https://Stackoverflow.com/users/35", "pm_score": 4, "selected": false, "text": "import sun.audio.*; //import the sun.audio package\nimport java.io.*;\n\n//** add this into your application code as ap...
2008/08/25
[ "https://Stackoverflow.com/questions/26305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2644/" ]
26,323
<p>C#: What is a good Regex to parse hyperlinks and their description?</p> <p>Please consider case insensitivity, white-space and use of single quotes (instead of double quotes) around the HREF tag.</p> <p>Please also consider obtaining hyperlinks which have other tags within the <code>&lt;a&gt;</code> tags such as <...
[ { "answer_id": 26328, "author": "Teifion", "author_id": 1384652, "author_profile": "https://Stackoverflow.com/users/1384652", "pm_score": 1, "selected": false, "text": "<a href=\"pages/index.php\" title=\"the title\">Text</a>\n\narray(3) { [0]=> string(52) \"Text\" [1]=> string(15) \"pag...
2008/08/25
[ "https://Stackoverflow.com/questions/26323", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2141/" ]
26,354
<p>Does anyone know how to print a barcode to the Intermec PB20 bluetooth printer from a Windows Compact Framework application? We are currently using the Intermec LinePrinter API but have been unable to find a way to print a barcode. ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­</p>
[ { "answer_id": 28168, "author": "Steve", "author_id": 620435, "author_profile": "https://Stackoverflow.com/users/620435", "pm_score": 2, "selected": true, "text": "Intermec.Print.LinePrinter lp;\n\nint escapeCharacter = int.Parse(\"1b\", NumberStyles.HexNumber);\nchar[] toEzPrintMode = n...
2008/08/25
[ "https://Stackoverflow.com/questions/26354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/620435/" ]
26,362
<p>Has anyone managed to use <code>ItemizedOverlays</code> in Android Beta 0.9? I can't get it to work, but I'm not sure if I've done something wrong or if this functionality isn't yet available. </p> <p>I've been trying to use the <code>ItemizedOverlay</code> and <code>OverlayItem</code> classes. Their intended purpo...
[ { "answer_id": 46766, "author": "eon", "author_id": 2000, "author_profile": "https://Stackoverflow.com/users/2000", "pm_score": 7, "selected": true, "text": "Drawable defaultMarker = r.getDrawable(R.drawable.icon);\n\n// You HAVE to specify the bounds! It seems like the markers are drawn...
2008/08/25
[ "https://Stackoverflow.com/questions/26362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/822/" ]
26,366
<p>For the past 10 years or so there have been a smattering of articles and papers referencing Christopher Alexander's newer work "The Nature of Order" and how it can be applied to software.</p> <p>Unfortunately, the only works I can find are from James Coplien and Richard Gabriel; there is nothing beyond that, at lea...
[ { "answer_id": 46766, "author": "eon", "author_id": 2000, "author_profile": "https://Stackoverflow.com/users/2000", "pm_score": 7, "selected": true, "text": "Drawable defaultMarker = r.getDrawable(R.drawable.icon);\n\n// You HAVE to specify the bounds! It seems like the markers are drawn...
2008/08/25
[ "https://Stackoverflow.com/questions/26366", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1799/" ]
26,369
<p>I have a .NET 2.0 Windows Forms application. Where is the best place the store user settings (considering Windows guidelines)?</p> <p>Some people pointed to <code>Application.LocalUserAppDataPath</code>. However, that creates a folder structure like:</p> <blockquote> <p>C:\Documents and Settings\user_name\Local ...
[ { "answer_id": 26394, "author": "Ryan Farley", "author_id": 1627, "author_profile": "https://Stackoverflow.com/users/1627", "pm_score": 7, "selected": true, "text": "// read setting\nstring setting1 = (string)Settings.Default[\"MySetting1\"];\n// save setting\nSettings.Default[\"MySettin...
2008/08/25
[ "https://Stackoverflow.com/questions/26369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2868/" ]
26,393
<p>I've seen news of <a href="http://github.com/jeresig/sizzle/tree/master" rel="noreferrer">John Resig's fast new selector engine named Sizzle</a> pop up in quite a few places, but I don't know what a selector engine is, nor have any of the articles given an explanation of what it is. I know Resig is the creator of j...
[ { "answer_id": 26411, "author": "Dave Ward", "author_id": 60, "author_profile": "https://Stackoverflow.com/users/60", "pm_score": 7, "selected": true, "text": "$('div')\n" }, { "answer_id": 26418, "author": "dguaraglia", "author_id": 2384, "author_profile": "https://S...
2008/08/25
[ "https://Stackoverflow.com/questions/26393", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1266/" ]
26,433
<p>Say I have three files (template_*.txt):</p> <ul> <li>template_x.txt</li> <li>template_y.txt</li> <li>template_z.txt</li> </ul> <p>I want to copy them to three new files (foo_*.txt). </p> <ul> <li>foo_x.txt </li> <li>foo_y.txt </li> <li>foo_z.txt</li> </ul> <p>Is there some simple way to do that with one command...
[ { "answer_id": 26439, "author": "Blair Conrad", "author_id": 1199, "author_profile": "https://Stackoverflow.com/users/1199", "pm_score": 1, "selected": false, "text": "($op = shift) || die \"Usage: rename perlexpr [filenames]\\n\";\n\nfor (@ARGV) {\n $was = $_;\n eval $op;\n die...
2008/08/25
[ "https://Stackoverflow.com/questions/26433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
26,450
<p>Is there any way to save an object using Hibernate if there is already an object using that identifier loaded into the session?</p> <ul> <li>Doing <code>session.contains(obj)</code> seems to only return true if the session contains that exact object, not another object with the same ID.</li> <li>Using <code>merge(o...
[ { "answer_id": 26468, "author": "Quibblesome", "author_id": 1143, "author_profile": "https://Stackoverflow.com/users/1143", "pm_score": 2, "selected": false, "text": "IPersistable entity = Whatever(); // This is the object we're trying to update\n// (IPersistable has an id field)\nsessio...
2008/08/25
[ "https://Stackoverflow.com/questions/26450", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2875/" ]
26,455
<p>Do you use Design by Contract professionally? Is it something you have to do from the beginning of a project, or can you change gears and start to incorporate it into your software development lifecycle? What have you found to be the pros/cons of the design approach?</p> <p>I came across the <a href="http://en.wiki...
[ { "answer_id": 26484, "author": "James A. Rosen", "author_id": 1190, "author_profile": "https://Stackoverflow.com/users/1190", "pm_score": 5, "selected": true, "text": "// @returns null iff x = 0\npublic foo(int x) {\n ...\n}\n public test_foo_returns_null_iff_x_equals_0() {\n assertNu...
2008/08/25
[ "https://Stackoverflow.com/questions/26455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
26,458
<p>Is there any IDE that simplifies creating Swing applications (ideally something along the lines of Visual Studio)</p>
[ { "answer_id": 10298568, "author": "komputisto", "author_id": 629033, "author_profile": "https://Stackoverflow.com/users/629033", "pm_score": 3, "selected": false, "text": "JFrame" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2875/" ]
26,478
<p>I'm having trouble getting the following to work in SQL Server 2k, but it works in 2k5:</p> <pre><code>--works in 2k5, not in 2k create view foo as SELECT usertable.legacyCSVVarcharCol as testvar FROM usertable WHERE rsrcID in ( select val from dbo.fnSplitStringToInt(usertable...
[ { "answer_id": 26577, "author": "wcm", "author_id": 2173, "author_profile": "https://Stackoverflow.com/users/2173", "pm_score": 0, "selected": false, "text": "select val \nfrom dbo.fnSplitStringToInt('1,2,3', default)\n" }, { "answer_id": 49638, "author": "MobyDX", "a...
2008/08/25
[ "https://Stackoverflow.com/questions/26478", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2327/" ]
26,512
<p>I have a ComboBox that I bind to a standard HTTPService, I would like to add an event listener so that I can run some code after the ComboBox is populated from the data provider.</p> <p>How can I do this?</p>
[ { "answer_id": 26553, "author": "Theo", "author_id": 1109, "author_profile": "https://Stackoverflow.com/users/1109", "pm_score": 0, "selected": false, "text": "BindingUtils dataProvider BindingUtils.bindSetter(comboBoxDataProviderChanged, comboBox, \"dataProvider\");\n BindingUtils mx.bi...
2008/08/25
[ "https://Stackoverflow.com/questions/26512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1638/" ]
26,515
<p>I have a habit of keeping my variable usage to a bare minimum. So I'm wondering if there is any advantage to be gained by the following:</p> <pre><code>$query = $mysqli-&gt;query('SELECT * FROM `people` ORDER BY `name` ASC LIMIT 0,30'); // Example 1 $query = $query-&gt;fetch_assoc(); // Example 2 $query_r = $que...
[ { "answer_id": 26537, "author": "Brian Warshaw", "author_id": 1344, "author_profile": "https://Stackoverflow.com/users/1344", "pm_score": 4, "selected": true, "text": "free() free() free()" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2025/" ]
26,522
<p>Let's say I have a .NET Array of n number of dimensions. I would like to foreach through the elements and print out something like:</p> <pre><code>[0, 0, 0] = 2 [0, 0, 1] = 32 </code></pre> <p>And so on. I could write a loop using some the Rank and dimension functions to come up with the indices. Is there a bui...
[ { "answer_id": 26582, "author": "Jake Pearson", "author_id": 632, "author_profile": "https://Stackoverflow.com/users/632", "pm_score": 3, "selected": true, "text": "public static string Format(Array array)\n{\n var builder = new StringBuilder();\n builder.AppendLine(\"Count: \" + a...
2008/08/25
[ "https://Stackoverflow.com/questions/26522", "https://Stackoverflow.com", "https://Stackoverflow.com/users/632/" ]
26,536
<p>My coworker and I have encountered a nasty situation where we have to use an active X control to manipulate a web camera on a page. </p> <p>Is it possible to assign a javascript event handler to a button in the active x control so that it would fire an action on the page when clicked, or do we have to create a butt...
[ { "answer_id": 26679, "author": "Jared Updike", "author_id": 2543, "author_profile": "https://Stackoverflow.com/users/2543", "pm_score": 2, "selected": false, "text": "function Uploader::MyUpdate()\n{\n // ... code to fetch the current state of various\n // properties from the Uplo...
2008/08/25
[ "https://Stackoverflow.com/questions/26536", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1942/" ]
26,547
<p>Let's say that you want to create a dead simple BlogEditor and, one of your ideas, is to do what Live Writer does and ask only the URL of the persons Blog. How can you detect what type of blog is it?</p> <p>Basic detection can be done with the URL itself, such as “<a href="http://myblog.blogger.com" rel="nofollow n...
[ { "answer_id": 26579, "author": "Ross", "author_id": 2025, "author_profile": "https://Stackoverflow.com/users/2025", "pm_score": 1, "selected": false, "text": "<meta content='blogger' name='generator'/>\n" }, { "answer_id": 26589, "author": "Ryan Farley", "author_id": 162...
2008/08/25
[ "https://Stackoverflow.com/questions/26547", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2644/" ]
26,551
<p>I need to pass an ID and a password to a batch file at the time of running rather than hardcoding them into the file.</p> <p>Here's what the command line looks like:</p> <pre><code>test.cmd admin P@55w0rd &gt; test-log.txt </code></pre>
[ { "answer_id": 26556, "author": "Frank Krueger", "author_id": 338, "author_profile": "https://Stackoverflow.com/users/338", "pm_score": 6, "selected": false, "text": "%%1 if for %" }, { "answer_id": 26702, "author": "Greg Hewgill", "author_id": 893, "author_profile": ...
2008/08/25
[ "https://Stackoverflow.com/questions/26551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730/" ]
26,552
<p>What are the advantages and disadvantages of turning <strong><code>NOCOUNT</code></strong> off in SQL server queries? ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­</p>
[ { "answer_id": 26588, "author": "jerhinesmith", "author_id": 1108, "author_profile": "https://Stackoverflow.com/users/1108", "pm_score": 0, "selected": false, "text": "Print" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2141/" ]
26,559
<p>I know there are a lot of positive things mod-rewrite accomplishes. But are there any negative? Obviously if you have poorly written rules your going to have problems. But what if you have a high volume site and your constantly using mod-rewrite, is it going to have a significant impact on performance? I did a quic...
[ { "answer_id": 26597, "author": "Ryan Doherty", "author_id": 956, "author_profile": "https://Stackoverflow.com/users/956", "pm_score": 6, "selected": true, "text": ".htaccess .htaccess .htaccess" }, { "answer_id": 26770, "author": "ConroyP", "author_id": 2287, "author...
2008/08/25
[ "https://Stackoverflow.com/questions/26559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2687/" ]
26,567
<p>I have a report with many fields that I'm trying to get down to 1 page horizontally (I don't care whether it's 2 or 200 pages vertically... just don't want to have to deal with 2 pages wide by x pages long train-wreck). That said, it deals with contact information.</p> <p>My idea was to do:</p> <pre><code>Name: ...
[ { "answer_id": 30409, "author": "Pulsehead", "author_id": 2156, "author_profile": "https://Stackoverflow.com/users/2156", "pm_score": 6, "selected": true, "text": "= Fields!Addr1.Value + VbCrLf + \n Fields!Addr2.Value + VbCrLf + \n Fields!Addr3.Value\n" }, { "answer_id": 358284...
2008/08/25
[ "https://Stackoverflow.com/questions/26567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156/" ]
26,570
<p>I'm looking for a way to get the size of an instance of a reference type. sizeof is only for value types. Is this possible?</p>
[ { "answer_id": 6580593, "author": "serhio", "author_id": 185593, "author_profile": "https://Stackoverflow.com/users/185593", "pm_score": 1, "selected": false, "text": "Dim myObjectSize As Long\n\nDim ms As New IO.MemoryStream\nDim bf As New Runtime.Serialization.Formatters.Binary.BinaryF...
2008/08/25
[ "https://Stackoverflow.com/questions/26570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1786/" ]
26,594
<p>What libraries/methods do you know of that can do some basic HTML representation in Swing? Can you comment on your experience?</p>
[ { "answer_id": 24264560, "author": "Paolo Fulgoni", "author_id": 323447, "author_profile": "https://Stackoverflow.com/users/323447", "pm_score": 1, "selected": false, "text": "BrowserPane JEditorPane JScrollPane BrowserPane browserPane = new BrowserPane();\nJScrollPane scrollPane = new J...
2008/08/25
[ "https://Stackoverflow.com/questions/26594", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2644/" ]
26,595
<p>Is there any difference between:</p> <pre><code>if foo is None: pass </code></pre> <p>and</p> <pre><code>if foo == None: pass </code></pre> <p>The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None is an instance...
[ { "answer_id": 26611, "author": "Brendan", "author_id": 199, "author_profile": "https://Stackoverflow.com/users/199", "pm_score": 9, "selected": true, "text": "is True == __eq__() \n>>> class Foo(object):\n def __eq__(self, other):\n return True\n\n>>> f = Foo()\n>>> f ==...
2008/08/25
[ "https://Stackoverflow.com/questions/26595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/156/" ]
26,620
<p>In my web app, I submit some form fields with jQuery's <code>$.getJSON()</code> method. I am having some problems with the encoding. The character-set of my app is <code>charset=ISO-8859-1</code>, but I think these fields are submitted with <code>UTF-8</code>. </p> <p>How I can set encoding used in <code>$.getJSON<...
[ { "answer_id": 26681, "author": "travis", "author_id": 1414, "author_profile": "https://Stackoverflow.com/users/1414", "pm_score": 6, "selected": true, "text": "$.ajax() contentType success error <div id=\"success\"></div> <div id=\"error\"></div> $.ajax({\n type: \"POST\",\n url: ...
2008/08/25
[ "https://Stackoverflow.com/questions/26620", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2138/" ]
26,652
<p>Is there a way to make a TSQL variable constant?</p>
[ { "answer_id": 26655, "author": "Greg Hurlman", "author_id": 35, "author_profile": "https://Stackoverflow.com/users/35", "pm_score": 0, "selected": false, "text": "DECLARE @two INT\nSET @two = 2\n" }, { "answer_id": 26656, "author": "SQLMenace", "author_id": 740, "aut...
2008/08/25
[ "https://Stackoverflow.com/questions/26652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1874/" ]
26,663
<p>So far, I've only used Rational Quantify. I've heard great things about Intel's VTune, but have never tried it!</p> <p>Edit: I'm mostly looking for software that will instrument the code, as I guess that's about the only way to get very fine results.</p> <hr /> <h3>See also:</h3> <p><a href="https://stackoverflow.co...
[ { "answer_id": 4233209, "author": "Moberg", "author_id": 393010, "author_profile": "https://Stackoverflow.com/users/393010", "pm_score": 3, "selected": false, "text": "ProfilingTimer::ProfilingTimer(std::string name)\n : mLocalName(name)\n{\n sNestedName += mLocalName;\n sNestedName += \...
2008/08/25
[ "https://Stackoverflow.com/questions/26663", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2638/" ]
26,719
<p>I have a set of multiple assemblies (one assembly is to be used as an API and it depends on other assemblies). I would like to merge all assemblies into one single assembly but prevent all assemblies except the API one to be visible from the outside.</p> <p>I will then obfuscate this assembly with Xenocode. From wh...
[ { "answer_id": 177982, "author": "Ant", "author_id": 11529, "author_profile": "https://Stackoverflow.com/users/11529", "pm_score": 1, "selected": false, "text": "InternalsVisibleTo internal public" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1508/" ]
26,721
<p>When creating scrollable user controls with .NET and WinForms I have repeatedly encountered situations where, for example, a vertical scrollbar pops up, overlapping the control's content, causing a horizontal scrollbar to also be needed. Ideally the content would shrink just a bit to make room for the vertical scro...
[ { "answer_id": 26782, "author": "Bryan Roth", "author_id": 299, "author_profile": "https://Stackoverflow.com/users/299", "pm_score": 0, "selected": false, "text": "myPanel.AutoScroll = False\n" }, { "answer_id": 27032, "author": "Community", "author_id": -1, "author_p...
2008/08/25
[ "https://Stackoverflow.com/questions/26721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729/" ]
26,732
<pre><code>&lt;servlet&gt; &lt;servlet-name&gt;myservlet&lt;/servlet-name&gt; &lt;servlet-class&gt;workflow.WDispatcher&lt;/servlet-class&gt; &lt;load-on-startup&gt;2&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;myservlet&lt;/servlet-name&gt; &lt;url-pattern&...
[ { "answer_id": 26744, "author": "McDowell", "author_id": 304, "author_profile": "https://Stackoverflow.com/users/304", "pm_score": 8, "selected": true, "text": "<url-pattern>*NEXTEVENT*</url-pattern>\n" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
26,733
<p>Using reflection, how can I get all types that implement an interface with C# 3.0/.NET 3.5 with the least code, and minimizing iterations?</p> <p>This is what I want to re-write:</p> <pre><code>foreach (Type t in this.GetType().Assembly.GetTypes()) if (t is IMyInterface) ; //do stuff </code></pre>
[ { "answer_id": 26745, "author": "Lasse V. Karlsen", "author_id": 267, "author_profile": "https://Stackoverflow.com/users/267", "pm_score": 4, "selected": false, "text": "Type ti = typeof(IYourInterface);\nforeach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) {\n foreach (T...
2008/08/25
[ "https://Stackoverflow.com/questions/26733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1782/" ]
26,743
<p>I use .NET XML technologies quite extensively on my work. One of the things the I like very much is the XSLT engine, more precisely the extensibility of it. However there one little piece which keeps being a source of annoyance. Nothing major or something we can't live with but it is preventing us from producing the...
[ { "answer_id": 6421794, "author": "Simon Mourier", "author_id": 403671, "author_profile": "https://Stackoverflow.com/users/403671", "pm_score": 1, "selected": false, "text": "myWriter.WriteAttributeString(\"xmlns\", \"abx\", null, \"http://bladibla\");\n" }, { "answer_id": 648273...
2008/08/25
[ "https://Stackoverflow.com/questions/26743", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2892/" ]
26,760
<p>I have some strings of xxh:yym format where xx is hours and yy is minutes like "05h:30m". What is an elegant way to convert a string of this type to TimeSpan?</p>
[ { "answer_id": 26769, "author": "Lars Mæhlum", "author_id": 960, "author_profile": "https://Stackoverflow.com/users/960", "pm_score": 6, "selected": true, "text": "TimeSpan span;\n\n\nif (TimeSpan.TryParse(\"05h:30m\".Replace(\"m\",\"\").Replace(\"h\",\"\"), out span))\n Messa...
2008/08/25
[ "https://Stackoverflow.com/questions/26760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31505/" ]
26,762
<p>Our dev shop currently uses Visual SourceSafe. We all know how that could end up (badly), so we're investigating other systems. First up is Perforce. Does anyone have experience with using it and its integration into Visual Studio (2003/2005/2008)? Is it as good as any other, or is it pretty solid with good features...
[ { "answer_id": 96192, "author": "MP24", "author_id": 6206, "author_profile": "https://Stackoverflow.com/users/6206", "pm_score": 0, "selected": false, "text": "p4 edit" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1212/" ]
26,795
<p>I have an extender (IExtenderProvider) which extends certain types of controls with additional properties. For one of these properties, I have written a UITypeEditor. So far, all works just fine.</p> <p>The extender also has a couple of properties itself, which I am trying to use as a sort of default for the UIT...
[ { "answer_id": 187256, "author": "Keith", "author_id": 905, "author_profile": "https://Stackoverflow.com/users/905", "pm_score": 2, "selected": false, "text": "DefaultValueAttribute att = context.\n PropertyDescriptor.Attributes.\n OfType<DefaultValueAttribute>().\n FirstOrDefau...
2008/08/25
[ "https://Stackoverflow.com/questions/26795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2899/" ]
26,796
<p>What is the best way to use ResolveUrl() in a Shared/static function in Asp.Net? My current solution for VB.Net is:</p> <pre><code>Dim x As New System.Web.UI.Control x.ResolveUrl("~/someUrl") </code></pre> <p>Or C#:</p> <pre><code>System.Web.UI.Control x = new System.Web.UI.Control(); x.ResolveUrl("~/someUrl"); <...
[ { "answer_id": 528198, "author": "jdw", "author_id": 64181, "author_profile": "https://Stackoverflow.com/users/64181", "pm_score": 5, "selected": false, "text": "public static string GetUrl(int id)\n{\n string path = VirtualPathUtility.ToAbsolute(\"~/SomePage.aspx\");\n return stri...
2008/08/25
[ "https://Stackoverflow.com/questions/26796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1414/" ]
26,800
<p>I'm using XPath in .NET to parse an XML document, along the lines of:</p> <pre class="lang-cs prettyprint-override"><code>XmlNodeList lotsOStuff = doc.SelectNodes("//stuff"); foreach (XmlNode stuff in lotsOStuff) { XmlNode stuffChild = stuff.SelectSingleNode("//stuffChild"); // ... etc } </code></pre> <p>Th...
[ { "answer_id": 26805, "author": "Chris Marasti-Georg", "author_id": 96, "author_profile": "https://Stackoverflow.com/users/96", "pm_score": 4, "selected": true, "text": "// XmlNode stuffChild = stuff.SelectSingleNode(\".//stuffChild\");\n xmlNode stuffChild = stuff.SelectSingleNode(\"sel...
2008/08/25
[ "https://Stackoverflow.com/questions/26800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1965/" ]
26,809
<p>I frequently have problems dealing with <code>DataRows</code> returned from <code>SqlDataAdapters</code>. When I try to fill in an object using code like this:</p> <pre><code>DataRow row = ds.Tables[0].Rows[0]; string value = (string)row; </code></pre> <p>What is the best way to deal with <code>DBNull's</code> in ...
[ { "answer_id": 26832, "author": "Dan Herbert", "author_id": 392, "author_profile": "https://Stackoverflow.com/users/392", "pm_score": 6, "selected": true, "text": "int? value = 5;\n as as null DBNull as DataRow row = ds.Tables[0].Rows[0];\nstring value = row as string;\n row DBNull value...
2008/08/25
[ "https://Stackoverflow.com/questions/26809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2191/" ]
26,816
<p>is there a way to abort threads created with QueueUserWorkItem?</p> <p>Or maybe I don't need to? What happens if the main application exits? Are all thread created from it aborted automatically?</p>
[ { "answer_id": 896492, "author": "Lukas Šalkauskas", "author_id": 5369, "author_profile": "https://Stackoverflow.com/users/5369", "pm_score": 0, "selected": false, "text": "bool stop = false;\nvoid doDownloadWork(object s) \n{\n if (!stop)\n {\n DownloadLink((String)s, location...
2008/08/25
[ "https://Stackoverflow.com/questions/26816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1782/" ]
26,825
<p>I have a CollapsiblePanelExtender that will not collapse. I have "collapsed" set to true and all the ControlID set correctly. I try to collapse and it goes through the animation but then expands almost instantly. This is in an User Control with the following structure.</p> <pre><code>&lt;asp:UpdatePanel ID="Upda...
[ { "answer_id": 26918, "author": "Dillie-O", "author_id": 71, "author_profile": "https://Stackoverflow.com/users/71", "pm_score": 0, "selected": false, "text": "AutoExpand=\"False\"\n" }, { "answer_id": 27026, "author": "Craig", "author_id": 2894, "author_profile": "ht...
2008/08/25
[ "https://Stackoverflow.com/questions/26825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2894/" ]
26,834
<p>I have an application, built using MVC, that produces a view which delivers summary information across a number of models. Further to that, some calculations are performed across the different sets of data.</p> <p>There's no clear single model (that maps to a table at least) that seems to make sense as the starting...
[ { "answer_id": 26848, "author": "Brian Warshaw", "author_id": 1344, "author_profile": "https://Stackoverflow.com/users/1344", "pm_score": 1, "selected": false, "text": "ActiveRecord::Base" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/26834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1060/" ]
26,842
<p>I'm attempting to use an existing CAS server to authenticate login for a Perl CGI web script and am using the <a href="http://search.cpan.org/dist/AuthCAS" rel="nofollow noreferrer">AuthCAS</a> Perl module (v 1.3.1). I can connect to the CAS server to get the service ticket but when I try to connect to validate the...
[ { "answer_id": 27602, "author": "Cebjyre", "author_id": 1612, "author_profile": "https://Stackoverflow.com/users/1612", "pm_score": -1, "selected": false, "text": "[...]\nunless ($ssl_socket) {\n $errors = sprintf \"error %s unable to connect https://%s:%s/\\n\",&IO::Socket::SSL::errs...
2008/08/25
[ "https://Stackoverflow.com/questions/26842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/171/" ]
26,845
<p>I'd like to hear from people who are using distributed version control (aka distributed revision control, decentralized version control) and how they are finding it. What are you using, Mercurial, Darcs, Git, Bazaar? Are you still using it? If you've used client/server rcs in the past, are you finding it better, wor...
[ { "answer_id": 30657, "author": "Ben Collins", "author_id": 3279, "author_profile": "https://Stackoverflow.com/users/3279", "pm_score": 2, "selected": false, "text": ". git-sh-setup" }, { "answer_id": 738292, "author": "David Thornley", "author_id": 14148, "author_pro...
2008/08/25
[ "https://Stackoverflow.com/questions/26845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1329401/" ]
26,855
<p>I'm currently using the module <code>URI::URL</code> to generate a full URL from a relative URL; however, it isn't running as fast as I'd like it to be. Does anyone know another way to do this that may be faster?</p>
[ { "answer_id": 26894, "author": "Brendan", "author_id": 199, "author_profile": "https://Stackoverflow.com/users/199", "pm_score": 0, "selected": false, "text": "$full_url = $base_url . $relative_url" }, { "answer_id": 26960, "author": "Peter Stuifzand", "author_id": 1633,...
2008/08/25
[ "https://Stackoverflow.com/questions/26855", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2901/" ]
26,857
<p>Using C# and ASP.NET I want to programmatically fill in some values (4 text boxes) on a web page (form) and then 'POST' those values. How do I do this?</p> <p>Edit: Clarification: There is a service (www.stopforumspam.com) where you can submit ip, username and email address on their 'add' page. I want to be able to...
[ { "answer_id": 26881, "author": "Ryan Farley", "author_id": 1627, "author_profile": "https://Stackoverflow.com/users/1627", "pm_score": 7, "selected": true, "text": "WebRequest req = WebRequest.Create(\"http://mysite/myform.aspx\");\nstring postData = \"item1=11111&item2=22222&Item3=3333...
2008/08/25
[ "https://Stackoverflow.com/questions/26857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1463/" ]
26,860
<p>I'm a web developer, and I want to make the web sites I develop more accessible to those using screen readers. What limitations do screen readers have that I should be most aware of, and what can I do to avoid hitting these limitations.</p> <p>This question was sparked by reading another question about <a href="ht...
[ { "answer_id": 26917, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "<label for=\"Requestor\" accesskey=\"9\"><span class=\"required\">&nbsp;Requestor&nbsp;*&nbsp;</span><span class=\"hidden\">req...
2008/08/25
[ "https://Stackoverflow.com/questions/26860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1862/" ]
26,863
<p>I had a plugin installed in Visual Studio 2008, and it created some extra dockable windows. I have uninstalled it, and I can't get rid of the windows it created - I close them, but they always come back. They're just empty windows now, since the plugin is no longer present, but nothing I've tried gets rid of them....
[ { "answer_id": 26945, "author": "Vin", "author_id": 1747, "author_profile": "https://Stackoverflow.com/users/1747", "pm_score": 4, "selected": false, "text": "Devenv.exe /ResetSettings\n Devenv.exe /ResetSettings \"C:\\My Files\\MySettings.vssettings\"\n" }, { "answer_id": 334518...
2008/08/25
[ "https://Stackoverflow.com/questions/26863", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2348/" ]
26,877
<p>In C#, what is the difference (if any) between these two lines of code?</p> <pre><code>tmrMain.Elapsed += new ElapsedEventHandler(tmrMain_Tick); </code></pre> <p>and</p> <pre><code>tmrMain.Elapsed += tmrMain_Tick; </code></pre> <p>Both appear to work exactly the same. Does C# just assume you mean the former when...
[ { "answer_id": 26884, "author": "Orion Edwards", "author_id": 234, "author_profile": "https://Stackoverflow.com/users/234", "pm_score": 6, "selected": true, "text": "static void Hook1()\n{\n someEvent += new EventHandler( Program_someEvent );\n}\n\nstatic void Hook2()\n{\n someEven...
2008/08/25
[ "https://Stackoverflow.com/questions/26877", "https://Stackoverflow.com", "https://Stackoverflow.com/users/369/" ]
26,879
<p>I have a website that is perfectely centered aligned. The CSS code works fine. The problem doesn't really have to do with CSS. I have headers for each page that perfectely match eachother.</p> <p>However, when the content gets larger, Opera and FireFox show a scrollbar at the left so you can scroll to the content n...
[ { "answer_id": 26907, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": " #middle \n { \nposition: relative;\nmargin: 0px auto 0px auto; \nwidth: 1000px; \nmax-width: 1000px;\n}\n" ...
2008/08/25
[ "https://Stackoverflow.com/questions/26879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
26,882
<p>My asp.net page will render different controls based on which report a user has selected e.g. some reports require 5 drop downs, some two checkboxes and 6 dropdowns).</p> <p>They can select a report using two methods. With <code>SelectedReport=MyReport</code> in the query string, or by selecting it from a dropdown....
[ { "answer_id": 26943, "author": "Jason Bunting", "author_id": 1790, "author_profile": "https://Stackoverflow.com/users/1790", "pm_score": 2, "selected": false, "text": "<script>\n function changeReport(dropDownList) {\n var selectedReport = dropDownList.options[dropDownList.sel...
2008/08/25
[ "https://Stackoverflow.com/questions/26882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/233/" ]
26,903
<p>Is there a way?</p> <p>I need all types that implement a specific interface to have a parameterless constructor, can it be done?</p> <p>I am developing the base code for other developers in my company to use in a specific project.</p> <p>There's a proccess which will create instances of types (in different thread...
[ { "answer_id": 27047, "author": "aku", "author_id": 1196, "author_profile": "https://Stackoverflow.com/users/1196", "pm_score": 3, "selected": false, "text": "interface ITest<T> where T: new()\n{\n //...\n}\n\nclass Test: ITest<Test>\n{\n //...\n}\n" }, { "answer_id": 27049...
2008/08/25
[ "https://Stackoverflow.com/questions/26903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1782/" ]
26,904
<p>I have a large exiting C++ project involving:</p> <ul> <li>4 applications</li> <li>50+ libraries</li> <li>20+ third party libraries</li> </ul> <p>The project uses QMake (part of Trolltech's Qt) to build the production version on Linux, but I've been playing around at building it on MacOS.</p> <p>I can build in on...
[ { "answer_id": 82054, "author": "mxcl", "author_id": 6444, "author_profile": "https://Stackoverflow.com/users/6444", "pm_score": 2, "selected": false, "text": " macx*:!macx-xcode:release {\n system( QT=\\'$$QT\\' QMAKE_LIBDIR_QT=\\'$$QMAKE_LIBDIR_QT\\' $$ROOT_DIR/common/dist/mac/Make...
2008/08/25
[ "https://Stackoverflow.com/questions/26904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2711/" ]
26,925
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/8127/pre-build-task-deleting-the-working-copy-in-cruisecontrol-net">Pre-build task - deleting the working copy in CruiseControl.NET</a> </p> </blockquote> <p>I would like to delete my working directory during t...
[ { "answer_id": 26968, "author": "Ian Patrick Hughes", "author_id": 2213, "author_profile": "https://Stackoverflow.com/users/2213", "pm_score": 0, "selected": false, "text": "\nstatic void Main(string[] args) \n\n{\n for (int n = 0; n < args.Length; n++)\n {\n if ...
2008/08/25
[ "https://Stackoverflow.com/questions/26925", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1638/" ]
26,947
<p>What built-in PHP functions are useful for web scraping? What are some good resources (web or print) for getting up to speed on web scraping with PHP?</p>
[ { "answer_id": 26955, "author": "Brian Warshaw", "author_id": 1344, "author_profile": "https://Stackoverflow.com/users/1344", "pm_score": 0, "selected": false, "text": "file_get_contents()" }, { "answer_id": 103554, "author": "tyshock", "author_id": 16448, "author_pro...
2008/08/25
[ "https://Stackoverflow.com/questions/26947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2052/" ]
26,971
<p>As someone who hasn't used either technology on real-world projects I wonder if anyone knows how these two complement each other and how much their functionalities overlap?</p>
[ { "answer_id": 8580564, "author": "Ali Adravi", "author_id": 586227, "author_profile": "https://Stackoverflow.com/users/586227", "pm_score": 0, "selected": false, "text": "MyDataContext db = new MyDataContext();\nList<CUSTOMER_ORDER_LINEITEMResult> records = db.CUSTOMER_ORDER_LINEITEM(pr...
2008/08/25
[ "https://Stackoverflow.com/questions/26971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2133/" ]
26,984
<p>I have been in both situations: </p> <ul> <li>Creating too many custom Exceptions</li> <li>Using too many general Exception class</li> </ul> <p>In both cases the project started OK but soon became an overhead to maintain (and refactor).</p> <p>So what is the best practice regarding the creation of your own Except...
[ { "answer_id": 27000, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 2, "selected": false, "text": "NullPointerException IndexOutofBoundsException" }, { "answer_id": 27041, "author": "Landon Kuhn", "aut...
2008/08/25
[ "https://Stackoverflow.com/questions/26984", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2644/" ]
27,009
<p>What are some of the strategies that are used when implementing FxCop / static analysis on existing code bases with existing violations? How can one most effectively reduce the static analysis violations?</p>
[ { "answer_id": 378439, "author": "Patrick from NDepend team", "author_id": 27194, "author_profile": "https://Stackoverflow.com/users/27194", "pm_score": -1, "selected": false, "text": "warnif count > 0 \nfrom m in Methods\nwhere m.CyclomaticComplexity > 20 &&\n m.WasAdded() || m.Cod...
2008/08/25
[ "https://Stackoverflow.com/questions/27009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2822/" ]
27,018
<p>When applying the Single Responsibility Principle and looking at a class's reason to change, how do you determine whether that reason too change is too granular, or not granular enough?</p>
[ { "answer_id": 378439, "author": "Patrick from NDepend team", "author_id": 27194, "author_profile": "https://Stackoverflow.com/users/27194", "pm_score": -1, "selected": false, "text": "warnif count > 0 \nfrom m in Methods\nwhere m.CyclomaticComplexity > 20 &&\n m.WasAdded() || m.Cod...
2008/08/25
[ "https://Stackoverflow.com/questions/27018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2822/" ]
27,020
<p>I have an Excel Spreadsheet like this</p> <pre> id | data for id | more data for id id | data for id id | data for id | more data for id | even more data for id id | data for id | more data for id id | data for id id | data for id | more data for id </pre> <p>Now I want to group the data of one id b...
[ { "answer_id": 27139, "author": "Jason Z", "author_id": 2470, "author_profile": "https://Stackoverflow.com/users/2470", "pm_score": 3, "selected": true, "text": "Public Sub HighLightRows()\n Dim i As Integer\n i = 1\n Dim c As Integer\n c = 3 'red\n\n Do While (Cells...
2008/08/25
[ "https://Stackoverflow.com/questions/27020", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2798/" ]
27,027
<p>So you know a lot of Mac apps use "bundles": It looks like a single file to your application, but it's actually a folder with many files inside.</p> <p>For a version control system to handle this, it needs to:</p> <ul> <li>check out all the files in a directory, so the app can modify them as necessary</li> <li>at...
[ { "answer_id": 19727594, "author": "akauppi", "author_id": 14455, "author_profile": "https://Stackoverflow.com/users/14455", "pm_score": 1, "selected": false, "text": "hg addremove $ hg help addremove\nhg addremove [OPTION]... [FILE]...\n\nadd all new files, delete all missing files\n" ...
2008/08/25
[ "https://Stackoverflow.com/questions/27027", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116/" ]
27,030
<p>I want to compare 2 arrays of objects in JavaScript code. The objects have 8 total properties, but each object will not have a value for each, and the arrays are never going to be any larger than 8 items each, so maybe the brute force method of traversing each and then looking at the values of the 8 properties is t...
[ { "answer_id": 27212, "author": "Jason Bunting", "author_id": 1790, "author_profile": "https://Stackoverflow.com/users/1790", "pm_score": 7, "selected": true, "text": "function objectsAreSame(x, y) {\n var objectsAreSame = true;\n for(var propertyName in x) {\n if(x[propertyName...
2008/08/25
[ "https://Stackoverflow.com/questions/27030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2176/" ]
27,034
<p>My JavaScript is pretty nominal, so when I saw this construction, I was kind of baffled:</p> <pre><code>var shareProxiesPref = document.getElementById("network.proxy.share_proxy_settings"); shareProxiesPref.disabled = proxyTypePref.value != 1; </code></pre> <p>Isn't it better to do an if on <code>proxyTypePref.val...
[ { "answer_id": 27039, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 2, "selected": false, "text": "sharedProxiesPref.disabled" }, { "answer_id": 27319, "author": "17 of 26", "author_id": 2284, "aut...
2008/08/25
[ "https://Stackoverflow.com/questions/27034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
27,044
<p>I'm accessing an Ubuntu machine using PuTTY, and using gcc.</p> <p>The default <code>LANG</code> environment variable on this machine is set to <code>en_NZ.UTF-8</code>, which causes GCC to think PuTTY is capable of displaying UTF-8 text, which it doesn't seem to be. Maybe it's my font, I don't know - it does this...
[ { "answer_id": 27051, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 3, "selected": true, "text": "LANG=en_NZ en_NZ /var/lib/locales/supported.d/local en_NZ ISO-8859-1 /usr/sbin/locale-gen locale-gen en_NZ" }, { "answ...
2008/08/25
[ "https://Stackoverflow.com/questions/27044", "https://Stackoverflow.com", "https://Stackoverflow.com/users/234/" ]
27,065
<p>Do any of you know of a tool that will search for .class files and then display their compiled versions?</p> <p>I know you can look at them individually in a hex editor but I have a lot of class files to look over (something in my giant application is compiling to Java6 for some reason).</p>
[ { "answer_id": 27123, "author": "McDowell", "author_id": 304, "author_profile": "https://Stackoverflow.com/users/304", "pm_score": 6, "selected": false, "text": "ClassFile {\n u4 magic;\n u2 minor_version;\n u2 major_version;\n CA FE BA BE 00 00 00 33\n import java.io.*;\n\npubl...
2008/08/25
[ "https://Stackoverflow.com/questions/27065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1666/" ]
27,071
<p>I have an old C library with a function that takes a void**:</p> <pre><code>oldFunction(void** pStuff); </code></pre> <p>I'm trying to call this function from managed C++ (m_pStuff is a member of the parent ref class of type void*):</p> <pre><code>oldFunction( static_cast&lt;sqlite3**&gt;( &amp;m_pStuff ) ); </c...
[ { "answer_id": 27326, "author": "Ben Childs", "author_id": 2925, "author_profile": "https://Stackoverflow.com/users/2925", "pm_score": 2, "selected": true, "text": "#pragma unmanaged\n\nvoid* m_pStuff\n\n#pragma managed\n // TestSol.cpp : main project file.\n\n#include \"stdafx.h\"\n\nus...
2008/08/25
[ "https://Stackoverflow.com/questions/27071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39040/" ]
27,077
<p>When I do:</p> <pre><code>$ find / </code></pre> <p>It searches the entire system.<br> How do I prevent that?</p> <p>(This question comes from an "<a href="https://stackoverflow.com/questions/18836/why-doesnt-find-find-anything#26182">answer</a>" to another question.)</p>
[ { "answer_id": 27084, "author": "Jon Ericson", "author_id": 1438, "author_profile": "https://Stackoverflow.com/users/1438", "pm_score": 2, "selected": false, "text": "$ ls *.ksh\n" }, { "answer_id": 27089, "author": "dmckee --- ex-moderator kitten", "author_id": 2509, ...
2008/08/25
[ "https://Stackoverflow.com/questions/27077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1438/" ]
27,078
<p>I am debugging my ASP.NET application on my Windows XP box with a virtual directory set up in IIS (5.1).</p> <p>I am also running <strong>VirtualPC</strong> with XP and IE6 for testing purposes. When I connect to my real machine from the virtual machine, I enter the URL: <a href="http://machinename/projectname" rel...
[ { "answer_id": 27084, "author": "Jon Ericson", "author_id": 1438, "author_profile": "https://Stackoverflow.com/users/1438", "pm_score": 2, "selected": false, "text": "$ ls *.ksh\n" }, { "answer_id": 27089, "author": "dmckee --- ex-moderator kitten", "author_id": 2509, ...
2008/08/25
[ "https://Stackoverflow.com/questions/27078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/417/" ]
27,095
<p>I did this Just for kicks (so, not exactly a question, i can see the downmodding happening already) but, in lieu of Google's newfound <a href="http://www.google.com/search?hl=en&amp;q=1999999999999999-1999999999999995&amp;btnG=Search" rel="nofollow noreferrer">inability</a> to do <a href="http://www.google.com/searc...
[ { "answer_id": 28443, "author": "Derek Park", "author_id": 872, "author_profile": "https://Stackoverflow.com/users/872", "pm_score": 1, "selected": false, "text": "Double.MaxValue Double.MaxValue Double.PositiveInfinity" } ]
2008/08/25
[ "https://Stackoverflow.com/questions/27095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/547/" ]
27,148
<p>I want to merge multiple rss feeds into a single feed, removing any duplicates. Specifically, I'm interested in merging the feeds for the <a href="https://stackoverflow.com/tags">tags</a> I'm interested in.</p> <p>[A quick <a href="http://www.google.com/search?q=rss+merge+reader" rel="nofollow noreferrer">search</a...
[ { "answer_id": 36441, "author": "Emperor XLII", "author_id": 2495, "author_profile": "https://Stackoverflow.com/users/2495", "pm_score": 2, "selected": false, "text": "'#' '+' '+' http://pipes.yahoo.com/pipes/pipe.run?_id=uP22vN923RG_c71O1ZzWFw&_render=rss&tags=.net+c%23+powershell\n" ...
2008/08/26
[ "https://Stackoverflow.com/questions/27148", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2495/" ]
27,219
<p>Given a select with multiple option's in jQuery. </p> <pre><code>$select = $("&lt;select&gt;&lt;/select&gt;"); $select.append("&lt;option&gt;Jason&lt;/option&gt;") //Key = 1 .append("&lt;option&gt;John&lt;/option&gt;") //Key = 32 .append("&lt;option&gt;Paul&lt;/option&gt;") //Key = 423 </code></pre> ...
[ { "answer_id": 27231, "author": "Lucas Wilson-Richter", "author_id": 1157, "author_profile": "https://Stackoverflow.com/users/1157", "pm_score": 3, "selected": false, "text": "<option> <option value=1>Jason</option>\n" }, { "answer_id": 27259, "author": "Juan", "author_id...
2008/08/26
[ "https://Stackoverflow.com/questions/27219", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1293/" ]
27,220
<p>I'm looking for a method, or a code snippet for converting std::string to LPCWSTR</p>
[ { "answer_id": 27291, "author": "17 of 26", "author_id": 2284, "author_profile": "https://Stackoverflow.com/users/2284", "pm_score": 4, "selected": false, "text": "#include <atlbase.h>\n#include <atlconv.h>\n\n. . .\n\nstring myStr(\"My string\");\nCA2W unicodeStr(myStr);\n" }, { ...
2008/08/26
[ "https://Stackoverflow.com/questions/27220", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2701/" ]
27,222
<p>I am looking for good methods of manipulating HTML in PHP. For example, the problem I currently have is dealing with malformed HTML.</p> <p>I am getting input that looks something like this:</p> <pre><code>&lt;div&gt;This is some &lt;b&gt;text </code></pre> <p>As you noticed, the HTML is missing closing tags. I c...
[ { "answer_id": 4303405, "author": "Decko", "author_id": 320702, "author_profile": "https://Stackoverflow.com/users/320702", "pm_score": 2, "selected": false, "text": "$d = new DOMDocument;\n$d->loadHTML('<div>This is some <b>text');\n$d->saveHTML();\n <!DOCTYPE html PUBLIC \"-//W3C//DTD ...
2008/08/26
[ "https://Stackoverflow.com/questions/27222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/889/" ]
27,240
<p>In Java 5 and above you have the foreach loop, which works magically on anything that implements <code>Iterable</code>:</p> <pre><code>for (Object o : list) { doStuff(o); } </code></pre> <p>However, <code>Enumerable</code> still does not implement <code>Iterable</code>, meaning that to iterate over an <code>Enum...
[ { "answer_id": 38518, "author": "erickson", "author_id": 3474, "author_profile": "https://Stackoverflow.com/users/3474", "pm_score": 6, "selected": false, "text": "Enumeration Iterable Iterable Iterator Enumeration Iterator Enumeration Iterable Iterable iterator() Iterator Enumeration En...
2008/08/26
[ "https://Stackoverflow.com/questions/27240", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1666/" ]
27,242
<p>I've had a lot of good experiences learning about web development on <a href="http://www.w3schools.com/" rel="nofollow noreferrer">w3schools.com</a>. It's hit or miss, I know, but the PHP and CSS sections specifically have proven very useful for reference.</p> <p>Anyway, I was wondering if there was a similar site ...
[ { "answer_id": 926131, "author": "egyamado", "author_id": 66493, "author_profile": "https://Stackoverflow.com/users/66493", "pm_score": 2, "selected": false, "text": "<script language=\"javascript\" type=\"text/javascript\">\n $(function() {\n $('a').click(function() {\n ...
2008/08/26
[ "https://Stackoverflow.com/questions/27242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2908/" ]
27,247
<p>I need to know about Epoll On linux System.</p> <p>Could you recommend manual or guides about epoll library?</p> <p>need more detailed guides. it's better to have some examples.</p> <p>help me. and Thank you for reading.</p>
[ { "answer_id": 6150841, "author": "Viswesn", "author_id": 527813, "author_profile": "https://Stackoverflow.com/users/527813", "pm_score": 4, "selected": false, "text": "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#include <sys/types.h>\n#include <sy...
2008/08/26
[ "https://Stackoverflow.com/questions/27247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2370764/" ]
27,258
<p>I'm about to start a fairly Ajax heavy feature in my company's application. What I need to do is make an Ajax callback every few minutes a user has been on the page. </p> <ul> <li>I don't need to do any DOM updates before, after, or during the callbacks. </li> <li>I don't need any information from the page, just fr...
[ { "answer_id": 27270, "author": "Daniel Pollard", "author_id": 2758, "author_profile": "https://Stackoverflow.com/users/2758", "pm_score": 4, "selected": true, "text": "public class RSSHandler : IHttpHandler\n {\n public void ProcessRequest (HttpContext context)\n { \n...
2008/08/26
[ "https://Stackoverflow.com/questions/27258", "https://Stackoverflow.com", "https://Stackoverflow.com/users/392/" ]
27,266
<p>I heard that if you use port 443 (the port usually used for https) for ssh, the encrypted packets look the same to your isp.</p> <p>Could this be a way to avoid traffic shaping/throttling?</p>
[ { "answer_id": 27463, "author": "tghw", "author_id": 2363, "author_profile": "https://Stackoverflow.com/users/2363", "pm_score": 2, "selected": false, "text": "SecureSocket" } ]
2008/08/26
[ "https://Stackoverflow.com/questions/27266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2908/" ]
27,267
<p>I've been interacting with Amazon S3 through <a href="https://addons.mozilla.org/en-US/firefox/addon/3247" rel="noreferrer">S3Fox</a> and I can't seem to delete my buckets. I select a bucket, hit delete, confirm the delete in a popup, and... nothing happens. Is there another tool that I should use?</p>
[ { "answer_id": 1179190, "author": "MattLor", "author_id": 144148, "author_profile": "https://Stackoverflow.com/users/144148", "pm_score": 5, "selected": false, "text": "./s3cmd.rb deleteall <your bucket name>\n require 'aws/s3'\n\nAWS::S3::Base.establish_connection!(\n:access_key_id => '...
2008/08/26
[ "https://Stackoverflow.com/questions/27267", "https://Stackoverflow.com", "https://Stackoverflow.com/users/658/" ]
27,288
<p>I know that this should be easy but how do I export/save a DataGridView to excel?</p>
[ { "answer_id": 27306, "author": "brendan", "author_id": 225, "author_profile": "https://Stackoverflow.com/users/225", "pm_score": -1, "selected": false, "text": "\n Public Overloads Shared Function BuildExcel(ByVal gView As System.Web.UI.WebControls.GridView) As String\n\n Pr...
2008/08/26
[ "https://Stackoverflow.com/questions/27288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/359/" ]
27,294
<p>I'm working on an internal project for my company, and part of the project is to be able to parse various "Tasks" from an XML file into a collection of tasks to be ran later.</p> <p>Because each type of Task has a multitude of different associated fields, I decided it would be best to represent each type of Task wi...
[ { "answer_id": 27310, "author": "DevelopingChris", "author_id": 1220, "author_profile": "https://Stackoverflow.com/users/1220", "pm_score": 5, "selected": true, "text": "public Task CreateTask(XmlElement elem)\n{\n if (elem != null)\n { \n try\n {\n Assembly ...
2008/08/26
[ "https://Stackoverflow.com/questions/27294", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1965/" ]
27,303
<p>Anyone know if it's possible to databind the ScaleX and ScaleY of a render transform in Silverlight 2 Beta 2? Binding transforms is possible in WPF - But I'm getting an error when setting up my binding in Silverlight through XAML. Perhaps it's possible to do it through code?</p> <pre><code>&lt;Image Height="60" Hor...
[ { "answer_id": 27309, "author": "Matt Hamilton", "author_id": 615, "author_profile": "https://Stackoverflow.com/users/615", "pm_score": 1, "selected": false, "text": "<ScaleTransform ScaleX=\"{Binding Foo}\" ScaleY=\"{Binding Bar}\" />\n" }, { "answer_id": 27401, "author": "M...
2008/08/26
[ "https://Stackoverflow.com/questions/27303", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1199387/" ]
27,359
<p>I want to setup a cron job to rsync a remote system to a backup partition, something like:</p> <pre><code>bash -c 'rsync -avz --delete --exclude=proc --exclude=sys root@remote1:/ /mnt/remote1/' </code></pre> <p>I would like to be able to "set it and forget it" but what if <code>/mnt/remote1</code> becomes unmounte...
[ { "answer_id": 27370, "author": "Harley Holcombe", "author_id": 1057, "author_profile": "https://Stackoverflow.com/users/1057", "pm_score": 2, "selected": false, "text": "if df |grep -q '/mnt/mountpoint$'\n then\n echo \"Found mount point, running task\"\n # Do some stuf...
2008/08/26
[ "https://Stackoverflow.com/questions/27359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/163/" ]
27,381
<p>I'm asking this question purely from a usability <code>standpoint</code>!</p> <p>Should a website <code>expand/stretch</code> to fill the viewing area when you resize a browser window?</p> <p>I know for sure there are the obvious cons:</p> <ul> <li>Wide columns of text are hard to read.</li> <li>Writing html/css ...
[ { "answer_id": 132102, "author": "paperhorse", "author_id": 4498, "author_profile": "https://Stackoverflow.com/users/4498", "pm_score": 0, "selected": false, "text": "max-width window width fixed width" }, { "answer_id": 216295, "author": "Kornel", "author_id": 27009, ...
2008/08/26
[ "https://Stackoverflow.com/questions/27381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2908/" ]