qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
17,532 | <h2>Summary</h2>
<p>Hi All,<br />
OK, further into my adventures with custom controls...</p>
<p>In summary, here is that I have learned of three main "classes" of custom controls. Please feel free to correct me if any of this is wrong!</p>
<ol>
<li><strong>UserControls</strong> - Which inherit from <em>UserCo... | [
{
"answer_id": 17546,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 1,
"selected": false,
"text": "//Controls.Add(c1, c2, c3)\nstatic void Add(this ControlCollection coll, params Control[] controls)\n { foreach(Control c... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
17,533 | <p>For my C# app, I don't want to always prompt for elevation on application start, but if they choose an output path that is UAC protected then I need to request elevation.</p>
<p>So, how do I check if a path is UAC protected and then how do I request elevation mid-execution?</p>
| [
{
"answer_id": 90442,
"author": "Adrian Clark",
"author_id": 148,
"author_profile": "https://Stackoverflow.com/users/148",
"pm_score": 6,
"selected": true,
"text": "UnauthorizedAccessException"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/17533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1147/"
] |
17,576 | <p>In C#, when you implement an interface, all members are implicitly public. Wouldn't it be better if we could specify the accessibility modifier (<code>protected</code>, <code>internal</code>, except <code>private</code> of course), or should we just use an abstract class instead?</p>
| [
{
"answer_id": 17598,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 4,
"selected": false,
"text": "public interface IInterface {\n public void Method();\n}\n\npublic class A : IInterface {\n public void IInterface.Me... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/718/"
] |
17,586 | <p>Word wrap is one of the must-have features in a modern text editor.</p>
<p>How word wrap be handled? What is the best algorithm for word-wrap?</p>
<p>If text is several million lines, how can I make word-wrap very fast?</p>
<p>Why do I need the solution? Because my projects must draw text with various zoom level ... | [
{
"answer_id": 17635,
"author": "ICR",
"author_id": 214,
"author_profile": "https://Stackoverflow.com/users/214",
"pm_score": 5,
"selected": false,
"text": "IndexOfAny static char[] splitChars = new char[] { ' ', '-', '\\t' };\n\nprivate static string WordWrap(string str, int width)\n{\n... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1556/"
] |
17,612 | <p>Programmatic solution of course...</p>
| [
{
"answer_id": 17618,
"author": "Ishmaeel",
"author_id": 227,
"author_profile": "https://Stackoverflow.com/users/227",
"pm_score": 4,
"selected": false,
"text": "public static class Recycle\n{\n private const int FO_DELETE = 3;\n private const int FOF_ALLOWUNDO = 0x40;\n private... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580/"
] |
17,624 | <p>I have a table with a 'filename' column.
I recently performed an insert into this column but in my haste forgot to append the file extension to all the filenames entered. Fortunately they are all '.jpg' images.</p>
<p>How can I easily update the 'filename' column of these inserted fields (assuming I can select the... | [
{
"answer_id": 17627,
"author": "Matt Mitchell",
"author_id": 364,
"author_profile": "https://Stackoverflow.com/users/364",
"pm_score": 6,
"selected": true,
"text": "UPDATE tablename SET [filename] = RTRIM([filename]) + '.jpg' WHERE id > 50\n"
},
{
"answer_id": 17629,
"author... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364/"
] |
17,664 | <p>I have an ASP.net Application that runs on the internal network (well, actually it's running on Sharepoint 2007). </p>
<p>I just wonder:</p>
<p>Can I somehow retrieve the name of the PC the Client is using? I would have access to Active Directory if that helps. The thing is, people use multiple PCs. So, I cannot ... | [
{
"answer_id": 17698,
"author": "Michael Stum",
"author_id": 91,
"author_profile": "https://Stackoverflow.com/users/91",
"pm_score": 3,
"selected": true,
"text": "System.Net.Dns.GetHostEntry(Page.Request.UserHostAddress).HostName\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/17664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
17,681 | <p>I have a <a href="http://www.visualsvn.com/server/" rel="nofollow noreferrer">VisualSVN Server</a> installed on a Windows server, serving several repositories.</p>
<p>Since the web-viewer built into VisualSVN server is a minimalistic subversion browser, I'd like to install <a href="http://websvn.tigris.org/" rel="n... | [
{
"answer_id": 233587,
"author": "Kit Roed",
"author_id": 1339,
"author_profile": "https://Stackoverflow.com/users/1339",
"pm_score": 2,
"selected": false,
"text": "[components]\ntrac.ticket.* = disabled\ntrac.wiki.* = disabled\n [trac] default_handler = TimelineModule\n default_handler ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/267/"
] |
17,721 | <p>Have any of you tried Hadoop? Can it be used without the distributed filesystem that goes with it, in a Share-nothing architecture? Would that make sense?</p>
<p>I'm also interested into any performance results you have...</p>
| [
{
"answer_id": 30162186,
"author": "sras",
"author_id": 4324632,
"author_profile": "https://Stackoverflow.com/users/4324632",
"pm_score": 0,
"selected": false,
"text": " <property>\n <name>fs.defaultFS</name>\n <value>file:///</value>\n </property>\n <property>\n <name>fs.defa... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/446497/"
] |
17,725 | <p>Hello again ladies and gents!</p>
<p>OK, following on from my other question on <a href="https://stackoverflow.com/questions/6681/aspnet-web-service-results-proxy-classes-and-type-conversion">ASP.NET Web Service Results, Proxy Classes and Type Conversion</a>. I've come to a part in my project where I need to get my ... | [
{
"answer_id": 17778,
"author": "Peter Short",
"author_id": 158302,
"author_profile": "https://Stackoverflow.com/users/158302",
"pm_score": 2,
"selected": false,
"text": "JSON jQuery jQuery ajax"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/17725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
17,732 | <p>There's a <a href="http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/8e0235d58c8635c2" rel="noreferrer" title="assertions: does it matter that they are disabled in production?">discussion</a> going on over at comp.lang.c++.moderated about whether or not assertions, which in C++ only exist i... | [
{
"answer_id": 17754,
"author": "roo",
"author_id": 716,
"author_profile": "https://Stackoverflow.com/users/716",
"pm_score": 0,
"selected": false,
"text": "file = create-some-file();\n_throwExceptionIf( file.exists() == false, \"FILE DOES NOT EXIST\");\n file = create-some-file();\nASSE... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2095/"
] |
17,735 | <p>When I first started using revision control systems like <a href="http://en.wikipedia.org/wiki/Concurrent_Versions_System" rel="nofollow noreferrer">CVS</a> and <a href="http://en.wikipedia.org/wiki/Apache_Subversion" rel="nofollow noreferrer">SVN</a>, I didn't really understand the concepts of the "trunk", branchin... | [
{
"answer_id": 17782,
"author": "Greg Whitfield",
"author_id": 2102,
"author_profile": "https://Stackoverflow.com/users/2102",
"pm_score": 1,
"selected": false,
"text": "//MYPROJECT/MAIN/... - the top level folder for a complete build of all the product in main.\n//MYPROJECT/DEV/ArseKick... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1951/"
] |
17,770 | <p>What do the clever programmers here do to keep track of handy programming tricks and useful information they pick up over their many years of experience? Things like useful compiler arguments, IDE short-cuts, clever code snippets, etc.</p>
<p>I sometimes find myself frustrated when looking up something that I used ... | [
{
"answer_id": 17792,
"author": "seanyboy",
"author_id": 1726,
"author_profile": "https://Stackoverflow.com/users/1726",
"pm_score": 0,
"selected": false,
"text": "//print spool stop.notes.txt\nIf the printer spooler stops, start it again by \n- Services > Provision Networks > Restart Se... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1693/"
] |
17,772 | <p>This is probably best shown with an example. I have an enum with attributes:</p>
<pre><code>public enum MyEnum {
[CustomInfo("This is a custom attrib")]
None = 0,
[CustomInfo("This is another attrib")]
ValueA,
[CustomInfo("This has an extra flag", AllowSomething = true)]
ValueB,
}
</code>... | [
{
"answer_id": 17807,
"author": "JamesSugrue",
"author_id": 1075,
"author_profile": "https://Stackoverflow.com/users/1075",
"pm_score": 5,
"selected": true,
"text": "public delegate object FastPropertyGetHandler(object target); \n\nprivate static void EmitBoxIfNeeded(ILGenerator ilGen... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/905/"
] |
17,781 | <p>I am running a number of SSL-encrypted websites, and need to generate certificates to run on these. They are all internal applications, so I don't need to purchase a certificate, I can create my own.</p>
<p>I have found it quite tedious to do everything using openssl all the time, and figure this is the kind of thi... | [
{
"answer_id": 31560,
"author": "paan",
"author_id": 2976,
"author_profile": "https://Stackoverflow.com/users/2976",
"pm_score": 3,
"selected": false,
"text": "CA"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/17781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277/"
] |
17,785 | <p>I know this is not programming directly, but it's regarding a development workstation I'm setting up.</p>
<p>I've got a Windows Server 2003 machine that needs to be on two LAN segments at the same time. One of them is a 10.17.x.x LAN and the other is 10.16.x.x</p>
<p>The problem is that I don't want to be using u... | [
{
"answer_id": 17809,
"author": "kaa",
"author_id": 2105,
"author_profile": "https://Stackoverflow.com/users/2105",
"pm_score": 3,
"selected": true,
"text": "route add 0.0.0.0 MASK 0.0.0.0 <address of gateway on 10.17.x.x net>\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/17785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/194/"
] |
17,786 | <p>When compiling my C++ .Net application I get 104 warnings of the type:</p>
<pre><code>Warning C4341 - 'XX': signed value is out of range for enum constant
</code></pre>
<p>Where XX can be</p>
<ul>
<li>WCHAR</li>
<li>LONG</li>
<li>BIT</li>
<li>BINARY</li>
<li>GUID</li>
<li>...</li>
</ul>
<p>I can't seem to remove... | [
{
"answer_id": 17793,
"author": "Aidan Ryan",
"author_id": 1042,
"author_profile": "https://Stackoverflow.com/users/1042",
"pm_score": 3,
"selected": true,
"text": "#pragma warning( push )\n#pragma warning( disable: 4341 )\n\n// code affected by bug\n\n#pragma warning( pop )\n"
},
{
... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1912/"
] |
17,795 | <p>I wanted to show the users Name Address (see <a href="http://www.ipchicken.com" rel="nofollow noreferrer">www.ipchicken.com</a>), but the only thing I can find is the IP Address. I tried a reverse lookup, but didn't work either:</p>
<pre><code>IPAddress ip = IPAddress.Parse(this.lblIp.Text);
string hostName = Dns.G... | [
{
"answer_id": 17801,
"author": "seanyboy",
"author_id": 1726,
"author_profile": "https://Stackoverflow.com/users/1726",
"pm_score": 3,
"selected": true,
"text": " Dim sTmp As String\n Dim ip As IPHostEntry\n\n sTmp = MaskedTextBox1.Text\n Dim ipAddr As IPAddress = IPAddress.... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2104/"
] |
17,806 | <p>I am currently developing a .NET application, which consists of 20 projects. Some of those projects are compiled using .NET 3.5, some others are still .NET 2.0 projects (so far no problem).</p>
<p>The problem is that if I include an external component I always get the following warning:</p>
<blockquote>
<p>Found con... | [
{
"answer_id": 2137718,
"author": "Brian Low",
"author_id": 46039,
"author_profile": "https://Stackoverflow.com/users/46039",
"pm_score": 10,
"selected": true,
"text": "System.Windows.Forms System.Windows.Forms CopyLocal=true"
},
{
"answer_id": 13312274,
"author": "Gorgsenegg... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2078/"
] |
17,870 | <p>Is there a way to select data where any one of multiple conditions occur on the same field?</p>
<p>Example: I would typically write a statement such as:</p>
<pre><code>select * from TABLE where field = 1 or field = 2 or field = 3
</code></pre>
<p>Is there a way to instead say something like:</p>
<pre><code>selec... | [
{
"answer_id": 17872,
"author": "mercutio",
"author_id": 1951,
"author_profile": "https://Stackoverflow.com/users/1951",
"pm_score": 6,
"selected": true,
"text": "select foo from bar where baz in (1,2,3)\n"
},
{
"answer_id": 17873,
"author": "Michael Stum",
"author_id": 9... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2116/"
] |
17,877 | <p>Just looking for the first step basic solution here that keeps the honest people out.</p>
<p>Thanks,
Mike</p>
| [
{
"answer_id": 17872,
"author": "mercutio",
"author_id": 1951,
"author_profile": "https://Stackoverflow.com/users/1951",
"pm_score": 6,
"selected": true,
"text": "select foo from bar where baz in (1,2,3)\n"
},
{
"answer_id": 17873,
"author": "Michael Stum",
"author_id": 9... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/785/"
] |
17,906 | <p>I have a rather classic UI situation - two ListBoxes named <code>SelectedItems</code> and <code>AvailableItems</code> - the idea being that the items you have already selected live in <code>SelectedItems</code>, while the items that are available for adding to <code>SelectedItems</code> (i.e. every item that isn't a... | [
{
"answer_id": 18026,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 7,
"selected": true,
"text": "<Button Name=\"btn1\" >click me \n <Button.Style> \n <Style> \n <Style.Triggers> ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2122/"
] |
17,911 | <p>I've been having some trouble parsing various types of XML within flash (specifically FeedBurner RSS files and YouTube Data API responses). I'm using a <code>URLLoader</code> to load a XML file, and upon <code>Event.COMPLETE</code> creating a new XML object. 75% of the time this work fine, and every now and again I ... | [
{
"answer_id": 17963,
"author": "Re0sless",
"author_id": 2098,
"author_profile": "https://Stackoverflow.com/users/2098",
"pm_score": 1,
"selected": false,
"text": "URLLoader.bytesLoaded == URLLoader.bytesTotal\n"
},
{
"answer_id": 18365,
"author": "Brian Warshaw",
"author... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1306/"
] |
17,928 | <p>I want to quickly test an ocx. How do I drop that ocx in a console application. I have found some tutorials in CodeProject and but are incomplete. </p>
| [
{
"answer_id": 19021,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 2,
"selected": false,
"text": "Alt+F11 Tools References Browse... Insert UserForm Toolbox Additional Controls Run"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/17928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1781/"
] |
17,944 | <p>I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java.</p>
<p>If I have <em>x</em> items which I want to display in chunks of <em>y</em> per page, how many pages will be needed?</p>
| [
{
"answer_id": 17954,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 6,
"selected": false,
"text": "int x = number_of_items;\nint y = items_per_page;\n\n// with out library\nint pages = x/y + (x % y > 0 ? 1 : 0)\n\n// with l... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2084/"
] |
17,947 | <p>I cant post the code (proprietary issues) but does anyone know what types of things would cause the following error in C#. It is being thrown by a VOIP client that I wrote (using counterpath api) when the call is ended by the other client. The error is:</p>
<pre><code>System.AccessViolationException was unhandled
... | [
{
"answer_id": 17985,
"author": "Adam Lerman",
"author_id": 673,
"author_profile": "https://Stackoverflow.com/users/673",
"pm_score": 0,
"selected": false,
"text": "{IntPtr DispatchMessageW(MSG ByRef)}"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/17947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/673/"
] |
17,960 | <p>Has anyone worked out how to get PowerShell to use <code>app.config</code> files? I have a couple of .NET DLL's I'd like to use in one of my scripts but they expect their own config sections to be present in <code>app.config</code>/<code>web.config</code>.</p>
| [
{
"answer_id": 5625350,
"author": "millerjs",
"author_id": 312103,
"author_profile": "https://Stackoverflow.com/users/312103",
"pm_score": 6,
"selected": true,
"text": "[appdomain]::CurrentDomain.SetData(\"APP_CONFIG_FILE\", $configpath)\nAdd-Type -AssemblyName System.Configuration\n"
... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419/"
] |
17,965 | <p>I have a process in Linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails?</p>
| [
{
"answer_id": 17994,
"author": "Eli Courtwright",
"author_id": 1694,
"author_profile": "https://Stackoverflow.com/users/1694",
"pm_score": 9,
"selected": true,
"text": "ulimit -c unlimited\n limit coredumpsize unlimited\n"
},
{
"answer_id": 18400,
"author": "Nathan Fellman",... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1084/"
] |
17,980 | <p>I've searched for this a little but I have not gotten a particularly straight answer. In C (and I guess C++), how do you determine what comes after the % when using <code>printf</code>?. For example:</p>
<pre><code>double radius = 1.0;
double area = 0.0;
area = calculateArea( radius );
printf( "%10.1f %10.2\n",... | [
{
"answer_id": 17987,
"author": "Eli Courtwright",
"author_id": 1694,
"author_profile": "https://Stackoverflow.com/users/1694",
"pm_score": 3,
"selected": false,
"text": "man 3 printf\n"
},
{
"answer_id": 17989,
"author": "robintw",
"author_id": 1912,
"author_profile"... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128/"
] |
17,984 | <p>Alright, this might be a bit of a long shot, but I have having problems getting AnkhSVN to connect from Visual Studio 2005 to an external SVN server. There is a network proxy in the way, but I can't seem to find a way in AnkhSVN to configure the proxy and doesn't seem to be detecting the Internet Explorer proxy conf... | [
{
"answer_id": 17987,
"author": "Eli Courtwright",
"author_id": 1694,
"author_profile": "https://Stackoverflow.com/users/1694",
"pm_score": 3,
"selected": false,
"text": "man 3 printf\n"
},
{
"answer_id": 17989,
"author": "robintw",
"author_id": 1912,
"author_profile"... | 2008/08/20 | [
"https://Stackoverflow.com/questions/17984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1185/"
] |
18,006 | <p>I've been asked to write a Windows service in C# to periodically monitor an email inbox and insert the details of any messages received into a database table.</p>
<p>My instinct is to do this via POP3 and sure enough, Googling for ".NET POP3 component" produces countless (ok, 146,000) results.</p>
<p>Has anybody d... | [
{
"answer_id": 2383070,
"author": "Martin Vobr",
"author_id": 16132,
"author_profile": "https://Stackoverflow.com/users/16132",
"pm_score": 2,
"selected": false,
"text": "POP3 POP3 IMAP Imap Rebex.Net.Imap // create client, connect and log in \nImap client = new Imap();\nclient.Connect(\... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2084/"
] |
18,010 | <p>I asked a couple of coworkers about <a href="http://ankhsvn.open.collab.net" rel="nofollow noreferrer">AnkhSVN</a> and neither one of them was happy with it. One of them went as far as saying that AnkhSVN has messed up his devenv several times.</p>
<p>What's your experience with AnkhSVN? I really miss having an IDE... | [
{
"answer_id": 58518,
"author": "Sander Rijken",
"author_id": 5555,
"author_profile": "https://Stackoverflow.com/users/5555",
"pm_score": 0,
"selected": false,
"text": "originalFile deleted\nnewFile added (+)\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/781/"
] |
18,034 | <p>How do I create a self signed SSL certificate for an Apache Server to use while testing a web app?</p>
| [
{
"answer_id": 18062,
"author": "Christian Hagelid",
"author_id": 202,
"author_profile": "https://Stackoverflow.com/users/202",
"pm_score": 6,
"selected": true,
"text": "openssl req -new -x509 -nodes -out server.crt -keyout server.key\n SSLCertificateFile /path/to/this/server.crt\nSSL... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1310/"
] |
18,059 | <p>I'm using the <code>System.Windows.Forms.WebBrowser</code>, to make a view a-la Visual Studio Start Page. However, it seems the control is catching and handling all exceptions by silently sinking them! No need to tell this is a very unfortunate behaviour.</p>
<pre><code>void webBrowserNavigating(object sender, WebB... | [
{
"answer_id": 18138,
"author": "Judah Gabriel Himango",
"author_id": 536,
"author_profile": "https://Stackoverflow.com/users/536",
"pm_score": 1,
"selected": false,
"text": "browser.ScriptErrorsSuppressed"
},
{
"answer_id": 63057905,
"author": "eanv",
"author_id": 139836... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42/"
] |
18,077 | <p>I wanted some of those spiffy rounded corners for a web project that I'm currently working on.</p>
<p>I thought I'd try to accomplish it using javascript and not CSS in an effort to keep the requests for image files to a minimum (yes, I know that it's possible to combine all required rounded corner shapes into one ... | [
{
"answer_id": 19080,
"author": "M. Dave Auayan",
"author_id": 2007,
"author_profile": "https://Stackoverflow.com/users/2007",
"pm_score": 2,
"selected": false,
"text": "-moz-border-radius -webkit-border-radius"
},
{
"answer_id": 19203,
"author": "Nickolay",
"author_id": ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2114/"
] |
18,082 | <p>What's the cleanest, most effective way to validate decimal numbers in JavaScript?</p>
<p>Bonus points for:</p>
<ol>
<li>Clarity. Solution should be clean and simple.</li>
<li>Cross-platform.</li>
</ol>
<p>Test cases:</p>
<pre><code>01. IsNumeric('-1') => true
02. IsNumeric('-1.5') => true
03. IsNu... | [
{
"answer_id": 18085,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 6,
"selected": false,
"text": "function IsNumeric(input){\n var RE = /^-{0,1}\\d*\\.{0,1}\\d+$/;\n return (RE.test(input));\n}\n const IsNumeric = (... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29/"
] |
18,097 | <p>In C#, if I have an inherited class with a default constructor, do I have to explicitly call the base class' constructor or will it be implicitly called?</p>
<pre><code>class BaseClass
{
public BaseClass()
{
// ... some code
}
}
class MyClass : BaseClass
{
public MyClass() // Do I need to pu... | [
{
"answer_id": 18109,
"author": "Ian Nelson",
"author_id": 2084,
"author_profile": "https://Stackoverflow.com/users/2084",
"pm_score": 7,
"selected": true,
"text": "using System;\n\nnamespace ConsoleApplication1\n{\n class Program\n {\n static void Main(string[] args)\n ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
18,119 | <p>In a world where manual memory allocation and pointers still rule (Borland Delphi) I need a general solution for what I think is a general problem:</p>
<p>At a given moment an object can be referenced from multiple places (lists, other objects, ...). Is there a good way to keep track of all these references so that... | [
{
"answer_id": 18165,
"author": "Herms",
"author_id": 1409,
"author_profile": "https://Stackoverflow.com/users/1409",
"pm_score": 0,
"selected": false,
"text": "// Anything that will use one of your tracked objects implements this interface\ninterface ITrackedObjectUser {\n public void ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
18,166 | <p>I am attempting to POST against a vendor's server using PHP 5.2 with cURL. I'm reading in an XML document to post against their server and then reading in a response:</p>
<pre><code>$request = trim(file_get_contents('test.xml'));
$curlHandle = curl_init($servletURL);
curl_setopt($curlHandle, CURLOPT_POST, TRUE);
cu... | [
{
"answer_id": 18215,
"author": "mercutio",
"author_id": 1951,
"author_profile": "https://Stackoverflow.com/users/1951",
"pm_score": 2,
"selected": false,
"text": "$file = 'test.xml';\n$fileHandle = fopen($file, 'r');\n$request = fread($fileHandle, filesize($file));\nfclose($fileHandle);... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/204/"
] |
18,167 | <p>I've got a database server that I am unable to connect to using the credentials I've been provided. However, on the staging version of the same server, there's a linked server that points to the production database. Both the staging server and the linked server have the same schema.</p>
<p>I've been reassured that ... | [
{
"answer_id": 18695,
"author": "TheEmirOfGroofunkistan",
"author_id": 1874,
"author_profile": "https://Stackoverflow.com/users/1874",
"pm_score": 2,
"selected": false,
"text": "databaseA.dbo.tableName\n linkedServerName.databaseA.dbo.tableName\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1124/"
] |
18,172 | <p>I am looking for a robust way to copy files over a Windows network share that is tolerant of intermittent connectivity. The application is often used on wireless, mobile workstations in large hospitals, and I'm assuming connectivity can be lost either momentarily or for several minutes at a time. The files involved ... | [
{
"answer_id": 19606,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https://Stackoverflow.com/users/2199",
"pm_score": 4,
"selected": true,
"text": "sourceFile = Compress(\"*.*\");\ndestFile = \"X:\\files.zip\";\n\nint copyFlags = COPYFILEFAILIFEXISTS | COPYFILERESTART... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2144/"
] |
18,216 | <p>I'm not quite sure if this is possible, or falls into the category of pivot tables, but I figured I'd go to the pros to see.</p>
<p>I have three basic tables: Card, Property, and CardProperty. Since cards do not have the same properties, and often multiple values for the same property, I decided to use the union ta... | [
{
"answer_id": 18245,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 0,
"selected": false,
"text": "table cards\ninteger ID | string name | ... (other properties common to all Cards)\n\ntable property_types\ninteger ID... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/71/"
] |
18,223 | <p>I have a table in a SQL Server 2005 database with a trigger that is supposed to add a record to a different table whenever a new record is inserted. It seems to work fine, but if I execute an Insert Into on the master table that uses a subquery as the source of the values, the trigger only inserts one record in the ... | [
{
"answer_id": 18230,
"author": "Martin",
"author_id": 770,
"author_profile": "https://Stackoverflow.com/users/770",
"pm_score": 1,
"selected": false,
"text": "SELECT COUNT(*) FROM inserted \n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/741/"
] |
18,224 | <p>So, in your experience, whats the best way? Is there a secure way that's also scriptable/triggerable in a build automation tool?</p>
<p>Edit: I should mention this is windows/.net and I'll be deploying to iis6</p>
| [
{
"answer_id": 18243,
"author": "Neall",
"author_id": 619,
"author_profile": "https://Stackoverflow.com/users/619",
"pm_score": 1,
"selected": false,
"text": "#!/bin/bash\n\nset -e\ncp -R /var/livesite /var/newversion\nrsync user@devserver:/var/readytogolive /var/newversion\nmv /var/live... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
18,265 | <p>What methods are there for automatically getting a stack trace on Unix systems? I don't mean just getting a core file or attaching interactively with GDB, but having a SIGSEGV handler that dumps a backtrace to a text file. </p>
<p>Bonus points for the following optional features:</p>
<ul>
<li>Extra information gat... | [
{
"answer_id": 18406,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Stackoverflow.com/users/872",
"pm_score": 4,
"selected": true,
"text": "backtrace backtrace #include <execinfo.h>\n#include <signal.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nvoid sig_handler(i... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/954/"
] |
18,272 | <p>Server Management Studio tends to be a bit un-intuitive when it comes to managing Extended Properties, so can anyone recommend a decent tool that improves the situation.</p>
<p>One thing I would like to do is to have templates that I can apply objects, thus standardising the nomenclature and content of the properti... | [
{
"answer_id": 15105932,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo]. [snap_xpColumn_addUpdate]') AN... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/770/"
] |
18,290 | <p>Within Ruby on Rails applications database.yml is a plain text file that stores database credentials.</p>
<p>When I deploy my Rails applications I have an after deploy callback in my Capistrano
recipe that creates a symbolic link within the application's /config directory to the database.yml file. The file itself ... | [
{
"answer_id": 1001484,
"author": "Olly",
"author_id": 1174,
"author_profile": "https://Stackoverflow.com/users/1174",
"pm_score": 5,
"selected": false,
"text": "production:\n adapter: mysql\n database: my_db\n username: db_user\n password: <%= begin IO.read(\"/home/my_deploy_user/.d... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1450/"
] |
18,291 | <p>I'm wondering how the few Delphi users here are doing unit testing, if any? Is there anything that integrates with the IDE that you've found works well? If not, what tools are you using and do you have or know of example mini-projects that demonstrate how it all works?</p>
<h3>Update:</h3>
<p>I forgot to mention t... | [
{
"answer_id": 5653865,
"author": "Arnaud Bouchez",
"author_id": 458259,
"author_profile": "https://Stackoverflow.com/users/458259",
"pm_score": 3,
"selected": false,
"text": "type\n TTestNumbersAdding = class(TSynTestCase)\n published\n procedure TestIntegerAdd;\n procedure Test... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461/"
] |
18,326 | <p>I like a bit of TiVo hacking in spare time - TiVo uses a Linux variant and <a href="http://wiki.tcl.tk/299" rel="nofollow noreferrer">TCL</a>. I'd like to write TCL scripts on my Windows laptop, test them and then FTP them over to my TiVo.</p>
<p>Can I have a recommendation for a TCL debugging environment for Windo... | [
{
"answer_id": 471599,
"author": "ctd",
"author_id": 58133,
"author_profile": "https://Stackoverflow.com/users/58133",
"pm_score": 0,
"selected": false,
"text": "proc bp {{s {}}} {\n if ![info exists ::bp_skip] {\n set ::bp_skip [list]\n } elseif {[lsearch -exact ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1223/"
] |
18,391 | <p>There is previous little on the google on this subject other than people asking this very same question.</p>
<p>How would I get started writing my own firewall?</p>
<p>I'm looking to write one for the windows platform but I would also be interested in this information for other operating systems too.
... | [
{
"answer_id": 18398,
"author": "wvdschel",
"author_id": 2018,
"author_profile": "https://Stackoverflow.com/users/2018",
"pm_score": 2,
"selected": false,
"text": "connect listens"
},
{
"answer_id": 312142,
"author": "Adam Liss",
"author_id": 29157,
"author_profile": ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/840/"
] |
18,407 | <p>If I have a variable in C# that needs to be checked to determine if it is equal to one of a set of variables, what is the best way to do this?</p>
<p>I'm not looking for a solution that stores the set in an array. I'm more curious to see if there is a solution that uses boolean logic in some way to get the answer.<... | [
{
"answer_id": 18416,
"author": "Corey",
"author_id": 1595,
"author_profile": "https://Stackoverflow.com/users/1595",
"pm_score": 5,
"selected": true,
"text": " bool b = new int[] { 3,7,12,5 }.Contains(5);\n"
},
{
"answer_id": 153037,
"author": "Joe",
"author_id": ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
18,413 | <p>I have a column of data that contains a percentage range as a string that I'd like to convert to a number so I can do easy comparisons.</p>
<p>Possible values in the string:</p>
<pre><code>'<5%'
'5-10%'
'10-15%'
...
'95-100%'
</code></pre>
<p>I'd like to convert this in my select where clause to just the first... | [
{
"answer_id": 18451,
"author": "mercutio",
"author_id": 1951,
"author_profile": "https://Stackoverflow.com/users/1951",
"pm_score": 0,
"selected": false,
"text": "\"<5%\" => 0\n\"5-10%\" => 5\n\"95-100%\" => 95\n SELECT \"5-10%\" + 0 AS foo ...\n"
},
{
"answer_id": 18454,
... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1097/"
] |
18,418 | <p>When I am writing code in Python, I often need to remove items from a list or other sequence type based on some criteria. I haven't found a solution that is elegant and efficient, as removing items from a list you are currently iterating through is bad. For example, you can't do this:</p>
<pre><code>for name in na... | [
{
"answer_id": 18430,
"author": "pottedmeat",
"author_id": 2120,
"author_profile": "https://Stackoverflow.com/users/2120",
"pm_score": 2,
"selected": false,
"text": "names = filter(lambda x: x[-5:] != \"Smith\", names);\n"
},
{
"answer_id": 18431,
"author": "mk.",
"author... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1892/"
] |
18,419 | <p>I've got a combo-box that sits inside of a panel in Flex 3. Basically I want to fade the panel using a Fade effect in ActionScript. I can get the fade to work fine, however the label of the combo-box does not fade. I had this same issue with buttons and found that their fonts needed to be embedded. No problem. ... | [
{
"answer_id": 18463,
"author": "Matt MacLean",
"author_id": 22,
"author_profile": "https://Stackoverflow.com/users/22",
"pm_score": 2,
"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/20 | [
"https://Stackoverflow.com/questions/18419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1290/"
] |
18,432 | <p>I am developing a Reporting Services solution for a DOD website. Frequently I'll have a report and want to have as a parameter the Service (in addition to other similar mundane, but repetitive parameters like Fiscal Year, Data Effective Date, etc). Basically everything I've seen of SSRS 2005 says it can't be done.... | [
{
"answer_id": 18502,
"author": "csmba",
"author_id": 350,
"author_profile": "https://Stackoverflow.com/users/350",
"pm_score": 2,
"selected": true,
"text": "A B A A B"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2156/"
] |
18,449 | <p>For those of us who use standard shared hosting packages, such as GoDaddy or Network Solutions, how do you handle datetime conversions when your hosting server (PHP) and MySQL server are in different time zones?</p>
<p>Also, does anybody have some best practice advice for determining what time zone a visitor to you... | [
{
"answer_id": 18607,
"author": "Željko Živković",
"author_id": 1926,
"author_profile": "https://Stackoverflow.com/users/1926",
"pm_score": 5,
"selected": true,
"text": "SET timezone = 'Europe/London';\n //Returns the offset (time difference) between Greenwich Mean Time (GMT) \n//and loc... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2056/"
] |
18,450 | <p>Has anyone used Mono, the open source .NET implementation on a large or medium sized project? I'm wondering if it's ready for real world, production environments. Is it stable, fast, compatible, ... enough to use? Does it take a lot of effort to port projects to the Mono runtime, or is it really, <em>really</em> com... | [
{
"answer_id": 18488,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 5,
"selected": false,
"text": "Path.Separator \"\\\" Environment.NewLine \"\\n\""
},
{
"answer_id": 19021501,
"author": "head_thrash",
"auth... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2018/"
] |
18,460 | <p>What is the best way to authorize all users to one single page in a asp.net website.</p>
<p>For except the login page and one other page, I deny all users from viewing pages in the website. </p>
<p>How do you make this page accessible to all users?</p>
| [
{
"answer_id": 18469,
"author": "Dillie-O",
"author_id": 71,
"author_profile": "https://Stackoverflow.com/users/71",
"pm_score": 4,
"selected": true,
"text": "<location path=\"Login.aspx\">\n <system.web>\n <authorization>\n <allow users =\"*\" />\n </authorization>\n... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2172/"
] |
18,465 | <p>In .Net you can read a string value into another data type using either <code><datatype>.parse</code> or <code>Convert.To<DataType></code>. </p>
<p>I'm not familiar with the fundamentals of parse versus convert so I am always at a loss when asked which one is better/faster/more appropriate. </p>
<p>So ... | [
{
"answer_id": 18523,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 5,
"selected": true,
"text": "Convert.ToXXX() .Parse() .TryParse() //o is actually a boxed int\nobject o = 12345;\n\n//unboxes it\nint castVal = (int) 12345;\n\... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/149/"
] |
18,524 | <p>I have a list of integers, <code>List<Integer></code> and I'd like to convert all the integer objects into Strings, thus finishing up with a new <code>List<String></code>.</p>
<p>Naturally, I could create a new <code>List<String></code> and loop through the list calling <code>String.valueOf()</cod... | [
{
"answer_id": 18529,
"author": "jsight",
"author_id": 1432,
"author_profile": "https://Stackoverflow.com/users/1432",
"pm_score": 7,
"selected": true,
"text": "List<Integer> oldList = ...\n/* Specify the size of the list up front to prevent resizing. */\nList<String> newList = new Array... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/916/"
] |
18,533 | <p>I've found myself increasingly unsatisfied with the DataSet/DataTable/DataRow paradigm in .Net, mostly because it's often a couple of steps more complicated than what I really want to do. In cases where I'm binding to controls, DataSets are fine. But in other cases, there seems to be a fair amount of mental overhe... | [
{
"answer_id": 18581,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 2,
"selected": false,
"text": "IEnumerable<T>"
},
{
"answer_id": 18630,
"author": "Mike",
"author_id": 785,
"author_profile": "https://Stack... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/111/"
] |
18,538 | <p>I'd like some sorthand for this:</p>
<pre><code>Map rowToMap(row) {
def rowMap = [:];
row.columns.each{ rowMap[it.name] = it.val }
return rowMap;
}
</code></pre>
<p>given the way the GDK stuff is, I'd expect to be able to do something like:</p>
<pre><code>Map rowToMap(row) {
row.columns.collectMap... | [
{
"answer_id": 18981,
"author": "danb",
"author_id": 2031,
"author_profile": "https://Stackoverflow.com/users/2031",
"pm_score": 1,
"selected": false,
"text": "ArrayList.metaClass.collectMap = {Closure callback->\n def map = [:]\n delegate.each {\n def r = callback.call(it)\... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2031/"
] |
18,584 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/9/how-do-i-calculate-someones-age-in-c">How do I calculate someone's age in C#?</a> </p>
</blockquote>
<p>Maybe this could be silly but and I don't have issues with my age but sometimes it is good to calcul... | [
{
"answer_id": 18610,
"author": "Kibbee",
"author_id": 1862,
"author_profile": "https://Stackoverflow.com/users/1862",
"pm_score": 0,
"selected": false,
"text": "Dim myAge AS Integer = DateTime.Now.year - BirthDate.year\nIf Birthdate.month < DateTime.Now.Month _\nOrElse BirthDate.Month =... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1130097/"
] |
18,585 | <h3>Update: Solved, with code</h3>
<p><a href="https://stackoverflow.com/questions/18585/why-cant-you-bind-the-size-of-a-windows-form-to-applicationsettings#19056">I got it working, see my answer below for the code...</a></p>
<h3>Original Post</h3>
<p>As Tundey pointed out in <a href="https://stackoverflow.com/question... | [
{
"answer_id": 18659,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Stackoverflow.com/users/832",
"pm_score": 1,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<configuration>\n <appSettings>\n <add key =\"FormHeight\" value=\"50... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/229/"
] |
18,608 | <p>I've got a group of inter-related classes that are all overridden together to create a particular implementation. I'm wondering if it is a good idea to enclose the interrelated subclasses in a namespace.</p>
<p>For example purposes, consider the following namespaces and classes:</p>
<pre><code>namespace Protocol
{... | [
{
"answer_id": 18616,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Stackoverflow.com/users/832",
"pm_score": 4,
"selected": true,
"text": "using System.Data;\nusing System.Data.Sql;\n"
},
{
"answer_id": 18625,
"author": "mmattax",
"author_id": 1638... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
18,617 | <p>How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?</p>
| [
{
"answer_id": 18623,
"author": "ScArcher2",
"author_id": 1310,
"author_profile": "https://Stackoverflow.com/users/1310",
"pm_score": 8,
"selected": true,
"text": "tomcat/conf/server.xml"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1310/"
] |
18,632 | <p>For debugging purposes in a somewhat closed system, I have to output text to a file.</p>
<p>Does anyone know of a tool that runs on windows (console based or not) that detects changes to a file and outputs them in real-time?</p>
| [
{
"answer_id": 18648,
"author": "Nelson Miranda",
"author_id": 1130097,
"author_profile": "https://Stackoverflow.com/users/1130097",
"pm_score": 1,
"selected": false,
"text": "public static void Main()\n{\nRun();\n\n}\n\n[PermissionSet(SecurityAction.Demand, Name=\"FullTrust\")]\npublic ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2011/"
] |
18,655 | <p>I really need to see some honest, thoughtful debate on the merits of the currently accepted <strong><em>enterprise application</em></strong> design paradigm.</p>
<p>I am not convinced that entity objects should exist.</p>
<p>By entity objects I mean the typical things we tend to build for our applications, like "P... | [
{
"answer_id": 280560,
"author": "Pavel Feldman",
"author_id": 5507,
"author_profile": "https://Stackoverflow.com/users/5507",
"pm_score": 2,
"selected": false,
"text": "void exportOrder(Order order, String fileName){...};\n"
},
{
"answer_id": 397093,
"author": "Renaud Bompui... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1219/"
] |
18,661 | <p>Is it possible to get UI text from an external application in C#. </p>
<p>In particular, is there a way to read Unicode text from a label (I assume it's a normal Windows label control) from an external Win32 app that was written by a 3rd party? The text is visible, but not selectable by mouse in the UI.</p>
<p>I a... | [
{
"answer_id": 18698,
"author": "Lars Truijens",
"author_id": 1242,
"author_profile": "https://Stackoverflow.com/users/1242",
"pm_score": 3,
"selected": false,
"text": "[DllImport(\"user32.dll\")]\npublic static extern int SendMessage (IntPtr hWnd, int msg, int Param, System.Text.StringB... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/838/"
] |
18,671 | <p>Anyone know a quick easy way to migrate a SQLite3 database to MySQL?</p>
| [
{
"answer_id": 25860,
"author": "Richard Gourlay",
"author_id": 2674,
"author_profile": "https://Stackoverflow.com/users/2674",
"pm_score": 4,
"selected": false,
"text": "sqlite3 sample.db .dump > dump.sql\n mysql -p -u root -h 127.0.0.1 test < dump.sql\n BEGIN TRANSACTION;\n...\nCOMMIT;... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/534/"
] |
18,676 | <p>I need to generate a random integer between 1 and n (where n is a positive whole number) to use for a unit test. I don't need something overly complicated to ensure true randomness - just an old-fashioned random number.</p>
<p>How would I do that?</p>
| [
{
"answer_id": 18680,
"author": "Kibbee",
"author_id": 1862,
"author_profile": "https://Stackoverflow.com/users/1862",
"pm_score": 7,
"selected": true,
"text": "CInt(Math.Ceiling(Rnd() * n)) + 1\n"
},
{
"answer_id": 18684,
"author": "Bill the Lizard",
"author_id": 1288,
... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/225/"
] |
18,685 | <p>Can anyone tell me how I can display a status message like "12 seconds ago" or "5 minutes ago" etc in a web page?</p>
| [
{
"answer_id": 18693,
"author": "Niyaz",
"author_id": 184,
"author_profile": "https://Stackoverflow.com/users/184",
"pm_score": 7,
"selected": true,
"text": "function time_since($since) {\n $chunks = array(\n array(60 * 60 * 24 * 365 , 'year'),\n array(60 * 60 * 24 * 30 ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
18,717 | <p>As far as I know, foreign keys (FK) are used to aid the programmer to manipulate data in the correct way. Suppose a programmer is actually doing this in the right manner already, then do we really need the concept of foreign keys?</p>
<p>Are there any other uses for foreign keys? Am I missing something here?</p>
| [
{
"answer_id": 18728,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 6,
"selected": false,
"text": "ON DELETE CASCADE"
},
{
"answer_id": 18760,
"author": "csmba",
"author_id": 350,
"author_profile": "ht... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
18,719 | <p>As part of our databuild run a 3rd party program (3D Studio Max) to export a number of assets. Unfortunately if a user is not currently logged in, or the machine is locked, then Max does not run correctly.</p>
<p>This can be solved for freshly booted machines by using a method such as TweakUI for automatic login. H... | [
{
"answer_id": 154546,
"author": "Ed Haber",
"author_id": 2926,
"author_profile": "https://Stackoverflow.com/users/2926",
"pm_score": 0,
"selected": false,
"text": "myworkstation.mydomain.local /ADMIN\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1043/"
] |
18,754 | <p>I'm writing some documentation in Markdown, and creating a separate file for each section of the doc. I would like to be able to convert all the files to HTML in one go, but I can't find anyone else who has tried the same thing. I'm on a Mac, so I would think a simple bash script should be able to handle it, but I... | [
{
"answer_id": 18775,
"author": "Julio César",
"author_id": 2148,
"author_profile": "https://Stackoverflow.com/users/2148",
"pm_score": -1,
"selected": false,
"text": "@echo off\nfor %i in (*.txt) python markdown.py \"%i\"\n"
},
{
"answer_id": 18831,
"author": "Patrick McElha... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2185/"
] |
18,757 | <p>The Add view and the Edit view are often incredibly similar that it is unwarranted to write 2 views. As the app evolves you would be making the same changes to both.</p>
<p>However, there are usually subtle differences. For instance, a field might be read-only once it's been added, and if that field is a DropDownLi... | [
{
"answer_id": 18956,
"author": "Jim",
"author_id": 1208,
"author_profile": "https://Stackoverflow.com/users/1208",
"pm_score": 2,
"selected": false,
"text": "<%= Helper.ProfessionField() %>\n\nstring ProfessionField()\n{\n if(IsNewItem) { return /* some drop down code */ }\n else ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1851/"
] |
18,764 | <p>Since both a <code>Table Scan</code> and a <code>Clustered Index Scan</code> essentially scan all records in the table, why is a Clustered Index Scan supposedly better?</p>
<p>As an example - what's the performance difference between the following when there are many records?:</p>
<pre><code>declare @temp table(
... | [
{
"answer_id": 18906,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https://Stackoverflow.com/users/2199",
"pm_score": 7,
"selected": true,
"text": "INSERT UPDATE DELETE RANGE SELECT * FROM TABLE WHERE Id BETWEEN 1 AND 100 WHERE INSERT UPDATE DELETE INSERT UPDATE DELET... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
18,765 | <p>I'm currently working on creating a new C# project that needs to interact with an older C++ application. There is an error enumeration that already exists in the C++ app that I need to use in the C# app.</p>
<p><em>I don't want to just re declare the enumeration in C# because that could cause sync issues down the l... | [
{
"answer_id": 18786,
"author": "Brian Ensink",
"author_id": 1254,
"author_profile": "https://Stackoverflow.com/users/1254",
"pm_score": 5,
"selected": true,
"text": "\n public enum eDeviceIntErrCodes \n {\n /// eDEVICEINT_ERR_FATAL -> 0x10001\n eDEVICEINT_ERR_FATAL =... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2191/"
] |
18,783 | <p>When you have a query or stored procedure that needs performance tuning, what are some of the first things you try?</p>
| [
{
"answer_id": 18792,
"author": "Mike",
"author_id": 1573,
"author_profile": "https://Stackoverflow.com/users/1573",
"pm_score": 2,
"selected": false,
"text": "where SomeComplicatedFunctionOf(table.Column) = @param --silly\n"
},
{
"answer_id": 18822,
"author": "Seibar",
"... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
18,787 | <p>When a controller renders a view based on a model you can get the properties from the ViewData collection using the indexer (ie. ViewData["Property"]). However, I have a shared user control that I tried to call using the following:</p>
<pre><code>return View("Message", new { DisplayMessage = "This is a test" });
<... | [
{
"answer_id": 31726,
"author": "Haacked",
"author_id": 598,
"author_profile": "https://Stackoverflow.com/users/598",
"pm_score": 4,
"selected": true,
"text": "ViewData.Eval(\"DisplayMessage\") \n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/105/"
] |
18,803 | <p>In college I've had numerous design and <a href="http://en.wikipedia.org/wiki/Unified_Modeling_Language" rel="noreferrer">UML</a> oriented courses, and I recognize that UML can be used to benefit a software project, especially <a href="http://en.wikipedia.org/wiki/Use_case" rel="noreferrer">use-case</a> mapping, but... | [
{
"answer_id": 18839,
"author": "Pascal",
"author_id": 1311,
"author_profile": "https://Stackoverflow.com/users/1311",
"pm_score": 7,
"selected": true,
"text": "UML"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2134/"
] |
18,836 | <p>I'm looking for shell scripts files installed on my system, but <strong>find</strong> doesn't work:</p>
<pre><code>$ find /usr -name *.sh
</code></pre>
<p>But I know there are a ton of scripts out there. For instance:</p>
<pre><code>$ ls /usr/local/lib/*.sh
/usr/local/lib/tclConfig.sh
/usr/local/lib/tkConfig.s... | [
{
"answer_id": 18837,
"author": "Jon Ericson",
"author_id": 1438,
"author_profile": "https://Stackoverflow.com/users/1438",
"pm_score": 7,
"selected": true,
"text": "$ find /usr -name \\*.sh\n $ find /usr -name '*.sh'\n $ find /usr -name tkConfig.sh\n $ cd /usr/local/lib\n$ find /usr -na... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438/"
] |
18,858 | <p>Does anyone here know of good batch file code indenters or beautifiers?</p>
<p>Specifically for PHP, JS and SGML-languages.</p>
<p>Preferably with options as to style.</p>
| [
{
"answer_id": 18837,
"author": "Jon Ericson",
"author_id": 1438,
"author_profile": "https://Stackoverflow.com/users/1438",
"pm_score": 7,
"selected": true,
"text": "$ find /usr -name \\*.sh\n $ find /usr -name '*.sh'\n $ find /usr -name tkConfig.sh\n $ cd /usr/local/lib\n$ find /usr -na... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2118/"
] |
18,861 | <p>So I am writing a registration form and I need the display name to be only numbers, letters and underscores. </p>
<p>Have a look at my code and tell me what I'm doing wrong.</p>
<pre><code><form method="post" action="/" onsubmit="return check_form()">
<input type="text" id="display-name" name="display... | [
{
"answer_id": 18874,
"author": "AnnanFay",
"author_id": 2118,
"author_profile": "https://Stackoverflow.com/users/2118",
"pm_score": 3,
"selected": false,
"text": "/^[a-zA-Z0-9_]+$/ $"
},
{
"answer_id": 18881,
"author": "samjudson",
"author_id": 1908,
"author_profile"... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/428190/"
] |
18,869 | <p>I am running a Qt 4.5 commercial snapshot and want to use a plugin that I downloaded (it's a .so file) in my <code>QWebView</code>. Is there a specific location where I need to place this file? Can I grab it using the <code>QWebPluginFactory</code>?</p>
| [
{
"answer_id": 22203,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 0,
"selected": false,
"text": "/lib/\n/usr/lib/\n/usr/share/lib/\n/usr/local/lib/\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1449/"
] |
18,889 | <p>Is anyone working on or know if there exists a SQL 2k8 Dialect for NHibernate? </p>
| [
{
"answer_id": 22203,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 0,
"selected": false,
"text": "/lib/\n/usr/lib/\n/usr/share/lib/\n/usr/local/lib/\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1975/"
] |
18,912 | <p>I know in JavaScript, <em>objects</em> double as hashes, but I have been unable to find a built-in function to get the keys:</p>
<pre><code>var h = {a:'b', c:'d'};
</code></pre>
<p>I want something like</p>
<pre><code>var k = h.keys() ; // k = ['a', 'c'];
</code></pre>
<p>It is simple to write a function myself to i... | [
{
"answer_id": 18929,
"author": "danb",
"author_id": 2031,
"author_profile": "https://Stackoverflow.com/users/2031",
"pm_score": 4,
"selected": false,
"text": "var keys = [];\nfor (var k in h)keys.push(k);\n"
},
{
"answer_id": 18930,
"author": "palmsey",
"author_id": 521,... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/238/"
] |
18,918 | <p>Im testing an ASP.NEt site. When I execute it, it starts the ASP.NET Development Server and opens up a page.</p>
<p>Now I want to test it in the intranet I have. </p>
<ol>
<li><p>Can I use this server or I need to configure IIS in this machine? </p></li>
<li><p>Do I need to configure something for it to work?</p>... | [
{
"answer_id": 7394935,
"author": "strongriley",
"author_id": 561956,
"author_profile": "https://Stackoverflow.com/users/561956",
"pm_score": 7,
"selected": true,
"text": "java -jar tunnel.jar 80 localhost 1088\n"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/18918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1013/"
] |
18,920 | <p>When opening a file from your hard drive into your browser, where is the document root? To illustrate, given the following HTML code, if the page is opened from the local machine <code>(file:///)</code> then where should the <code>css</code> file be for the browser to find it?</p>
<pre><code><link href="/temp/t... | [
{
"answer_id": 18924,
"author": "Andy",
"author_id": 1993,
"author_profile": "https://Stackoverflow.com/users/1993",
"pm_score": 3,
"selected": true,
"text": "C:/"
},
{
"answer_id": 19338,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflo... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1858/"
] |
18,932 | <p>I need to remove duplicate rows from a fairly large SQL Server table (i.e. 300,000+ rows).</p>
<p>The rows, of course, will not be perfect duplicates because of the existence of the <code>RowID</code> identity field.</p>
<p><strong>MyTable</strong></p>
<pre><code>RowID int not null identity(1,1) primary key,
Col1 va... | [
{
"answer_id": 18934,
"author": "Jon Galloway",
"author_id": 5,
"author_profile": "https://Stackoverflow.com/users/5",
"pm_score": 7,
"selected": false,
"text": "DELETE dupes\nFROM MyTable dupes, MyTable fullTable\nWHERE dupes.dupField = fullTable.dupField \nAND dupes.secondDupField = fu... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
18,943 | <p>Typically in a large network a computer needs to operate behind an authenticated proxy - any connections to the outside world require a username/password which is often the password a user uses to log into email, workstation etc.</p>
<p>This means having to put the network password in the <code>apt.conf</code> file... | [
{
"answer_id": 20160,
"author": "T Percival",
"author_id": 954,
"author_profile": "https://Stackoverflow.com/users/954",
"pm_score": 2,
"selected": false,
"text": "-D -L"
},
{
"answer_id": 26896,
"author": "Jason Day",
"author_id": 737,
"author_profile": "https://Stac... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/199/"
] |
18,955 | <p>Is there a way to disable entering multi-line entries in a Text Box (i.e., I'd like to stop my users from doing ctrl-enter to get a newline)?</p>
| [
{
"answer_id": 20255,
"author": "BIBD",
"author_id": 685,
"author_profile": "https://Stackoverflow.com/users/685",
"pm_score": 4,
"selected": true,
"text": "Private Sub SingleLineTextBox_ KeyPress(ByRef KeyAscii As Integer)\n If KeyAscii = 10 _\n or KeyAscii = 13 Then\n ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/685/"
] |
18,959 | <p>I'm writing an application that on some stage performs low-level disk operations in Linux environment. The app actually consists of 2 parts, one runs on Windows and interacts with a user and another is a linux part that runs from a LiveCD. User makes a choice of Windows drive letters and then a linux part performs a... | [
{
"answer_id": 2194258,
"author": "Bernhard",
"author_id": 265528,
"author_profile": "https://Stackoverflow.com/users/265528",
"pm_score": 0,
"selected": false,
"text": "HANDLE fileHandle = CreateFile(L\"\\\\\\\\.\\\\C:\", // or use syntax \"\\\\?\\Volume{GUID}\" \n ... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2206/"
] |
18,985 | <p>I am writing a batch script in order to beautify JavaScript code. It needs to work on both <strong>Windows</strong> and <strong>Linux</strong>. </p>
<p>How can I beautify JavaScript code using the command line tools? </p>
| [
{
"answer_id": 27343,
"author": "Alan Storm",
"author_id": 2838,
"author_profile": "https://Stackoverflow.com/users/2838",
"pm_score": 7,
"selected": true,
"text": "java -cp js.jar org.mozilla.javascript.tools.shell.Main name-of-script.js\n //original code \n(function() { ... js_beaut... | 2008/08/20 | [
"https://Stackoverflow.com/questions/18985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/486/"
] |
19,011 | <p>I am developing a J2ME application that has a large amount of data to store on the device (in the region of 1MB but variable). I can't rely on the file system so I'm stuck the Record Management System (RMS), which allows multiple record stores but each have a limited size. My initial target platform, Blackberry, lim... | [
{
"answer_id": 1660340,
"author": "dhill",
"author_id": 69769,
"author_profile": "https://Stackoverflow.com/users/69769",
"pm_score": 2,
"selected": false,
"text": "List Thread InputStreamReader.skip()"
}
] | 2008/08/20 | [
"https://Stackoverflow.com/questions/19011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/270/"
] |
19,014 | <p>I want to use Lucene (in particular, Lucene.NET) to search for email address domains.</p>
<p>E.g. I want to search for "@gmail.com" to find all emails sent to a gmail address.</p>
<p>Running a Lucene query for "*@gmail.com" results in an error, asterisks cannot be at the start of queries. Running a query for "@gma... | [
{
"answer_id": 20468,
"author": "Judah Gabriel Himango",
"author_id": 536,
"author_profile": "https://Stackoverflow.com/users/536",
"pm_score": 5,
"selected": true,
"text": "class WhitespaceAndAtSymbolTokenizer : CharTokenizer\n{\n public WhitespaceAndAtSymbolTokenizer(TextReader inpu... | 2008/08/20 | [
"https://Stackoverflow.com/questions/19014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/536/"
] |
19,030 | <p>I have a bunch of files (TV episodes, although that is fairly arbitrary) that I want to check match a specific naming/organisation scheme..</p>
<p>Currently: I have three arrays of regex, one for valid filenames, one for files missing an episode name, and one for valid paths.</p>
<p>Then, I loop though each valid-... | [
{
"answer_id": 19389,
"author": "sven",
"author_id": 46,
"author_profile": "https://Stackoverflow.com/users/46",
"pm_score": 0,
"selected": false,
"text": "folder.jpg"
},
{
"answer_id": 21302,
"author": "Joseph Pecoraro",
"author_id": 792,
"author_profile": "https://S... | 2008/08/20 | [
"https://Stackoverflow.com/questions/19030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
19,035 | <p>I am working with both <a href="http://activemq.apache.org/ajax.html" rel="nofollow noreferrer">amq.js</a> (ActiveMQ) and <a href="http://code.google.com/apis/maps/documentation/reference.html" rel="nofollow noreferrer">Google Maps</a>. I load my scripts in this order</p>
<pre><code><head>
<meta http-e... | [
{
"answer_id": 19067,
"author": "maxsilver",
"author_id": 1477,
"author_profile": "https://Stackoverflow.com/users/1477",
"pm_score": 2,
"selected": false,
"text": "application.js $(document).ready"
},
{
"answer_id": 19069,
"author": "danb",
"author_id": 2031,
"author... | 2008/08/20 | [
"https://Stackoverflow.com/questions/19035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1992/"
] |
19,058 | <p>Example:</p>
<pre><code>select ename from emp where hiredate = todate('01/05/81','dd/mm/yy')
</code></pre>
<p>and </p>
<pre><code>select ename from emp where hiredate = todate('01/05/81','dd/mm/rr')
</code></pre>
<p>return different results</p>
| [
{
"answer_id": 19202,
"author": "mauriciopastrana",
"author_id": 547,
"author_profile": "https://Stackoverflow.com/users/547",
"pm_score": 3,
"selected": false,
"text": "USING\nENTERED\nSTORED\nSELECT of date column\n\n\nYY\n22-FEB-01\n22-FEB-1901\n22-FEB-01\n\n\nYYYY\n22-FEB-01\n22-FEB-... | 2008/08/20 | [
"https://Stackoverflow.com/questions/19058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1782/"
] |
19,089 | <p>I have a view that has a list of jobs in it, with data like who they're assigned to and the stage they are in. I need to write a stored procedure that returns how many jobs each person has at each stage.</p>
<p>So far I have this (simplified):</p>
<pre><code>DECLARE @ResultTable table
(
StaffName nvarchar(100),... | [
{
"answer_id": 19098,
"author": "Ryan Farley",
"author_id": 1627,
"author_profile": "https://Stackoverflow.com/users/1627",
"pm_score": 2,
"selected": false,
"text": "IF (EXISTS (SELECT * FROM MyTable WHERE StaffName = @StaffName))\nbegin\n UPDATE MyTable SET ... WHERE StaffName = @St... | 2008/08/20 | [
"https://Stackoverflow.com/questions/19089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/233/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.