qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
45,908 | <p>After answering on <a href="https://stackoverflow.com/questions/45650/common-files-in-visual-studio-solution#45664">this question</a> I thought it would be nice to collect some tips & tricks for working with MSVS solutions and projects. </p>
<p>Here is my list: </p>
<ul>
<li><p>How to avoid saving new projec... | [
{
"answer_id": 156311,
"author": "Mario",
"author_id": 472,
"author_profile": "https://Stackoverflow.com/users/472",
"pm_score": 2,
"selected": false,
"text": "open <filename> open alias o open o <filename> login.aspx .cs"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/45908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1196/"
] |
45,924 | <p>My users are having an intermittent error when using a Windows Forms application built in VB.NET 3.5. Apparently when they click on the form and the form re-paints, a red 'X' will be painted over the MenuStrip control and the app will crash with the following error. </p>
<p>Has anyone seen this before? Can someone ... | [
{
"answer_id": 156311,
"author": "Mario",
"author_id": 472,
"author_profile": "https://Stackoverflow.com/users/472",
"pm_score": 2,
"selected": false,
"text": "open <filename> open alias o open o <filename> login.aspx .cs"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/45924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4770/"
] |
45,941 | <p>I've used subversion for a while, and used the svnmerge.py script for a while in my old job to manage merges between branches. I believe Subversion 1.5 is now out, and was supposed to have some branch / merge management system integrated with it.</p>
<p>So, can someone give me a quick overview of how to track merg... | [
{
"answer_id": 45978,
"author": "Chris Zwiryk",
"author_id": 734,
"author_profile": "https://Stackoverflow.com/users/734",
"pm_score": 3,
"selected": true,
"text": "svn merge trunkURL\n"
},
{
"answer_id": 46154,
"author": "Ishmaeel",
"author_id": 227,
"author_profile"... | 2008/09/05 | [
"https://Stackoverflow.com/questions/45941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
45,953 | <p>I need to execute a directory copy upon a user action, but the directories are quite large, so I would like to be able to perform such an action without the user being aware of the time it takes for the copy to complete.</p>
<p>Any suggestions would be much appreciated.</p>
| [
{
"answer_id": 45966,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 10,
"selected": true,
"text": "exec(sprintf(\"%s > %s 2>&1 & echo $! >> %s\", $cmd, $outputfile, $pidfile));\n $cmd $outputfile $pidfile function isRunning(... | 2008/09/05 | [
"https://Stackoverflow.com/questions/45953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1071/"
] |
45,954 | <p>I'm working on a utility which needs to resolve hex addresses to a symbolic function name and source code line number within a binary. The utility will run on Linux on x86, though the binaries it analyzes will be for a MIPS-based embedded system. The MIPS binaries are in ELF format, using DWARF for the symbolic debu... | [
{
"answer_id": 3647010,
"author": "emilmont",
"author_id": 318098,
"author_profile": "https://Stackoverflow.com/users/318098",
"pm_score": 3,
"selected": false,
"text": ">>> from bintools.dwarf import DWARF\n>>> dwarf = DWARF('test/test')\n>>> dwarf.get_loc_by_addr(0x8048475)\n('/home/em... | 2008/09/05 | [
"https://Stackoverflow.com/questions/45954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4761/"
] |
45,964 | <p>How do I multiply 10 to an <code>Integer</code> object and get back the <code>Integer</code> object?</p>
<p>I am looking for the neatest way of doing this.</p>
<p>I would probably do it this way:
Get int from <code>Integer</code> object, multiply it with the other int and create another Integer object with this in... | [
{
"answer_id": 45975,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 6,
"selected": true,
"text": "Integer a = new Integer(2); // or even just Integer a = 2;\na *= 10;\nSystem.out.println(a);\n"
},
{
"answer_id": 4642... | 2008/09/05 | [
"https://Stackoverflow.com/questions/45964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4406/"
] |
45,972 | <p>I'm working on a program that will be processing files that could potentially be 100GB or more in size. The files contain sets of variable length records. I've got a first implementation up and running and am now looking towards improving performance, particularly at doing I/O more efficiently since the input file g... | [
{
"answer_id": 46005,
"author": "Ben Collins",
"author_id": 3279,
"author_profile": "https://Stackoverflow.com/users/3279",
"pm_score": 5,
"selected": false,
"text": "char data[0x1000];\nstd::ifstream in(\"file.bin\");\n\nwhile (in)\n{\n in.read(data, 0x1000);\n // do something with da... | 2008/09/05 | [
"https://Stackoverflow.com/questions/45972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2353001/"
] |
45,988 | <p>In a C# .NET 3.5 app (a mix of WinForms and WPF) I want to let the user select a folder to import a load of data from. At the moment, it's using <code>System.Windows.Forms.FolderBrowserDialog</code> but that's a bit lame. Mainly because you can't type the path into it (so you need to map a network drive, instead of ... | [
{
"answer_id": 625057,
"author": "Cheeso",
"author_id": 48082,
"author_profile": "https://Stackoverflow.com/users/48082",
"pm_score": 6,
"selected": true,
"text": "var dlg1 = new Ionic.Utils.FolderBrowserDialogEx();\ndlg1.Description = \"Select a folder to extract to:\";\ndlg1.ShowNewFol... | 2008/09/05 | [
"https://Stackoverflow.com/questions/45988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1367/"
] |
45,991 | <p>I'm building a website that requires very basic markup capabilities. I can't use any 3rd party plugins, so I just need a simple way to convert markup to HTML. I might have a total of 3 tags that I'll allow.</p>
<p>What is the best way to convert <code>==Heading==</code> to <code><h2>Heading</h2></code>, ... | [
{
"answer_id": 45998,
"author": "Matt Sheppard",
"author_id": 797,
"author_profile": "https://Stackoverflow.com/users/797",
"pm_score": 3,
"selected": true,
"text": "replace the pattern ==([^=]*)== with <h2>\\1</h2>\n"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/45991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/681/"
] |
46,003 | <p>How can I change default <a href="http://msdn.microsoft.com/en-us/library/3a7hkh29.aspx" rel="nofollow noreferrer">Generate Method Stub</a> behavior in Visaul Studio to generate method with body</p>
<pre><code>throw new NotImplementedException();
</code></pre>
<p>instead of </p>
<pre><code>throw new Exception("Th... | [
{
"answer_id": 46016,
"author": "Sam Wessel",
"author_id": 4734,
"author_profile": "https://Stackoverflow.com/users/4734",
"pm_score": 4,
"selected": true,
"text": " <Declarations>\n <Literal Editable=\"true\">\n <ID>signature</ID>\n <Defau... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2361/"
] |
46,004 | <p>We are trying to implement a REST API for an application we have now. We want to expose read/write capabilities for various resources using the REST API. How do we implement the "form" part of this? I get how to expose "read" of our data by creating RESTful URLs that essentially function as method calls and return t... | [
{
"answer_id": 176639,
"author": "Alexandros Marinos",
"author_id": 24461,
"author_profile": "https://Stackoverflow.com/users/24461",
"pm_score": 4,
"selected": false,
"text": " Operate on a Record\n\nGET /people/1\n return the first record \nDELETE /people/1\n destroy the first re... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/577/"
] |
46,029 | <p>If I have a collection of database tables (in an Access file, for example) and need to validate each table in this collection against a rule set that has both common rules across all tables as well as individual rules specific to one or a subset of tables, can someone recommend a good design pattern to look into?</p... | [
{
"answer_id": 46035,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 3,
"selected": false,
"text": "using(var validation = new ValidationScope())\n{\n ValidateTable1();\n ValidateTable2();\n ValidateTable3();\n\n ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1108/"
] |
46,030 | <p>So, I did search google and SO prior to asking this question. Basically I have a DLL that has a form compiled into it. The form will be used to display information to the screen. Eventually it will be asynchronous and expose a lot of customization in the dll. For now I just want it to display properly. The problem t... | [
{
"answer_id": 46092,
"author": "Dean Hill",
"author_id": 3106,
"author_profile": "https://Stackoverflow.com/users/3106",
"pm_score": 5,
"selected": true,
"text": "using System.Diagnostics;\nusing System.Runtime.InteropServices;\n\n// Sets the window to be foreground\n[DllImport(\"User32... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1358/"
] |
46,034 | <p>My work has a financial application, written in <code>VB.NET</code> with <code>SQL</code>, that several users can be working on at the same time.</p>
<p>At some point, one user might decide to Post the batch of entries that they (and possibly other people) are currently working on.</p>
<p>Obviously, I no longer wa... | [
{
"answer_id": 46054,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 0,
"selected": false,
"text": "with (rowlock)\n"
},
{
"answer_id": 46089,
"author": "minty",
"author_id": 4491,
"author_profile": "https:/... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
46,074 | <p>I have a php server that is running my domain name. For testing purposes I am running an asp.net on a dotted quad IP. I am hoping to link them together via either PHP or some kind of DNS/<code>.htaccess</code> voodoo.</p>
<p>So if I go to <code>www.mydomain.com/test</code> it redirects (but keeps the url of (<cod... | [
{
"answer_id": 46143,
"author": "Will Harris",
"author_id": 4702,
"author_profile": "https://Stackoverflow.com/users/4702",
"pm_score": 4,
"selected": true,
"text": "www.yourdomain.com/test test.yourdomain.com yourdomain.com test.yourdomain.com"
},
{
"answer_id": 46162,
"auth... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3135/"
] |
46,079 | <p>Details:</p>
<ul>
<li>Only disable after user clicks the submit button, but before the posting back to the server</li>
<li>ASP.NET Webforms (.NET 1.1)</li>
<li>Prefer jQuery (if any library at all)</li>
<li>Must be enabled if form reloads (i.e. credit card failed)</li>
</ul>
<p>This isn't a necessity that I do thi... | [
{
"answer_id": 46082,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 1,
"selected": false,
"text": "$('#SubmitButtonID').click(function() { this.disabled = true; });\n"
},
{
"answer_id": 46138,
"author": "SpoonMeise... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1446/"
] |
46,080 | <p>I'm using TortoiseSVN against the SourceForge SVN repository. I'd like to move a file from one folder to another in order to maintain its revision history. Is this possible? If so, how do you do it?</p>
<p>(My current strategy has been to copy the file into the new folder and check it in and then delete the file fr... | [
{
"answer_id": 46083,
"author": "Commodore Jaeger",
"author_id": 4659,
"author_profile": "https://Stackoverflow.com/users/4659",
"pm_score": 8,
"selected": true,
"text": "svn move SOURCE DESTINATION\n"
},
{
"answer_id": 25660319,
"author": "BornToCode",
"author_id": 10577... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
46,096 | <p>I'm trying to find the correct names for these 2 "types" of coding expressions in LINQ so that I can refer to them correctly. I want to say that the first is called "Fluent Style"?</p>
<pre><code>var selectVar = arrayVar.Select( (a,i) => new { Line = a });
var selectVar =
from s in arrayVar
select new ... | [
{
"answer_id": 46108,
"author": "DevelopingChris",
"author_id": 1220,
"author_profile": "https://Stackoverflow.com/users/1220",
"pm_score": 1,
"selected": false,
"text": "(a) => new { blah = b}\n"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
46,124 | <p>I've seen people doing things like this in their HTML:</p>
<pre><code><!--[if IE]>
<link rel="stylesheet" href="ie.css" type="text/css" />
<![endif]-->
</code></pre>
<p>Does this work across all modern browsers and is there a list of browser types that will work with that kind of if statement?<... | [
{
"answer_id": 46126,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 5,
"selected": true,
"text": "<!--IGNORED COMMENT--> <!--[if IE 8]>\n<link rel=\"stylesheet type=\"text/css\" href=\"ie8.css\" />\n<![endif]-->\n"
},
{
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305/"
] |
46,125 | <p>I want to do this: </p>
<blockquote>
<p>//*fu</p>
</blockquote>
<p>which returns all nodes whose name ends in <strong>fu</strong>, such as <code><tarfu /></code> and <code><snafu /></code>, but not <code><fubar /></code></p>
| [
{
"answer_id": 46141,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 6,
"selected": true,
"text": "//*[ends-with(name(), 'fu')]\n"
},
{
"answer_id": 288865,
"author": "Dimitre Novatchev",
"author_id": ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
46,130 | <p>I have a list of <code>Foo</code>. Foo has properties <code>Bar</code> and <code>Lum</code>. Some <code>Foo</code>s have identical values for <code>Bar</code>. How can I use lambda/linq to group my <code>Foo</code>s by <code>Bar</code> so I can iterate over each grouping's <code>Lum</code>s?</p>
| [
{
"answer_id": 46142,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stackoverflow.com/users/1196",
"pm_score": 2,
"selected": false,
"text": "var q = from x in list\n group x by x.Bar into g\n select g;\n\nforeach (var group in q)\n{\n Console.WriteLine(... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
46,136 | <p>I have a large codebase that targetted Flash 7, with a <em>lot</em> of AS2 classes. I'm hoping that I'll be able to use Flex for any new projects, but a lot of new stuff in our roadmap is additions to the old code.</p>
<p>The syntax for AS2 and AS3 is generally the same, so I'm starting to wonder how hard it would... | [
{
"answer_id": 46184,
"author": "lilserf",
"author_id": 4545,
"author_profile": "https://Stackoverflow.com/users/4545",
"pm_score": 4,
"selected": true,
"text": "class your.package.YourClass\n{\n}\n package your.package\n{\n class YourClass\n {\n }\n}\n"
},
{
"answer_id"... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1409/"
] |
46,146 | <p>Looking for a string to pass to String#matches(String) that will match IPv4, and another to match IPv6.</p>
| [
{
"answer_id": 46168,
"author": "Kevin Wong",
"author_id": 4792,
"author_profile": "https://Stackoverflow.com/users/4792",
"pm_score": 4,
"selected": false,
"text": "public static final String IPV4_REGEX = \"\\\\A(25[0-5]|2[0-4]\\\\d|[0-1]?\\\\d?\\\\d)(\\\\.(25[0-5]|2[0-4]\\\\d|[0-1]?\\\... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4792/"
] |
46,147 | <p>Have just started using <code>Google Chrome</code>, and noticed in parts of our site, e.g. all the links on the page, are bright red. They should be black with a dotted underline.</p>
<p>Is there some gotcha in <code>WebKit</code> rendering that turns all links red regardless of the style?</p>
| [
{
"answer_id": 46151,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 0,
"selected": false,
"text": ":visited"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1220/"
] |
46,155 | <p>I'd like to check if the user input is an email address in JavaScript, before sending it to a server or attempting to send an email to it, to prevent the most basic mistyping. How could I achieve this?</p>
| [
{
"answer_id": 46170,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 7,
"selected": false,
"text": "emailAddress.match( / some_regex /);\n ^((?>[a-zA-Z\\d!#$%&'*+\\-/=?^_`{|}~]+\\x20*|\"((?=[\\x01-\\x7f])[^\"\\\\]|\\\\[... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72/"
] |
46,160 | <p>I am looking for a way to create an int\long representation of an arbitrary alpha-numeric String. Hash codes won't do it, because I can't afford hash collisions i.e. the representation must be unique and repeatable. </p>
<p>The numeric representation will be used to perform efficient (hopefully) compares. The creat... | [
{
"answer_id": 46211,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 2,
"selected": false,
"text": "String y = \"oiu291981u39u192u3198u389u28u389u\";\nBigInteger bi = new BigInteger(y, 36);\nSystem.out.println(bi);\n"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4216/"
] |
46,189 | <p>I have a collection of objects to which I'd like to just add a new property. How do I do that with LINQ?</p>
| [
{
"answer_id": 46206,
"author": "John Boker",
"author_id": 2847,
"author_profile": "https://Stackoverflow.com/users/2847",
"pm_score": 3,
"selected": true,
"text": "var a = from i in ObjectCollection select new {i.prop1, i.prop2, i.prop3, ..., newprop = newProperty}\n"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/781/"
] |
46,214 | <p>I'm looking for any way that I can improve the selector performance of a jQuery call. Specifically things like this:</p>
<p>Is <code>$("div.myclass")</code> faster than <code>$(".myclass")</code></p>
<p>I would think it might be, but I don't know if jQuery is smart enough to limit the search by tag name first, et... | [
{
"answer_id": 218846,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": false,
"text": "getElementsByClassName()"
},
{
"answer_id": 382730,
"author": "Matthew Crumley",
"author_id": 2214,
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4541/"
] |
46,219 | <p>If I have a </p>
<pre><code><input id="uploadFile" type="file" />
</code></pre>
<p>tag, and a submit button, how do I determine, in IE6 (and above) if a file has been selected by the user.</p>
<p>In FF, I just do:</p>
<pre><code>var selected = document.getElementById("uploadBox").files.length > 0;
</cod... | [
{
"answer_id": 46242,
"author": "Jason Bunting",
"author_id": 1790,
"author_profile": "https://Stackoverflow.com/users/1790",
"pm_score": 8,
"selected": true,
"text": "if(document.getElementById(\"uploadBox\").value != \"\") {\n // you have a file\n}\n"
},
{
"answer_id": 221524... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/698/"
] |
46,220 | <p>I'm writing my first iPhone app, so I haven't gotten around to figuring out much in the way of debugging.
Essentially my app displays an image and when touched plays a short sound.
When compiling and building the project in XCode, everything builds successfully, but when the app is run in the iPhone simulator, it cr... | [
{
"answer_id": 46357,
"author": "amrox",
"author_id": 4468,
"author_profile": "https://Stackoverflow.com/users/4468",
"pm_score": 6,
"selected": true,
"text": "[@\"hello world\" length] // Objective-C 1.0\n@\"hello world\".length // Objective-C 2.0\n [@\"hello world\" valueForKey... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2293/"
] |
46,231 | <p>I'm working on an application where users have to make a call and type a verification number with the keypad of their phone.</p>
<p>I would like to be able to detect if the number they type is correct or not. The phone system does not have access to a list of valid numbers, but instead, it will validate the number ... | [
{
"answer_id": 46486,
"author": "Costo",
"author_id": 1130,
"author_profile": "https://Stackoverflow.com/users/1130",
"pm_score": 6,
"selected": true,
"text": "123456 mod(98 - mod(number * 100, 97), 97) mod(code, 97) == 1 mod(12345676, 97) = 1 mod(21345676, 97) = 50 mod(12345678, 97) = 1... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1130/"
] |
46,252 | <p>I would like to have a VM to look at how applications appear and to develop OS-specific applications, however, I want to keep all my code on my Windows machine so if I decide to nuke a VM or anything like that, it's all still there.</p>
<p>If it matters, I'm using VirtualBox.</p>
| [
{
"answer_id": 17328498,
"author": "jlettvin",
"author_id": 1363592,
"author_profile": "https://Stackoverflow.com/users/1363592",
"pm_score": 0,
"selected": false,
"text": "mkdir $HOME/Desktop/Common\nsudo echo “$USER ALL=(ALL) NOPASSWD:ALL” >> /etc/sudoers\nfind $HOME/Desktop/Common -ma... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
46,277 | <p>We have an encryption service that we've exposed over net. tcp. Most of the time, the service is used to encrypt/decrypt strings. However, every now and then, we the need to encrypt large documents (pdf, JPG, bmp, etc.).</p>
<p>What are the best endpoint settings for a scenario like this? Should I accept/return a s... | [
{
"answer_id": 47808,
"author": "Jeremy McGee",
"author_id": 3546,
"author_profile": "https://Stackoverflow.com/users/3546",
"pm_score": 3,
"selected": true,
"text": "net.tcp"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/781/"
] |
46,281 | <p>I have been hearing a lot of good things about DVCS systems, in particular about bazaar. Apart from the concept of distributed repository, I see two main advantages being touted: the merge is better automated, and the rename is handled right.</p>
<p>Could someone please point me at some text explaining how exactly ... | [
{
"answer_id": 46544,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 2,
"selected": false,
"text": "bzr rename <old> <new> --after bzr rename <old> <new> bzr add"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
46,282 | <p>I am using a class library which represents some of its configuration in .xml. The configuration is read in using the <code>XmlSerializer</code>. Fortunately, the classes which represent the .xml use the <code>XmlAnyElement</code> attribute at which allows me to extend the configuration data for my own purposes with... | [
{
"answer_id": 46378,
"author": "Ed Schwehm",
"author_id": 1206,
"author_profile": "https://Stackoverflow.com/users/1206",
"pm_score": 5,
"selected": true,
"text": "XmlSerializer xs = new XmlSerializer(typeof(MyConfig));\nStringWriter xout = new StringWriter();\nxs.Serialize(xout, myConf... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4599/"
] |
46,283 | <p>We have a service that has some settings that are supported only over net.tcp. What's the best way to add another endpoint? Do I need to create an entire new host?</p>
| [
{
"answer_id": 50740,
"author": "Dylan",
"author_id": 4580,
"author_profile": "https://Stackoverflow.com/users/4580",
"pm_score": 3,
"selected": false,
"text": "<endpoint address=\"https://yourdomain.com/WCF/YourService.svc\"\n binding=\"basicHttpBinding\"\n bindingConfiguratio... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/781/"
] |
46,305 | <p>I understand how I can change the <code>dns</code> settings for my domains by editing my bind configs, when I run my own name-servers. I know that I can define the name-servers with my registrar via their online control panels. But I have no idea how that part works...</p>
<p>How does my registrar store the data ab... | [
{
"answer_id": 46321,
"author": "mercutio",
"author_id": 1951,
"author_profile": "https://Stackoverflow.com/users/1951",
"pm_score": 2,
"selected": false,
"text": "# dig +trace ns stackoverflow.com \n\n; <<>> DiG 9.2.4 <<>> +trace ns stackoverflow.com\n;; global options: printcmd\n. ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1951/"
] |
46,324 | <p>I'm going to guess that the answer is "no" based on the below error message (and <a href="http://archives.postgresql.org/pgsql-sql/2004-08/msg00076.php" rel="noreferrer">this Google result</a>), but is there anyway to perform a cross-database query using PostgreSQL?</p>
<pre><code>databaseA=# select * from database... | [
{
"answer_id": 46448,
"author": "Neall",
"author_id": 619,
"author_profile": "https://Stackoverflow.com/users/619",
"pm_score": 8,
"selected": true,
"text": "postgres_fdw postgres_fdw postgres_fdw file_fdw dblink"
},
{
"answer_id": 27054140,
"author": "Manwal",
"author_id... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4249/"
] |
46,338 | <p>I am writing a webapp using CodeIgniter that requires authentication. I created a model which handles all my authentication. However, I can't find a way to access this authentication model from inside another model. Is there a way to access a model from inside another mode, or a better way to handle authentication i... | [
{
"answer_id": 46356,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 5,
"selected": true,
"text": "<?php\n// in your controller\n$model1 = new Model1();\n$model2 = new Model2();\n$model2->setWhatever($model1);\n?>\n"
},
{
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/889/"
] |
46,346 | <p>Any ideas on how to implement tab completion for a .NET (C#) Console Application?
And I mean within an application that is run and then loops for user input (like if you run ftp.exe without any arguments), like this: </p>
<pre><code> string line = string.Empty;
while (line != "exit")
{
... | [
{
"answer_id": 47594,
"author": "Lars Mæhlum",
"author_id": 960,
"author_profile": "https://Stackoverflow.com/users/960",
"pm_score": 3,
"selected": false,
"text": "someCommand.Name.BeginsWith(currentinput)"
},
{
"answer_id": 57116500,
"author": "Olivier Duhart",
"author_... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/194/"
] |
46,347 | <p>Is there a clean way to redirect all attempts to going to an HTTP:// version of a site to its HTTPS:// equivalent?</p>
| [
{
"answer_id": 7605311,
"author": "toxaq",
"author_id": 97429,
"author_profile": "https://Stackoverflow.com/users/97429",
"pm_score": 8,
"selected": true,
"text": "<configuration>\n <system.webServer>\n <rewrite>\n <rules>\n <rule name=\"HTTP to HTTPS redirect\" stopProce... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2312/"
] |
46,350 | <p>After lots of attempts and search I have never found a satisfactory way to do it with CSS2.</p>
<p>A simple way to accomplish it is to wrap it into a handy <code><table></code> as shown in the sample below. Do you know how to do it avoiding table layouts and also avoiding quirky tricks?</p>
<p><div class="snip... | [
{
"answer_id": 46391,
"author": "Joe Liversedge",
"author_id": 4552,
"author_profile": "https://Stackoverflow.com/users/4552",
"pm_score": 4,
"selected": true,
"text": "<center> body {\n text-align: center;\n}\n\n.my-centered-content {\n margin: 0 auto; /* Centering */\n display: inli... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4264/"
] |
46,354 | <p>I'm trying to perform a SQL query through a linked SSAS server. The initial query works fine:</p>
<pre><code>SELECT "Ugly OLAP name" as "Value"
FROM OpenQuery( OLAP, 'OLAP Query')
</code></pre>
<p>But if I try to add:</p>
<pre><code>WHERE "Value" > 0
</code></pre>
<p>I get an error</p>
<blockquote>
<p>In... | [
{
"answer_id": 46375,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 0,
"selected": false,
"text": "SELECT whatever AS value FROM table HAVING value > 1;\n"
},
{
"answer_id": 46382,
"author": "Chris Miller",
"aut... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1807/"
] |
46,365 | <p>We have a SQL Server 2005 SP2 machine running a large number of databases, all of which contain full-text catalogs. Whenever we try to drop one of these databases or rebuild a full-text index, the drop or rebuild process hangs indefinitely with a MSSEARCH wait type. The process can’t be killed, and a server reboot i... | [
{
"answer_id": 168518,
"author": "Josef",
"author_id": 5581,
"author_profile": "https://Stackoverflow.com/users/5581",
"pm_score": 2,
"selected": false,
"text": "declare @t table (name nvarchar(128))\ninsert into @t select name from sys.databases --where is_fulltext_enabled \n\nwhile exi... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4803/"
] |
46,377 | <p>What is the syntax for placing constraints on multiple types? The basic example:</p>
<pre><code>class Animal<SpeciesType> where SpeciesType : Species
</code></pre>
<p>I would like to place constraints on both types in the following definition such that <code>SpeciesType</code> must inherit from <code>Specie... | [
{
"answer_id": 46384,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 7,
"selected": true,
"text": "public class Animal<SpeciesType,OrderType>\n where SpeciesType : Species\n where OrderType : Order\n{\n}\n"
},
{
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
46,380 | <p>If you've used Oracle, you've probably gotten the helpful message "ORA-00942: Table or view does not exist". Is there a legitimate technical reason the message doesn't include the name of the missing object? </p>
<p>Arguments about this being due to security sound like they were crafted by the TSA. If I'm an attack... | [
{
"answer_id": 47143,
"author": "Matthew Watson",
"author_id": 3839,
"author_profile": "https://Stackoverflow.com/users/3839",
"pm_score": 2,
"selected": false,
"text": "SQL> select * from xx,abc;\nselect * from xx,abc\n *\nERROR at line 1:\nORA-00942: table or view does ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3474/"
] |
46,385 | <p>What's the best way to delete all rows from a table in sql but to keep n number of rows on the top? </p>
| [
{
"answer_id": 46386,
"author": "Cory Foy",
"author_id": 4083,
"author_profile": "https://Stackoverflow.com/users/4083",
"pm_score": 7,
"selected": true,
"text": "DELETE FROM Table WHERE ID NOT IN (SELECT TOP 10 ID FROM Table)\n"
},
{
"answer_id": 46393,
"author": "Riri",
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/298/"
] |
46,387 | <p>I am using a perl script to POST to Google Appengine application. I post a text file containing some XML using the -F option.</p>
<p><a href="http://www.cpan.org/authors/id/E/EL/ELIJAH/bget-1.1" rel="nofollow noreferrer">http://www.cpan.org/authors/id/E/EL/ELIJAH/bget-1.1</a></p>
<p>There is a version 1.2, already... | [
{
"answer_id": 46551,
"author": "shelfoo",
"author_id": 3444,
"author_profile": "https://Stackoverflow.com/users/3444",
"pm_score": 1,
"selected": false,
"text": "my $size;\ndo {use bytes; $size = length($file_data)}\n"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4527/"
] |
46,425 | <p>I have a function that gets x(a value) and xs(a list) and removes all values that are bigger than x from the list. Well it doesn't work, can you tell me why?</p>
<pre><code>(defun biggerElems(x xs)
(let ((xst))
(dolist (elem xs)
(if (> x elem)
(setf xst (remove elem xs))))
xst))
</code... | [
{
"answer_id": 46437,
"author": "Ben Collins",
"author_id": 3279,
"author_profile": "https://Stackoverflow.com/users/3279",
"pm_score": 4,
"selected": true,
"text": "(setf xst (remove elem xs))))\n setf xst nil (defun biggerElems (x xs)\n (remove-if (lambda (item) (> item x)) xs))\n"
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2450/"
] |
46,439 | <p>I have ms sql databases that grow very large. Upon examination I find that there is a bunch of unused space in certain tables. I don't do many physical deletes, so I don't think that its just deleted records. DBCC SHRINK doesn't make the file smaller. But, if I dump the table to a new, empty database, the size goes ... | [
{
"answer_id": 116017,
"author": "Rob",
"author_id": 6201,
"author_profile": "https://Stackoverflow.com/users/6201",
"pm_score": 0,
"selected": false,
"text": "USE [DBNAME]\nGO\n\nDBCC SHRINKFILE (N'FILENAME' , 0, TRUNCATEONLY)\n\nGO\n"
},
{
"answer_id": 152738,
"author": "Jo... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/300/"
] |
46,454 | <p>I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display the messages between the user and the recipient. How do I get the control to automatically scroll to the bottom every time I update the DocumentText of the control?</p>
| [
{
"answer_id": 46463,
"author": "Oded",
"author_id": 1583,
"author_profile": "https://Stackoverflow.com/users/1583",
"pm_score": 2,
"selected": false,
"text": "webCtrl.AutoScrollOffset = new Point(0, webCtrl.Height);\n"
},
{
"answer_id": 50264,
"author": "Ryan Lanciaux",
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1385358/"
] |
46,482 | <p>Is there an easy way to read an entire Access file (.mdb) into a DataSet in .NET (specifically C# or VB)?</p>
<p>Or at least to get a list of tables from an access file so that I can loop through it and add them one at a time into a DataSet?</p>
| [
{
"answer_id": 46526,
"author": "jerhinesmith",
"author_id": 1108,
"author_profile": "https://Stackoverflow.com/users/1108",
"pm_score": 4,
"selected": true,
"text": "Using cn = New OleDbConnection(connectionstring)\n cn.Open()\n Dim ds As DataSet = new DataSet()\n\n Dim Schema ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1108/"
] |
46,483 | <p>What are the differences between <code>htmlspecialchars()</code> and <code>htmlentities()</code>. When should I use one or the other?</p>
| [
{
"answer_id": 46491,
"author": "Thomas Owens",
"author_id": 572,
"author_profile": "https://Stackoverflow.com/users/572",
"pm_score": 10,
"selected": true,
"text": "htmlspecialchars() htmlentities() htmlentities() htmlspecialchars echo htmlentities('<Il était une fois un être>.');\n... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4137/"
] |
46,484 | <p>Is there a way to use <code>JQuery</code> to cloak or encrypt email addresses on an <code>HTML</code> page without changing the syntax in the <code>href</code>?</p>
| [
{
"answer_id": 46558,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 0,
"selected": false,
"text": "<a href=\"mailto:some_address^^some_domain$$com\" style='display:none'>Email me</a>\n ^^ @ $$ ."
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4241/"
] |
46,489 | <p>In my web application I include all of my JavaScripts as js files that are embedded resources in the assembly, and add them to the page using <code>ClientScriptManager.GetWebResourceUrl()</code>. However, in some of my js files, I have references to other static assets like image urls. I would like to make those ass... | [
{
"answer_id": 47242,
"author": "Jon",
"author_id": 4764,
"author_profile": "https://Stackoverflow.com/users/4764",
"pm_score": 3,
"selected": true,
"text": "StringBuilder script = new StringBuilder();\nscript.Append(\"var imgResources = {};\");\nscript.AppendFormat(\"imgResources['{0}']... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/67/"
] |
46,495 | <p>Why can't you do this and is there are work around?</p>
<p>You get this error.</p>
<p>Msg 2714, Level 16, State 1, Line 13
There is already an object named '#temptable' in the database.</p>
<pre><code>declare @x int
set @x = 1
if (@x = 0)
begin
select 1 as Value into #temptable
end
else
begin
select 2 as... | [
{
"answer_id": 46565,
"author": "Kevin Fairchild",
"author_id": 3743,
"author_profile": "https://Stackoverflow.com/users/3743",
"pm_score": 1,
"selected": false,
"text": "IF OBJECT_ID('tempdb..#temptable', 'U') IS NOT NULL \nBEGIN\nDROP TABLE #temptable\nEND\n\nCREATE TABLE #temptable (V... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2184/"
] |
46,496 | <p>Today I had a coworker suggest I refactor my code to use a label statement to control flow through 2 nested for loops I had created. I've never used them before because personally I think they decrease the readability of a program. I am willing to change my mind about using them if the argument is solid enough howev... | [
{
"answer_id": 130390,
"author": "Pyrolistical",
"author_id": 21838,
"author_profile": "https://Stackoverflow.com/users/21838",
"pm_score": 3,
"selected": false,
"text": "sentence: for(Sentence sentence: paragraph) {\n for(String word: sentence) {\n // do something\n if(isDone()) ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2628/"
] |
46,512 | <p>In the build log I'd like to the start and end time of each project's compilation. Is there any way to get VS to do this?</p>
| [
{
"answer_id": 3312614,
"author": "Glennular",
"author_id": 14753,
"author_profile": "https://Stackoverflow.com/users/14753",
"pm_score": 3,
"selected": false,
"text": "Time TIME /T\n"
},
{
"answer_id": 22603785,
"author": "Denis Palnitsky",
"author_id": 238123,
"auth... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790/"
] |
46,529 | <p>I have a WebChartControl on my web page. When the chart was generated, an image is being produced and it was shown on the page. </p>
<p>Is there a way to get and save this chart as an image output on runtime? </p>
| [
{
"answer_id": 283130,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": " Dim chart As ChartControl = ChartControl1.Clone()\n chart.Size = New Size(800, 600)\n chart.ExportToImage(\"file.png... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4215/"
] |
46,532 | <p>If I have an XElement that has child elements, and if I remove a child element from the parent, removing all references between the two, will the child XElement have the same namespaces as the parent?</p>
<p>In other words, if I have the following XML:</p>
<pre><code><parent xmlns:foo="abc">
<foo:chil... | [
{
"answer_id": 283130,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": " Dim chart As ChartControl = ChartControl1.Clone()\n chart.Size = New Size(800, 600)\n chart.ExportToImage(\"file.png... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
46,541 | <p>Name the design considerations in deciding between use of a <a href="http://en.wikipedia.org/wiki/Singleton_pattern" rel="noreferrer">singleton</a> versus a static class. In doing this, you're kind of forced to contrast the two, so whatever contrasts you can come up with are also useful in showing your thought proce... | [
{
"answer_id": 46542,
"author": "David J. Sokol",
"author_id": 1390,
"author_profile": "https://Stackoverflow.com/users/1390",
"pm_score": -1,
"selected": false,
"text": "RegistryEditor editor = RegistryEditor.GetInstance();\neditor.Hive = LocalMachine\n ReadSubkeyFromLocalMachine"
},
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
46,545 | <p>How do I do backups in MySQL? </p>
<p>I'm hoping there'll be something better than just running mysqldump every "x" hours.</p>
<p>Is there anything like SQL Server has, where you can take a full backup each day, and then incrementals every hour, so if your DB dies you can restore up to the latest backup?</p>
<p>... | [
{
"answer_id": 47353,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 2,
"selected": false,
"text": "mysqldump -u theuser -p mypassword thedatabase | gzip -9 - | gpg -e -r 12345 -r 23456 > 2008_01_02.tar.gz.gpg #!/usr/bin/env python... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3314/"
] |
46,571 | <p>I have been tasked with going through a number of ColdFusion sites that have recently been the subject of a rather nasty SQL Injection attack. Basically my work involves adding <code><cfqueryparam</code>> tags to all of the inline sql. For the most part I've got it down, but can anybody tell me how to use cfque... | [
{
"answer_id": 47197,
"author": "Adam Tuttle",
"author_id": 751,
"author_profile": "https://Stackoverflow.com/users/751",
"pm_score": 7,
"selected": true,
"text": "select a,b,c\nfrom Foo\nwhere name like <cfqueryparam cfsqltype=\"columnType\" value=\"%#variables.someName#%\" />\n"
},
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3271/"
] |
46,582 | <p>We have the requirement to take a form submission and save some data, then redirect the user to a page offsite, but in redirecting, we need to "submit" a form with POST, not GET.</p>
<p>I was hoping there was an easy way to accomplish this, but I'm starting to think there isn't. I think I must now create a simple ... | [
{
"answer_id": 46700,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 5,
"selected": false,
"text": "string url = \"3rd Party Url\";\n\nStringBuilder postData = new StringBuilder();\n\npostData.Append(\"first_name=\" + HttpUti... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/232/"
] |
46,585 | <p>From what I can gather, there are three categories:</p>
<ol>
<li>Never use <code>GET</code> and use <code>POST</code></li>
<li>Never use <code>POST</code> and use <code>GET</code></li>
<li>It doesn't matter which one you use.</li>
</ol>
<p>Am I correct in assuming those three cases? If so, what are some examples f... | [
{
"answer_id": 46614,
"author": "Brian Warshaw",
"author_id": 1344,
"author_profile": "https://Stackoverflow.com/users/1344",
"pm_score": 10,
"selected": true,
"text": "POST POST GET http://myblog.org/admin/posts/delete/357\n POST GET GET method POST GET"
},
{
"answer_id": 46617,... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
46,586 | <p>Everyone is aware of Dijkstra's <a href="http://portal.acm.org/citation.cfm?doid=362947" rel="noreferrer">Letters to the editor: go to statement considered harmful</a> (also <a href="http://www.cs.utexas.edu/%7EEWD/transcriptions/EWD02xx/EWD215.html" rel="noreferrer">here</a> .html transcript and <a href="http://www... | [
{
"answer_id": 46597,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 3,
"selected": false,
"text": "if while goto"
},
{
"answer_id": 46638,
"author": "Rob Walker",
"author_id": 3631,
"author_profile"... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/658/"
] |
46,621 | <p>I have a DotNetNuke site where my main logo is a PNG file using transparency. I tried GIF but the quality wasn't good enough.</p>
<p>Anyways it worked great on IE7 but I just saw my site in IE6 and noticed that the transparency isn't working with my logo.</p>
<p>Does anyone know of a quick way to fix this in a Do... | [
{
"answer_id": 46633,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<!--[if IE 6]>\nbackground-image:crappy.gif\n<![endif]-->\n"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4801/"
] |
46,636 | <p>What's the best way to copy a file from a network share to the local file system using a Windows batch file? Normally, I would use "net use *" but using this approach how can I get the drive letter?</p>
| [
{
"answer_id": 46640,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 5,
"selected": true,
"text": "copy \\\\myserver\\myshare\\myfolder\\myfile.txt c:\\myfiles\n"
},
{
"answer_id": 46646,
"author": "Joel Coehoorn"... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4778/"
] |
46,642 | <p>I'm looking for a good tool to profile a java webapp. I'd like to get performance information and memory usage if possible. </p>
<p>Any suggestions?</p>
| [
{
"answer_id": 46821,
"author": "Joe Liversedge",
"author_id": 4552,
"author_profile": "https://Stackoverflow.com/users/4552",
"pm_score": 1,
"selected": false,
"text": "jmap -histo <pid>"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1310/"
] |
46,644 | <p>just wondering if anyone knows of a truly restful Put/delete implementation asp.net mvc preview 5 preferably.</p>
| [
{
"answer_id": 47378,
"author": "berko",
"author_id": 4884,
"author_profile": "https://Stackoverflow.com/users/4884",
"pm_score": 0,
"selected": false,
"text": "[AcceptVerbs(\"delete\")]\npublic object DoDeleteAction()\n"
},
{
"answer_id": 256889,
"author": "Pure.Krome",
... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1220/"
] |
46,663 | <p>Is it possible to send an email from my Java application using a GMail account? I have configured my company mail server with Java app to send email, but that's not going to cut it when I distribute the application. Answers with any of using Hotmail, Yahoo or GMail are acceptable.</p>
| [
{
"answer_id": 46681,
"author": "jodonnell",
"author_id": 4223,
"author_profile": "https://Stackoverflow.com/users/4223",
"pm_score": 7,
"selected": false,
"text": "String host = \"smtp.gmail.com\";\nString from = \"user name\";\nProperties props = System.getProperties();\nprops.put(\"ma... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
46,664 | <p>Where can I find the redistributable version of the IBM DB2 Type 4 driver?
I suppose this is the driver I would use to connect from a Java app (on windows) to DB2 on the mainframe?</p>
| [
{
"answer_id": 419401,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 3,
"selected": false,
"text": " db2jcc_license_cisuz.jar\n cisuz cu z"
},
{
"answer_id": 11693489,
"author": "harmender",
"author_id": ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
46,677 | <p>I need to find/create an application that will create employee web usage reports from HTTP proxy logs. Does anyone know of a good product that will do this?</p>
<p><em>@Joe Liversedge - Good point. I don't have to worry about this, however, as I am the only person in my company with the know-how to pull off an SSH... | [
{
"answer_id": 46976,
"author": "Joe Liversedge",
"author_id": 4552,
"author_profile": "https://Stackoverflow.com/users/4552",
"pm_score": 3,
"selected": true,
"text": "awk sort uniq -c"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/46677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/317/"
] |
46,704 | <p>For the following HTML:</p>
<pre><code><form name="myForm">
<label>One<input name="area" type="radio" value="S" /></label>
<label>Two<input name="area" type="radio" value="R" /></label>
&l... | [
{
"answer_id": 46715,
"author": "Adam Cuzzort",
"author_id": 4760,
"author_profile": "https://Stackoverflow.com/users/4760",
"pm_score": 1,
"selected": false,
"text": "$(function() {\n $('input[@type=\"radio\"]').click(radioClicks);\n});\n"
},
{
"answer_id": 46717,
"author... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
46,709 | <p>When designing a database to use MVCC (Multi-Version Concurrency Control), you create tables with either a boolean field like "IsLatest" or an integer "VersionId", and you never do any updates, you only insert new records when things change. </p>
<p>MVCC gives you automatic auditing for applications that require a... | [
{
"answer_id": 50103,
"author": "Zack Peterson",
"author_id": 83,
"author_profile": "https://Stackoverflow.com/users/83",
"pm_score": 2,
"selected": false,
"text": "SELECT\n dbo.tblBook.BookId,\n dbo.tblBook.RevisionId,\n dbo.tblBook.Title,\n dbo.tblBook.AuthorId,\n dbo.tb... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1219/"
] |
46,714 | <p>On Fedora Core 7, I'm writing some code that relies on <code>ARG_MAX</code>. However, even if I <code>#include <limits.h></code>, the constant is still not defined. My investigations show that it's present in <code><sys/linux/limits.h></code>, but this is supposed to be portable across Win32/Mac/Linux,... | [
{
"answer_id": 46822,
"author": "Thomas Kammeyer",
"author_id": 4410,
"author_profile": "https://Stackoverflow.com/users/4410",
"pm_score": 4,
"selected": true,
"text": "sysconf"
},
{
"answer_id": 69613612,
"author": "TheDudeAbides",
"author_id": 785213,
"author_profi... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3830/"
] |
46,718 | <p>I'm just curious how most people make their ASP.NET pages printer-friendly? Do you create a separate printer-friendly version of the ASPX page, use CSS or something else? How do you handle situations like page breaks and wide tables?</p>
<p>Is there one elegant solution that works for the majority of the cases? </p... | [
{
"answer_id": 46724,
"author": "Ryan Farley",
"author_id": 1627,
"author_profile": "https://Stackoverflow.com/users/1627",
"pm_score": 5,
"selected": true,
"text": "media=\"print\" <link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"print.css\" />\n"
},
{
"answer_i... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3329/"
] |
46,719 | <p>I have a regex call that I need help with.</p>
<p>I haven't posted my regex, because it is not relevant here.
What I want to be able to do is, during the Replace, I also want to modify the ${test} portion by doing a Html.Encode on the entire text that is effecting the regex.</p>
<p>Basically, wrap the entire text ... | [
{
"answer_id": 46722,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 2,
"selected": false,
"text": "foreach(Match in Regex.Matches(...))\n{\n //do your stuff here\n}\n"
},
{
"answer_id": 46785,
"author": ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368/"
] |
46,777 | <p>I want to run a web application on php and mysql, using the CakePHP framework. And to keep the threshold of using the site at a very low place, I want to not use the standard login with username/password. (And I don't want to hassle my users with something like OpenID either. Goes to user type.)</p>
<p>So I'm think... | [
{
"answer_id": 46794,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 4,
"selected": true,
"text": "require ('pop3.php');\n\n$pop3 = new pop3_class();\n$pop3->hostname = MAILHOST;\n$pop3->Open();\n$pop3->Login('myemailaddress@... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4013/"
] |
46,788 | <p>Is there a way to bind a MemoryStream to asp:image control?</p>
| [
{
"answer_id": 46801,
"author": "Dale Ragan",
"author_id": 1117,
"author_profile": "https://Stackoverflow.com/users/1117",
"pm_score": 5,
"selected": false,
"text": "<%@ WebHandler Language=\"C#\" Class=\"ImageHandler\" %>\n\nusing System.Drawing;\nusing System.Drawing.Imaging;\nusing Sy... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4215/"
] |
46,805 | <p>I want to use an image or icon as a custom cursor in WPF app. How can I do that?</p>
| [
{
"answer_id": 46817,
"author": "palehorse",
"author_id": 312,
"author_profile": "https://Stackoverflow.com/users/312",
"pm_score": 2,
"selected": false,
"text": "<Window Cursor=\"\"C:\\WINDOWS\\Cursors\\dinosaur.ani\"\" />\n"
},
{
"answer_id": 265989,
"author": "PeterAllenWe... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1133/"
] |
46,827 | <p>Visual Studio 2005 doesn't provide an interface for creating relationships between tables in a SQL Server CE database (I'm using version 3.0) and you can't open a Compact Edition DB using Management Studio as far as I know. Any ideas?</p>
| [
{
"answer_id": 46832,
"author": "Espo",
"author_id": 2257,
"author_profile": "https://Stackoverflow.com/users/2257",
"pm_score": 7,
"selected": true,
"text": "ALTER TABLE Orders\nADD CONSTRAINT FK_Customer_Order\nFOREIGN KEY (CustomerId) REFERENCES Customers(CustomerId)\n"
},
{
"... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1943/"
] |
46,841 | <p>Occasionally, on a ASP (classic) site users will get this error:</p>
<pre><code>[DBNETLIB][ConnectionRead (recv()).]General network error.
</code></pre>
<p>Seems to be random and not connected to any particular page. The SQL server is separated from the web server and my guess is that every once and a while the "... | [
{
"answer_id": 39923881,
"author": "Shrikrishna Vhale",
"author_id": 6938776,
"author_profile": "https://Stackoverflow.com/users/6938776",
"pm_score": 0,
"selected": false,
"text": "netsh advfirewall set allprofiles state off\n"
},
{
"answer_id": 49283898,
"author": "AjV Jsy"... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4835/"
] |
46,842 | <p>What is the best way to determine duplicate records in a SQL Server table?</p>
<p>For instance, I want to find the last duplicate email received in a table (table has primary key, receiveddate and email fields).</p>
<p>Sample data:</p>
<pre><code>1 01/01/2008 stuff@stuff.com
2 02/01/2008 stuff@stuff.com
3 01/1... | [
{
"answer_id": 46845,
"author": "SQLMenace",
"author_id": 740,
"author_profile": "https://Stackoverflow.com/users/740",
"pm_score": 3,
"selected": false,
"text": "select email ,max(receiveddate) as MaxDate\nfrom YourTable\ngroup by email \nhaving count(email) > 1\n"
},
{
"answer_... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
46,860 | <p>I'm working on a C# winforms application (VS.NET 2008, .NET 3.5 sp 1). I have a search field on a form, and rather than have a label next to the search field I'd like to show some grey text in the background of the search field itself ('Search terms', for example). When the user starts entering text in the search fi... | [
{
"answer_id": 46866,
"author": "Scott Dorman",
"author_id": 1559,
"author_profile": "https://Stackoverflow.com/users/1559",
"pm_score": 4,
"selected": true,
"text": "SendMessage EM_SETCUEBANNER"
},
{
"answer_id": 46878,
"author": "Herms",
"author_id": 1409,
"author_p... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/826/"
] |
46,863 | <p>How do I concatenate together two strings, of unknown length, in COBOL? So for example:</p>
<pre><code>WORKING-STORAGE.
FIRST-NAME PIC X(15) VALUE SPACES.
LAST-NAME PIC X(15) VALUE SPACES.
FULL-NAME PIC X(31) VALUE SPACES.
</code></pre>
<p>If <code>FIRST-NAME = 'JOHN '</code> and <... | [
{
"answer_id": 46899,
"author": "Eric H",
"author_id": 4650,
"author_profile": "https://Stackoverflow.com/users/4650",
"pm_score": 2,
"selected": false,
"text": "WORK-FIELD PIC X(15) VALUE SPACES.\nTRAILING-SPACES PIC 9(3) VALUE ZERO.\nFIELD-LENGTH PIC 9(3) VALUE ZERO.\n"... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4650/"
] |
46,898 | <p>If I have an object implementing the <code>Map</code> interface in Java and I wish to iterate over every pair contained within it, what is the most efficient way of going through the map?</p>
<p>Will the ordering of elements depend on the specific map implementation that I have for the interface?</p>
| [
{
"answer_id": 46905,
"author": "pkaeding",
"author_id": 4257,
"author_profile": "https://Stackoverflow.com/users/4257",
"pm_score": 8,
"selected": false,
"text": "Iterator entries = myMap.entrySet().iterator();\nwhile (entries.hasNext()) {\n Entry thisEntry = (Entry) entries.next();\n ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4807/"
] |
46,909 | <p>I have a situation where I might have multiple instances of a program running at once, and it's important that just one specific function not be executing in more than one of these instances at once.</p>
<p>Is this the proper way to use a mutex to prevent this from happening?</p>
<pre><code>lock (this.GetType()) {... | [
{
"answer_id": 46928,
"author": "Jonathan Webb",
"author_id": 1518,
"author_profile": "https://Stackoverflow.com/users/1518",
"pm_score": 3,
"selected": false,
"text": "private Object _lock = new Object();\n\n// usage\nlock( _lock )\n{\n // thread-safe code here..\n}\n"
},
{
"... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
46,915 | <p>As a follow up to this question: <a href="https://stackoverflow.com/questions/46873/developing-a-online-exam-application-how-do-i-prevent-cheaters">Developing a online exam application, how do I prevent cheaters?</a></p>
<p>Can I detect when Flex application looses its focus? that is if a user has clicked onto anot... | [
{
"answer_id": 47161,
"author": "Raleigh Buckner",
"author_id": 1153,
"author_profile": "https://Stackoverflow.com/users/1153",
"pm_score": 4,
"selected": true,
"text": "systemManager.stage.addEventListener(Event.DEACTIVATE,deactivate);\n"
},
{
"answer_id": 158463,
"author": ... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
46,918 | <p>What is the proper way to minimize a WinForms app to the system tray? </p>
<p>Note: minimize to <strong><em>system tray</em></strong>; on the right side of the taskbar by the clock. I'm not asking about minimizing to taskbar, which is what happens when you hit the "minus" button on the window.</p>
<p>I've seen hac... | [
{
"answer_id": 46927,
"author": "Ryan Farley",
"author_id": 1627,
"author_profile": "https://Stackoverflow.com/users/1627",
"pm_score": 3,
"selected": false,
"text": "this.WindowState = FormWindowState.Minimized \n"
},
{
"answer_id": 46970,
"author": "Gulzar Nazim",
"aut... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/536/"
] |
46,924 | <p>Suppose I want to implement a reasonably efficient 'keyword recognition algorithm', that is first given a list of keyword, and must then answer if another given word was in the list. </p>
<p>In an imperative language, I would store the keywords in a tree (one node per character). Then, when receiving a word to test... | [
{
"answer_id": 47002,
"author": "Thomas Kammeyer",
"author_id": 4410,
"author_profile": "https://Stackoverflow.com/users/4410",
"pm_score": 3,
"selected": true,
"text": "(defun buildtree (wordlist) ...code to build tree recursively returns the tree...)\n(define lookup (tree word) ...code... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4177/"
] |
46,933 | <p>I'm having some inheritance issues as I've got a group of inter-related abstract classes that need to all be overridden together to create a client implementation. Ideally I would like to do something like the following:</p>
<pre><code>abstract class Animal
{
public Leg GetLeg() {...}
}
abstract class Leg { }
... | [
{
"answer_id": 46935,
"author": "shsteimer",
"author_id": 292,
"author_profile": "https://Stackoverflow.com/users/292",
"pm_score": 2,
"selected": false,
"text": "public class ClientObj{\n public void doStuff(){\n Animal a=getAnimal();\n if(a is Dog){\n DogLeg dl = (DogLeg... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
46,981 | <p>I have an Image control with it's source bound to a property on an object(string url to an image). After making a service call, i update the data object with a new URL. The exception is thrown after it leaves my code, after invoking the PropertyChanged event.</p>
<p>The data structure and the service logic are al... | [
{
"answer_id": 404706,
"author": "Rob Fonseca-Ensor",
"author_id": 21433,
"author_profile": "https://Stackoverflow.com/users/21433",
"pm_score": 0,
"selected": false,
"text": "public static Dispatcher RootVisualDispatcher { get; set; }\n\nprivate void Application_Startup(object sender, S... | 2008/09/05 | [
"https://Stackoverflow.com/questions/46981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580/"
] |
47,003 | <p>I'm looking at working on a project which uses C#.NET (sitting on a windows box) as the primary language and PostgreSQL as the backend database (backend is sitting on a linux box). I've heard that ODBC.NET allows for easy integration of these two components. </p>
<p>Has anyone had experience actually setting C# a... | [
{
"answer_id": 40882625,
"author": "JRA",
"author_id": 6711884,
"author_profile": "https://Stackoverflow.com/users/6711884",
"pm_score": 1,
"selected": false,
"text": "public void Demo()\n {\n NpgsqlConnection connection = new NpgsqlConnection();\n connection... | 2008/09/05 | [
"https://Stackoverflow.com/questions/47003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145/"
] |
47,005 | <p>Does anyone have any tips or gotcha moments to look out for when trying to migrate MySQL tables from the the default case-insenstive swedish or ascii charsets to utf-8? Some of the projects that I'm involved in are striving for better internationalization and the database is going to be a significant part of this ch... | [
{
"answer_id": 47054,
"author": "Harry",
"author_id": 4704,
"author_profile": "https://Stackoverflow.com/users/4704",
"pm_score": 3,
"selected": true,
"text": "CHAR VARCHAR SET NAMES utf8"
},
{
"answer_id": 47059,
"author": "John Millikin",
"author_id": 3560,
"author_... | 2008/09/05 | [
"https://Stackoverflow.com/questions/47005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4563/"
] |
47,007 | <p>A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system.</p>
| [
{
"answer_id": 47012,
"author": "Greg Whitfield",
"author_id": 2102,
"author_profile": "https://Stackoverflow.com/users/2102",
"pm_score": 5,
"selected": false,
"text": "p4 changes -m1 @<clientname>\n Change 12345 on 2008/08/21 by joebloggs@mainline-client '....top line of description...... | 2008/09/05 | [
"https://Stackoverflow.com/questions/47007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2102/"
] |
47,009 | <p>I originally asked <a href="https://stackoverflow.com/questions/46933/why-doesnt-inheritance-work-the-way-i-think-it-should-work">this question</a>, but in finding an answer, discovered that my original problem was a lack of support in C# for covariance on inherited methods' return types. After discovering that, I b... | [
{
"answer_id": 47053,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 0,
"selected": false,
"text": "get() set() Leg get_leg() set_leg(DogLeg) get_leg() set_leg()"
}
] | 2008/09/05 | [
"https://Stackoverflow.com/questions/47009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
47,022 | <p>I've somehow managed to get an SVN repository into a bad state. I've moved a directory and now I can't commit it in its new location.</p>
<p>As far as <code>svn status</code> is concerned, the directory is unknown (the name of the directory is <code>type</code>).</p>
<pre>
$ svn status
? type
</pre>
<p>When ... | [
{
"answer_id": 47098,
"author": "Rob Oxspring",
"author_id": 1867,
"author_profile": "https://Stackoverflow.com/users/1867",
"pm_score": 5,
"selected": true,
"text": "type IntegerType.java IntegerType.java .svn"
},
{
"answer_id": 1891622,
"author": "déo",
"author_id": 102... | 2008/09/05 | [
"https://Stackoverflow.com/questions/47022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1412/"
] |
47,045 | <p>Printf got added to Java with the 1.5 release but I can't seem to find how to send the output to a string rather than a file (which is what sprintf does in C). Does anyone know how to do this? </p>
| [
{
"answer_id": 47049,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 10,
"selected": true,
"text": "// Store the formatted string in 'result'\nString result = String.format(\"%4d\", i * j);\n\n// Write the result to sta... | 2008/09/05 | [
"https://Stackoverflow.com/questions/47045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4498/"
] |
47,052 | <p>I'm looking to convert a SQL like statement on the fly to the equivalent regex i.e. </p>
<pre><code>LIKE '%this%'
LIKE 'Sm_th'
LIKE '[C-P]arsen'
</code></pre>
<p>What's the best approach to doing this?</p>
<p>P.S. I'm looking to do this on the .Net Framework (C#).</p>
| [
{
"answer_id": 47088,
"author": "Martin",
"author_id": 2581,
"author_profile": "https://Stackoverflow.com/users/2581",
"pm_score": 2,
"selected": false,
"text": "/^(.*this.*|Sm.th|[C-P]arsen)$/\n % becomes .*\n_ becomes .\n"
},
{
"answer_id": 13180223,
"author": "Nathan Baulc... | 2008/09/05 | [
"https://Stackoverflow.com/questions/47052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4843/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.