qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
154,469 | <p>A feature of C++ is the ability to create unnamed (anonymous) namespaces, like so:</p>
<pre><code>namespace {
int cannotAccessOutsideThisFile() { ... }
} // namespace
</code></pre>
<p>You would think that such a feature would be useless -- since you can't specify the name of the namespace, it's impossible to a... | [
{
"answer_id": 154482,
"author": "luke",
"author_id": 16434,
"author_profile": "https://Stackoverflow.com/users/16434",
"pm_score": 10,
"selected": true,
"text": "static static namespace namespace"
},
{
"answer_id": 155734,
"author": "Community",
"author_id": -1,
"aut... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12193/"
] |
154,483 | <p>I would like to do some condition formatting of strings. I know that you can do some conditional formatting of integers and floats as follows:</p>
<pre><code>Int32 i = 0;
i.ToString("$#,##0.00;($#,##0.00);Zero");
</code></pre>
<p>The above code would result in one of three formats if the variable is positive, neg... | [
{
"answer_id": 154487,
"author": "Kon",
"author_id": 22303,
"author_profile": "https://Stackoverflow.com/users/22303",
"pm_score": 1,
"selected": false,
"text": "formatString = (items.Count > 0) ? \"Items: {0}; Values: {1}\" : \"Values: {1}\";\n"
},
{
"answer_id": 154492,
"au... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4066/"
] |
154,485 | <p>The title pretty much says it all. I want to create a SqlConnection and then check that connection without opening a database, cause at that point I don't know yet where will I connect to. Is it possible to do that?
The SqlConnection class has a 'Open' member which tries to open the database you'd set in the Databa... | [
{
"answer_id": 154527,
"author": "Gulzar Nazim",
"author_id": 4337,
"author_profile": "https://Stackoverflow.com/users/4337",
"pm_score": 2,
"selected": false,
"text": "SELECT HAS_DBACCESS('Northwind');\n SELECT [Name] as DatabaseName from master.dbo.sysdatabases\nWHERE ISNULL(HAS_DBACCE... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23893/"
] |
154,489 | <p>I've been trying this a few different ways, but I'm reaching the conclusion that it can't be done. It's a language feature I've enjoyed from other languages in the past. Is it just something I should just write off?</p>
| [
{
"answer_id": 154524,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "Encoding x = Encoding[28591]; // Equivalent to Encoding.GetEncoding(28591)\nEncoding y = Encoding[\"Foo\"]; // Equivalent... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5469/"
] |
154,501 | <p>I'm looking for a program that I can install on a Mac that will tell me how many bytes I download each day, and store that info in such a way that I could later view the results.</p>
<p>Limiting by ports (80, 443, 21, 22) would be awesome as well.</p>
<p>Does such a thing exist?</p>
| [
{
"answer_id": 155878,
"author": "mike511",
"author_id": 9593,
"author_profile": "https://Stackoverflow.com/users/9593",
"pm_score": 0,
"selected": false,
"text": "netstat -ib\n"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/154501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12930/"
] |
154,502 | <p>I'm having issues with color matching css background colors with colors in images on the same html page. What gives?</p>
| [
{
"answer_id": 154512,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": true,
"text": "pngcrush"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/154502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4489/"
] |
154,533 | <p>What is the best way to bind WPF properties to ApplicationSettings in C#? Is there an automatic way like in a Windows Forms Application? Similar to <a href="https://stackoverflow.com/questions/18421/best-way-to-bind-windows-forms-properties-to-applicationsettings-in-c">this question</a>, how (and is it possible to)... | [
{
"answer_id": 155585,
"author": "Alan Le",
"author_id": 1133,
"author_profile": "https://Stackoverflow.com/users/1133",
"pm_score": 2,
"selected": false,
"text": " public bool PlaySounds\n {\n get { return (bool)GetValue(PlaySoundsProperty); }\n set { SetValue(PlaySo... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3798/"
] |
154,535 | <p>I have used Photoshop CS2's "Save for Web" feature to create a table of images for my site layout.</p>
<p>This HTML appears fine in a web browser, however when imported into Visual Studio and viewed in the site designer, the metrics are wrong and there are horizontal gaps between images (table cells).</p>
<p>The o... | [
{
"answer_id": 155585,
"author": "Alan Le",
"author_id": 1133,
"author_profile": "https://Stackoverflow.com/users/1133",
"pm_score": 2,
"selected": false,
"text": " public bool PlaySounds\n {\n get { return (bool)GetValue(PlaySoundsProperty); }\n set { SetValue(PlaySo... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/414107/"
] |
154,536 | <p>Does anyone know of any good C++ code that does this?</p>
| [
{
"answer_id": 4823686,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "string urlDecode(string &SRC) {\n string ret;\n char ch;\n int i, ii;\n for (i=0; i<SRC.length(); i++) {\n ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2033811/"
] |
154,538 | <p>Long story short, I need to put some text in my Flex application and I don't want users to be able to copy. I was going to use a label, but apparently labels do not support text wrapping. Can I make it so that users cannot select text in a Flex Text control?</p>
<p>Thanks.</p>
| [
{
"answer_id": 154848,
"author": "Brandon",
"author_id": 23133,
"author_profile": "https://Stackoverflow.com/users/23133",
"pm_score": 0,
"selected": false,
"text": "print(\"\n <mx:Text enabled=\"false\" disabledColor=\"0x000000\" text=Text\"/>\n\");\n"
},
{
"answer_id": 1... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
154,543 | <p>If you create a panel on a form and set it to Dock=Top and drop another panel and set its Dock=Fill, it may fill the entire form, ignoring the first panel. Changing the tab order does nothing.</p>
| [
{
"answer_id": 28459277,
"author": "Pandichie Anton-Valentin",
"author_id": 1561462,
"author_profile": "https://Stackoverflow.com/users/1561462",
"pm_score": 3,
"selected": false,
"text": "DockStyle.Fill DockStyle.Fill ComboBox cb = new ComboBox();\ncb.Dock = DockStyle.Top;\n\nGridView ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2277/"
] |
154,551 | <p>Let's say that a class has a <code>public int counter</code> field that is accessed by multiple threads. This <code>int</code> is only incremented or decremented.</p>
<p>To increment this field, which approach should be used, and why?</p>
<ul>
<li><code>lock(this.locker) this.counter++;</code>,</li>
<li><code>Inte... | [
{
"answer_id": 154582,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": false,
"text": "Interlocked volatile"
},
{
"answer_id": 154590,
"author": "Michael Damatov",
"author_id": 23372,
"au... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11574/"
] |
154,554 | <p>I'm writing a simple web service using Microsoft Visual Web Developer 2005 (Express Edition), and the dynamically generated WSDL has a minOccurs="0" for all the parameters. </p>
<p>How do I get minOccurs="1" for the required parameters without resorting to creating a static WSDL file?</p>
<p>I need to do this <str... | [
{
"answer_id": 189317,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 2,
"selected": false,
"text": "XmlElement(IsNullable = true) using System.Xml.Serialization;\n\n[WebMethod]\npublic string MyService([XmlElement(IsNullable =... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23899/"
] |
154,577 | <p>In terms of Java, when someone asks: </p>
<blockquote>
<p>what is polymorphism?</p>
</blockquote>
<p>Would <strong>overloading</strong> or <strong>overriding</strong> be an acceptable answer?</p>
<p>I think there is a bit more to it than that. </p>
<p><em>IF you had a abstract base class that defined a method ... | [
{
"answer_id": 154594,
"author": "Clyde",
"author_id": 945,
"author_profile": "https://Stackoverflow.com/users/945",
"pm_score": 2,
"selected": false,
"text": "public int DoSomething(int objectId) { ... }\npublic int DoSomething(string objectName) { ... }\n"
},
{
"answer_id": 154... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
154,597 | <p>Note, I realize that this has been addressed <a href="https://stackoverflow.com/questions/944/unhandled-exception-handler-in-net-11">here</a>. That post discusses exception handling in .NET 1.1 while implying that there is a better solution for >.NET 2.0 so this question is specifically about the more recent .NET v... | [
{
"answer_id": 154656,
"author": "Duncan Smart",
"author_id": 1278,
"author_profile": "https://Stackoverflow.com/users/1278",
"pm_score": 1,
"selected": false,
"text": "static void Main()\n{\n Application.ThreadException += Application_ThreadException;\n //...\n }\n\n static void A... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
154,598 | <p>IO.popen() and system() in Ruby is sorely lacking several useful features, such as:</p>
<ul>
<li>obtaining the return value of the function</li>
<li>capturing both stdout and stderr (seperately and merged)</li>
<li>running without spawning an extra cmd.exe or /bin/sh process</li>
</ul>
<p>Python has a module "subp... | [
{
"answer_id": 154703,
"author": "Priit",
"author_id": 22964,
"author_profile": "https://Stackoverflow.com/users/22964",
"pm_score": 3,
"selected": false,
"text": "$?.exitstatus system 'command 2>&1'"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/154598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13051/"
] |
154,625 | <p>I've noticed that sometimes wrapper scripts will use <code>${1:+"$@"}</code> for the parameters rather than just <code>"$@"</code>.</p>
<p>For example, <a href="http://svn.macosforge.org/repository/macports/trunk/dports/editors/vim-app/files/gvim.sh" rel="noreferrer">http://svn.macosforge.org/repository/macports/tr... | [
{
"answer_id": 154637,
"author": "JesperE",
"author_id": 13051,
"author_profile": "https://Stackoverflow.com/users/13051",
"pm_score": 2,
"selected": false,
"text": " ${parameter:+word}\n Use Alternate Value. If parameter is null or unset, nothing is\n substituted, ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
154,630 | <p>Other than <a href="https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wall" rel="nofollow noreferrer">-Wall</a>, what other warnings have people found useful?</p>
<p><em><a href="http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Warning-Options.html" rel="nofollow noreferrer">Options to Request or Suppress War... | [
{
"answer_id": 154851,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 6,
"selected": false,
"text": "gcc -m64 -std=c99 -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-qual \\\n -Wstrict-prototypes -Wmissing-prot... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9831/"
] |
154,636 | <p>At the moment we use <a href="http://www.hsqldb.org/" rel="noreferrer">HSQLDB</a> as an embedded database, but we search for a database with less memory footprint as the data volume grows.</p>
<p><a href="http://developers.sun.com/javadb/" rel="noreferrer">Derby / JavaDB</a> is not an option at the moment because i... | [
{
"answer_id": 155237,
"author": "anjanb",
"author_id": 11142,
"author_profile": "https://Stackoverflow.com/users/11142",
"pm_score": 6,
"selected": true,
"text": "import org.h2.tools.Server;\n...\n// start the TCP Server\nServer server = Server.createTcpServer(args).start();\n...\n// st... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13209/"
] |
154,652 | <p>Is anyone out there still using DataFlex? If so, what are you favorite tips and tricks for this venerable 4GL?</p>
| [
{
"answer_id": 155555,
"author": "seanyboy",
"author_id": 1726,
"author_profile": "https://Stackoverflow.com/users/1726",
"pm_score": 3,
"selected": true,
"text": "clear orders\nmove const.complete to orders.status\nfind ge orders by index.2\nrepeat\n if orders.status ne const.complet... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9345/"
] |
154,655 | <p>We have a VXML project that a 3rd party parses to provide us with a phone navigation system. We require them to enter an id code to leave a message, which is later reviewed by our company.</p>
<p>We currently have this working as follows:</p>
<pre><code>Response.Cache.SetCacheability(HttpCacheability.NoCache);
Str... | [
{
"answer_id": 154684,
"author": "Duncan Smart",
"author_id": 1278,
"author_profile": "https://Stackoverflow.com/users/1278",
"pm_score": 2,
"selected": true,
"text": "Output OutputStream XmlTextWriter XML_Writer = new XmlTextWriter(HttpContext.Current.Response.OutputStream, HttpContext.... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23902/"
] |
154,661 | <p>Due to the legacy nature of some of our code, we're still using Microsoft Visual 6.0 (SP6). When I attach to a running process to debug it for the first time, it has no knowledge of where the source files are located when I break into the process. It therefore asks me to navigate to the appropriate directory in my s... | [
{
"answer_id": 173240,
"author": "Jason Etheridge",
"author_id": 2193,
"author_profile": "https://Stackoverflow.com/users/2193",
"pm_score": 0,
"selected": false,
"text": "REGEDIT4\n\n[HKEY_CURRENT_USER\\Software\\Microsoft\\Devstudio\\6.0\\Build\nSystem\\Components\\Platforms\\Win32 (x8... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2193/"
] |
154,672 | <p>I asked a question about Lua perfromance, and on of the <a href="https://stackoverflow.com/questions/124455/how-do-you-pre-size-an-array-in-lua#152894">responses</a> asked:</p>
<blockquote>
<p>Have you studied general tips for keeping Lua performance high? i.e. know table creation and rather reuse a table than cr... | [
{
"answer_id": 12865406,
"author": "dualed",
"author_id": 1244588,
"author_profile": "https://Stackoverflow.com/users/1244588",
"pm_score": 7,
"selected": true,
"text": "do\n x = gFoo + gFoo;\nend\ndo -- this actually performs better.\n local lFoo = gFoo;\n x = lFoo + lFoo;\nend\n loc... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438/"
] |
154,680 | <p>How would I create the equivalent Linq To Objects query?</p>
<pre><code>SELECT MIN(CASE WHEN p.type = "In" THEN p.PunchTime ELSE NULL END ) AS EarliestIn,
MAX(CASE WHEN p.type = "Out" THEN p.PunchTime ELSE NULL END ) AS LatestOUt
FROM Punches p
</code></pre>
| [
{
"answer_id": 155059,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 2,
"selected": false,
"text": " List<int> myInts = new List<int>() { 1, 4, 2, 0, 3 };\n var y = myInts.Aggregate(\n new { Min = int.MaxValue, Ma... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6819/"
] |
154,686 | <p>I've got a stock Debian Etch system, using Exim4. The domains are mostly local but there are some that are remote. To handle the delivery of remote mail I use the Debian configuration file:</p>
<pre><code> /etc/exim4/hubbed_hosts
</code></pre>
<p>This file lists the domain names, and remote MX machines to delive... | [
{
"answer_id": 154711,
"author": "manicmethod",
"author_id": 12098,
"author_profile": "https://Stackoverflow.com/users/12098",
"pm_score": 1,
"selected": false,
"text": "remote_hub_2525:\ndriver = smtp\nport = 2525\n non_standard_hub:\ndriver = manualroute\ndomains = example.org : exampl... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
154,697 | <p>I'm trying to retrieve numeric values from a <code>DataGridView</code>. So far, the only way I've found is to retrieve them as a string and convert them to numeric.</p>
<pre><code>Convert.ToDouble(MyGrid.SelectedRows[0].Cells[0].Value.ToString());
</code></pre>
<p>There must be an easier way. The cell is originall... | [
{
"answer_id": 154825,
"author": "JamesSugrue",
"author_id": 1075,
"author_profile": "https://Stackoverflow.com/users/1075",
"pm_score": 0,
"selected": false,
"text": "Convert.ToDouble ToString() TryParse"
},
{
"answer_id": 154945,
"author": "Vivek",
"author_id": 7418,
... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
154,698 | <p>In java, I could do this with the 'final' keyword. I don't see 'final' in C#. Is there a substitute?</p>
| [
{
"answer_id": 154699,
"author": "Kilhoffer",
"author_id": 5469,
"author_profile": "https://Stackoverflow.com/users/5469",
"pm_score": 6,
"selected": true,
"text": "sealed final"
},
{
"answer_id": 154770,
"author": "Nasir",
"author_id": 16522,
"author_profile": "https... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18931/"
] |
154,702 | <p>We are using the MVC framework (release 5) and the CrystalReportViewer control to show our reports. I cannot get any of the buttons at the top of the report viewer control to work.</p>
<p>If I'm working with the report 'HoursSummary'. If I hover over any of the buttons on the report viewer in IE the displayed lin... | [
{
"answer_id": 154699,
"author": "Kilhoffer",
"author_id": 5469,
"author_profile": "https://Stackoverflow.com/users/5469",
"pm_score": 6,
"selected": true,
"text": "sealed final"
},
{
"answer_id": 154770,
"author": "Nasir",
"author_id": 16522,
"author_profile": "https... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7561/"
] |
154,706 | <p>Unfortunately, there seems to be no string.Split(string separator), only string.Split(char speparator).</p>
<p>I want to break up my string based on a multi-character separator, a la VB6. Is there an easy (that is, not by referencing Microsoft.VisualBasic or having to learn RegExes) way to do this in c#?</p>
<p>E... | [
{
"answer_id": 154716,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 1,
"selected": false,
"text": ".Split(string[] separator, StringSplitOptions options) \n.Split(string[] separator, int count, StringSplitOptions opt... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/549/"
] |
154,707 | <p>I want to store a large number of sound files in a database, but I don't know if it is a good practice. I would like to know the pros and cons of doing it in this way.</p>
<p>I also thought on the possibility to have "links" to those files, but maybe this will carry more problems than solutions. Any experience in t... | [
{
"answer_id": 154793,
"author": "CMPalmer",
"author_id": 14894,
"author_profile": "https://Stackoverflow.com/users/14894",
"pm_score": 3,
"selected": false,
"text": "C:\\MyProgram\\Data\\Sounds\\X\\XYZ.Wav\n X\\XYZ.Wav\n"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/154707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19689/"
] |
154,708 | <p>Ok, Regex wizards. I want to be able to search through my logfile and find any sessions with the word 'error' in it and then return the entire session log entry.</p>
<p>I know I can do this with a string/array but I'd like to learn how to do it with Regex but here's the question. If I decide to do this with Regex ... | [
{
"answer_id": 154743,
"author": "Kyle",
"author_id": 2237619,
"author_profile": "https://Stackoverflow.com/users/2237619",
"pm_score": 3,
"selected": false,
"text": "\nperl -ne 'BEGIN{$/=\"\"} print if /error/i' < logfile\n"
},
{
"answer_id": 154886,
"author": "moritz",
... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/730/"
] |
154,718 | <p>My web application sends email fairly often, and it sends 3 kinds of emails: initiated by user, in response to an event in the system, and in automatic response to an email received by the application.</p>
<p>I would like to make sure that the third type of email does not get stuck in an endless loop of auto-respon... | [
{
"answer_id": 154794,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 5,
"selected": true,
"text": "Return-Path: <>\n Return-Path"
},
{
"answer_id": 301958,
"author": "user38936",
"author_id": 38936,
"author_... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3140/"
] |
154,722 | <p>I've recently come across a feature of doing a large query in oracle, where changing one thing resulted in a query that used to take 10 minutes taking 3 hours.</p>
<p>To briefly summarise, I store a lot of coordinates in the database, with each coordinate having a probability. I then want to 'bin' these coordinates... | [
{
"answer_id": 156072,
"author": "David Aldridge",
"author_id": 6742,
"author_profile": "https://Stackoverflow.com/users/6742",
"pm_score": 2,
"selected": false,
"text": "explain plan for\nselect x,y,sum(probability) from .... group by x,y\n/\n\nselect * from table(dbms_xplan.display)\n/... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5932/"
] |
154,724 | <p>The use of weak references is something that I've never seen an implementation of so I'm trying to figure out what the use case for them is and how the implementation would work. When have you needed to use a <code>WeakHashMap</code> or <code>WeakReference</code> and how was it used?</p>
| [
{
"answer_id": 155312,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 3,
"selected": false,
"text": "private static IdMutexProvider MUTEX_PROVIDER = new IdMutexProvider();\n\npublic void performTask(String resourceId) {\n I... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12662/"
] |
154,730 | <p>I am supposed to provide my users a really simple way of capturing video clips out of my OpenGL application's main window. I am thinking of adding buttons and/or keyboard shortcuts for starting and stopping the capture; when starting, I could ask for a filename and other options, if any. It has to run in Windows (XP... | [
{
"answer_id": 155043,
"author": "Reunanen",
"author_id": 19254,
"author_profile": "https://Stackoverflow.com/users/19254",
"pm_score": 1,
"selected": false,
"text": "glReadPixels"
},
{
"answer_id": 18703223,
"author": "tommy chheng",
"author_id": 337493,
"author_prof... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19254/"
] |
154,754 | <p>I would find out the <em>floppy inserted state</em>:</p>
<ul>
<li>no floppy inserted</li>
<li>unformatted floppy inserted</li>
<li>formatted floppy inserted</li>
</ul>
<p>Can this determined using "WMI" in the System.Management namespace?</p>
<p>If so, can I generate events when the <em>floppy inserted state</em>... | [
{
"answer_id": 163970,
"author": "Bob King",
"author_id": 6897,
"author_profile": "https://Stackoverflow.com/users/6897",
"pm_score": 2,
"selected": false,
"text": "strComputer = \".\"\nSet objWMIService = GetObject( _\n \"winmgmts:\\\\\" & strComputer & \"\\root\\cimv2\")\nSet colIte... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14841/"
] |
154,762 | <p>I need to create XML in Perl. From what I read, <a href="http://search.cpan.org/dist/XML-LibXML" rel="noreferrer">XML::LibXML</a> is great for parsing and using XML that comes from somewhere else. Does anyone have any suggestions for an XML Writer? Is <a href="http://search.cpan.org/dist/XML-Writer" rel="noreferr... | [
{
"answer_id": 155010,
"author": "Yanick",
"author_id": 10356,
"author_profile": "https://Stackoverflow.com/users/10356",
"pm_score": 6,
"selected": true,
"text": "use XML::Writer;\n\nmy $writer = new XML::Writer(); # will write to stdout\n$writer->startTag(\"greeting\", \n ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4257/"
] |
154,791 | <p>I'm writing a Java Tree in which tree nodes could have children that take a long time to compute (in this case, it's a file system, where there may be network timeouts that prevent getting a list of files from an attached drive).</p>
<p>The problem I'm finding is this:</p>
<ol>
<li><p><code>getChildCount()</code> ... | [
{
"answer_id": 155063,
"author": "Aleksandar Dimitrov",
"author_id": 11797,
"author_profile": "https://Stackoverflow.com/users/11797",
"pm_score": 0,
"selected": false,
"text": "n0 cc n1 n1.cc + cc++ cc hasChildren getChildCount TreeNode hasHadChildren isVirgin"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/154791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2197/"
] |
154,837 | <p>We have an "engine" that loads dlls dynamically (whatever is located in a certain directory) and calls Workflow classes from them by way of reflection.</p>
<p>We now have some new Workflows that require access to a database, so I figured that I would put a config file in the dll directory.</p>
<p>But for some reas... | [
{
"answer_id": 154914,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": false,
"text": "<applicationSettings>\n <MyLibrary.My.MySettings>\n <setting name=\"SomeSetting\" serializeAs=\"String\">\n ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23597/"
] |
154,842 | <p>I posted an answer to <a href="https://stackoverflow.com/questions/154706">this question</a>, including a very short rant at the end about how String.Split() should accept IEnumerable<string> rather than string[]. </p>
<p>That got me thinking. What if the base Object class from which everything else inherits pr... | [
{
"answer_id": 154932,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 2,
"selected": false,
"text": "public static IEnumerable<object> ToEnumerable(this object someObject)\n{\n return System.Linq.Enumerable.Repeat(someObject... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3043/"
] |
154,845 | <p>I have a DataRow and I am getting one of the elements which is a Amount with a dollar sign. I am calling a toString on it. Is there another method I can call on it to remove the dollar sign if present. </p>
<p><strong>So something like:</strong></p>
<p><em>dr.ToString.Substring(1, dr.ToString.Length);</em></p>
<p... | [
{
"answer_id": 154857,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 5,
"selected": true,
"text": "Convert.ToString(dr(columnName)).Replace(\"$\", String.Empty)\n"
},
{
"answer_id": 154956,
"author": "Shaun ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
154,846 | <p>I'm looking for a way to create an online form that will update an Access database that has just a few tables. Does anyone know of a simple solution for this?</p>
| [
{
"answer_id": 154857,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 5,
"selected": true,
"text": "Convert.ToString(dr(columnName)).Replace(\"$\", String.Empty)\n"
},
{
"answer_id": 154956,
"author": "Shaun ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6958/"
] |
154,853 | <p>I have a folder, <code>c:\websites\test</code>, and it contains folders and files that were checked out from a repository that no longer exists. How do I get Subversion to stop tracking that folder and any of the subfolders and files? </p>
<p>I know I could simply delete the <code>.svn</code> folder, but there are ... | [
{
"answer_id": 154860,
"author": "pkaeding",
"author_id": 4257,
"author_profile": "https://Stackoverflow.com/users/4257",
"pm_score": 7,
"selected": false,
"text": "svn export /path/to/old/working/copy /path/to/plain/code\n"
},
{
"answer_id": 154874,
"author": "1800 INFORMATI... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
154,862 | <p>How can I convert a JavaScript string value to be in all lower case letters?</p>
<p>Example: <code>"Your Name"</code> to <code>"your name"</code></p>
| [
{
"answer_id": 154882,
"author": "pkaeding",
"author_id": 4257,
"author_profile": "https://Stackoverflow.com/users/4257",
"pm_score": 5,
"selected": false,
"text": "toLowerCase() \"Foo\".toLowerCase();\ndocument.getElementById('myField').value.toLowerCase();\n"
},
{
"answer_id": ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5440/"
] |
154,897 | <p>Did you ever had a bug in your code, you could not resolve? I hope I'm not the only one out there, who made this experience ...</p>
<p>There exist some classes of bugs, that are very hard to track down:</p>
<ul>
<li><strong>timing-related bugs</strong> (that occur during inter-process-communication for example)</l... | [
{
"answer_id": 154931,
"author": "camflan",
"author_id": 22445,
"author_profile": "https://Stackoverflow.com/users/22445",
"pm_score": 1,
"selected": false,
"text": ": ; retab!"
},
{
"answer_id": 154990,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2012356/"
] |
154,900 | <p>I was wrestling with some Perl that uses hash references.</p>
<p>In the end it turned out that my problem was the line:</p>
<pre><code>$myhash{$key} |= {};
</code></pre>
<p>That is, "assign $myhash{$key} a reference to an empty hash, unless it already has a value".</p>
<p>Dereferencing this and trying to use it ... | [
{
"answer_id": 154916,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 2,
"selected": false,
"text": "my %myhash;\n$myhash{$key} ||= {};\n my my ||= |="
},
{
"answer_id": 154984,
"author": "Michael Carman",
"au... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7512/"
] |
154,902 | <p>I wrote a program in C with Ubuntu Linux and now I need to port it over to a UNIX machine (or what I believe to be a UNIX box). It compiles fine on my Ubuntu with GCC but when I try to compile it with GCC on the UNIX box, it gives this error:</p>
<pre><code>a.c: In function `goUpDir':
a.c:44: parse error before `c... | [
{
"answer_id": 154937,
"author": "JesperE",
"author_id": 13051,
"author_profile": "https://Stackoverflow.com/users/13051",
"pm_score": 0,
"selected": false,
"text": "gcc --version\n"
},
{
"answer_id": 154943,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profil... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
154,964 | <p>I have a question regarding the two additional columns (timeCreated, timeLastUpdated) for each record that we see in many solutions. My question: Is there a better alternative?</p>
<p>Scenario: You have a huge DB (in terms of tables, not records), and then the customer comes and asks you to add "timestamping" to 80... | [
{
"answer_id": 154997,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 5,
"selected": true,
"text": "Change Data Capture"
},
{
"answer_id": 155015,
"author": "davetron5000",
"author_id": 3029,
"author... | 2008/09/30 | [
"https://Stackoverflow.com/questions/154964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23920/"
] |
155,022 | <p>What is the easiest way to find out how much memory an object uses in .NET?</p>
<p>Preferably without having to resort to a third party tool. Marshal.SizeOf or the sizeof operator look useful but only work with a restricted range of types.</p>
<p>Some related posts:</p>
<ul>
<li><a href="https://stackoverflow.co... | [
{
"answer_id": 155048,
"author": "Mladen",
"author_id": 21404,
"author_profile": "https://Stackoverflow.com/users/21404",
"pm_score": 1,
"selected": true,
"text": "int startMem = GC.GetTotalMemory(true);\nYourClass c = new YourClass();\nint endMem = GC.GetTotalMemory(true);\nint usedMeme... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15985/"
] |
155,054 | <p>Is it possible to define a timestamp column in a MySQL table that will automatically be updated every time a field in the same row is modified? Ideally this column should initially be set to the time a row was inserted.</p>
<p>Cheers,
Don</p>
| [
{
"answer_id": 155096,
"author": "quickcel",
"author_id": 9129,
"author_profile": "https://Stackoverflow.com/users/9129",
"pm_score": 6,
"selected": false,
"text": "ALTER TABLE `table1` ADD `lastUpdated` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ;\n"
},
... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
155,071 | <p>Do you have a simple debounce routine handy to deal with a single switch input?</p>
<p>This is a simple bare metal system without any OS.</p>
<p>I would like to avoid a looping construct with a specific count, as the processor speed might fluctuate.</p>
| [
{
"answer_id": 155137,
"author": "GEOCHET",
"author_id": 5640,
"author_profile": "https://Stackoverflow.com/users/5640",
"pm_score": 5,
"selected": true,
"text": "#define CHECK_MSEC 5 // Read hardware every 5 msec\n#define PRESS_MSEC 10 // Stable time before registering pressed\n#define ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10703/"
] |
155,074 | <p>I'm a newbie when it comes to SQL. When creating a stored procedure with parameters as such:</p>
<pre><code>@executed bit,
@failure bit,
@success bit,
@testID int,
@time float = 0,
@name varchar(200) = '',
@description varchar(200) =... | [
{
"answer_id": 155082,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "cmd.CommandText = \"insert_test_result\";\ncmd.CommandType = CommandType.StoredProcedure;\n foreach (IDataParamete... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13688/"
] |
155,080 | <p>I can get rootmenuitemlefthtml and rootmenuitemrighthtml to emit but not separator. Tried CDATA wrapping and setting SeparatorCssClass. I just want pipes between root menu items.</p>
<pre><code><dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU" Separator="<![CDATA[|]]>" SeparatorCssClass="MainMenu_Separat... | [
{
"answer_id": 391474,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<dnn:SOLPARTMENU runat=\"server\" ID=\"dnnHorizontalSolpart\" ProviderName=\"SolpartMenuNavigationProvider\"\n ClearDefault... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4489/"
] |
155,084 | <p>I'm about to push out a website soon and so I've gotten in the last stages. Time to optimize the baby! The website performs pretty good overall, with an average framerate of 32fps. But at some heavy animation parts it likes to drop a couple of frames to about 22fps. Which is not that horrible. But I'm tweaking it as... | [
{
"answer_id": 155182,
"author": "Iain",
"author_id": 11911,
"author_profile": "https://Stackoverflow.com/users/11911",
"pm_score": 2,
"selected": false,
"text": "cacheAsBitmap = true:"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/155084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18671/"
] |
155,087 | <p>Before you start firing at me, I'm NOT looking to do this, but someone in <a href="https://stackoverflow.com/questions/154698/how-can-i-keep-a-class-from-being-inherited-in-c">another post</a> said it was possible. How is it possible? I've never heard of inheriting from anything using reflection. But I've seen some ... | [
{
"answer_id": 155185,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 5,
"selected": true,
"text": "// error CS0549: 'Seal.GetName()' is a new virtual member in sealed class 'Seal'\n public abstract class Animal\n{\n p... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5469/"
] |
155,097 | <p>I am programmatically exporting data (using PHP 5.2) into a .csv test file.<br>
Example data: <code>Numéro 1</code> (note the accented e).
The data is <code>utf-8</code> (no prepended BOM).</p>
<p>When I open this file in MS Excel is displays as <code>Numéro 1</code>.</p>
<p>I am able to open this in a text edi... | [
{
"answer_id": 155176,
"author": "James Baker",
"author_id": 9365,
"author_profile": "https://Stackoverflow.com/users/9365",
"pm_score": 9,
"selected": true,
"text": " Ã"
},
{
"answer_id": 595754,
"author": "Kristof Neirynck",
"author_id": 11451,
"author_profile": ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23598/"
] |
155,101 | <p>When I parse my xml file (variable f) in this method, I get an error </p>
<blockquote>
<p>C:\Documents and Settings\joe\Desktop\aicpcudev\OnlineModule\map.dtd (The system cannot find the path specified)</p>
</blockquote>
<p>I know I do not have the dtd, nor do I need it. How can I parse this File object into a ... | [
{
"answer_id": 155330,
"author": "anjanb",
"author_id": 11142,
"author_profile": "https://Stackoverflow.com/users/11142",
"pm_score": 2,
"selected": false,
"text": "myDocumentBuilder.setEntityResolver(new EntityResolver() {\n public InputSource resolveEntity(java.lang.String pub... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5653/"
] |
155,105 | <p>I am getting the following error when I put class files in subfolders of my App_Code folder:</p>
<p>errorCS0246: The type or namespace name 'MyClassName' could not be found (are you missing a using directive or an assembly reference?)</p>
<p>This class is not in a namespace at all. Any ideas?</p>
| [
{
"answer_id": 155149,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https://Stackoverflow.com/users/17516",
"pm_score": 5,
"selected": true,
"text": "<configuration>\n <system.web>\n <compilation>\n <codeSubDirectories>\n <add directoryName=... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18926/"
] |
155,116 | <p>I have several different c# worker applications that run various continuous tasks: sending emails from queue, importing new orders from website database to orders database, making database backups and restores, running data processing for OLTP -> OLAP, and other related tasks. Before, I released these as windows ser... | [
{
"answer_id": 155180,
"author": "Eric Z Beard",
"author_id": 1219,
"author_profile": "https://Stackoverflow.com/users/1219",
"pm_score": 1,
"selected": false,
"text": "installutil MyApp.exe\n"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/155116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13855/"
] |
155,144 | <p>I've got a relatively large .Net system that consists of a number of different applications. Rather than having lots of different app.config files, I would like to share a single configuration file between all the apps.</p>
<p>I would also like to have one version when developing on my machine, one version for some... | [
{
"answer_id": 155167,
"author": "Chris Wenham",
"author_id": 5548,
"author_profile": "https://Stackoverflow.com/users/5548",
"pm_score": 2,
"selected": false,
"text": "copy /Y c:\\path\\to\\master\\project\\app.config $(TargetPath).config\nexit 0\n <PropertyGroup Condition=\" '$(Confi... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5932/"
] |
155,152 | <p>I'm building a form with php/mysql. I've got a table with a list of locations and sublocations. Each sublocation has a parent location. A column "parentid" references another locationid in the same table. I now want to load these values into a dropdown in the following manner:</p>
<pre><code>--Location 1
----Subloc... | [
{
"answer_id": 155177,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 0,
"selected": false,
"text": "<?php\n\n$data = array(\n 'Location 1' => array(\n 'Sublocation1',\n 'Sublocation2',\n 'Sublocati... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22837/"
] |
155,188 | <p>I have one text input and one button (see below). How can I use JavaScript to <strong>trigger the button's click event</strong> when the <kbd>Enter</kbd> key is pressed inside the text box?</p>
<p>There is already a different submit button on my current page, so I can't simply make the button a submit button. And, ... | [
{
"answer_id": 155193,
"author": "albertein",
"author_id": 23020,
"author_profile": "https://Stackoverflow.com/users/23020",
"pm_score": 6,
"selected": false,
"text": "<input type = \"submit\"\n id = \"btnSearch\"\n value = \"Search\"\n onclick = \"return doSomething();... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23947/"
] |
155,191 | <p>I have written something that uses the following includes:</p>
<pre><code>#include <math.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <commctrl.h>
</code></pre>
<p>This code works fine on 2 machines with the Platform SDK installed, bu... | [
{
"answer_id": 155431,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profile": "https://Stackoverflow.com/users/6970",
"pm_score": 1,
"selected": false,
"text": "msvcrt.dll msvcr71.dll mscorwks.dll"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/155191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23942/"
] |
155,202 | <p>I am troubleshooting an issue with IIS6 where all sites bound to ip addresses other than the default give an error message "network location cannot be reached" when trying to start any of these sites.</p>
<p>The nic has all the ip addresses configured.
When I do a httpcfg query iplisten, I see only the default ip a... | [
{
"answer_id": 155348,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profile": "https://Stackoverflow.com/users/6970",
"pm_score": 0,
"selected": false,
"text": "ERROR_NETWORK_UNREACHABLE ERROR_HOST_UNREACHABLE ERROR_PROTOCOL_UNREACHABLE WinError.h"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/155202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5232/"
] |
155,203 | <p>What is a good error handling practice for an asp.net site? Examples? Thanks!</p>
| [
{
"answer_id": 155238,
"author": "John",
"author_id": 33,
"author_profile": "https://Stackoverflow.com/users/33",
"pm_score": 4,
"selected": true,
"text": " try\n {\n //Code that could error here\n }\n catch (FormatException ex)\n {\n ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
155,220 | <p>We are trying to update our classic asp search engine to protect it from SQL injection. We have a VB 6 function which builds a query dynamically by concatenating a query together based on the various search parameters. We have converted this to a stored procedure using dynamic sql for all parameters except for the... | [
{
"answer_id": 155332,
"author": "Rikalous",
"author_id": 4271,
"author_profile": "https://Stackoverflow.com/users/4271",
"pm_score": 2,
"selected": false,
"text": "string sql = \"SELECT Name, Title FROM Staff WHERE UserName=@UserId\";\nusing (SqlCommand cmd = new SqlCommand(sql))\n{\n ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23918/"
] |
155,234 | <p>I have a cluster of three mongrels running under nginx, and I deploy the app using Capistrano 2.4.3. When I "cap deploy" when there is a running system, the behavior is: </p>
<ol>
<li>The app is deployed. The code is successfully updated. </li>
<li><p>In the cap deploy output, there is this: </p>
<ul>
<li>executin... | [
{
"answer_id": 156017,
"author": "Ryan McGeary",
"author_id": 8985,
"author_profile": "https://Stackoverflow.com/users/8985",
"pm_score": 1,
"selected": false,
"text": "cap deploy:restart --debug --dry-run :runner nil :admin_runner cap deploy:restart"
},
{
"answer_id": 157964,
... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13472/"
] |
155,243 | <p>As a follow up to a <a href="https://stackoverflow.com/questions/151590/java-how-do-detect-a-remote-side-socket-close">recent question</a>, I wonder why it is impossible in Java, without attempting reading/writing on a TCP socket, to detect that the socket has been gracefully closed by the peer? This seems to be the... | [
{
"answer_id": 157139,
"author": "WMR",
"author_id": 2844,
"author_profile": "https://Stackoverflow.com/users/2844",
"pm_score": 2,
"selected": false,
"text": "select(2)"
},
{
"answer_id": 157534,
"author": "Alexander",
"author_id": 16724,
"author_profile": "https://S... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16724/"
] |
155,246 | <p>I have a test environment for a database that I want to reload with new data at the start of a testing cycle. I am not interested in rebuilding the entire database- just simply "re-setting" the data. </p>
<p>What is the best way to remove all the data from all the tables using TSQL? Are there system stored procedur... | [
{
"answer_id": 155270,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 2,
"selected": false,
"text": "tables sysobjects sp_execsql('truncate table ' + @table_name) iteration"
},
{
"answer_id": 155275,
"author... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
155,260 | <p>I have been learning about the basics of C# but haven't come across a good explanation of what this is:</p>
<pre><code>var l = new List<string>();
</code></pre>
<p>I don't know what the <code><string></code> is doing or if it's the <code>List</code> that is doing the magic. I have also seen objects bee... | [
{
"answer_id": 155280,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 1,
"selected": false,
"text": "int x = (int)myArrayList[4];\n int x = myList[4];\n"
},
{
"answer_id": 155286,
"author": "Eric Z Beard",
... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22459/"
] |
155,271 | <p>Is there a way to hide the text limit line in netbeans 6.5?</p>
| [
{
"answer_id": 1210584,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<entry javaType=\"java.lang.Boolean\" name=\"text-limit-line-visible\" xml:space=\"preserve\">\n<value><![CDATA[false]]></val... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3740/"
] |
155,279 | <p>I have an AdvancedDataGrid that uses customer grouping of data. Not all of the groups will be at the same level in the hierarchy, and groups can contain both groups and members. We have a sort callback, but it's not being called except for groups at the leaf-most levels. See code below for an example -- expand all o... | [
{
"answer_id": 156283,
"author": "Swaroop C H",
"author_id": 4869,
"author_profile": "https://Stackoverflow.com/users/4869",
"pm_score": 0,
"selected": false,
"text": "dob:\"01/01/1970\""
},
{
"answer_id": 1406772,
"author": "Invalid Character",
"author_id": 9610,
"au... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22809/"
] |
155,291 | <p>I thought they could be, but as I'm not putting my money where my mouth was (so to speak) setting the readonly attribute doesn't actually seem to do anything.</p>
<p>I'd rather not use Disabled, since I want the checked check boxes to be submitted with the rest of the form, I just don't want the client to be able t... | [
{
"answer_id": 155301,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": 9,
"selected": false,
"text": "READONLY disabled // user allowed change\nif($user_allowed_edit)\n{\n echo '<input type=\"checkbox\" name=\"my_check\"> C... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19074/"
] |
155,303 | <p>How do I go from this string: "ThisIsMyCapsDelimitedString"</p>
<p>...to this string: "This Is My Caps Delimited String"</p>
<p>Fewest lines of code in VB.net is preferred but C# is also welcome.</p>
<p>Cheers!</p>
| [
{
"answer_id": 155331,
"author": "Max Schmeling",
"author_id": 3226,
"author_profile": "https://Stackoverflow.com/users/3226",
"pm_score": 0,
"selected": false,
"text": "string myString = \"ThisIsMyCapsDelimitedString\";\n\nfor (int i = 1; i < myString.Length; i++)\n{\n if (myString[... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17235/"
] |
155,306 | <p>I have a textarea with many lines of input, and a JavaScript event fires that necessitates I scroll the textarea to line 345.</p>
<p><code>scrollTop</code> sort of does what I want, except as far as I can tell it's pixel level, and I want something that operates on a line level. What also complicates things is that... | [
{
"answer_id": 155404,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 5,
"selected": true,
"text": "<script type=\"text/javascript\" language=\"JavaScript\">\nfunction Jump(line)\n{\n var ta = document.getElementById(\"Text... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23845/"
] |
155,308 | <p>I'm trying to get a PHP site working in IIS on Windows Server with MySQL.</p>
<p>I'm getting this error…</p>
<p>Fatal error: Call to undefined function mysql_connect() in C:\inetpub...\adodb\drivers\adodb-mysql.inc.php on line 363</p>
<hr />
<p>Update…</p>
<p>This link outlines the steps I followed to install PHP on... | [
{
"answer_id": 155316,
"author": "Ólafur Waage",
"author_id": 22459,
"author_profile": "https://Stackoverflow.com/users/22459",
"pm_score": 2,
"selected": false,
"text": "<?php\n phpinfo();\n?>\n"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/155308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83/"
] |
155,311 | <p>I would like invoke a function call in a one shot manner. What's the best way to do this in Boost / C++?</p>
<p>I would like to pass it two parameters and do not need a result.</p>
| [
{
"answer_id": 155420,
"author": "Greg Rogers",
"author_id": 5963,
"author_profile": "https://Stackoverflow.com/users/5963",
"pm_score": 2,
"selected": false,
"text": "boost::thread some_thread(&SomeFunction, param1, param2);\n"
},
{
"answer_id": 155434,
"author": "David Smit... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445087/"
] |
155,314 | <p>I'm looking to implement a function that retrieves a single frame from an input video, so I can use it as a thumbnail.</p>
<p>Something along these lines should work: </p>
<pre><code>// filename examples: "test.avi", "test.dvr-ms"
// position is from 0 to 100 percent (0.0 to 1.0)
// returns a bitmap
byte[] GetVide... | [
{
"answer_id": 6852123,
"author": "Ahmad Behjati",
"author_id": 866395,
"author_profile": "https://Stackoverflow.com/users/866395",
"pm_score": 2,
"selected": false,
"text": "Process ffmpeg;\n\nstring video;\nstring thumb;\n\nvideo = Server.MapPath(\"first.avi\");\nthumb = Server.MapPath... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17174/"
] |
155,321 | <p>I'm trying to build a mapping table to associate the IDs of new rows in a table with those that they're copied from. The OUTPUT INTO clause seems perfect for that, but it doesn't seem to behave according to the documentation. </p>
<p>My code:</p>
<pre><code>DECLARE @Missing TABLE (SrcContentID INT PRIMARY KEY )
IN... | [
{
"answer_id": 156352,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 5,
"selected": true,
"text": "INSERTED from_table_name TRUNCATE TABLE main\n\nSELECT *\nFROM incoming\n\nSELECT *\nFROM main\n\nDECLARE @Missing TABLE ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10082/"
] |
155,366 | <p>Rep steps:</p>
<ol>
<li>create example .NET form application</li>
<li>put a TextBox on the form</li>
<li>wire a function up to the TextBox's Enter event</li>
</ol>
<p>When you run this application, the <strong>Control.Enter</strong> event fires when focus first goes to the TextBox. However, if you click away into... | [
{
"answer_id": 158860,
"author": "Fry",
"author_id": 23553,
"author_profile": "https://Stackoverflow.com/users/23553",
"pm_score": 0,
"selected": false,
"text": "Grid currentGrid = (Grid)sender;\n"
},
{
"answer_id": 32187337,
"author": "user5261230",
"author_id": 5261230,... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23933/"
] |
155,367 | <p>Change Data Capture is a new feature in SQL Server 2008. From MSDN:</p>
<blockquote>
<p>Change data capture provides
historical change information for a
user table by capturing both the fact
that DML changes were made and the
actual data that was changed. Changes
are captured by using an asynchronous
... | [
{
"answer_id": 49542172,
"author": "Lukasz Szozda",
"author_id": 5070879,
"author_profile": "https://Stackoverflow.com/users/5070879",
"pm_score": 0,
"selected": false,
"text": "CREATE TABLESPACE SPACE_FOR_ARCHIVE \ndatafile 'C:\\ORACLE DB12\\ARCH_SPACE.DBF'size 50G;\n\nCREATE FLASHBACK ... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14606/"
] |
155,371 | <p>I want to use XMLHttpRequest in JavaScript to POST a form that includes a file type input element so that I can avoid page refresh and get useful XML back.</p>
<p>I can submit the form without page refresh, using JavaScript to set the target attribute on the form to an iframe for MSIE or an object for Mozilla, but ... | [
{
"answer_id": 155429,
"author": "helios",
"author_id": 9686,
"author_profile": "https://Stackoverflow.com/users/9686",
"pm_score": 0,
"selected": false,
"text": "var lFrame = document.getElementById('myframe');\nlFrame.onreadystatechange = function()\n{\n if (lFrame.readyState == 'com... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14405/"
] |
155,375 | <p>I'm working with a datagrid and adapter that correspond with an MSAccess table through a stored query (named "UpdatePaid", 3 paramaters as shown below) like so:</p>
<pre><code> OleDbCommand odc = new OleDbCommand("UpdatePaid", connection);
OleDbParameter param;
odc.CommandType = CommandType.StoredProce... | [
{
"answer_id": 155571,
"author": "Brannon",
"author_id": 5745,
"author_profile": "https://Stackoverflow.com/users/5745",
"pm_score": 0,
"selected": false,
"text": "Prepare() Prepare() System.Data.SqlClient"
}
] | 2008/09/30 | [
"https://Stackoverflow.com/questions/155375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13776/"
] |
155,378 | <p>I have a <code>double</code> value <code>f</code> and would like a way to nudge it very slightly larger (or smaller) to get a new value that will be as close as possible to the original but still strictly greater than (or less than) the original.</p>
<p>It doesn't have to be close down to the last bit—it's more imp... | [
{
"answer_id": 155397,
"author": "Nils Pipenbrinck",
"author_id": 15955,
"author_profile": "https://Stackoverflow.com/users/15955",
"pm_score": 7,
"selected": true,
"text": "nextafter nextafterf"
},
{
"answer_id": 155406,
"author": "Community",
"author_id": -1,
"autho... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790/"
] |
155,388 | <p>Suppose that I have interface MyInterface and 2 classes A, B which implement MyInterface.<br>
I declared 2 objects: <code>MyInterface a = new A()</code> , and <code>MyInterface b = new B()</code>.<br>
When I try to pass to a function - function <code>doSomething(A a){}</code> I am getting an error.</p>
<p>This is m... | [
{
"answer_id": 155417,
"author": "perimosocordiae",
"author_id": 10601,
"author_profile": "https://Stackoverflow.com/users/10601",
"pm_score": 0,
"selected": false,
"text": "public abstract class Parent {} public class A extends Parent {...} public class B extends Parent {...}"
},
{
... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23968/"
] |
155,391 | <p>What is the difference between a BitmapFrame and BitmapImage in WPF? Where would you use each (ie. why would you use a BitmapFrame rather than a BitmapImage?)</p>
| [
{
"answer_id": 155433,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 5,
"selected": true,
"text": "Uri uri = ...;\nBitmapSource bmp = new BitmapImage(uri);\nConsole.WriteLine(\"{0}x{1}\", bmp.PixelWIdth, bmp.PixelHeight)... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3798/"
] |
155,426 | <p>I tried to set innerHTML on an element in firefox and it worked fine, tried it in IE and got unexpected errors with no obvious reason why.</p>
<p>For example if you try and set the innerHTML of a table to " hi from stu " it will fail, because the table must be followed by a sequence.</p>
| [
{
"answer_id": 161491,
"author": "Duncan Smart",
"author_id": 1278,
"author_profile": "https://Stackoverflow.com/users/1278",
"pm_score": 2,
"selected": false,
"text": "// removing the scripts to avoid any 'Permission Denied' errors in IE\nvar cleaned = html.replace(/<script(.|\\s)*?\\/s... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12386/"
] |
155,427 | <p>I have a form element that I want to address via javascript, but it doesn't like the syntax.</p>
<pre><code><form name="mycache">
<input type="hidden" name="cache[m][2]">
<!-- ... -->
</form>
</code></pre>
<p>I want to be able to say:</p>
<pre><code>document.mycache.cache[m][2]
</code>... | [
{
"answer_id": 155437,
"author": "Chris Pietschmann",
"author_id": 7831,
"author_profile": "https://Stackoverflow.com/users/7831",
"pm_score": 3,
"selected": true,
"text": "<html>\n<body>\n\n<form id=\"form1\">\n\n<input type='test' id='field[m][2]' name='field[m][2]' value='Chris'/>\n\n... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14253/"
] |
155,435 | <p>In JavaScript, you can do this:</p>
<pre><code>var a = null;
var b = "I'm a value";
var c = null;
var result = a || b || c;
</code></pre>
<p>And 'result' will get the value of 'b' because JavaScript short-circuits the 'or' operator.</p>
<p>I want a one-line idiom to do this in ColdFusion and the best I can come u... | [
{
"answer_id": 155529,
"author": "Peter Boughton",
"author_id": 9360,
"author_profile": "https://Stackoverflow.com/users/9360",
"pm_score": 4,
"selected": true,
"text": "<cfset result = ListFirst( \"#a#,#b#,#c#\" )/>\n"
},
{
"answer_id": 155550,
"author": "Peter Boughton",
... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13958/"
] |
155,436 | <p><strong>What are the best practices for naming unit test classes and test methods?</strong></p>
<p>This was discussed on SO before, at <a href="https://stackoverflow.com/questions/96297/naming-conventions-for-unit-tests">What are some popular naming conventions for Unit Tests?</a></p>
<p>I don't know if this is a ... | [
{
"answer_id": 155475,
"author": "Sergio Acosta",
"author_id": 2954,
"author_profile": "https://Stackoverflow.com/users/2954",
"pm_score": 6,
"selected": false,
"text": "[name of your 'unit']Tests\n test[feature being tested]\n class Person {\n int calculateAge() { ... }\n\n // oth... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11829/"
] |
155,449 | <p>Right now I have the following in my <code>.vimrc</code>:</p>
<pre><code>au BufWritePost *.c,*.cpp,*.h !ctags -R
</code></pre>
<p>There are a few problems with this:</p>
<ol>
<li>It's slow -- regenerates tags for files that haven't changed since the last tag generation.</li>
<li>I have to push the enter button <e... | [
{
"answer_id": 155515,
"author": "Zathrus",
"author_id": 16220,
"author_profile": "https://Stackoverflow.com/users/16220",
"pm_score": 7,
"selected": true,
"text": "au BufWritePost *.c,*.cpp,*.h silent! !ctags -R & --append tagbsearch"
},
{
"answer_id": 156781,
"author": "Luc... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
155,458 | <p>I need to do a comparaison between an object and NULL. When the object is not NULL I fill it with some data.</p>
<p>Here is the code :</p>
<pre><code> if (region != null)
{
....
}
</code></pre>
<p>This is working but when looping and looping sometime the region object is NOT null (I can see data inside it in ... | [
{
"answer_id": 155467,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 6,
"selected": true,
"text": "public static bool operator ==(Region r1, Region r2)\n{\n if (object.ReferenceEquals( r1, r2)) {\n // handle... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
155,460 | <p>I'm using LINQ to SQL and C#. I have two LINQ classes: User and Network. </p>
<p>User has UserID (primary key) and NetworkID</p>
<p>Network has NetworkID (primary key) and an AdminID (a UserID)</p>
<p>The following code works fine:</p>
<pre><code>user.Network.AdminID = 0;
db.SubmitChanges();
</code></pre>
<p>... | [
{
"answer_id": 155658,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 0,
"selected": false,
"text": "{\n Contact previousValue = this._Contact.Entity;\n if (((previousValue != value)\n || (this._Contact.HasLoadedOrAssigned... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23971/"
] |
155,462 | <p>In Ruby:</p>
<pre><code>for i in A do
# some code
end
</code></pre>
<p>is the same as: </p>
<pre><code>A.each do |i|
# some code
end
</code></pre>
<p><code>for</code> is not a kernel method:</p>
<ul>
<li>What exactly is "<code>for</code>" in ruby</li>
<li>Is there a way to use other keywords to do simila... | [
{
"answer_id": 155513,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 4,
"selected": false,
"text": "for each for i in 1 do\nend\n NoMethodError: undefined method `each' for 1:Fixnum\n"
},
{
"answer_id": 155531,
... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14167/"
] |
155,504 | <p>I had a look in the reference doc, and Spring seems to have pretty good support for sending mail. However, I need to login to a mail account, read the messages, and download any attachments. Is downloading mail attachments supported by the Spring mail API?</p>
<p>I know you can do this with the Java Mail API, but i... | [
{
"answer_id": 158511,
"author": "Steven M. Cherry",
"author_id": 24193,
"author_profile": "https://Stackoverflow.com/users/24193",
"pm_score": 5,
"selected": true,
"text": "/**\n * Copyright (c) 2008 Steven M. Cherry\n * All rights reserved.\n */\npackage utils.scheduled;\n\nimport j... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
155,507 | <p>How exactly can I create a new directory using Emacs? What commands do I use? (If possible, please provide an example)</p>
| [
{
"answer_id": 155510,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 9,
"selected": true,
"text": "dir/to/create M-x make-directory RET dir/to/create RET\n dir/parent1/node dir/parent2/node M-! mkdir -p dir/parent{1,2}/node RET\... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
155,514 | <p>How do I convert a utf-8 string to a utf-16 string in PHP?</p>
| [
{
"answer_id": 155528,
"author": "chroder",
"author_id": 18802,
"author_profile": "https://Stackoverflow.com/users/18802",
"pm_score": 4,
"selected": false,
"text": "mb_convert_encoding"
},
{
"answer_id": 901141,
"author": "Jesper Grann Laursen",
"author_id": 110214,
... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23598/"
] |
155,517 | <p>Is it possible to cancel out of a long running process in VB6.0 without using DoEvents?</p>
<p>For example:</p>
<pre><code>for i = 1 to someVeryHighNumber
' Do some work here '
...
if cancel then
exit for
end if
next
Sub btnCancel_Click()
cancel = true
End Sub
</code></pre>
<p>I assu... | [
{
"answer_id": 160893,
"author": "Joel Spolsky",
"author_id": 4,
"author_profile": "https://Stackoverflow.com/users/4",
"pm_score": 6,
"selected": true,
"text": "DoEvents GetQueueStatus GetQueueStatus ' at the top:\nDeclare Function GetQueueStatus Lib \"user32\" (ByVal qsFlags As Long) A... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5019/"
] |
155,532 | <p>Are there any good methods for getting ASP.NET 2.0 to validate under the XHTML 1.0 Strict (or Transitional) DTD? I'm interested to hear some ideas before I hack up the core of the HTTP response.</p>
<p>One major problem is the form tag itself, this is the output I got from W3C when I tried to validate:</p>
<pre><... | [
{
"answer_id": 156533,
"author": "Calroth",
"author_id": 23358,
"author_profile": "https://Stackoverflow.com/users/23358",
"pm_score": 5,
"selected": true,
"text": "<system.web>\n ... other configuration goes here ...\n <xhtmlConformance mode=\"Strict\" />\n</system.web>\n mode=\"T... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12252/"
] |
155,540 | <p>I'm writing a scheduler or sorts. It's basically a table with a list of exes (like "C:\a.exe") and a console app that looks at the records in the table every minute or so and runs the tasks that haven't been run yet.</p>
<p>I run the tasks like this:</p>
<pre><code>System.Diagnostics.Process p = new System.Diagno... | [
{
"answer_id": 155563,
"author": "Pete",
"author_id": 76,
"author_profile": "https://Stackoverflow.com/users/76",
"pm_score": 2,
"selected": false,
"text": "string output = p.StandardOutput.ReadToEnd();\n"
},
{
"answer_id": 157096,
"author": "Jonathan C Dickinson",
"autho... | 2008/09/30 | [
"https://Stackoverflow.com/questions/155540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.