qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
9,256 | <p>Thanks to FireFox's buggy implementation of ActiveX components (it really should take an image of them when printing) Flex components (in our case charts) don't print in FX.</p>
<p>They print fine in IE7, even IE6.</p>
<p>We need these charts to print, but they also have dynamic content. I don't really want to dr... | [
{
"answer_id": 16362,
"author": "Matt MacLean",
"author_id": 22,
"author_profile": "https://Stackoverflow.com/users/22",
"pm_score": 3,
"selected": true,
"text": "private function initPrint():void {\n //if we don't have a stage, wait until the next frame and try again\n if ( stage ... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/905/"
] |
9,272 | <p>Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree?</p>
<p>EDIT: I updated the accepted answer on this one since it looks like P4V added support for this in the January 2009 release.</p>
| [
{
"answer_id": 9280,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 6,
"selected": false,
"text": "find . -type f -print0 | xargs -0 p4 fstat >/dev/null\n find . -type f -print0 | xargs -0 p4 fstat >/dev/null 2>mylogfile\... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1146/"
] |
9,275 | <p>I writing a report in Visual Studio that takes a user input parameter and runs against an ODBC datasource. I would like to write the query manually and have reporting services replace part of the where clause with the parameter value before sending it to the database. What seems to be happening is that the <code>@pa... | [
{
"answer_id": 9325,
"author": "Jorriss",
"author_id": 621,
"author_profile": "https://Stackoverflow.com/users/621",
"pm_score": 4,
"selected": true,
"text": "=\"Select col1, col2 from table 1 Where col3 = \" & Parameters!Param1.Value \n =\"Select col1, col2 from table 1 Where col3 = '\"... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1104/"
] |
9,279 | <p>I absolutely love the <a href="http://winscp.net/eng/docs/task_keep_up_to_date" rel="noreferrer">Keep Remote Directory Up-to-date</a> feature in <a href="http://winscp.net/" rel="noreferrer">Winscp</a>. Unfortunately, I can't find anything as simple to use in OS X or Linux. I know the same thing can <em>theoreticall... | [
{
"answer_id": 9287,
"author": "dwj",
"author_id": 346,
"author_profile": "https://Stackoverflow.com/users/346",
"pm_score": 5,
"selected": true,
"text": "#!/bin/sh\nrsync -avrz --progress --exclude-from .rsync_exclude_remote . remote_login@remote_computer:remote_dir \n\n# options\n# ... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/302/"
] |
9,289 | <p>I would like to filter an array of items by using the <code>map()</code> function. Here is a code snippet:</p>
<pre><code>var filteredItems = items.map(function(item)
{
if( ...some condition... )
{
return item;
}
});
</code></pre>
<p>The problem is that filtered out items still uses space in th... | [
{
"answer_id": 9295,
"author": "Patrick",
"author_id": 429,
"author_profile": "https://Stackoverflow.com/users/429",
"pm_score": 4,
"selected": false,
"text": "Array.filter"
},
{
"answer_id": 9297,
"author": "olliej",
"author_id": 784,
"author_profile": "https://Stack... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/268/"
] |
9,301 | <p>I'm having trouble with events in Internet Explorer 7.</p>
<p>When I have a form with <strong>two or more</strong> <code>input[type=text]</code> and I press enter, the events occurs in this order:</p>
<ol>
<li>submit button (<code>onClick</code>)</li>
<li>form (<code>onSubmit</code>)</li>
</ol>
<p>Sample code:</p... | [
{
"answer_id": 35775438,
"author": "Crystal Paladin",
"author_id": 5917094,
"author_profile": "https://Stackoverflow.com/users/5917094",
"pm_score": 0,
"selected": false,
"text": "<FORM onSubmit=\"{alert('form::onSubmit'); return false;}\">\n <INPUT TYPE=\"text\">\n <input type=\"h... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1100/"
] |
9,303 | <p>How do you retrieve selected text using Regex in C#?</p>
<p>I am looking for C# code that is equivalent to this Perl code:</p>
<pre><code>$indexVal = 0;
if($string =~ /Index: (\d*)/){$indexVal = $1;}
</code></pre>
| [
{
"answer_id": 9306,
"author": "Patrick",
"author_id": 429,
"author_profile": "https://Stackoverflow.com/users/429",
"pm_score": 4,
"selected": true,
"text": "int indexVal = 0;\nRegex re = new Regex(@\"Index: (\\d*)\")\nMatch m = re.Match(s)\n\nif(m.Success)\n indexVal = int.TryParse(m.... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/889/"
] |
9,304 | <p><em>Note: This was posted when I was starting out C#. With 2014 knowledge, I can truly say that auto-properties are among the best things that ever happened to the C# language.</em></p>
<p>I am used to create my properties in C# using a private and a public field:</p>
<pre><code>private string title;
public string... | [
{
"answer_id": 9315,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 3,
"selected": false,
"text": "public string Name = \"DefaultName\";\n"
},
{
"answer_id": 9342,
"author": "Mike Stone",
"author_id": 122,... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
9,314 | <p>I have a .NET 2.0 windows forms app, which makes heavy use of the <code>ListView</code> control.</p>
<p>I've subclassed the <code>ListView</code> class into a templated <code>SortableListView<T></code> class, so it can be a bit smarter about how it displays things, and sort itself.</p>
<p>Unfortunately this ... | [
{
"answer_id": 9320,
"author": "lomaxx",
"author_id": 493,
"author_profile": "https://Stackoverflow.com/users/493",
"pm_score": 3,
"selected": false,
"text": "using My.Other.Namespace;\n"
},
{
"answer_id": 9387,
"author": "Orion Edwards",
"author_id": 234,
"author_pro... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/234/"
] |
9,321 | <p>How do you create a static class in C++? I should be able to do something like:</p>
<pre><code>cout << "bit 5 is " << BitParser::getBitAt(buffer, 5) << endl;
</code></pre>
<p>Assuming I created the <code>BitParser</code> class. What would the <code>BitParser</code> class definition look like?</p>... | [
{
"answer_id": 9326,
"author": "Philip Reynolds",
"author_id": 1087,
"author_profile": "https://Stackoverflow.com/users/1087",
"pm_score": 4,
"selected": false,
"text": "class BitParser {\npublic:\n ...\n static ... getBitAt(...) {\n }\n};\n"
},
{
"answer_id": 9328,
"autho... | 2008/08/12 | [
"https://Stackoverflow.com/questions/9321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/432/"
] |
9,336 | <p>I'm trying to generate a sitemap.xml on the fly for a particular asp.net website.</p>
<p>I found a couple solutions:<br /></p>
<ol>
<li><a href="http://sitemap.chinookwebs.com/" rel="nofollow noreferrer">chinookwebs</a></li>
<li><a href="http://web.archive.org/web/20080307061444/http://www.cervoproject.info:80/sitem... | [
{
"answer_id": 9533,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "void IHttpHandler.ProcessRequest(HttpContext context)\n{\n //\n // Important to return qualified XML (text/xml) for sitemap... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/296/"
] |
9,338 | <p>One of the articles I really enjoyed reading recently was <a href="http://blog.last.fm/2008/08/01/quality-control" rel="nofollow noreferrer">Quality Control by Last.FM</a>. In the spirit of this article, I was wondering if anyone else had favorite monitoring setups for web type applications. Or maybe if you don't be... | [
{
"answer_id": 9533,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "void IHttpHandler.ProcessRequest(HttpContext context)\n{\n //\n // Important to return qualified XML (text/xml) for sitemap... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1063/"
] |
9,341 | <p>Simple ASP.NET application.</p>
<p>I have two drop-down controls. On the first-drop down I have a JavaScript <code>onChange</code> event. The JavaScript enables the second drop-down and removes a value from it (the value selected in the first drop-down). If they click the blank first value of the drop-down, then th... | [
{
"answer_id": 9365,
"author": "Adhip Gupta",
"author_id": 384,
"author_profile": "https://Stackoverflow.com/users/384",
"pm_score": 3,
"selected": true,
"text": "<%@ Page Language=\"C#\" %>\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/233/"
] |
9,355 | <p>I can display and select a single file in windows explorer like this:</p>
<pre><code>explorer.exe /select, "c:\path\to\file.txt"
</code></pre>
<p>However, I can't work out how to select more than one file. None of the permutations of select I've tried work.</p>
<p>Note: I looked at these pages for docs, ne... | [
{
"answer_id": 9497,
"author": "bruceatk",
"author_id": 791,
"author_profile": "https://Stackoverflow.com/users/791",
"pm_score": 2,
"selected": false,
"text": "F12:: \n run explorer.exe /select`, \"c:\\path\\to\\file.txt\"\n SendInput {Shift Down}{Down}{Down}{Shift Up}\nreturn\n"
},
... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/234/"
] |
9,376 | <p>Do you use ILMerge? Do you use ILMerge to merge multiple assemblies to ease deployment of dll's? Have you found problems with deployment/versioning in production after ILMerging assemblies together?</p>
<p>I'm looking for some advice in regards to using ILMerge to reduce deployment friction, if that is even possibl... | [
{
"answer_id": 9784933,
"author": "Contango",
"author_id": 107409,
"author_profile": "https://Stackoverflow.com/users/107409",
"pm_score": 5,
"selected": false,
"text": ".exe + .dll files combined .exe .pdb Post Build String \"$(SolutionDir)ILMerge\\ILMerge.exe\" /out:\"$(TargetDir)$(Tar... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1083/"
] |
9,383 | <p>How do you access a SQL Server 2005 Express Edition from a application in a network computer?</p>
<p>The access I need is both from application (Linq-to-SQL and ODBC) and from Management Studio</p>
| [
{
"answer_id": 9896,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "telnet 192.168.10.10 1433\n"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/9383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1154/"
] |
9,409 | <p>I have a datagrid getting bound to a dataset, and I want to display the average result in the footer for a column populated with integers.</p>
<p>The way I figure, there's 2 ways I can think of:</p>
<p>1."Use the <strong>Source</strong>, Luke"<br>
In the code where I'm calling DataGrid.DataBind(), use the DataTabl... | [
{
"answer_id": 9896,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "telnet 192.168.10.10 1433\n"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/9409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/952/"
] |
9,410 | <p>I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C?</p>
| [
{
"answer_id": 9413,
"author": "Niyaz",
"author_id": 184,
"author_profile": "https://Stackoverflow.com/users/184",
"pm_score": 11,
"selected": true,
"text": "void func ( void (*f)(int) );\n f void int print func void print ( int x ) {\n printf(\"%d\\n\", x);\n}\n func(print);\n func fun... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/432/"
] |
9,434 | <p>In my ASP.NET User Control I'm adding some JavaScript to the <code>window.onload</code> event:</p>
<pre><code>if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), onloadScriptName))
Page.ClientScript.RegisterStartupScript(this.GetType(), onloadScriptName,
"window.onload = function() {myFunction()... | [
{
"answer_id": 9447,
"author": "Chris Farmer",
"author_id": 404,
"author_profile": "https://Stackoverflow.com/users/404",
"pm_score": 2,
"selected": false,
"text": "window.attachEvent(\"onload\", myOtherFunctionToCall);\n\nfunction myOtherFunctionToCall() {\n // do something\n}\n"
}... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/233/"
] |
9,435 | <p>We are in the initial planning stages of building out a mobile site for one of our clients. This mobile site will be in addition to the main site that we have already built for them. We've determined that the content is going to be a small subsection of the main site and will target the main audience that is expec... | [
{
"answer_id": 15168,
"author": "crashmstr",
"author_id": 1441,
"author_profile": "https://Stackoverflow.com/users/1441",
"pm_score": 2,
"selected": false,
"text": "<script type=\"application/x-javascript\">\n\n if (navigator.userAgent.indexOf('iPhone') != -1) {\n addEventListener(\"... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/648/"
] |
9,455 | <p>Has anyone been able to get xinc to run correctly under OpenBSD's chrooted default Apache? I'd like to keep our development server running fully chrooted just like our Production server so that we make sure our code runs just fine chrooted.</p>
| [
{
"answer_id": 24990,
"author": "Henrik Gustafsson",
"author_id": 2010,
"author_profile": "https://Stackoverflow.com/users/2010",
"pm_score": 1,
"selected": false,
"text": "systrace -A -d. <app>\nldd <app>\n"
},
{
"answer_id": 36964,
"author": "Till",
"author_id": 2859,
... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/204/"
] |
9,473 | <p>I have a custom control that implements IPostBackEventHandler. Some client-side events invoke __doPostBack(controlID, eventArgs).</p>
<p>The control is implemented in two different user controls. In one control, RaisePostBackEvent is fired on the server-side when <code>__doPostBack</code> is invoked. In the other c... | [
{
"answer_id": 9523,
"author": "Lars Mæhlum",
"author_id": 960,
"author_profile": "https://Stackoverflow.com/users/960",
"pm_score": 0,
"selected": false,
"text": "public class MyControl : UserControl {}\n public class MyControl : WebControl, INamingContainer {}\n"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/9473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/67/"
] |
9,486 | <p>I could swear I've seen people typing function headers and then hitting some key combination to auto-create function braces and insert the cursor between them like so:</p>
<pre><code>void foo()_
</code></pre>
<p>to</p>
<pre><code>void foo()
{
_
}
</code></pre>
<p>Is this a built-in feature?</p>
| [
{
"answer_id": 9494,
"author": "Luke",
"author_id": 327,
"author_profile": "https://Stackoverflow.com/users/327",
"pm_score": 3,
"selected": false,
"text": "Sub FunctionBraces()\n DTE.ActiveDocument.Selection.NewLine\n DTE.ActiveDocument.Selection.Text = \"{}\"\n DTE.ActiveDocum... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
9,508 | <p>This should be fine seeing as the CLR hasn't actually changed?</p>
<p>The boxes running the C# 2.0 code <strong>have</strong> had .NET 3.5 rolled out.</p>
<p>The background is that we have a windows service (.NET 2.0 exe built with VS2005, deployed to ~150 servers) that dynamically loads assemblies (almost like pl... | [
{
"answer_id": 9526,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 4,
"selected": true,
"text": "yield var"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/9508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419/"
] |
9,612 | <p>I'm trying to set the group type for a new Active Directory Entry via VB.NET and DirectoryServices to create a distribution list.</p>
<p>How do I access the ADS_GROUP_TYPE enumerations?</p>
<p>Specifically I'm after ADS_GROUP_TYPE_GLOBAL_GROUP.</p>
| [
{
"answer_id": 9617,
"author": "David A Gibson",
"author_id": 982,
"author_profile": "https://Stackoverflow.com/users/982",
"pm_score": 0,
"selected": false,
"text": " Const ADS_GROUP_TYPE_GLOBAL_GROUP As Object = &H2\n adNewGroup.Properties(\"groupType\").Value = ADS_GROUP... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/982/"
] |
9,614 | <p>Suppose we have a table A:</p>
<pre><code>itemid mark
1 5
2 3
</code></pre>
<p>and table B:</p>
<pre><code>itemid mark
1 3
3 5
</code></pre>
<p>I want to join A*B on A.itemid=B.itemid both right and left ways. i.e. result:</p>
<pre><code>itemid A.mark B.mark
1 5 3
2 3 NUL... | [
{
"answer_id": 9625,
"author": "roo",
"author_id": 716,
"author_profile": "https://Stackoverflow.com/users/716",
"pm_score": 2,
"selected": false,
"text": "select distinct T.itemid, A.mark as \"A.mark\", B.mark as \"B.mark\"\n from (select * from A union select * from B) T \n left ... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/844/"
] |
9,632 | <p>Apparantly when users right-click in our WPF application, and they use the Windows Classic theme, the default ContextMenu of the TextBox (which contains Copy, Cut and Paste) has a black background.</p>
<p>I know this works well:</p>
<pre><code><Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentati... | [
{
"answer_id": 9864,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": " <Style\n TargetType=\"{x:Type ToolTip}\">\n <Setter\n Property=\"Template\">\n <Setter.Value>\n <Control... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/900/"
] |
9,650 | <p>I've been wanting to teach myself Lisp for a while. However, all the interpreters of which I've heard involve some flavor of emacs.
Are there any command line interpreters, such that I could type this into the command line:</p>
<blockquote>
<p>lispinterpret sourcefile.lisp</p>
</blockquote>
<p>just like I can r... | [
{
"answer_id": 14731001,
"author": "pnkfelix",
"author_id": 36585,
"author_profile": "https://Stackoverflow.com/users/36585",
"pm_score": 2,
"selected": false,
"text": "scheme petite mit-scheme scheme48 rs racket guile bigloo csi gsi gosh IronScheme.Console kawa java kawa.repl larceny sc... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1084/"
] |
9,666 | <p>I've been raised to believe that if multiple threads can access a variable, then all reads from and writes to that variable must be protected by synchronization code, such as a "lock" statement, because the processor might switch to another thread halfway through a write.</p>
<p>However, I was looking through Syste... | [
{
"answer_id": 9682,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 0,
"selected": false,
"text": "//Perform initialization private static void Initialize()\n{\n if (s_Initialized)\n return;\n\n lock(s_lock)\n {\n... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1016/"
] |
9,667 | <p>Given a handle of type <code>HWND</code> is it possible to confirm that the handle represents a real window?</p>
| [
{
"answer_id": 9670,
"author": "Serge",
"author_id": 1007,
"author_profile": "https://Stackoverflow.com/users/1007",
"pm_score": 5,
"selected": true,
"text": "IsWindow BOOL isRealHandle = IsWindow(unknwodnHandle);\n"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/9667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/887/"
] |
9,673 | <p>I have been working with a <code>string[]</code> array in C# that gets returned from a function call. I could possibly cast to a <code>Generic</code> collection, but I was wondering if there was a better way to do it, possibly by using a temp array.</p>
<p><strong>What is the best way to remove duplicates from a C#... | [
{
"answer_id": 9685,
"author": "Jeff Atwood",
"author_id": 1,
"author_profile": "https://Stackoverflow.com/users/1",
"pm_score": 10,
"selected": true,
"text": "int[] s = { 1, 2, 3, 3, 4};\nint[] q = s.Distinct().ToArray();\n"
},
{
"answer_id": 9755,
"author": "GateKiller",
... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/493/"
] |
9,687 | <p>I'm looking for a pattern for performing a dynamic search on multiple tables.</p>
<p>I have no control over the legacy (and poorly designed) database table structure.</p>
<p>Consider a scenario similar to a resume search where a user may want to perform a search against any of the data in the resume and get back a... | [
{
"answer_id": 9889,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "Users\n-----------\nName nvarchar(20)\nNickname nvarchar(10)\n SELECT Name, Nickname\nFROM Users\nWHERE\n Name = COALESCE(@na... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1097/"
] |
9,734 | <p>Why does C#.Net allow the declaration of the string object to be case-insensitive?</p>
<pre><code>String sHello = "Hello";
string sHello = "Hello";
</code></pre>
<p>Both the lower-case and upper-case S of the word String are acceptable and this seems to be the only object that allows this.</p>
<p>Can anyone expla... | [
{
"answer_id": 9742,
"author": "ZombieSheep",
"author_id": 377,
"author_profile": "https://Stackoverflow.com/users/377",
"pm_score": 0,
"selected": false,
"text": "string myString = \"Hello\";\n String.IsNullOrEmpty(myStringVariable);\n"
},
{
"answer_id": 9747,
"author": "Kei... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/383/"
] |
9,750 | <p>I was reading Joel's book where he was suggesting as interview question:</p>
<blockquote>
<p>Write a program to reverse the "ON" bits in a given byte.</p>
</blockquote>
<p>I only can think of a solution using C. </p>
<p>Asking here so you can show me how to do in a Non C way (if possible)</p>
| [
{
"answer_id": 9752,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 2,
"selected": false,
"text": "; al is input register\n; bl is output register\n\nxor bl, bl ; clear output\n\n; first bit\nrcl al, 1 ; rot... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123/"
] |
9,805 | <p>I am currently writing a small calendar in ASP.Net C#. Currently to produce the rows of the weeks I do the following for loop:</p>
<pre><code>var iWeeks = 6;
for (int w = 0; w < iWeeks; w++) {
</code></pre>
<p>This works fine, however, some month will only have 5 weeks and in some rare cases, 4.</p>
<p>How can... | [
{
"answer_id": 9810,
"author": "kokos",
"author_id": 1065,
"author_profile": "https://Stackoverflow.com/users/1065",
"pm_score": 0,
"selected": false,
"text": "var days = DateTime.DaysInMonth(year, month) + \n WhatDayOfWeekTheMonthStarts(year, month); \nint rows = (days / 7)... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/383/"
] |
9,831 | <p>I've asked this question to the forums on the Mootools website and one person said that my class selection was corrupted before an admin came along and changed my post status to invalid. Needless to say this did not help much. I then posted to a google group for Mootools with no response. My question is why doesn... | [
{
"answer_id": 9935722,
"author": "Neil",
"author_id": 1302175,
"author_profile": "https://Stackoverflow.com/users/1302175",
"pm_score": 1,
"selected": false,
"text": "droppables Drag.Move drop enter leave"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/9831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1491425/"
] |
9,882 | <p>I am working on a project that requires the parsing of log files. I am looking for a fast algorithm that would take groups messages like this:</p>
<blockquote>
<p>The temperature at P1 is 35F.</p>
<p>The temperature at P1 is 40F.</p>
<p>The temperature at P3 is 35F.</p>
<p>Logger stopped.</p>
<p>Logger started.</p>
... | [
{
"answer_id": 10576,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 0,
"selected": false,
"text": "*scanf"
},
{
"answer_id": 10589,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Sta... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
9,905 | <p>Is there a way to check to see if an Microsoft Office process (i.e. Word, Excel) has hung when using Office Automation? Additionally, if the process is hung, is there a way to terminate it?</p>
| [
{
"answer_id": 9947,
"author": "Ed Schwehm",
"author_id": 1206,
"author_profile": "https://Stackoverflow.com/users/1206",
"pm_score": 0,
"selected": false,
"text": "private Microsoft.Office.Interop.Excel.Application _excel;\n// ... do some stuff ...\n_excel.Quit();\n"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/9905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1185/"
] |
9,928 | <p>I am working on a small webapp and I want to use Groovy to write some unit testing for my app. Most of my coding is done on Eclipse and I really want to run all the unit testing with the graphical test runner within Eclipse (I really like the green bar :) )</p>
<p>Sadly, after 4 hours of try-and-error, I'm still no... | [
{
"answer_id": 79907,
"author": "Peter Kelley",
"author_id": 14893,
"author_profile": "https://Stackoverflow.com/users/14893",
"pm_score": 1,
"selected": false,
"text": "_ECLIPSE"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/9928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
9,974 | <p>This is a question I asked on another forum which received some decent answers, but I wanted to see if anyone here has more insight.</p>
<p>The problem is that you have one of your pages in a web application timing out when it gets to a stored procedure call, so you use Sql Profiler, or your application trace logs,... | [
{
"answer_id": 9982,
"author": "GateKiller",
"author_id": 383,
"author_profile": "https://Stackoverflow.com/users/383",
"pm_score": -1,
"selected": false,
"text": "DataAdapter.SelectCommand.CommandTimeout = 120;\n"
},
{
"answer_id": 9996,
"author": "Eric Z Beard",
"author... | 2008/08/13 | [
"https://Stackoverflow.com/questions/9974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1219/"
] |
10,006 | <p>I have a silverlight 2 beta 2 application that accesses a WCF web service. Because of this, it currently can only use basicHttp binding. The webservice will return fairly large amounts of XML data. This seems fairly wasteful from a bandwidth usage standpoint as the response, if zipped, would be smaller by a facto... | [
{
"answer_id": 10040,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 4,
"selected": false,
"text": "public static class CompressedSerializer\n{\n /// <summary>\n /// Decompresses the specified compressed data.\n /// ... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/313/"
] |
10,042 | <p>What's the best way to make a linked list in Java?</p>
| [
{
"answer_id": 12432,
"author": "Juha Syrjälä",
"author_id": 1431,
"author_profile": "https://Stackoverflow.com/users/1431",
"pm_score": 5,
"selected": false,
"text": "list = new java.util.LinkedList()\n"
},
{
"answer_id": 25311,
"author": "Aaron",
"author_id": 2628,
... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571/"
] |
10,059 | <p>I'm developing an MFC application and I've recently been searching for a good method to remove the icon from a Windows title bar, but retain the close button. The two obvious candidate solutions are turning off the system menu style or using the tool window style, but I would prefer not to disable the system menu or... | [
{
"answer_id": 10539,
"author": "Aidan Ryan",
"author_id": 1042,
"author_profile": "https://Stackoverflow.com/users/1042",
"pm_score": 0,
"selected": false,
"text": "int clickX = GET_X_LPARAM(lParam);\nint clickY = GET_Y_LPARAM(lParam);\n\nCRect frameRect;\nmainFrame.GetWindowRect(&frame... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
10,071 | <p>I'm working on an app that grabs and installs a bunch of updates off an an external server, and need some help with threading. The user follows this process:</p>
<ul>
<li>Clicks button</li>
<li>Method checks for updates, count is returned.</li>
<li>If greater than 0, then ask the user if they want to install using ... | [
{
"answer_id": 10116,
"author": "JamesSugrue",
"author_id": 1075,
"author_profile": "https://Stackoverflow.com/users/1075",
"pm_score": 1,
"selected": false,
"text": "Application.DoEvents()\n if (dlgRes == DialogResult.Yes)\n{\n Application.DoEvents(); \n ProcessAllUpdates(um2); \n}\... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/636/"
] |
10,072 | <p>How do I write code where a company icon appears on the left side next to the URL address in the browser's address bar?</p>
| [
{
"answer_id": 10144,
"author": "y0mbo",
"author_id": 417,
"author_profile": "https://Stackoverflow.com/users/417",
"pm_score": 2,
"selected": false,
"text": "<head> <link> <link type=\"image/x-icon\" rel=\"shortcut icon\" href=\"favicon.ico\" />\n"
},
{
"answer_id": 11896,
"... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
10,123 | <p>I'm trying to decode the result of the Python os.wait() function. This returns, according to the Python docs:</p>
<blockquote>
<p>a tuple containing its pid and exit status indication: a 16-bit number, whose low byte is the signal number that killed the process, and whose high byte is the exit status (if the sign... | [
{
"answer_id": 10129,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 5,
"selected": true,
"text": "signum = status & 0xff\nexitstatus = (status & 0xff00) >> 8\n"
},
{
"answer_id": 10132,
"author": "Derek Park"... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/742/"
] |
10,149 | <p>For context, I am something of an emacs newbie. I haven't used it for very long, but have been using it more and more (I like it a lot). Also I'm comfortable with lisp, but not super familiar with elisp.</p>
<p>What I need to do is bind a regular expression to a keyboard combination because I use this particular ... | [
{
"answer_id": 10161,
"author": "Mike Stone",
"author_id": 122,
"author_profile": "https://Stackoverflow.com/users/122",
"pm_score": 4,
"selected": true,
"text": ".emacs C-x( abc *return* C-x)\n C-xeee\n M-x name-last-kbd-macro testit\n M-x testit\n M-x insert-kbd-macro\n (fset 'testit\n... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/92/"
] |
10,158 | <p>What's the easiest way to do an "instring" type function with a regex? For example, how could I reject a whole string because of the presence of a single character such as <code>:</code>? For example: </p>
<ul>
<li><code>this</code> - okay</li>
<li><code>there:is</code> - not okay because of <code>:</code></li>
</u... | [
{
"answer_id": 10168,
"author": "Adam Lerman",
"author_id": 673,
"author_profile": "https://Stackoverflow.com/users/673",
"pm_score": 0,
"selected": false,
"text": "[any alpha numeric]\\*:[any alphanumeric]\\*"
},
{
"answer_id": 10186,
"author": "Community",
"author_id": ... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/64/"
] |
10,190 | <p>Many applications have grids that display data from a database table one page at a time. Many of them also let the user pick the number of records per page, sort by any column, and navigate back and forth through the results.</p>
<p>What's a good algorithm to implement this pattern without bringing the entire table... | [
{
"answer_id": 10194,
"author": "Michael Stum",
"author_id": 91,
"author_profile": "https://Stackoverflow.com/users/91",
"pm_score": 5,
"selected": true,
"text": "DECLARE @PageNum AS INT;\nDECLARE @PageSize AS INT;\nSET @PageNum = 2;\nSET @PageSize = 10;\n\nWITH OrdersRN AS\n(\n SELEC... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/373/"
] |
10,205 | <p>I'm looking at parsing a delimited string, something on the order of</p>
<p>a,b,c</p>
<p>But this is a very simple example, and parsing delimited data can get complex; for instance</p>
<p>1,"Your simple algorithm, it fails",True</p>
<p>would blow your naiive string.Split implementation to bits. Is there anythin... | [
{
"answer_id": 10223,
"author": "Stu",
"author_id": 414,
"author_profile": "https://Stackoverflow.com/users/414",
"pm_score": 2,
"selected": false,
"text": "var elements = new List<string>();\nvar current = new StringBuilder();\nvar p = 0;\n\nwhile (p < internalLine.Length) {\n if (in... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
10,228 | <p>Is there a way to get the tests inside of a <code>TestCase</code> to run in a certain order? For example, I want to separate the life cycle of an object from creation to use to destruction but I need to make sure that the object is set up first before I run the other tests.</p>
| [
{
"answer_id": 24670,
"author": "Gary Richardson",
"author_id": 2506,
"author_profile": "https://Stackoverflow.com/users/2506",
"pm_score": 3,
"selected": false,
"text": "setUp() tearDown() sharedFixture"
},
{
"answer_id": 1915096,
"author": "mjs",
"author_id": 11543,
... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/204/"
] |
10,229 | <p>Consider this problem: I have a program which should fetch (let's say) 100 records from a database, and then for each one it should get updated information from a web service. There are two ways to introduce parallelism in this scenario:</p>
<ol>
<li><p>I start each request to the web service on a new Thread. The n... | [
{
"answer_id": 10484,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 4,
"selected": true,
"text": "using System.Net; // need this somewhere\n\n// need to declare an class so we can cast our state object back out\nclass Re... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/380/"
] |
10,230 | <p>Which is more efficient for the compiler and the best practice for checking whether a string is blank? </p>
<ol>
<li>Checking whether the length of the string == 0</li>
<li>Checking whether the string is empty (strVar == "")</li>
</ol>
<p>Also, does the answer depend on language?</p>
| [
{
"answer_id": 10233,
"author": "Stu",
"author_id": 414,
"author_profile": "https://Stackoverflow.com/users/414",
"pm_score": 5,
"selected": true,
"text": "Length = 0 [0] == 0 .IsNullOrEmpty"
},
{
"answer_id": 10234,
"author": "Keith",
"author_id": 905,
"author_profil... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/288/"
] |
10,243 | <p>Our (beloved) designer keeps creating PNG files with transparent backgrounds for use in our applications. I'd like to make sure that this feature of the PNG works in "older" browsers as well. What's the best solution?</p>
<p><em>edits below</em></p>
<p>@mabwi & @syd - Whether or not I agree about the use of a ... | [
{
"answer_id": 92530,
"author": "hugoware",
"author_id": 17091,
"author_profile": "https://Stackoverflow.com/users/17091",
"pm_score": 2,
"selected": false,
"text": "div.theImage {\n background : url(smile.png) top left no-repeat;\n height : 100px;\n width : 100px;\n... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/326/"
] |
10,274 | <p>When should I <strong>not</strong> use the ThreadPool in .Net?</p>
<p>It looks like the best option is to use a ThreadPool, in which case, why is it not the only option?</p>
<p>What are your experiences around this?</p>
| [
{
"answer_id": 10287,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "ThreadPool ThreadPool ThreadPool ThreadPool ThreadPool"
},
{
"answer_id": 10369,
"author": "Derek Park",
"author... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/380/"
] |
10,300 | <p>I've been playing around with the ASP.NET MVC Framework and the one thing that's really confusing me is how I'm meant to do server side validation of posted form data. I presume I don't post back to the same URL, but if I don't, how do I redisplay the form with the entered data and error messages? Also, where shou... | [
{
"answer_id": 10364,
"author": "Iain Holder",
"author_id": 1122,
"author_profile": "https://Stackoverflow.com/users/1122",
"pm_score": 0,
"selected": false,
"text": "Update(int id, string name, string foo)\n return View(\"Item\", yourObject)\n"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/10300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/203/"
] |
10,303 | <p>I have some SQL Server DTS packages that import data from a FoxPro database. This was working fine until recently. Now the script that imports data from one of the FoxPro tables bombs out about 470,000 records into the import. I'm just pulling the data into a table with nullable varchar fields so I'm thinking it ... | [
{
"answer_id": 10934,
"author": "PabloG",
"author_id": 394,
"author_profile": "https://Stackoverflow.com/users/394",
"pm_score": 0,
"selected": false,
"text": "SET TABLEVALIDATE 11\nUSE \"YourTable\" EXCLUSIVE && If the table is damaged VFP must display an error here\nPACK && To re... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571/"
] |
10,308 | <p>Are you aware of any tool that creates diagrams showing the branch/merge activity in a SVN repository?</p>
<p>We've all seen these diagrams in various tutorials. Some good, some not so good. Can they be created automatically (or maybe with a little prodding -- you might have to tell it what if your branching philos... | [
{
"answer_id": 41939,
"author": "m104",
"author_id": 4039,
"author_profile": "https://Stackoverflow.com/users/4039",
"pm_score": 3,
"selected": false,
"text": "git svn init \"http://host/repo/location/trunk\"\n gitk --all\n"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/10308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/763/"
] |
10,313 | <p>Is it possible, in Windows XP, to copy files to a Network Place from the command line, a batch file or, even better, a PowerShell script?</p>
<p>What sent me down this road of research was trying to publish files to a WSS 3.0 document library from a user's machine. I can't map a drive to the library in question bec... | [
{
"answer_id": 10317,
"author": "Nathan Fellman",
"author_id": 1084,
"author_profile": "https://Stackoverflow.com/users/1084",
"pm_score": 1,
"selected": false,
"text": "copy src \\\\dest-machine\\shared-library-name\\dest\n"
},
{
"answer_id": 10385,
"author": "Abs",
"aut... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1245/"
] |
10,314 | <p>Being new to Objective-C (but a long term C/++) programmer I'm looking for advice/recommendations on naming conventions for variables.</p>
<p>My personal preference would be to utilize a prefix for instance variables both for clarity within functions and to prevent shadowing of function parameters. However I'm a fa... | [
{
"answer_id": 11994,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 5,
"selected": true,
"text": "IBOutlet IBOutlet IBOutlet _myField set_myField: self.myProp [self myProp] self self self->myProp // EmployeeWindowControll... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1043/"
] |
10,323 | <p>I recently read a nice <a href="http://macdevelopertips.com/ruby/using-a-string-as-a-file-in-ruby.html" rel="noreferrer">post</a> on using <code>StringIO</code> in Ruby. What the author doesn't mention, though, is that <code>StringIO</code> is just an "I." There's no "O." You <em>can't</em> do this, for example:<... | [
{
"answer_id": 10335,
"author": "Mike Stone",
"author_id": 122,
"author_profile": "https://Stackoverflow.com/users/122",
"pm_score": 2,
"selected": false,
"text": "first = \"Mike\"\nlast = \"Stone\"\nname = \"#{first} #{last}\"\n str = \"The count will be: #{count + 1}\"\ncount = count +... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
10,324 | <p>In C, what is the most efficient way to convert a string of hex digits into a binary <code>unsigned int</code> or <code>unsigned long</code>?</p>
<p>For example, if I have <code>0xFFFFFFFE</code>, I want an <code>int</code> with the base10 value <code>4294967294</code>.</p>
| [
{
"answer_id": 10327,
"author": "Patrick",
"author_id": 429,
"author_profile": "https://Stackoverflow.com/users/429",
"pm_score": 6,
"selected": true,
"text": "strtol strtoul"
},
{
"answer_id": 10331,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "htt... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
10,349 | <p>I'm sure there is a good (or at least decent) reason for this. What is it?</p>
| [
{
"answer_id": 10359,
"author": "John Sibly",
"author_id": 1078,
"author_profile": "https://Stackoverflow.com/users/1078",
"pm_score": 4,
"selected": true,
"text": "myControl.BeginInvoke(myControl.UpdateFunction);\n"
},
{
"answer_id": 10439,
"author": "Brian Ensink",
"aut... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
10,366 | <p>I have an absolutely positioned <code>div</code> that I want to show when the user clicks a link. The <code>onclick</code> of the link calls a js function that sets the display of the div to block (also tried: "", <code>inline</code>, <code>table-cell</code>, <code>inline-table</code>, etc). This works great in IE7,... | [
{
"answer_id": 10378,
"author": "Serhat Ozgel",
"author_id": 31505,
"author_profile": "https://Stackoverflow.com/users/31505",
"pm_score": 3,
"selected": false,
"text": "function show() {\n var d = document.getElementById('testdiv');\n d.style.display = 'block';\n} #testdiv {\n positi... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/521/"
] |
10,435 | <p>I have a website that works correctly under IIS 6.0: It authenticates users with windows credentials, and then when talking to the service that hits the DB, it passes the credentials.</p>
<p>In IIS 7.0, the same config settings do not pass the credentials, and the DB gets hit with NT AUTHORITY\ANONYMOUS.</p>
<p>Is... | [
{
"answer_id": 267243,
"author": "Maxime Rouiller",
"author_id": 24975,
"author_profile": "https://Stackoverflow.com/users/24975",
"pm_score": 4,
"selected": true,
"text": "<validation validateIntegratedModeConfiguration=\"false\"\n"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/10435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/781/"
] |
10,443 | <p>I have this program, we'll call it Host. Host does all kinds of good stuff, but it needs to be able to accept input through the command line <strong>while it's running</strong>. This means it has to somehow send its other process data and then quit. For example, I need to be able to do this:</p>
<pre><code>./Host -... | [
{
"answer_id": 10445,
"author": "Ed S.",
"author_id": 1053,
"author_profile": "https://Stackoverflow.com/users/1053",
"pm_score": -1,
"selected": false,
"text": " int main(int argc, *argv[])\n {\n /*loop through each argument and take action*/\n while (--argc > 0)\n {\n ... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/432/"
] |
10,456 | <p>The 'click sound' in question is actually a system wide preference, so I only want it to be disabled when my application has focus and then re-enable when the application closes/loses focus.</p>
<p>Originally, I wanted to ask this question here on stackoverflow, but I was not yet in the beta. So, after googling for... | [
{
"answer_id": 10463,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 5,
"selected": true,
"text": "webBrowser1.DocumentText = \"<h1>Hello, world!</h1>\";\n webBrowser1.Document.OpenNew(true);\nwebBrowser1.Document.Write(\... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1147/"
] |
10,458 | <p>Ideally, I'm looking for a templated logical Set class. It would have all of the standard set operations such as Union, Intersection, Etc., and collapse duplicated items.</p>
<p>I ended up creating my own set class based on the C# Dictionary<>- just using the Keys.</p>
| [
{
"answer_id": 10459,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 6,
"selected": false,
"text": "HashSet<T>"
},
{
"answer_id": 50264359,
"author": "dharmatech",
"author_id": 268581,
"author_profile"... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
10,477 | <p>Currently, I'm attempting to make multiple beziers have equidistant points. I'm currently using cubic interpolation to find the points, but because the way beziers work some areas are more dense than others and proving gross for texture mapping because of the variable distance. <strong>Is there a way to find point... | [
{
"answer_id": 34804516,
"author": "enc_life",
"author_id": 3166209,
"author_profile": "https://Stackoverflow.com/users/3166209",
"pm_score": 2,
"selected": false,
"text": "UIBezierPath X Y extension UIBezierPath {\n\nfunc solveBezerAtY(start: CGPoint, point1: CGPoint, point2: CGPoint, e... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1256/"
] |
10,478 | <p>One of the things I'd like to do in my browser-based application is allow the user to select some text (not in a <textarea>, just plain ol' text!), and have my application pop up a small toolbar that then can interact with the next (in my case, add annotations).</p>
<p>I've found a lot of stuff on google that... | [
{
"answer_id": 13914,
"author": "Polsonby",
"author_id": 137,
"author_profile": "https://Stackoverflow.com/users/137",
"pm_score": -1,
"selected": false,
"text": "var str = (window.getSelection) ? window.getSelection() : document.selection.createRange();\nstr = str.text || str;\nstr = st... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/722/"
] |
10,486 | <p>What kind of execution rate do you aim for with your unit tests (# test per second)? How long is too long for an individual unit test? </p>
<p>I'd be interested in knowing if people have any specific thresholds for determining whether their tests are too slow, or is it just when the friction of a long running test ... | [
{
"answer_id": 313692,
"author": "Daniel Schierbeck",
"author_id": 20321,
"author_profile": "https://Stackoverflow.com/users/20321",
"pm_score": 0,
"selected": false,
"text": "app/models/foo.rb test/unit/foo_test.rb"
}
] | 2008/08/13 | [
"https://Stackoverflow.com/questions/10486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/906/"
] |
10,499 | <p>Sometimes I get Oracle connection problems because I can't figure out which tnsnames.ora file my database client is using.</p>
<p>What's the best way to figure this out? ++happy for various platform solutions. </p>
| [
{
"answer_id": 10501,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 5,
"selected": false,
"text": "$ strace sqlplus -L scott/tiger@orcl 2>&1| grep -i 'open.*tnsnames.ora'\n open(\"/opt/oracle/product/10.2.0/db_1/network/... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
10,506 | <p>I am having a strange DB2 issue when I run DBUnit tests. My DBUnit tests are highly customized, but I don't think it is the issue. When I run the tests, I get a failure: </p>
<blockquote>
<p>SQLCODE: -1084, SQLSTATE: 57019</p>
</blockquote>
<p><a href="https://www1.columbia.edu/sec/acis/db2/db2m0/sql1000.htm" ... | [
{
"answer_id": 10501,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 5,
"selected": false,
"text": "$ strace sqlplus -L scott/tiger@orcl 2>&1| grep -i 'open.*tnsnames.ora'\n open(\"/opt/oracle/product/10.2.0/db_1/network/... | 2008/08/13 | [
"https://Stackoverflow.com/questions/10506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/122/"
] |
10,515 | <p>Having been a PHP developer on LAMP servers for quite a while, is there anything that I will need to take into consideration while preparing an application for <em>IIS</em> on windows.</p>
| [
{
"answer_id": 10547,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 2,
"selected": false,
"text": "fcgiconfig.js"
}
] | 2008/08/14 | [
"https://Stackoverflow.com/questions/10515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
10,532 | <p>I've been using PHP & MySQL for ages and am about to start using PostgreSQL instead.</p>
<p>What's the preferred method? </p>
<p>Is it via the PDO objects or is there something better?</p>
| [
{
"answer_id": 10689,
"author": "grom",
"author_id": 486,
"author_profile": "https://Stackoverflow.com/users/486",
"pm_score": 2,
"selected": false,
"text": "require_once 'Zend/Db.php';\n$DB_ADAPTER = 'Pdo_Pgsql';\n$DB_CONFIG = array(\n 'username' => 'app_db_user',\n 'password' => ... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305/"
] |
10,533 | <p>Here's a problem I ran into recently. I have attributes strings of the form</p>
<pre><code>"x=1 and y=abc and z=c4g and ..."
</code></pre>
<p>Some attributes have numeric values, some have alpha values, some have mixed, some have dates, etc.</p>
<p>Every string is <em>supposed</em> to have "<code>x=someval and y... | [
{
"answer_id": 10537,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Stackoverflow.com/users/872",
"pm_score": 0,
"selected": false,
"text": "($x_str, $y_str, $remainder) = split(/ and /, $str, 3);\n\nif ($x_str !~ /x=(.*)/)\n{\n # error\n}\n\n$x = $1;\n\nif ($y_... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/872/"
] |
10,564 | <p>I'm trying out <strong>Git on Windows</strong>. I got to the point of trying "git commit" and I got this error:</p>
<blockquote>
<p>Terminal is dumb but no VISUAL nor
EDITOR defined. Please supply the
message using either -m or -F option.</p>
</blockquote>
<p>So I figured out I need to have an environment va... | [
{
"answer_id": 10574,
"author": "J Wynia",
"author_id": 1124,
"author_profile": "https://Stackoverflow.com/users/1124",
"pm_score": 1,
"selected": false,
"text": "git commit -m \"Fixed the LoadAll method\"\n"
},
{
"answer_id": 10625,
"author": "Patrick Johnmeyer",
"author... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/437/"
] |
10,580 | <p>What is the difference between early and late binding?</p>
| [
{
"answer_id": 10581,
"author": "Ed S.",
"author_id": 1053,
"author_profile": "https://Stackoverflow.com/users/1053",
"pm_score": 3,
"selected": false,
"text": " Dim oXL As Object\n Set oXL = CreateObject(\"Excel.Application\")\n Dim oXL As Object\n Set oXL = GetObject(, \"Excel.Applica... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
10,586 | <p>I'm currently trying to read in an XML file, make some minor changes (alter the value of some attributes), and write it back out again.</p>
<p>I have intended to use a StAX parser (<code>javax.xml.stream.XMLStreamReader</code>) to read in each event, see if it was one I wanted to change, and then pass it straight o... | [
{
"answer_id": 3453006,
"author": "StaxMan",
"author_id": 59501,
"author_profile": "https://Stackoverflow.com/users/59501",
"pm_score": 2,
"selected": false,
"text": "XMLStreamWriter2.copyEventFromReader(XMLStreamReader2 r, boolean preserveEventData) \n"
}
] | 2008/08/14 | [
"https://Stackoverflow.com/questions/10586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
10,595 | <p>I've grokked the code for all the aforementioned apps and I still can't find a straightforward way to create a static directory structure from a single command.</p>
| [
{
"answer_id": 10613,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Stackoverflow.com/users/872",
"pm_score": 0,
"selected": false,
"text": "cp -r <template> <destination>\n"
}
] | 2008/08/14 | [
"https://Stackoverflow.com/questions/10595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1263/"
] |
10,599 | <p>I need to validate a date/time field on a webpage but want it to do it without reloading the page and would like 'instant' feedback for the users.</p>
<p>What's the best/easiest solution.
BTW: easiest scores 65% of total points</p>
<p>Edit:
What if best was 65% of total points?</p>
| [
{
"answer_id": 10609,
"author": "mbillard",
"author_id": 810,
"author_profile": "https://Stackoverflow.com/users/810",
"pm_score": 0,
"selected": false,
"text": "... onSubmit=\"return validateForm();\" ...\n"
}
] | 2008/08/14 | [
"https://Stackoverflow.com/questions/10599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/730/"
] |
10,610 | <p>Does anyone use have a good regex library that they like to use? Most of the regexes that you find online either contain bugs or are so focused on the edge cases that it turns into a competition to validate whatever spec 100%. Of course you can write your own, but when you are billing by the hour its handy to have a... | [
{
"answer_id": 34544283,
"author": "gsl",
"author_id": 2048692,
"author_profile": "https://Stackoverflow.com/users/2048692",
"pm_score": 0,
"selected": false,
"text": "Regexp::Common::balanced\nProvides regexes for strings with balanced parenthesized delimiters.\n\nRegexp::Common::commen... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/805/"
] |
10,616 | <p>I'm an <a href="http://en.wikipedia.org/wiki/ASP.NET" rel="noreferrer">ASP.NET</a> developer who has used <code>Microsoft SQL Server</code> for all my database needs (both at work and for personal projects). </p>
<p>I am considering trying out the <a href="http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29" re... | [
{
"answer_id": 10623,
"author": "Jeff Atwood",
"author_id": 1,
"author_profile": "https://Stackoverflow.com/users/1",
"pm_score": 8,
"selected": true,
"text": "SELECT age\nFROM person\nORDER BY age ASC\nLIMIT 1 OFFSET 2\n SELECT TOP 3 WITH TIES *\nFROM person\nORDER BY age ASC\n"
},
... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/285/"
] |
10,635 | <p>I wrote a simple batch file as a PowerShell script, and I am getting errors when they run.</p>
<p>It's in a scripts directory in my path. This is the error I get:</p>
<blockquote>
<p>Cannot be loaded because the execution of scripts is disabled on this system.
Please see "get-help about-signing".</p>
</block... | [
{
"answer_id": 10638,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 8,
"selected": true,
"text": "set-executionpolicy remotesigned\n"
},
{
"answer_id": 10640,
"author": "Leon Bambrick",
"author_id": 49,
... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1220/"
] |
10,658 | <p>I'm looking for a good method of generating an iCalendar file (*.ics) in c# (asp.net). I've found a couple resources, but one thing that has been lacking is their support for <strong>quoted-printable</strong> fields - fields that have carriage returns and line feeds.</p>
<p>For example, if the <strong>description<... | [
{
"answer_id": 870249,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": " DESCRIPTION:Meeting to provide technical review for \"Phoenix\"\n design.\\n Happy Face Conference Room. Phoenix design tea... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/519/"
] |
10,668 | <p>I've been trying to understand how to read the memory of other processes on Mac OS X, but I'm not having much luck. I've seen many examples online using <code>ptrace</code> with <code>PEEKDATA</code> and such, however it doesn't have that option on BSD <sup>[<a href="http://developer.apple.com/documentation/Darwin/R... | [
{
"answer_id": 10676,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Stackoverflow.com/users/872",
"pm_score": 4,
"selected": false,
"text": "ptrace() PT_ATTACH PT_DENY_ATTACH PT_GETREGS PT_SETREGS PT_GETFPREGS PT_SETFPREGS ptrace.h PT_READ_I PT_READ_D PT_READ_U"
... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114/"
] |
10,680 | <p>Is there any difference between</p>
<pre><code> int on_exit(void (*function)(int , void *), void *arg);
</code></pre>
<p>and</p>
<pre><code> int atexit(void (*function)(void));
</code></pre>
<p>other than the fact that the function used by on_exit gets the exit status?</p>
<p>That is, if I don't care about ... | [
{
"answer_id": 10684,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Stackoverflow.com/users/872",
"pm_score": 4,
"selected": false,
"text": "atexit() on_exit() on_exit()"
},
{
"answer_id": 10686,
"author": "Mike Stone",
"author_id": 122,
"author... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1084/"
] |
10,752 | <p>I know the so-called textbook definition of unit tests and integration tests. What I am curious about is when it is time to write unit tests... I will write them to cover as many sets of classes as possible.</p>
<p>For example, if I have a <code>Word</code> class, I will write some unit tests for the <code>Word</c... | [
{
"answer_id": 1223466,
"author": "Robert Koritnik",
"author_id": 75642,
"author_profile": "https://Stackoverflow.com/users/75642",
"pm_score": 5,
"selected": false,
"text": "Sentence Word Word Sentence"
},
{
"answer_id": 7876055,
"author": "Arialdo Martini",
"author_id":... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/122/"
] |
10,793 | <p>I'm dynamically loading user controls adding them to the Controls collection of the web form.</p>
<p>I'd like to hide user controls if they cause a unhandled exception while rendering.</p>
<p>So, I tried hooking to the Error event of each UserControl but it seems that this event never fires for the UserControls as... | [
{
"answer_id": 10797,
"author": "Michael Stum",
"author_id": 91,
"author_profile": "https://Stackoverflow.com/users/91",
"pm_score": 0,
"selected": false,
"text": "void Page_Load(object sender, System.EventArgs e)\n{\n throw(new ArgumentNullException());\n}\n\npublic void Page_Error(o... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1269/"
] |
10,808 | <p>Ok, so I've been refactoring my code in my little Rails app in an effort to remove duplication, and in general make my life easier (as I like an easy life). Part of this refactoring, has been to move code that's common to two of my models to a module that I can include where I need it.</p>
<p>So far, so good. Look... | [
{
"answer_id": 11719,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 0,
"selected": false,
"text": "class ActiveRecord::Base\n def after_initialize\n end\nend\n"
},
{
"answer_id": 11744,
"author": "newto... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/841/"
] |
10,810 | <p>I'm doing a authorization check from a WinForms application with the help of the AzMan authorization provider from Enterprise Library and am receiving the the following error:</p>
<blockquote>
<p>Unable to update the password. The value provided as the current password is incorrect. (Exception from HRESULT: 0x800... | [
{
"answer_id": 11719,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 0,
"selected": false,
"text": "class ActiveRecord::Base\n def after_initialize\n end\nend\n"
},
{
"answer_id": 11744,
"author": "newto... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/966/"
] |
10,819 | <p>For certain types of sql queries, an auxiliary table of numbers can be very useful. It may be created as a table with as many rows as you need for a particular task or as a user defined function that returns the number of rows required in each query.</p>
<p>What is the optimal way to create such a function?</p>
| [
{
"answer_id": 1479258,
"author": "Chadwick",
"author_id": 80714,
"author_profile": "https://Stackoverflow.com/users/80714",
"pm_score": 3,
"selected": false,
"text": "WITH Nbrs ( n ) AS (\n SELECT 1 UNION ALL\n SELECT 1 + n FROM Nbrs WHERE n < 500 )\nSELECT n FROM Nbrs\nOPTION ( M... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/224/"
] |
10,822 | <p>What would be a very fast way to determine if your connectionstring lets you connect to a database?</p>
<p>Normally a connection attempt keeps the user waiting a long time before notifying the attempt was futile anyway.</p>
| [
{
"answer_id": 10824,
"author": "GateKiller",
"author_id": 383,
"author_profile": "https://Stackoverflow.com/users/383",
"pm_score": 5,
"selected": true,
"text": "server=<server>;database=<database>;uid=<user>;password=<password>;Connect Timeout=3\n"
}
] | 2008/08/14 | [
"https://Stackoverflow.com/questions/10822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1271/"
] |
10,825 | <p>In SQL Server I have a <code>DATETIME</code> column which includes a time element.</p>
<p>Example: </p>
<pre><code>'14 AUG 2008 14:23:019'
</code></pre>
<p>What is the <strong>best</strong> method to only select the records for a particular day, ignoring the time part?</p>
<p>Example: (Not safe, as it does no... | [
{
"answer_id": 10826,
"author": "Guy",
"author_id": 993,
"author_profile": "https://Stackoverflow.com/users/993",
"pm_score": 6,
"selected": true,
"text": " DECLARE @p_date DATETIME\n SET @p_date = CONVERT( DATETIME, '14 AUG 2008', 106 )\n\n SELECT *\n FROM table1\n WHERE colum... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/993/"
] |
10,848 | <p>Does anybody know if it's possible, and how, to programmatically send a <strong>SMS</strong> from the <code>iPhone</code>, with the official SDK / Cocoa Touch?</p>
| [
{
"answer_id": 59159,
"author": "millenomi",
"author_id": 6061,
"author_profile": "https://Stackoverflow.com/users/6061",
"pm_score": 6,
"selected": false,
"text": "sms:[target phone number]"
},
{
"answer_id": 59200,
"author": "Adam Davis",
"author_id": 2915,
"author_... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
10,855 | <p>I'm trying to perform a LINQ query on a DataTable object and bizarrely I am finding that performing such queries on DataTables is not straightforward. For example:</p>
<pre><code>var results = from myRow in myDataTable
where results.Field("RowNo") == 1
select results;
</code></pre>
<p>This is not allowed. How do I... | [
{
"answer_id": 10857,
"author": "David Wengier",
"author_id": 489,
"author_profile": "https://Stackoverflow.com/users/489",
"pm_score": 4,
"selected": false,
"text": "var results = from myRow in myDataTable.Rows where myRow.Field(\"RowNo\") == 1 select myRow;\n"
},
{
"answer_id":... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445/"
] |
10,860 | <p>I am in the middle of a "discussion" with a colleague about the best way to implement the data layer in a new application.</p>
<p>One viewpoint is that the data layer should be aware of business objects (our own classes that represent an entity), and be able to work with that object natively. </p>
<p>The opposing... | [
{
"answer_id": 10863,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 0,
"selected": false,
"text": "public IList<Foo> GetFoosById(int id) { ... }\n public void GetFoosById(IList<Foo> foos, int id) { ... }\n"
}
] | 2008/08/14 | [
"https://Stackoverflow.com/questions/10860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/377/"
] |
10,870 | <p>Once I've called <code>DragManager.acceptDrag</code> is there any way to "unaccept" the drag? Say that I have a view which can accept drag and drop, but only in certain areas. Once the user drags over one of these areas I call <code>DragManager.acceptDrag(this)</code> (from a <code>DragEvent.DRAG_OVER</code> handler... | [
{
"answer_id": 11209,
"author": "Matt MacLean",
"author_id": 22,
"author_profile": "https://Stackoverflow.com/users/22",
"pm_score": 3,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<mx:Application xmlns:mx=\"http://www.adobe.com/2006/mxml\" layout=\"absolute\">... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1109/"
] |
10,877 | <p>How can I left-align the numbers in an ordered list?</p>
<pre><code>1. an item
// skip some items for brevity
9. another item
10. notice the 1 is under the 9, and the item contents also line up
</code></pre>
<p>Change the character after the number in an ordered list?</p>
<pre><code>1) an item
</code></pre>
<... | [
{
"answer_id": 10887,
"author": "Marcus Downing",
"author_id": 1000,
"author_profile": "https://Stackoverflow.com/users/1000",
"pm_score": 5,
"selected": false,
"text": "li {\n list-style-type: decimal;\n list-style-position: inside;\n}\n ol { counter-reset: item }\nli { display: b... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/486/"
] |
10,905 | <p>You should be able to create a generic form:</p>
<pre><code>public partial class MyGenericForm<T> :
Form where T : class
{
/* form code */
public List<T> TypedList { get; set; }
}
</code></pre>
<p>Is valid C#, and compiles. However the designer won't work and the form will throw a runtime ... | [
{
"answer_id": 10906,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 0,
"selected": false,
"text": "internal class MyGenericForm:\n MyGenericForm<object> { }\n <>"
},
{
"answer_id": 57163033,
"author": "Ali Osman Y... | 2008/08/14 | [
"https://Stackoverflow.com/questions/10905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/905/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.