qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
54,579 | <p>Does anyone know of a good example of how to expose a WCF service programatically without the use of a configuration file? I know the service object model is much richer now with WCF, so I know it's possible. I just have not seen an example of how to do so. Conversely, I would like to see how consuming without a con... | [
{
"answer_id": 292810,
"author": "devios1",
"author_id": 238948,
"author_profile": "https://Stackoverflow.com/users/238948",
"pm_score": 8,
"selected": true,
"text": "internal static MyServiceSoapClient CreateWebServiceInstance() {\n BasicHttpBinding binding = new BasicHttpBinding();\... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5469/"
] |
54,585 | <p>In what scenarios is it better to use a <code>struct</code> vs a <code>class</code> in C++?</p>
| [
{
"answer_id": 54596,
"author": "Commodore Jaeger",
"author_id": 4659,
"author_profile": "https://Stackoverflow.com/users/4659",
"pm_score": 11,
"selected": true,
"text": "class struct struct public class private public protected private struct class private protected"
},
{
"answ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5436/"
] |
54,586 | <p>I have a windows laptop (thinkpad) and somewhat recently rediscovered emacs and the benefit that all those wacky shortcuts can be when the arrow keys are located somewhere near you right armpit.</p>
<p>I was discouraged after php-mode, css-mode, etc, under mmm-mode was inconsistent, buggy, and refused to properly i... | [
{
"answer_id": 64703,
"author": "insipid",
"author_id": 8649,
"author_profile": "https://Stackoverflow.com/users/8649",
"pm_score": 2,
"selected": false,
"text": "mumamo-mode nxhtml-mode mumamo nxhtml mumamo-mode nxhtml"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2570347/"
] |
54,612 | <p>Is there a way to have Linux read ahead when cloning a disk? I use the program named "dd" to clone disks. The last time I did this it seemed as though the OS was reading then writing but never at the same time. Ideally, the destination disk would be constantly writing without waiting that's of course if the sourc... | [
{
"answer_id": 54631,
"author": "Thomas Kammeyer",
"author_id": 4410,
"author_profile": "https://Stackoverflow.com/users/4410",
"pm_score": 1,
"selected": false,
"text": "dd if=indevfile | dd of=outdevfile\n"
},
{
"answer_id": 54642,
"author": "Commodore Jaeger",
"author_... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4778/"
] |
54,626 | <p>This code is from <em>Prototype.js</em>. I've looked at probably 20 different tutorials, and I can't figure out why this is not working. The response I get is null.</p>
<pre><code>new Ajax.Request(/path/to / xml / file.xml, {
method: "get",
contentType: "application/xml",
onSuccess: function(transport) {
... | [
{
"answer_id": 12488558,
"author": "riverX",
"author_id": 1682030,
"author_profile": "https://Stackoverflow.com/users/1682030",
"pm_score": 1,
"selected": false,
"text": "application/xml xml xsl gpx\n AddType application/xml xml xsl gpx\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
54,658 | <p>The <a href="http://msdn.microsoft.com/en-us/library/kx145dw2.aspx" rel="noreferrer">ClientScriptManager.RegisterClientScriptInclude</a> method allows you to register a JavaScript reference with the Page object (checking for duplicates).</p>
<p>Is there an equivalent of this method for CSS references?</p>
<p>Simil... | [
{
"answer_id": 112189,
"author": "CMPalmer",
"author_id": 14894,
"author_profile": "https://Stackoverflow.com/users/14894",
"pm_score": 3,
"selected": false,
"text": "HtmlLink link = new HtmlLink();\nlink.Href = \"Cases/EditStyles.css\";\nlink.Attributes.Add(\"type\", \"text/css\");\nlin... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/247/"
] |
54,669 | <p>The job at hand:</p>
<p>I want to make sure that my website's users view a page before they start a download. If they have not looked at the page but try to hotlink to the files directly they should go to the webpage before the download is allowed.</p>
<p>Any suggestions that are better than my idea to send out a ... | [
{
"answer_id": 54801,
"author": "ceejayoz",
"author_id": 1902010,
"author_profile": "https://Stackoverflow.com/users/1902010",
"pm_score": 2,
"selected": false,
"text": "RewriteEngine on\nRewriteCond %{HTTP_REFERER} !^http://www.example.com/page.html$\nRewriteRule file.exe http://www.exa... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/999/"
] |
54,674 | <p>i'm wondering if there is any nice and neat tool to replace the GNU Autotools or Make to build a very large C++ project, which are such a complicated thing to use. </p>
<p>It is simple to generate all the files that de Autotools require if the project is small, but if the source code is divided in many directories,... | [
{
"answer_id": 55525,
"author": "wilhelmtell",
"author_id": 456,
"author_profile": "https://Stackoverflow.com/users/456",
"pm_score": 4,
"selected": false,
"text": "~$ ./waf configure && ./waf && ./waf install\n set_options() configure(conf) build(bld)"
},
{
"answer_id": 529562,
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1876/"
] |
54,686 | <p>Does any one know how do I get the current open windows or process of a local machine using Java? </p>
<p>What I'm trying to do is: list the current open task, windows or process open, like in Windows Taskmanager, but using a multi-platform approach - using only Java if it's possible.</p>
| [
{
"answer_id": 54696,
"author": "jodonnell",
"author_id": 4223,
"author_profile": "https://Stackoverflow.com/users/4223",
"pm_score": 3,
"selected": false,
"text": "Process proc = Runtime.getRuntime().exec (\"tasklist.exe\");\nInputStream procOutput = proc.getInputStream ();\nif (0 == pr... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4358/"
] |
54,708 | <p>This is an ASP.Net 2.0 web app. The Item template looks like this, for reference:</p>
<pre><code><ItemTemplate>
<tr>
<td class="class1" align=center><a href='url'><img src="img.gif"></a></td>
<td class="class1"><%# DataBinder.Eval(Container.DataItem,"fiel... | [
{
"answer_id": 54738,
"author": "ern",
"author_id": 5609,
"author_profile": "https://Stackoverflow.com/users/5609",
"pm_score": 2,
"selected": false,
"text": "runat=\"server\" InnerText"
},
{
"answer_id": 54745,
"author": "NakedBrunch",
"author_id": 3742,
"author_prof... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1734/"
] |
54,709 | <p>Multiple approaches exist to write your unit tests when using Rhino Mocks:</p>
<ul>
<li>The Standard Syntax</li>
<li>Record/Replay Syntax</li>
<li>The Fluent Syntax</li>
</ul>
<p>What is the ideal and most frictionless way?</p>
| [
{
"answer_id": 54893,
"author": "Judah Gabriel Himango",
"author_id": 536,
"author_profile": "https://Stackoverflow.com/users/536",
"pm_score": 1,
"selected": false,
"text": "using(mocks.Record())\n{\n Expect.Call(foo.Bar());\n}\nusing(mocks.Playback())\n{\n MakeItAllHappen();\n}\n... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
54,725 | <p>Sending a message from the Unix command line using <code>mail TO_ADDR</code> results in an email from <code>$USER@$HOSTNAME</code>. Is there a way to change the "From:" address inserted by <code>mail</code>?</p>
<p>For the record, I'm using GNU Mailutils 1.1/1.2 on Ubuntu (but I've seen the same behavior with Fedor... | [
{
"answer_id": 380573,
"author": "cms",
"author_id": 28532,
"author_profile": "https://Stackoverflow.com/users/28532",
"pm_score": 8,
"selected": true,
"text": "export REPLYTO=cms-replies@example.com\nmail -aFrom:cms-sends@example.com -s 'Testing'\n -r -a"
},
{
"answer_id": 13533... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1412/"
] |
54,753 | <p>I have a large legacy codebase with very complicated makefiles, with lots of variables. Sometimes I need to change them, and I find that it's very difficult to figure out why the change isn't working the way I expect. What I'd like to find is a tool that basically does step-through-debugging of the "make" process,... | [
{
"answer_id": 54767,
"author": "Rob Wells",
"author_id": 2974,
"author_profile": "https://Stackoverflow.com/users/2974",
"pm_score": 6,
"selected": false,
"text": "make -n make -np make -nd gmake"
},
{
"answer_id": 15522386,
"author": "GuruM",
"author_id": 452885,
"a... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5241/"
] |
54,754 | <p>For example, I want to populate a gridview control in an ASP.NET web page with only the data necessary for the # of rows displayed. How can NHibernate support this?</p>
| [
{
"answer_id": 54773,
"author": "NotMyself",
"author_id": 303,
"author_profile": "https://Stackoverflow.com/users/303",
"pm_score": 5,
"selected": false,
"text": "(from c in nwnd.Customers select c.CustomerID)\n .Skip(10).Take(10).ToList(); \n"
},
{
"answer_id": 54777,
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
54,760 | <p>Is there a way to unfilter an NSPasteboard for what the source application specifically declared it would provide?</p>
<p>I'm attempting to serialize pasteboard data in my application. When another application places an RTF file on a pasteboard and then I ask for the available types, I get eleven different flavors... | [
{
"answer_id": 57771,
"author": "John Calsbeek",
"author_id": 5696,
"author_profile": "https://Stackoverflow.com/users/5696",
"pm_score": 3,
"selected": true,
"text": "-[NSPasteboard types] -[NSPasteboard declareTypes:owner:] [pb dataForType:[[pb types] objectAtIndex:0]]\n"
},
{
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4233/"
] |
54,789 | <p>I have an Asset object that has a property AssignedSoftware, which is a collection. </p>
<p>I want to make sure that the same piece of Software is not assigned to an Asset more than once. In Add method I check to see if the Software already exist, and if it does, I want to throw an exception. </p>
<p>Is there a ... | [
{
"answer_id": 55852,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Stackoverflow.com/users/832",
"pm_score": 4,
"selected": false,
"text": "InvalidOperationException ArgumentException InvalidOperationException"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
54,790 | <p>Is it possible to build Visual Studio solutions without having to fire up MonoDevelop?</p>
| [
{
"answer_id": 56113,
"author": "skolima",
"author_id": 3205,
"author_profile": "https://Stackoverflow.com/users/3205",
"pm_score": 7,
"selected": true,
"text": "xbuild msbuild rmdir xcopy MONO_IOMAP=case xbuild foo.sln MONO_IOMAP=all mdtool build -f:project.sln man mdtool"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3798/"
] |
54,851 | <p>In a follow-up to a <a href="https://stackoverflow.com/questions/54789/what-is-the-correct-net-exception-to-throw-when-try-to-insert-a-duplicate-objec">previous question</a> regarding exceptions, what are best practices for creating a custom exception in .NET? </p>
<p>More specifically should you inherit from Syst... | [
{
"answer_id": 54856,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 5,
"selected": true,
"text": "System.Exception System.ApplicationException System.ApplicationException"
},
{
"answer_id": 54942,
"author": "... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
54,861 | <p>I've been using the following code to open Office Documents, PDF, etc. on my windows machines using Java and it's working fine, except for some reason when a filename has embedded it within it multiple contiguous spaces like "File[SPACE][SPACE]Test.doc".</p>
<p>How can I make this work? I'm not averse to canning t... | [
{
"answer_id": 55018,
"author": "Matt Cummings",
"author_id": 828,
"author_profile": "https://Stackoverflow.com/users/828",
"pm_score": 0,
"selected": false,
"text": "List<String> command = new ArrayList<String>();\ncommand.add(someExecutable);\ncommand.add(someArguemnt0);\ncommand.add(s... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
54,866 | <p>I have string like this</p>
<pre><code> /c SomeText\MoreText "Some Text\More Text\Lol" SomeText
</code></pre>
<p>I want to tokenize it, however I can't just split on the spaces. I've come up with somewhat ugly parser that works, but I'm wondering if anyone has a more elegant design.</p>
<p>This is in C# btw.</p>
... | [
{
"answer_id": 54880,
"author": "Craig",
"author_id": 2894,
"author_profile": "https://Stackoverflow.com/users/2894",
"pm_score": 0,
"selected": false,
"text": "using System;\nusing System.Text.RegularExpressions;\n\npublic class Test\n{\n\n public static void Main ()\n {\n\n ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
54,867 | <p>What is the difference between old style and new style classes in Python? When should I use one or the other?</p>
| [
{
"answer_id": 54873,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 10,
"selected": true,
"text": "x x.__class__ x type(x) <type\n 'instance'> type(x) x.__class__ x.__class__ object"
},
{
"answer_id": 242700,
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
54,877 | <p>I can't seem to figure out a good way to do this, but it seems like it should be simple. I have an element that I want to <code>append a div</code> to. Then I have another element that I want to clone and shove into that intermediate div. Here's what I was hoping to do:</p>
<pre><code>$("#somediv > ul").after... | [
{
"answer_id": 54897,
"author": "Pat",
"author_id": 238,
"author_profile": "https://Stackoverflow.com/users/238",
"pm_score": 0,
"selected": false,
"text": "after() .nextAll( [expr] ) Find all sibling elements after the current element.\n Use an optional expression to filter the matched... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/404/"
] |
54,882 | <p>What's the easiest way to print a stacktrace from a debugging printout? Often during testing you would like to know the callstack leading up to the situation provoking a debug message.</p>
| [
{
"answer_id": 54887,
"author": "jjnguy",
"author_id": 2598,
"author_profile": "https://Stackoverflow.com/users/2598",
"pm_score": 2,
"selected": false,
"text": "e.getStackTrace();\n e.printStackTrace()\n"
},
{
"answer_id": 54892,
"author": "Johan Lübcke",
"author_id": 42... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4220/"
] |
54,886 | <p>Alright it can be a lame question, but everybody uses these things differently. What's some of the best time savers out there for this IDE.
<BR><BR>Tom</p>
| [
{
"answer_id": 59413,
"author": "Antti Kissaniemi",
"author_id": 2948,
"author_profile": "https://Stackoverflow.com/users/2948",
"pm_score": 4,
"selected": false,
"text": "JdbcTemplate createJdbcTemplate() void someQuery() {\n createJdbcTemplate()\n}\n createJdbcTemplate() void someQu... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5659/"
] |
54,909 | <p>I have an <code>ArrayList<String></code> that I'd like to return a copy of. <code>ArrayList</code> has a clone method which has the following signature:</p>
<pre><code>public Object clone()
</code></pre>
<p>After I call this method, how do I cast the returned Object back to <code>ArrayList<String></co... | [
{
"answer_id": 54911,
"author": "jodonnell",
"author_id": 4223,
"author_profile": "https://Stackoverflow.com/users/4223",
"pm_score": 1,
"selected": false,
"text": "ArrayList first = new ArrayList ();\nArrayList copy = (ArrayList) first.clone ();\n"
},
{
"answer_id": 54912,
"... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
54,926 | <p>Is it possible, in Java, to make a <code>JPanel</code> skip drawing its background thus being transparent except for the components on it?</p>
| [
{
"answer_id": 54927,
"author": "Allain Lalonde",
"author_id": 2443,
"author_profile": "https://Stackoverflow.com/users/2443",
"pm_score": 6,
"selected": true,
"text": "setOpaque(false)"
},
{
"answer_id": 22712998,
"author": "user9349193413",
"author_id": 736999,
"aut... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2598/"
] |
54,929 | <blockquote>
<p>This question exists because it has
historical significance, but it is not
considered a good, on-topic question
for this site, <strong>so please do not use it
as evidence that you can ask similar
questions here.</strong></p>
<p>More info: <a href="https://stackoverflow.com/faq">https:/... | [
{
"answer_id": 55112,
"author": "Radu094",
"author_id": 3263,
"author_profile": "https://Stackoverflow.com/users/3263",
"pm_score": 6,
"selected": false,
"text": "#ifdef DEBUG \n if (Context.Request.QueryString[\"DoTrace\"] == \"true\")\n {\n Trace.IsE... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/380/"
] |
54,952 | <p>We try to use Java and UTF-8 on Windows. The application writes logs on the console, and we would like to use UTF-8 for the logs as our application has internationalized logs.</p>
<p>It is possible to configure the JVM so it generates UTF-8, using <code>-Dfile.encoding=UTF-8</code> as arguments to the JVM. It works... | [
{
"answer_id": 55307,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 4,
"selected": true,
"text": "chcp 65001 && start.bat chcp"
},
{
"answer_id": 265734,
"author": "Renato Soffiatto",
"author_id": 30477,
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1430323/"
] |
54,957 | <p>I have lots and lots of data in various structures. Are there any better platforms other than Excel charts which can help me. </p>
<p>thanks</p>
| [
{
"answer_id": 9612148,
"author": "mikera",
"author_id": 214010,
"author_profile": "https://Stackoverflow.com/users/214010",
"pm_score": 0,
"selected": false,
"text": "(view (histogram (sample-normal 1000)))\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/54957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5663/"
] |
54,963 | <p>I've got a lot of ugly code that looks like this:</p>
<pre><code>if (!string.IsNullOrEmpty(ddlFileName.SelectedItem.Text))
results = results.Where(x => x.FileName.Contains(ddlFileName.SelectedValue));
if (chkFileName.Checked)
results = results.Where(x => x.FileName == null);
if (!string.IsNullOrEmpty... | [
{
"answer_id": 54981,
"author": "bdukes",
"author_id": 2688,
"author_profile": "https://Stackoverflow.com/users/2688",
"pm_score": 0,
"selected": false,
"text": "results = results.Where(x => \n (string.IsNullOrEmpty(ddlFileName.SelectedItem.Text) || x.FileName.Contains(ddlFileName.Sel... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5486/"
] |
54,966 | <p>How would I go about replacing Windows Explorer with a third party tool such as TotalCommander, explorer++, etc?</p>
<p>I would like to have one of those load instead of win explorer when I type "C:\directoryName" into the run window. Is this possible?</p>
| [
{
"answer_id": 55021,
"author": "Judah Gabriel Himango",
"author_id": 536,
"author_profile": "https://Stackoverflow.com/users/536",
"pm_score": 3,
"selected": true,
"text": "[HKEY_CLASSES_ROOT\\Directory\\shell]\n@=\"open_x2\"\n [HKEY_CLASSES_ROOT\\Directory\\shell\\open\\command]\n@=\"C... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1385358/"
] |
54,978 | <p>My team has a command parsing library for console apps. Each team around us has their own as well. There isn't anything in the BCL so I suppose this is natural.</p>
<p>I've looked at the the module in Mono, which seems solid, and the one on CodePlex looks fine as well. There are probably others out there that will ... | [
{
"answer_id": 65210,
"author": "damageboy",
"author_id": 9172,
"author_profile": "https://Stackoverflow.com/users/9172",
"pm_score": 0,
"selected": false,
"text": "var p = new OptionSet () {\n { \"file=\", v => data = v },<br>\n { \"v|verbose\", v => { ++verbose } },<br>\n ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4593/"
] |
54,989 | <p>Is it possible to change the hostname in Windows 2003 from the command line with out-of-the-box tools?</p>
| [
{
"answer_id": 55004,
"author": "GEOCHET",
"author_id": 5640,
"author_profile": "https://Stackoverflow.com/users/5640",
"pm_score": 1,
"selected": false,
"text": "sNewName = \"put new name here\" \n\nSet oShell = CreateObject (\"WSCript.shell\" ) \n\nsCCS = \"HKLM\\SYSTEM\\CurrentControl... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1807/"
] |
54,991 | <p>When a user on our site loses his password and heads off to the Lost Password page we need to give him a new temporary password. I don't really mind how random this is, or if it matches all the "needed" strong password rules, all I want to do is give them a password that they can change later.</p>
<p>The applicatio... | [
{
"answer_id": 54994,
"author": "GEOCHET",
"author_id": 5640,
"author_profile": "https://Stackoverflow.com/users/5640",
"pm_score": 5,
"selected": false,
"text": "///////////////////////////////////////////////////////////////////////////////\n// SAMPLE: Generates random password, which ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/54991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/231/"
] |
55,010 | <p>Supposing you have a form that collects and submits sensitive information and you want to ensure it is never accessed via insecure (non-HTTPS) means, how might you best go about enforcing that policy?</p>
| [
{
"answer_id": 55024,
"author": "Justin Voss",
"author_id": 5616,
"author_profile": "https://Stackoverflow.com/users/5616",
"pm_score": 3,
"selected": false,
"text": "RewriteRule .htaccess RewriteCond %{HTTPS} \"off\"\nRewriteRule /mypage.html https://example.com/mypage.html\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/55010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4061/"
] |
55,013 | <p>Is there ever a circumstance in which I would not want to use the <a href="http://msdn.microsoft.com/en-us/library/cb8x3kfz.aspx" rel="noreferrer"><code>AndAlso</code></a> operator rather than the <a href="http://msdn.microsoft.com/en-us/library/sdbcfyzh.aspx" rel="noreferrer"><code>And</code></a> operator? &hellip... | [
{
"answer_id": 55025,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 4,
"selected": false,
"text": "AndAlso OrElse && ||"
},
{
"answer_id": 69841478,
"author": "Andrew",
"author_id": 6794075,
"author... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83/"
] |
55,042 | <p>I want to build a bot that asks someone a few simple questions and branches based on the answer. I realize parsing meaning from the human responses will be challenging, but how do you setup the program to deal with the "state" of the conversation?</p>
<p>It will be a one-to-one conversation between a human and the... | [
{
"answer_id": 55053,
"author": "argv0",
"author_id": 5595,
"author_profile": "https://Stackoverflow.com/users/5595",
"pm_score": 6,
"selected": true,
"text": "import random, sys\n\nNONWORD = \"\\n\"\nSTARTKEY = NONWORD, NONWORD\nMAXGEN=1000\n\nclass MarkovChainer(object):\n def __ini... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
55,054 | <p>What’s the best way to capitalize the first letter of each word in a string in SQL Server.</p>
| [
{
"answer_id": 55057,
"author": "Espo",
"author_id": 2257,
"author_profile": "https://Stackoverflow.com/users/2257",
"pm_score": 7,
"selected": true,
"text": "CREATE FUNCTION [dbo].[InitCap] ( @InputString varchar(4000) ) \nRETURNS VARCHAR(4000)\nAS\nBEGIN\n\nDECLARE @Index INT\... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5170/"
] |
55,056 | <p>I'm building a Django project that needs search functionality, and until there's a <code>django.contrib.search</code>, I have to choose a search app. So, which is the best? By "best" I mean...</p>
<ul>
<li>easy to install / set up</li>
<li>has a Django- or at least Python-friendly API</li>
<li>can perform reasonabl... | [
{
"answer_id": 55924,
"author": "Garth Kidd",
"author_id": 5700,
"author_profile": "https://Stackoverflow.com/users/5700",
"pm_score": 4,
"selected": false,
"text": "django.contrib.search"
},
{
"answer_id": 56885,
"author": "Justin Voss",
"author_id": 5616,
"author_pr... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5616/"
] |
55,060 | <p>I'm pretty sure the answer to this question is no, but in case there's some PHP guru</p>
<p>is it possible to write a function in a way where invalid arguments or non existent variables can be passed in and php will not error without the use of <code>'@'</code></p>
<p>Much like empty and isset do. You can pass in ... | [
{
"answer_id": 55065,
"author": "Adam Wright",
"author_id": 1200,
"author_profile": "https://Stackoverflow.com/users/1200",
"pm_score": 1,
"selected": false,
"text": "function safeLookup($array, $key)\n{\n if (isset($array, $key))\n return $array[$key];\n\n return 0;\n}\n defaultVal... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5261/"
] |
55,083 | <p>Any ideas how to display a PDF file in a WPF Windows Application? </p>
<hr>
<p>I am using the following code to run the browser but the <code>Browser.Navigate</code> method does not do anything!</p>
<pre><code>WebBrowser browser = new WebBrowser();
browser.Navigate("http://www.google.com");
this.AddChild(browser)... | [
{
"answer_id": 55177,
"author": "Gulzar Nazim",
"author_id": 4337,
"author_profile": "https://Stackoverflow.com/users/4337",
"pm_score": 4,
"selected": true,
"text": "private AxAcroPDFLib.AxAcroPDF axAcroPDF1;\nthis.axAcroPDF1 = new AxAcroPDFLib.AxAcroPDF();\nthis.axAcroPDF1.Dock = Syste... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3797/"
] |
55,093 | <p>I have a class to parse a matrix that keeps the result in an array member:</p>
<pre><code>class Parser
{
...
double matrix_[4][4];
};
</code></pre>
<p>The user of this class needs to call an API function (as in, a function I have no control over, so I can't just change its interface to make things work more ea... | [
{
"answer_id": 55118,
"author": "Serafina Brocious",
"author_id": 4977,
"author_profile": "https://Stackoverflow.com/users/4977",
"pm_score": 2,
"selected": false,
"text": "union matrix {\n double dflat[16];\n double dmatr[4][4];\n};\n"
},
{
"answer_id": 55149,
"author"... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790/"
] |
55,099 | <p>We have an intranet site backed by SVN, such that the site is a checkout out copy of the repository (working folder used only by IIS). Something on the site has been causing problems today, and I want to know how to find out what was checked out to that working folder in the last 48 hours.</p>
<p><strong>Update:</... | [
{
"answer_id": 55309,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 3,
"selected": true,
"text": "svn info svn blame svn stat svn diff"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/55099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3043/"
] |
55,101 | <p>I have a Linq query that I want to call from multiple places:</p>
<pre><code>var myData = from a in db.MyTable
where a.MyValue == "A"
select new {
a.Key,
a.MyValue
};
</code></pre>
<p>How can I create a met... | [
{
"answer_id": 55110,
"author": "Ryan Lanciaux",
"author_id": 1385358,
"author_profile": "https://Stackoverflow.com/users/1385358",
"pm_score": 3,
"selected": false,
"text": "IQueryable public IQueryable GetSomeData()\n"
},
{
"answer_id": 55120,
"author": "Gulzar Nazim",
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047/"
] |
55,113 | <p>Word 2007 saves its documents in .docx format which is really a zip file with a bunch of stuff in it including an xml file with the document.</p>
<p>I want to be able to take a .docx file and drop it into a folder in my asp.net web app and have the code open the .docx file and render the (xml part of the) document ... | [
{
"answer_id": 12257270,
"author": "raghava",
"author_id": 1645149,
"author_profile": "https://Stackoverflow.com/users/1645149",
"pm_score": 1,
"selected": false,
"text": ".docx function read_file_docx($filename){\n\n $striped_content = '';\n $content = '';\n\n if(!$filename || ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
55,114 | <p>Ok, so I'm an idiot. </p>
<p>So I was working on a regex that took way to long to craft. After perfecting it, I upgraded my work machine with a blazing fast hard drive and realized that I never saved the regex anywhere and simply used RegexBuddy's autosave to store it. Dumb dumb dumb. </p>
<p>I sent a copy of ... | [
{
"answer_id": 55182,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 4,
"selected": true,
"text": "HKEY_CURRENT_USER\\Software\\JGsoft\\RegexBuddy3\\History\n C:\\Documents and Settings\\<username>\\Application Data\\JGsoft\\... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1116922/"
] |
55,130 | <p>This is a segment of code from an app I've inherited, a user got a Yellow screen of death:</p>
<blockquote>
<p>Object reference not set to an instance of an object</p>
</blockquote>
<p>on the line: </p>
<pre><code>bool l_Success ...
</code></pre>
<p>Now I'm 95% sure the faulty argument is <code>ref l_Monitor<... | [
{
"answer_id": 84541,
"author": "Beriadan",
"author_id": 1983,
"author_profile": "https://Stackoverflow.com/users/1983",
"pm_score": 0,
"selected": false,
"text": "NullReferenceException l_Monitor"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/55130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1983/"
] |
55,159 | <p>In SQL Server 2005 I have an "id" field in a table that has the "Is Identity" property set to 'Yes'. So, when an Insert is executed on that table the "id" gets set automatically to the next incrementing integer. Is there an easy way when the Insert is executed to get what the "id" was set to without having to do a S... | [
{
"answer_id": 55172,
"author": "Josh Hinman",
"author_id": 2527,
"author_profile": "https://Stackoverflow.com/users/2527",
"pm_score": 6,
"selected": true,
"text": "command.CommandText = \"INSERT INTO [Employee] (Name) VALUES (@Name); SELECT SCOPE_IDENTITY()\";\nint id = (int)command.Ex... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1096640/"
] |
55,180 | <p>Dictionaries unlike lists are not ordered (and do not have the 'sort' attribute). Therefore, you can not rely on getting the items in the same order when first added. </p>
<p>What is the easiest way to loop through a dictionary containing strings as the key value and retrieving them in ascending order by key?</p>
... | [
{
"answer_id": 55188,
"author": "Serafina Brocious",
"author_id": 4977,
"author_profile": "https://Stackoverflow.com/users/4977",
"pm_score": 2,
"selected": false,
"text": "keys = list(d.keys())\nkeys.sort()\nfor key in keys:\n print d[key]\n sorted()"
},
{
"answer_id": 55193,... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
55,203 | <p>I have an asp.net web page written in C#.<br>
Using some javascript I popup another .aspx page which has a few controls that are filled in and from which I create a small snippet of text.<br>
When the user clicks OK on that dialog box I want to insert that piece of text into a textbox on the page that initial "poppe... | [
{
"answer_id": 55242,
"author": "GateKiller",
"author_id": 383,
"author_profile": "https://Stackoverflow.com/users/383",
"pm_score": 4,
"selected": true,
"text": "parent.opener.document.getElemenyById('ParentTextBox').value = \"New Text\";\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/55203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
55,206 | <p>What is the operator precedence order in Visual Basic 6.0 (VB6)?</p>
<p>In particular, for the logical operators.</p>
| [
{
"answer_id": 55215,
"author": "Jeremy",
"author_id": 1114,
"author_profile": "https://Stackoverflow.com/users/1114",
"pm_score": 5,
"selected": true,
"text": "^ - * / \\ Mod + - & = <> < > <= >= Like Is Not And Or Xor Eqv Imp"
},
{
"answer_id": 55260,
"author": "Joel Coehoo... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5472/"
] |
55,210 | <p>What would be the best strategy to generate anagrams.</p>
<blockquote>
<pre><code>An anagram is a type of word play, the result of rearranging the letters
of a word or phrase to produce a new word or phrase, using all the original
letters exactly once;
ex.
</code></pre>
<ul>
<li><strong>Eleven plus two</st... | [
{
"answer_id": 55255,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "https://Stackoverflow.com/users/4435",
"pm_score": 1,
"selected": false,
"text": "lettermap[set(a,e,d,f)] = { \"deaf\", \"fade\" }\n astronomers => (a,e,m,n,o,o,r,r,s,s,t)\n"
},
{
"answer_id": 55339,
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/123/"
] |
55,218 | <p>I looking for a way, specifically in PHP that I will be guaranteed to always get a unique key.</p>
<p>I have done the following:</p>
<pre><code>strtolower(substr(crypt(time()), 0, 7));
</code></pre>
<p>But I have found that once in a while I end up with a duplicate key (rarely, but often enough).</p>
<p>I have a... | [
{
"answer_id": 55233,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 0,
"selected": false,
"text": "$this->password = '';\n\nfor($i=0; $i<10; $i++)\n{\n if($i%2 == 0)\n $this->password .= chr(rand(65,90));\n if($... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
55,270 | <p>I have some code that modifies a value that several controls in other update panels are bound to. When this event handler fires, I'd like it to force the other update panels to refresh as well, so they can rebind.</p>
<p>Is this possible?</p>
<p>Edit: </p>
<p>To clarify, I have an update panel in one user control... | [
{
"answer_id": 23698230,
"author": "ravenx30",
"author_id": 3515281,
"author_profile": "https://Stackoverflow.com/users/3515281",
"pm_score": 0,
"selected": false,
"text": "PresenterClass.AttachInterface(mIOrder);\nPresenterClass.DoSomeCalulation();\nPresenterClass.drawPanel(1);\nPresent... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
55,296 | <p>I'm looking to implement httpOnly in my legacy ASP classic sites.
Anyone knows how to do it?</p>
| [
{
"answer_id": 55389,
"author": "Aaron Wagner",
"author_id": 3909,
"author_profile": "https://Stackoverflow.com/users/3909",
"pm_score": 5,
"selected": true,
"text": "Response.AddHeader \"Set-Cookie\", \"mycookie=yo; HttpOnly\"\n expires path secure"
},
{
"answer_id": 14818679,
... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2385/"
] |
55,297 | <p>Currently I run an classic (old) ASP webpage with recordset object used directly in bad old spagethi code fasion.</p>
<p>I'm thinking of implementing a data layer in asp.net as web serivce to improve manageability. This is also a first step towards upgrading the website to asp.net.
The site itself remains ASP for t... | [
{
"answer_id": 55358,
"author": "Euro Micelli",
"author_id": 2230,
"author_profile": "https://Stackoverflow.com/users/2230",
"pm_score": 2,
"selected": false,
"text": "MyDataWebService ws = new MyDataWebService();\nforeach(DataItem item in myData)\n{\n ws.Insert(item);\n}\n MyDataWebS... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/925/"
] |
55,313 | <p>One thing I really miss about Java is the tool support. FindBugs, Checkstyle and PMD made for a holy trinity of code quality metrics and automatic bug checking. </p>
<p>Is there anything that will check for simple bugs and / or style violations of Ruby code? Bonus points if I can adapt it for frameworks such as ... | [
{
"answer_id": 55357,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 2,
"selected": false,
"text": "NamedLikeThis"
},
{
"answer_id": 16063567,
"author": "Bozhidar Batsov",
"author_id": 291550,
"author_... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5266/"
] |
55,317 | <p>When objects from a CallList intersect the near plane I get a flicker..., what can I do?</p>
<p>Im using OpenGL and SDL.</p>
<p>Yes it is double buffered.</p>
| [
{
"answer_id": 55331,
"author": "epatel",
"author_id": 842,
"author_profile": "https://Stackoverflow.com/users/842",
"pm_score": 0,
"selected": false,
"text": " glPolygonOffset is useful for rendering hidden-line images,\n for applying decals to surfaces, and for rendering solids\n wi... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44972/"
] |
55,342 | <p>I need to quickly (and forcibly) kill off all external sessions connecting to my oracle database without the supervision of and administrator.</p>
<p>I don't want to just lock the database and let the users quit gracefully.</p>
<p>How would I script this?</p>
| [
{
"answer_id": 55359,
"author": "BIBD",
"author_id": 685,
"author_profile": "https://Stackoverflow.com/users/685",
"pm_score": 7,
"selected": true,
"text": "ALTER SYSTEM ENABLE RESTRICTED SESSION;\n\nbegin \n for x in ( \n select Sid, Serial#, machine, program \n ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/685/"
] |
55,360 | <p>The __doPostBack is not working in firefox 3 (have not checked 2). Everything is working great in IE 6&7 and it even works in Chrome??</p>
<p>It's a simple asp:LinkButton with an OnClick event</p>
<pre><code><asp:LinkButton ID="DeleteAllPicturesLinkButton" Enabled="False" OnClientClick="javascript:return c... | [
{
"answer_id": 55367,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 1,
"selected": false,
"text": "if (!confirm(...)) { return false; } _doPostBack(...);\n <a href=\"javascript:__doPostBack()\" onclick=\"return confirm()\" /... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4230/"
] |
55,365 | <p>I use Emacs primarily for coding Python but sometimes I use IDLE. Is there a way to change the key bindings easily in IDLE to match Emacs?</p>
| [
{
"answer_id": 55493,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "XKeymacs"
},
{
"answer_id": 85113,
"author": "Ray",
"author_id": 4872,
"author_profile": "https://Stackover... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
55,375 | <p>I know this rather goes against the idea of enums, but is it possible to extend enums in C#/Java? I mean "extend" in both the sense of adding new values to an enum, but also in the OO sense of inheriting from an existing enum. </p>
<p>I assume it's not possible in Java, as it only got them fairly recently (Java 5... | [
{
"answer_id": 55390,
"author": "McKenzieG1",
"author_id": 3776,
"author_profile": "https://Stackoverflow.com/users/3776",
"pm_score": 2,
"selected": false,
"text": "Enum.GetNames() Enum.GetValues()"
},
{
"answer_id": 55486,
"author": "tsimon",
"author_id": 1685,
"aut... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5296/"
] |
55,386 | <p>I'm using Windows and I'm trying to get ANT to work.</p>
<p>When I do an ant build from the command line, I get:
<code>C:\dev\Projects\springapp\${%ANT_HOME%}\lib not found.</code></p>
<p>I look into the <code>build.xml</code> file and I find:
<code>appserver.home=${user.home}/apache-tomcat-6.0.14</code> (which I ... | [
{
"answer_id": 55426,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 4,
"selected": false,
"text": "appserver.home=\"C:\\\\Program Files\\\\Apache Software Foundation\\\\Tomcat 6.0\"\n"
},
{
"answer_id": 56911... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
55,391 | <p>I want to grab the value of a hidden input field in HTML.</p>
<pre><code><input type="hidden" name="fooId" value="12-3456789-1111111111" />
</code></pre>
<p>I want to write a regular expression in Python that will return the value of <code>fooId</code>, given that I know the line in the HTML follows the form... | [
{
"answer_id": 55399,
"author": "Pat",
"author_id": 238,
"author_profile": "https://Stackoverflow.com/users/238",
"pm_score": 0,
"selected": false,
"text": "/<input type=\"hidden\" name=\"fooId\" value=\"([\\d-]+)\" \\/>/\n"
},
{
"answer_id": 55404,
"author": "Serafina Brocio... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5675/"
] |
55,403 | <p>I am interested to know whether anyone has written an application that takes advantage of a <a href="http://en.wikipedia.org/wiki/GPGPU" rel="nofollow noreferrer">GPGPU</a> by using, for example, <a href="http://www.nvidia.com/object/cuda_get.html" rel="nofollow noreferrer">nVidia CUDA</a>. If so, what issues did y... | [
{
"answer_id": 853110,
"author": "Edison Gustavo Muenz",
"author_id": 61915,
"author_profile": "https://Stackoverflow.com/users/61915",
"pm_score": 0,
"selected": false,
"text": "if (false){}"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/55403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3305/"
] |
55,411 | <p>Running into a problem where on certain servers we get an error that the directory name is invalid when using Path.GetTempFileName. Further investigation shows that it is trying to write a file to c:\Documents and Setting\computername\aspnet\local settings\temp (found by using Path.GetTempPath). This folder exists... | [
{
"answer_id": 60353,
"author": "Euro Micelli",
"author_id": 2230,
"author_profile": "https://Stackoverflow.com/users/2230",
"pm_score": 5,
"selected": true,
"text": "<identity impersonate=\"true\" />\n"
}
] | 2008/09/10 | [
"https://Stackoverflow.com/questions/55411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5678/"
] |
55,434 | <p>This question is the other side of the question asking, "<a href="https://stackoverflow.com/questions/11/how-do-i-calculate-relative-time">How do I calculate relative time?</a>".</p>
<p>Given some human input for a relative time, how can you parse it? By default you would offset from <code>DateTime.Now()</code>, b... | [
{
"answer_id": 55469,
"author": "dF.",
"author_id": 3002,
"author_profile": "https://Stackoverflow.com/users/3002",
"pm_score": 3,
"selected": false,
"text": "* Aug 25 5pm\n* 5pm August 25\n* next saturday\n...\n* tomorrow\n* next thursday at 4pm\n* at 4pm\n* eod\n* in 5 minutes\n* 5 min... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
55,440 | <p>I've a class which is a wrapper class(serves as a common interface) around another class implementing the functionality required. So my code looks like this.</p>
<pre><code>template<typename ImplemenationClass> class WrapperClass {
// the code goes here
}
</code></pre>
<p>Now, how do I make sure that <code>I... | [
{
"answer_id": 55446,
"author": "Daniel James",
"author_id": 2434,
"author_profile": "https://Stackoverflow.com/users/2434",
"pm_score": 4,
"selected": true,
"text": "#include <boost/utility/enable_if.hpp>\n#include <boost/type_traits/is_base_of.hpp>\n\nstruct base {};\n\ntemplate <typen... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/108465/"
] |
55,449 | <p>I sometimes use the feature 'Reconcile Offline Work...' found in Perforce's P4V IDE to sync up any files that I have been working on while disconnected from the P4 depot. It launches another window that performs a 'Folder Diff'.</p>
<p>I have files I never want to check in to source control (like ones found in bin ... | [
{
"answer_id": 55509,
"author": "raven",
"author_id": 4228,
"author_profile": "https://Stackoverflow.com/users/4228",
"pm_score": 7,
"selected": true,
"text": "P4IGNORE"
},
{
"answer_id": 56498,
"author": "Mark",
"author_id": 4405,
"author_profile": "https://Stackover... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
55,482 | <p>I'm able to successfully uninstall a third-party application via the command line and via a custom Inno Setup installer. </p>
<p>Command line Execution:</p>
<pre><code>MSIEXEC.exe /x {14D74337-01C2-4F8F-B44B-67FC613E5B1F} /qn
</code></pre>
<p>Inno Setup Command:</p>
<pre><code>[Run]
Filename: msiexec.exe; Flags:... | [
{
"answer_id": 55496,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 2,
"selected": false,
"text": "c:\\windows\\temp"
},
{
"answer_id": 55571,
"author": "saschabeaumont",
"author_id": 592,
"author_pro... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4115/"
] |
55,502 | <p>I have an object in a multi-threaded environment that maintains a collection of information, e.g.:</p>
<pre><code>public IList<string> Data
{
get
{
return data;
}
}
</code></pre>
<p>I currently have <code>return data;</code> wrapped by a <code>ReaderWriterLockSlim</code> to protect the ... | [
{
"answer_id": 55661,
"author": "nedruod",
"author_id": 5504,
"author_profile": "https://Stackoverflow.com/users/5504",
"pm_score": 4,
"selected": false,
"text": "IEnumerable<string>"
},
{
"answer_id": 59545,
"author": "Daniel Fortunov",
"author_id": 5975,
"author_pro... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5296/"
] |
55,503 | <p>I have a main asp.net app, which is written in asp.net 1.1. Runnning underneath the application are several 2.0 apps. To completely logout a user can I just logout of the 1.1 app with FormsAuthentication.SignOut or is it more complicated than that?</p>
| [
{
"answer_id": 55575,
"author": "Dale Ragan",
"author_id": 1117,
"author_profile": "https://Stackoverflow.com/users/1117",
"pm_score": 4,
"selected": true,
"text": "<authentication mode=\"Forms\">\n <forms name=\".cookiename\"\n loginUrl=\"~/Login.aspx\" \n timeout... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4888/"
] |
55,506 | <p>As part of my integration strategy, I have a few SQL scripts that run in order to update the database. The first thing all of these scripts do is check to see if they need to run, e.g.:</p>
<pre><code>if @version <> @expects
begin
declare @error varchar(100);
set @error = 'Invalid version.... | [
{
"answer_id": 55546,
"author": "Josh Hinman",
"author_id": 2527,
"author_profile": "https://Stackoverflow.com/users/2527",
"pm_score": 6,
"selected": true,
"text": "if @version <> @expects\n begin\n ...snip...\n end\nelse\n begin\n exec('CREATE PROC MyProc AS SELE... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2527/"
] |
55,510 | <p>I'm quite confident that globally declared variables get allocated (and initialized, if applicable) at program start time.</p>
<pre><code>int globalgarbage;
unsigned int anumber = 42;
</code></pre>
<p>But what about static ones defined within a function?</p>
<pre><code>void doSomething()
{
static bool globalish... | [
{
"answer_id": 55548,
"author": "Adam Pierce",
"author_id": 5324,
"author_profile": "https://Stackoverflow.com/users/5324",
"pm_score": 8,
"selected": true,
"text": "include <iostream>\n#include <string>\n\nusing namespace std;\n\nclass test\n{\npublic:\n test(const char *name)\n ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790/"
] |
55,517 | <p>We are getting very slow compile times, which can take upwards of 20+ minutes on dual core 2GHz, 2G Ram machines.</p>
<p>A lot of this is due to the size of our solution which has grown to 70+ projects, as well as VSS which is a bottle neck in itself when you have a lot of files. (swapping out VSS is not an optio... | [
{
"answer_id": 55542,
"author": "Daniel Auger",
"author_id": 1644,
"author_profile": "https://Stackoverflow.com/users/1644",
"pm_score": 1,
"selected": false,
"text": "<compilation defaultLanguage=\"c#\" debug=\"true\" batch=\"true\" > \n"
},
{
"answer_id": 55625,
"author": ... | 2008/09/10 | [
"https://Stackoverflow.com/questions/55517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5302/"
] |
55,532 | <p>This came up from <a href="https://stackoverflow.com/questions/55093/how-to-deal-with-arrays-declared-on-the-stack-in-c#55183">this answer to a previous question of mine</a>.
Is it guaranteed for the compiler to treat <code>array[4][4]</code> the same as <code>array[16]</code>?</p>
<p>For instance, would either of ... | [
{
"answer_id": 55660,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Stackoverflow.com/users/872",
"pm_score": 3,
"selected": true,
"text": "sizeof n n double[4][4] double[16] sizeof(double[4]) = 4*sizeof(double)\n sizeof(double[4][4]) = 4*sizeof(double[4])\n sizeof... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790/"
] |
55,556 | <p>I need to generate some passwords, I want to avoid characters that can be confused for each other. Is there a definitive list of characters I should avoid? my current list is</p>
<p>il10o8B3Evu![]{}</p>
<p>Are there any other pairs of characters that are easy to confuse? for special characters I was going to limit... | [
{
"answer_id": 55634,
"author": "dF.",
"author_id": 3002,
"author_profile": "https://Stackoverflow.com/users/3002",
"pm_score": 7,
"selected": true,
"text": "!#%+23456789:=?@ABCDEFGHJKLMNPRS\nTUVWXYZabcdefghijkmnopqrstuvwxyz\n !\"#$%&'()*+,-./23456789:;<=>?@ABCDEFGHJKLMNO\nPRSTUVWXYZ[\\]... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5552/"
] |
55,572 | <p>I've only recently started working with asp.net and c#. Is there a standard practice set of web.config settings for a live final website? There seem to be a ton of options available and I'm looking to streamline performance, close possible security holes and other unnecessary options. </p>
| [
{
"answer_id": 55595,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 1,
"selected": false,
"text": "<"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/55572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5433/"
] |
55,574 | <p>As it stands now, I'm a Java and C# developer. The more and more I look at Ruby on Rails, the more I really want to learn it. </p>
<p>What have you found to be the best route to learn RoR? Would it be easier to develop on Windows, or should I just run a virtual machine with Linux? </p>
<p>Is there an IDE that c... | [
{
"answer_id": 1268056,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "* Agile development with Rails (book)\n* Railscasts - very useful, always learn something new.\n* And of course the RoR API\n... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2066/"
] |
55,577 | <p>I want to test the web pages I create in all the modern versions of Internet Explorer (6, 7 and 8 beta) but I work mainly on a Mac and often don't have direct access to a PC.</p>
| [
{
"answer_id": 55578,
"author": "georgebrock",
"author_id": 5168,
"author_profile": "https://Stackoverflow.com/users/5168",
"pm_score": 7,
"selected": true,
"text": "/Applications/Q.app/Contents/MacOS/qemu-img convert -O raw -f vpc \"input.vhd\" temp.bin\nVBoxManage convertdd temp.bin \"... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5168/"
] |
55,594 | <p>When developing (works fine live) the pages for our website don't pick up the correct CSS until the user has authenticated (logged on).</p>
<p>So the Logon and Logoff forms look bad, but once inside the site, the CSS works again.</p>
<p>I'm guessing it's some kind of authentication issue? Haven't really looked int... | [
{
"answer_id": 417692,
"author": "Jason",
"author_id": 38398,
"author_profile": "https://Stackoverflow.com/users/38398",
"pm_score": 4,
"selected": false,
"text": "<configuration>\n <system.web>\n // system.web configuration settings.\n </system.web>\n <location path=\"App_The... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1075/"
] |
55,607 | <p>What is the best way to use multiple EVAL fields in a GridView ItemTemplate?</p>
<p>Looking to have some control over formatting for appearance as well as setting up hyperlinks/javascript etc.</p>
| [
{
"answer_id": 55629,
"author": "Dhaust",
"author_id": 242,
"author_profile": "https://Stackoverflow.com/users/242",
"pm_score": 3,
"selected": false,
"text": "<%# Eval(\"Name1\", \"{0} - \")%> <%#Eval(\"Name2\")%>\n <%#Eval(\"Name1\") & \" - \" & Eval(\"Name2\")%>\n <%# \"First Name - \... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242/"
] |
55,611 | <p>To make a JavaScript class with a public method I'd do something like:</p>
<pre><code>function Restaurant() {}
Restaurant.prototype.buy_food = function(){
// something here
}
Restaurant.prototype.use_restroom = function(){
// something here
}
</code></pre>
<p>That way users of my class can:</p>
<pre><code... | [
{
"answer_id": 55637,
"author": "17 of 26",
"author_id": 2284,
"author_profile": "https://Stackoverflow.com/users/2284",
"pm_score": 10,
"selected": true,
"text": "function Restaurant() {\n var myPrivateVar;\n\n var private_stuff = function() { // Only visible inside Restaurant()\... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3284/"
] |
55,612 | <p>This one has me kind of stumped. I want to make the first word of all the paragraphs in my #content div at 14pt instead of the default for the paragraphs (12pt). Is there a way to do this in straight CSS or am I left wrapping the first word in a span to accomplish this?</p>
| [
{
"answer_id": 55624,
"author": "Robby Slaughter",
"author_id": 1854,
"author_profile": "https://Stackoverflow.com/users/1854",
"pm_score": 8,
"selected": true,
"text": ":first-letter :first-line :first-word"
},
{
"answer_id": 55627,
"author": "Dale Ragan",
"author_id": 1... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/204/"
] |
55,633 | <p>WebKit/Safari supports the console object, which is similar to what Firebug does. But what exactly is supported? There is a <a href="http://getfirebug.com/wiki/index.php/Console_API" rel="noreferrer">console documentation for Firebug</a>, but where can I find the console documentation for Safari/WebKit?</p>
| [
{
"answer_id": 55653,
"author": "georgebrock",
"author_id": 5168,
"author_profile": "https://Stackoverflow.com/users/5168",
"pm_score": 7,
"selected": true,
"text": "console.log() console.error() console.warn() console.info() console.count() console.debug() console.profileEnd() console.t... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5295/"
] |
55,641 | <p>What is the best practice of Unicode processing in C++?</p>
| [
{
"answer_id": 55650,
"author": "hazzen",
"author_id": 5066,
"author_profile": "https://Stackoverflow.com/users/5066",
"pm_score": 7,
"selected": true,
"text": "is_alpha string"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/55641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5694/"
] |
55,677 | <p>What's the simplest way to add a click event handler to a canvas element that will return the x and y coordinates of the click (relative to the canvas element)?</p>
<p>No legacy browser compatibility required, Safari, Opera and Firefox will do.</p>
| [
{
"answer_id": 55723,
"author": "Brian Gianforcaro",
"author_id": 3415,
"author_profile": "https://Stackoverflow.com/users/3415",
"pm_score": -1,
"selected": false,
"text": " function onMouseClick(e) {\n var x = e.clientX;\n var y = e.clientY;\n }\n var canvas = dojo.byId(ca... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3715/"
] |
55,692 | <p>My background is primarily as a Java Developer, but lately I have been doing some work in .NET. So I have been trying to do some simple projects at home to get better at working with .NET. I have been able to transfer much of my Java experience into working with .NET (specifically C#), but the only thing that has re... | [
{
"answer_id": 55708,
"author": "John Calsbeek",
"author_id": 5696,
"author_profile": "https://Stackoverflow.com/users/5696",
"pm_score": 1,
"selected": false,
"text": "mycompany_getcurrentdate MYCGetCurrentDate java.lang.primitivewrapper.numeric.Integer"
},
{
"answer_id": 58265,... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3340/"
] |
55,709 | <p>I am building a java server that needs to scale. One of the servlets will be serving images stored in Amazon S3.</p>
<p>Recently under load, I ran out of memory in my VM and it was after I added the code to serve the images so I'm pretty sure that streaming larger servlet responses is causing my troubles.</p>
<p>M... | [
{
"answer_id": 55788,
"author": "John Vasileff",
"author_id": 5076,
"author_profile": "https://Stackoverflow.com/users/5076",
"pm_score": 7,
"selected": true,
"text": "ServletOutputStream out = response.getOutputStream();\nInputStream in = [ code to get source input stream ];\nString mim... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4974/"
] |
55,713 | <p>In effect, if I have a <code>class c</code> and instances of <code>$c1</code> and <code>$c2</code>
which might have different private variable amounts but all their public methods return the same values I would like to be able to check that <code>$c1 == $c2?</code></p>
<p>Does anyone know an easy way to do this?</... | [
{
"answer_id": 55731,
"author": "Rushi",
"author_id": 3983,
"author_profile": "https://Stackoverflow.com/users/3983",
"pm_score": 1,
"selected": false,
"text": "class cat {\n private $name;\n public function __contruct($catname) {\n $this->name = $catname;\n }\n\n publ... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
55,720 | <p>Here's my first question at SO.</p>
<p>I have a internal application for my company which I've been recently ask to maintain. The applications is built in PHP and its fairly well coded (OO, DB Abstraction, Smarty) nothing WTF-ish. </p>
<p>The problem is the applications is <strong>very slow</strong>.</p>
<p>How d... | [
{
"answer_id": 56754,
"author": "Gary Richardson",
"author_id": 2506,
"author_profile": "https://Stackoverflow.com/users/2506",
"pm_score": 0,
"selected": false,
"text": "$object->setMarker(\"name\");"
},
{
"answer_id": 15717173,
"author": "Fedir RYKHTIK",
"author_id": 63... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3983/"
] |
55,729 | <p>How often should you use git-gc? </p>
<p>The <a href="http://www.kernel.org/pub/software/scm/git/docs/git-gc.html" rel="noreferrer">manual page</a> simply says:</p>
<blockquote>
<p>Users are encouraged to run this task on a regular basis within each repository to maintain good disk space utilization and good op... | [
{
"answer_id": 18541285,
"author": "cregox",
"author_id": 274502,
"author_profile": "https://Stackoverflow.com/users/274502",
"pm_score": 4,
"selected": false,
"text": "This repository currently has approximately 1500 loose objects.\n $ git count-objects\n .git/objects tcl"
},
{
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
55,735 | <p>I want to write a word addin that does some computations and updates some ui whenever the user types something or moves the current insertion point. From looking at the MSDN docs, I don't see any obvious way such as an TextTyped event on the document or application objects.</p>
<p>Does anyone know if this is possib... | [
{
"answer_id": 1033966,
"author": "Sebastian Bender",
"author_id": 96671,
"author_profile": "https://Stackoverflow.com/users/96671",
"pm_score": 2,
"selected": false,
"text": "public class AutoBrandSmartTag : SmartTag\n{\n Microsoft.Office.Interop.Word.Document cDoc;\n\n Microsoft.... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2925/"
] |
55,754 | <p>What is the best way, using Bash, to rename files in the form:</p>
<pre><code>(foo1, foo2, ..., foo1300, ..., fooN)
</code></pre>
<p>With zero-padded file names:</p>
<pre><code>(foo00001, foo00002, ..., foo01300, ..., fooN)
</code></pre>
| [
{
"answer_id": 55775,
"author": "dF.",
"author_id": 3002,
"author_profile": "https://Stackoverflow.com/users/3002",
"pm_score": 2,
"selected": false,
"text": "for ((i=1; i<=N; i++)) ; do mv foo$i `printf foo%05d $i` ; done\n"
},
{
"answer_id": 55778,
"author": "amrox",
"a... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3020/"
] |
55,757 | <p>I have <code>buy.php</code> with a <strong>form</strong> where you enter <em>items, quantity, shipping data, etc.</em> </p>
<p>When you click the <strong>Submit button</strong>, it posts back to <code>buy.php</code> <code>($_SERVER['PHP_SELF'])</code> and does some data validation. </p>
<p>If there are fields mis... | [
{
"answer_id": 11230741,
"author": "FstaRocka",
"author_id": 1486271,
"author_profile": "https://Stackoverflow.com/users/1486271",
"pm_score": 1,
"selected": false,
"text": "redir redir ?m &m page.php?m elseif if (isset($_GET['m'])) {\n echo 'order placed.';\n}\nelse {\n //...\n}\n sub... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2542/"
] |
55,797 | <p>A Visual Studio 2008 project in one solution needs to reference a WCF service in another VS 2008 solution on the same development machine. Does anybody have any suggestions on how best to accomplish this?</p>
| [
{
"answer_id": 11230741,
"author": "FstaRocka",
"author_id": 1486271,
"author_profile": "https://Stackoverflow.com/users/1486271",
"pm_score": 1,
"selected": false,
"text": "redir redir ?m &m page.php?m elseif if (isset($_GET['m'])) {\n echo 'order placed.';\n}\nelse {\n //...\n}\n sub... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
55,828 | <p>Is there a simple method of parsing XML files in C#? If so, what?</p>
| [
{
"answer_id": 55831,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stackoverflow.com/users/1196",
"pm_score": 3,
"selected": false,
"text": "XmlReader XPathNavigator"
},
{
"answer_id": 55834,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_pr... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4361/"
] |
55,843 | <p>I am currently using Linq to NHibernate (although that is not an issue with regards to this question) to execute queries against my database and I want to be able to test whether the current <code>IQueryable</code> result instance has been executed or not.</p>
<p>The debugger knows that my <code>IQueryable</code> h... | [
{
"answer_id": 81740,
"author": "Mark Pattison",
"author_id": 15519,
"author_profile": "https://Stackoverflow.com/users/15519",
"pm_score": 0,
"selected": false,
"text": "DataContext.Log = Console.Out .ToList"
},
{
"answer_id": 85732,
"author": "dcstraw",
"author_id": 103... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4884/"
] |
55,855 | <p>I am following the <a href="http://blogs.msdn.com/johngossman/archive/2005/10/08/478683.aspx" rel="noreferrer">M-V-VM</a> pattern for my WPF UI. I would like to hook up a command to the TextChanged event of a TextBox to a command that is in my ViewModel class. The only way I can conceive of completing this task is t... | [
{
"answer_id": 56081,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 2,
"selected": false,
"text": "private void _textBox_TextChanged(object sender, EventArgs e)\n{\n MyCommand.Execute(null);\n}\n TextBox"
},
{
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/708/"
] |
55,859 | <p>In C++, I'm trying to catch all types of exceptions in one catch (like <code>catch(Exception)</code> in C#). How is it done? And what's more, how can one catch divide-by-zero exceptions?</p>
| [
{
"answer_id": 55863,
"author": "Ash",
"author_id": 5023,
"author_profile": "https://Stackoverflow.com/users/5023",
"pm_score": 6,
"selected": true,
"text": "catch (...)\n{\n // Handle exceptions not covered.\n}\n"
},
{
"answer_id": 55865,
"author": "Adam Pierce",
"auth... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/195/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.