qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
388,816 | <p>I have installed PEAR, <code>Spreadsheet_Excel_Writer</code> and OLE. The sample program is executed successfully but when I try to read the file it shows garbage values. I also tried <code>$workbook->setVersion(8);</code> and <code>$worksheet->setInputEncoding('UTF-8');</code></p>
<p>I am using this tutoria... | [
{
"answer_id": 389418,
"author": "Jack",
"author_id": 24998,
"author_profile": "https://Stackoverflow.com/users/24998",
"pm_score": 2,
"selected": false,
"text": "$header = \"Last Name\\tFirst Name\\tAge\\tJob\\n\"; // new line is start of new row, tab is next column\n\n//ideally you wou... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
388,819 | <p>I have a few modules of block of code in VBA to run on few Access databases. I would like to know how I should proceed if I want to convert the coding to C# environment. And is it possible to implement and obtain the same results as I am getting now with Access and VBA?
I am completely new to C# at this point.<... | [
{
"answer_id": 389147,
"author": "Eric Ness",
"author_id": 18891,
"author_profile": "https://Stackoverflow.com/users/18891",
"pm_score": 2,
"selected": false,
"text": "Selection.TypeText(\"foo\")\n"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/388819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31132/"
] |
388,837 | <p>Let's say you are a GM dba and you have to design around the GM models</p>
<p>Is it better to do this?</p>
<ul>
<li>table_model
<ul>
<li>type {cadillac, saturn, chevrolet}</li>
</ul></li>
</ul>
<p>Or this?</p>
<ul>
<li>table_cadillac_model</li>
<li>table_saturn_model </li>
<li>table_chevrolet_model</li>
</ul... | [
{
"answer_id": 390541,
"author": "Quibblesome",
"author_id": 1143,
"author_profile": "https://Stackoverflow.com/users/1143",
"pm_score": 0,
"selected": false,
"text": "table_model\n* type {cadillac, saturn, chevrolet}\n"
},
{
"answer_id": 390959,
"author": "Robert C. Barth",
... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36902/"
] |
388,843 | <p>The building (a museum) has 7 levels (+3 to -3), each divided into different rooms/areas. Hovering over an area will reveal a popup describing that area.</p>
<p>I'm looking for some markup that will accurately represent the 7 levels and their areas.
The plan should make sense and be 'navigable' without any CSS/JS. ... | [
{
"answer_id": 388852,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 1,
"selected": false,
"text": "<ul>"
},
{
"answer_id": 12139550,
"author": "unor",
"author_id": 1591669,
"author_profile": "https://S... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4196/"
] |
388,859 | <p>I have a 'loader app' that loads a menu and when user clicks the menu image button a list view opens based on the text </p>
<pre><code>(if text = employee)
(Go to class A)
(Go to class B)
...
...
(Show List View Window)
</code></pre>
<p>if he clicks again on the same button it opens again, I would... | [
{
"answer_id": 388872,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": false,
"text": "Application.OpenForms"
},
{
"answer_id": 681337,
"author": "joakim",
"author_id": 82543,
"author_... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39278/"
] |
388,868 | <p>Im currently using the following function to load an image, however i could not figure out a way to find the width of the loaded image, which i intend to use before placing the next image using the same function. </p>
<p>Note that q is a a variable (a number) which is used to load differant images.</p>
<p>=X i nee... | [
{
"answer_id": 389256,
"author": "Brian Hodge",
"author_id": 20628,
"author_profile": "https://Stackoverflow.com/users/20628",
"pm_score": 1,
"selected": false,
"text": "package\n{\n import flash.display.Sprite;\n import flash.display.Loader;\n import flash.net.URLRequest;\n\n ... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
388,878 | <p>EDIT: minor fixes (virtual Print; return mpInstance) following remarks in the answers.</p>
<p>I am trying to create a system in which I can derive a Child class from any Base class, and its implementation should replace the implementation of the base class.</p>
<p>All the objects that create and use the base class... | [
{
"answer_id": 388888,
"author": "Nathan Fellman",
"author_id": 1084,
"author_profile": "https://Stackoverflow.com/users/1084",
"pm_score": 0,
"selected": false,
"text": "b"
},
{
"answer_id": 388963,
"author": "duffymo",
"author_id": 37213,
"author_profile": "https://... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44673/"
] |
388,897 | <p>How can I send a picture in Java ME ? Maybe using <code>base64 decode</code> and the send in post form via <code>http</code> request</p>
| [
{
"answer_id": 389378,
"author": "Dmitry Khalatov",
"author_id": 18174,
"author_profile": "https://Stackoverflow.com/users/18174",
"pm_score": -1,
"selected": false,
"text": "HttpConnection connection = (HttpConnection) Connector.open(\"http://www.myserver.com\");\nconnection.setRequestM... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48647/"
] |
388,908 | <p>I am trying to measure the throughput of a webservice.</p>
<p>In order to do that, I have written a small tool that continuously sends requests and reads responses from a number of threads.</p>
<p>The contents of the inner loop of each thread looks like this:</p>
<pre><code>public void PerformRequest()
{
WebReq... | [
{
"answer_id": 436477,
"author": "Jader Dias",
"author_id": 48465,
"author_profile": "https://Stackoverflow.com/users/48465",
"pm_score": 5,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<configuration>\n <system.net>\n <connectionManagement>\n <add ad... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5542/"
] |
388,928 | <p>I've written a script to backup my server's HD every night. At the end of the script, I sync, wait a couple of minutes, sync and then I issue <code>sg_start --stop</code> to stop the device. The idea is to extend the lifetime of the device by switching the HD off after ten minutes of incremental backup (desktop disk... | [
{
"answer_id": 390275,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 2,
"selected": false,
"text": " hdparm -S 120 /dev/sda \n"
},
{
"answer_id": 411241,
"author": "Bob",
"author_id": 49548,
"a... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34088/"
] |
388,930 | <p>I write or modify programs which perform name resolution and need a
good control of the process. So I do not use <code>getaddrinfo()</code>, I go
deeper and use <code>res_query()</code> / <code>res_send()</code> / etc in <code>resolv.h</code>, documented
in resolver(3). </p>
<p>Although not documented, the common w... | [
{
"answer_id": 388994,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 2,
"selected": false,
"text": "resolv.h"
},
{
"answer_id": 1489632,
"author": "Community",
"author_id": -1,
"author_profile": "https://... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15625/"
] |
388,934 | <p>I want to align my member variables based on a class template type but I'm not sure if it is actually possible.</p>
<p>The following is a (very) simple example of what I'd like to do</p>
<pre><code>template<int Align>
class MyClass
{
private:
struct MyStruct
{
// Some stuff
} __declspec(align(Align... | [
{
"answer_id": 389053,
"author": "pmdj",
"author_id": 48660,
"author_profile": "https://Stackoverflow.com/users/48660",
"pm_score": 4,
"selected": true,
"text": "template<int A> struct aligned;\ntemplate<> struct aligned<1> { } __declspec(align(1));\ntemplate<> struct aligned<2> { } __de... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48651/"
] |
388,937 | <p>I'd like to know if there's a better approach to this problem. I want to resize a label (vertically) to accomodate certain amount of text. My label has a fixed width (about 60 chars wide before it must wrap), about 495 pixels. The font is also a fixed size (12points afaik), but the text is not. </p>
<p>What I want ... | [
{
"answer_id": 388964,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 8,
"selected": true,
"text": "Graphics.MeasureString"
},
{
"answer_id": 13267926,
"author": "Hacko",
"author_id": 991578,
"autho... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2684/"
] |
388,941 | <p>I have a bunch of pretty large CSV (comma separated values) files and I want to analyze them. SQL queries are ideal for this. So far I have been using MS Access to import the CSV files and execute queries on them. However, in addition to having a very bad SQL editor and having stupid arbitrary rules about when a que... | [
{
"answer_id": 388952,
"author": "cleg",
"author_id": 29503,
"author_profile": "https://Stackoverflow.com/users/29503",
"pm_score": 3,
"selected": false,
"text": "LOAD DATA LOCAL INFILE 'file.csv' \nINTO TABLE some_table \nFIELDS TERMINATED BY ',' \nLINES TERMINATED BY '\\n' \n(field1, f... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48648/"
] |
388,944 | <p>I have NUnit installed on my machine in "C:\Program Files\NUnit 2.4.8\" but on my integration server(running CruiseControl.Net) I have it installed in "D:\Program Files\NUnit 2.4.8\". The problem is that on my development machine my NAnt build file works correctly because in the task I'm using the path "C:\Program ... | [
{
"answer_id": 388948,
"author": "James Gregory",
"author_id": 27206,
"author_profile": "https://Stackoverflow.com/users/27206",
"pm_score": 3,
"selected": true,
"text": "/MyApp\n /libs\n /NUnit\n /NAnt\n /etc...\n /src\n /etc...\n"
},
{
"answer_id": 389167,
"au... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25125/"
] |
388,946 | <p>I'd like to learn how FireFox works behind the scenes. I'd like to understand the source code and the different components but the code-base is rather large and I'm not sure where to start. </p>
<p>I'm wondering if there is some sort of walk though written up by anybody either from the firefox team or from outside ... | [
{
"answer_id": 389409,
"author": "Jason S",
"author_id": 44330,
"author_profile": "https://Stackoverflow.com/users/44330",
"pm_score": 5,
"selected": false,
"text": "onclick=\"blah()\""
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/388946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18196/"
] |
388,955 | <p>I've got about 3 million files I need to copy from one folder to another over my company's SAN. What's the best way for me to do this? </p>
| [
{
"answer_id": 388962,
"author": "ConcernedOfTunbridgeWells",
"author_id": 15401,
"author_profile": "https://Stackoverflow.com/users/15401",
"pm_score": 3,
"selected": false,
"text": "tar cf - * | (cd [destination dir] ; tar xf - )\n"
},
{
"answer_id": 388972,
"author": "Oliv... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31830/"
] |
388,985 | <p>A simple stupid "<code>UPDATE table SET something=another WHERE (always true)</code>" in accident will easily destroy everything in the database. It could be a human mistake, an SQL injection/overflow/truncation attack, or a bug in the code who build the WHERE causes.</p>
<p>Are popular databases provide a feature ... | [
{
"answer_id": 389360,
"author": "Eric Sabine",
"author_id": 1493157,
"author_profile": "https://Stackoverflow.com/users/1493157",
"pm_score": 1,
"selected": false,
"text": "CREATE TRIGGER dbo.trg_myTrigger_UD ON dbo.myTable FOR UPDATE, DELETE\nAS\nIF @@ROWCOUNT <> 1 RETURN\n"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/388985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40214/"
] |
388,996 | <p>I need to find a reg ex that only allows alphanumeric. So far, everyone I try only works if the string is alphanumeric, meaning contains both a letter and a number. I just want one what would allow either and not require both.</p>
| [
{
"answer_id": 389012,
"author": "cletus",
"author_id": 18393,
"author_profile": "https://Stackoverflow.com/users/18393",
"pm_score": 4,
"selected": false,
"text": "^\\s*([0-9a-zA-Z]*)\\s*$\n"
},
{
"answer_id": 389022,
"author": "Greg",
"author_id": 24181,
"author_pro... | 2008/12/23 | [
"https://Stackoverflow.com/questions/388996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48655/"
] |
389,021 | <p>I have an ASP.NET site that I'm developing. The layout is pretty basic. The master page has a header with a horizontal menu beneath the banner taking the entire width. On the left is a Navigation pane, 150 pixels wide with a picture and a few external links. The remainder of the width is the ContentPlaceholder. ... | [
{
"answer_id": 389012,
"author": "cletus",
"author_id": 18393,
"author_profile": "https://Stackoverflow.com/users/18393",
"pm_score": 4,
"selected": false,
"text": "^\\s*([0-9a-zA-Z]*)\\s*$\n"
},
{
"answer_id": 389022,
"author": "Greg",
"author_id": 24181,
"author_pro... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15891/"
] |
389,026 | <p>One-to-one relations within nhibernate can be lazyloaded either "false" or "proxy". I was wondering if anyone knows a way to do a lazy one-to-one mapping.</p>
<p>I worked out a hack to achieve the same result by using a lazy set mapped to a private field, and having the public property return the first result of th... | [
{
"answer_id": 553278,
"author": "Artem Tikhomirov",
"author_id": 2313,
"author_profile": "https://Stackoverflow.com/users/2313",
"pm_score": 2,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<hibernate-mapping xmlns=\"urn:nhibernate-mapping-2.2\" assembly=\"NHi... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18729/"
] |
389,028 | <p>Because of some non standard table creation options I am forced to use the sql dump instead of the standard schema.rb (i.e. I have uncommented this line in the environment.rb <code>config.active_record.schema_format = :sql</code>). I have noticed that when I use the sql dump that my fixtures do not seem to be loaded... | [
{
"answer_id": 389247,
"author": "csexton",
"author_id": 19839,
"author_profile": "https://Stackoverflow.com/users/19839",
"pm_score": 0,
"selected": false,
"text": "rake db:fixtures:load\n"
},
{
"answer_id": 56999322,
"author": "Andrew Hodgkinson",
"author_id": 75028,
... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5004/"
] |
389,066 | <p>How to find a specific element, or a list of elements by using their TagName using Watin?</p>
| [
{
"answer_id": 410927,
"author": "Lars Thorup",
"author_id": 51370,
"author_profile": "https://Stackoverflow.com/users/51370",
"pm_score": 1,
"selected": false,
"text": "ie.Element(\"h1\", Find.ByIndex(0))\n"
},
{
"answer_id": 700599,
"author": "Jeroen van Menen",
"author... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32582/"
] |
389,069 | <p>I want to write a program in C/C++ that will dynamically read a web page and extract information from it. As an example imagine if you wanted to write an application to follow and log an ebay auction. Is there an easy way to grab the web page? A library which provides this functionality? And is there an easy way to ... | [
{
"answer_id": 389074,
"author": "Gant",
"author_id": 12460,
"author_profile": "https://Stackoverflow.com/users/12460",
"pm_score": 6,
"selected": true,
"text": " #include <stdio.h>\n #include <curl/curl.h>\n\n int main(void)\n {\n CURL *curl;\n CURLcode res;\n\n curl = curl_easy_i... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23435/"
] |
389,070 | <p>I want to open a save file dialog, have the user enter a filename, and if they forget the .csv extension, have it tacked on.</p>
<p>It would seem that the SaveFileDialog AddExtension property would work, but its doesn't. I've even set the DefaultExt property to .csv, and still nothing gets tacked on. My file gets s... | [
{
"answer_id": 389078,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "\"csv\""
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18927/"
] |
389,082 | <p>Our projects are using objects as the data source to reports.</p>
<p>Our business layer is returning single objects or IEnumerable. Our reports (quite complex) need to display value-type properties of the object, and its related objects.
Typical case would be, from a List, display a master report with category data... | [
{
"answer_id": 389078,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "\"csv\""
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
389,083 | <p>I'm looking at writing a tool for generating code based on the contents of a stored procedure. Like the parameters and stuff.</p>
<p>I was wondering if anybody knew of an open source library that has a all the regex's and stuff to parse all this easily.</p>
<p>Thanks.</p>
| [
{
"answer_id": 389078,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "\"csv\""
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45005/"
] |
389,086 | <p>Is it semantically correct to nest definition lists, or should they simply be a 'flat list of name/value pairs'.</p>
<p><a href="http://www.w3.org/TR/html401/struct/lists.html#h-10.1" rel="noreferrer">The specs</a> don't seem to forbid it.</p>
<p>Further to <a href="https://stackoverflow.com/questions/388843/">thi... | [
{
"answer_id": 389099,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 2,
"selected": false,
"text": "DL"
},
{
"answer_id": 389117,
"author": "Yuliy",
"author_id": 47527,
"author_profile": "https://St... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4196/"
] |
389,094 | <p>There was a library of dynamic <a href="http://en.wikipedia.org/wiki/Language_Integrated_Query" rel="noreferrer">LINQ</a> extensions methods released as a sample with <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2008" rel="noreferrer">Visual Studio 2008</a>. I'd like to exten... | [
{
"answer_id": 412868,
"author": "Royd Brayshay",
"author_id": 35043,
"author_profile": "https://Stackoverflow.com/users/35043",
"pm_score": 6,
"selected": true,
"text": " public static IQueryable Join(this IQueryable outer, IEnumerable inner, string outerSelector, string innerSelecto... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35043/"
] |
389,100 | <p>Is there a built-in <code>IsLowerCase()</code> in .NET? </p>
| [
{
"answer_id": 389118,
"author": "Gant",
"author_id": 12460,
"author_profile": "https://Stackoverflow.com/users/12460",
"pm_score": 4,
"selected": true,
"text": "Char.IsLower(ch);"
},
{
"answer_id": 389127,
"author": "George Stocker",
"author_id": 16587,
"author_profi... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11236/"
] |
389,103 | <p>I'm attempting to set up a symbol proxy using symproxy.dll from Debugging Tools for Windows. When I issue ".reload /f" from the debugger, none of the symbol files can be found. It looks like Symproxy isn't going out to the Microsoft Symbol Server to actually get the symbols. I see nothing in Wireshark, for example.<... | [
{
"answer_id": 389334,
"author": "Cory Foy",
"author_id": 4083,
"author_profile": "https://Stackoverflow.com/users/4083",
"pm_score": 1,
"selected": false,
"text": ".symfix c:\\symbols"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8446/"
] |
389,124 | <p>In C# if I want to create a "Custom Event" you do something like this:</p>
<pre><code>private EventHandler _MyEvent;
Public Event EventHandler MyEvent
{
add{ _MyEvent += value; }
remove{ _MyEvent -= Value; }
}
protected void RaiseMyEvent()
{
if(_MyEvent != nul)
_MyEvent(this, EventArgs.Empty);
}
</c... | [
{
"answer_id": 389166,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 4,
"selected": true,
"text": "_MyEvent = [Delegate].Combine(_MyEvent, value)\n"
},
{
"answer_id": 390666,
"author": "Tom Anderson",
"author_... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17744/"
] |
389,140 | <p>I have a ASP.Net TreeView control that I am binding to an XML data source. I'm wanting to be able to control which nodes are expanded and which ones are collapsed in the XML definition file. The Expanded='' doesn't work for me though. In the following simple example, I want Node 2 to be fully expanded.</p>
<p>ASP P... | [
{
"answer_id": 390014,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": true,
"text": "<asp:XmlDataSource ID=\"oXmlDataSource\" runat=\"server\" />\n<asp:TreeView ID=\"TreeView1\" runat=\"server\" EnableViewState=\... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7819/"
] |
389,149 | <p>I have a basic HTML form that gets inserted into a server side <em>div</em> tag based on how many records exist in the database. This HTML form comes out just fine, and everything looks good. But on my action page I cannot seem to access the input elements from the code behind. I have tried using the <em>Request</em... | [
{
"answer_id": 389163,
"author": "Gant",
"author_id": 12460,
"author_profile": "https://Stackoverflow.com/users/12460",
"pm_score": 3,
"selected": false,
"text": "Request.Form[\"elementName\"]"
},
{
"answer_id": 389177,
"author": "rlb.usa",
"author_id": 449902,
"autho... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
389,169 | <p>Are there any known how-tos or best practices for web service REST API versioning?</p>
<p>I have noticed that <a href="http://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/APIUsage.html" rel="noreferrer">AWS does versioning by the URL of the endpoint</a>. Is this the only way or are there other ways to a... | [
{
"answer_id": 398564,
"author": "Shonzilla",
"author_id": 31625,
"author_profile": "https://Stackoverflow.com/users/31625",
"pm_score": 10,
"selected": true,
"text": "Location"
},
{
"answer_id": 6750376,
"author": "jeremyh",
"author_id": 852325,
"author_profile": "ht... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4869/"
] |
389,175 | <p>Let's just assume that I don't know much about Kerberos - just the basics.</p>
<p>I have...</p>
<ul>
<li>Debian Linux 2.6 Webserver
<ul>
<li>Apache 2.2
<ul>
<li>mod_auth_kerb/5.3 </li>
<li>PHP/5.2</li>
</ul></li>
</ul></li>
<li>a (working) Kerberos Realm</li>
<li>Windows Client
<ul>
<li>Firefox 3</li>
<li>an lo... | [
{
"answer_id": 390719,
"author": "Cetra",
"author_id": 15087,
"author_profile": "https://Stackoverflow.com/users/15087",
"pm_score": 2,
"selected": false,
"text": "KrbSaveCredentials"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/999/"
] |
389,178 | <p>Supposedly installing <a href="http://www.kuwata-lab.com/erubis/" rel="nofollow noreferrer">erubis</a> is as simple as:</p>
<pre><code>gem install erubis
# And in environment.rb:
require 'erubis/helpers/rails_helper'
</code></pre>
<p>But I haven't found this to be so. Note that there are no evident errors in my ... | [
{
"answer_id": 390719,
"author": "Cetra",
"author_id": 15087,
"author_profile": "https://Stackoverflow.com/users/15087",
"pm_score": 2,
"selected": false,
"text": "KrbSaveCredentials"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24950/"
] |
389,180 | <p>After reading some threads on misuses of exceptions (basically saying you don't want to unwind the stack if a functions preconditions are incorrect - possibly signalling that all your memory is corrupt or something equally dangerous) I'm thinking about using assert() more often. Previously I have only used assert() ... | [
{
"answer_id": 389225,
"author": "Seb Rose",
"author_id": 12405,
"author_profile": "https://Stackoverflow.com/users/12405",
"pm_score": 1,
"selected": false,
"text": "#undef NDEBUG\n"
},
{
"answer_id": 389901,
"author": "Larry Gritz",
"author_id": 3832,
"author_profil... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38892/"
] |
389,196 | <p>I am using an instance of <code>ManualResetEvent</code> to control thread access to a resource but I'm running into problems with it. Does anyone know how I can find out during debugging what the state of the object is?</p>
<p>That is to say I would like to know if the <code>ManualResetEvent</code> is currently bl... | [
{
"answer_id": 389226,
"author": "Andrew Rollings",
"author_id": 40410,
"author_profile": "https://Stackoverflow.com/users/40410",
"pm_score": 8,
"selected": true,
"text": "WaitOne"
},
{
"answer_id": 6975276,
"author": "fab",
"author_id": 203528,
"author_profile": "ht... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
389,204 | <p>I have seen:</p>
<ul>
<li><code>http://www...</code></li>
<li><code>ftp://blah.blah...</code></li>
<li><code>file://blah.blah...</code></li>
<li><code>unreal://blah.blah...</code></li>
<li><code>mailto://blah.blah...</code></li>
</ul>
<p>What is that first section where you see <code>http</code> and the like calle... | [
{
"answer_id": 389223,
"author": "James Gregory",
"author_id": 27206,
"author_profile": "https://Stackoverflow.com/users/27206",
"pm_score": 9,
"selected": true,
"text": "HTTP://"
},
{
"answer_id": 389271,
"author": "Peter Oehlert",
"author_id": 44656,
"author_profile... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37510/"
] |
389,211 | <p>This is a followup to <a href="https://stackoverflow.com/questions/378281/latlon-distance-heading-latlon">this question</a>.</p>
<p>I seem to be stuck on this. Basically, I need to be able to convert back and forth to referring to coordinates either in the standard degree system OR by measuring a distance north fr... | [
{
"answer_id": 389251,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 7,
"selected": true,
"text": " (60 * 1.1515 * 1.609344 * 1000)\n"
},
{
"answer_id": 389255,
"author": "user19371",
"author_id": ... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47450/"
] |
389,216 | <p>In the 10 years I've been programming, I can count the number of data structures I've used on one hand: arrays, linked lists (I'm lumping stacks and queues in with this), and dictionaries. This isn't really surprising given that nearly all of the applications I've written fall into the forms-over-data / CRUD categor... | [
{
"answer_id": 50198489,
"author": "Vorac",
"author_id": 1145760,
"author_profile": "https://Stackoverflow.com/users/1145760",
"pm_score": 1,
"selected": false,
"text": "Cache<Obj, Len>"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40516/"
] |
389,219 | <p>What methods are available for determining the optimum stack size for embedded/memory constrained system? If it's too big then memory is wasted that could be used elsewhere. However, if it is too small then we get this website's namesake...</p>
<p>To try to jump start things: Jack Ganssle states in <em><a href="htt... | [
{
"answer_id": 389305,
"author": "Diomidis Spinellis",
"author_id": 20520,
"author_profile": "https://Stackoverflow.com/users/20520",
"pm_score": 5,
"selected": false,
"text": "char *stack_top, stack_bottom;\n\nint\nmain(int argc, char *argv[])\n{\n stack_top = (char *)&argc;\n // ... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1491/"
] |
389,254 | <p>Is it possible in Delphi to have a class method invoke an inherited instance method with the same name? For example, I tried something like this:</p>
<pre><code>//... Skipped surrounding class definitions
function TSomeAbstractDialogForm.Execute: Boolean;
begin
Result := ShowModal = mrOk;
end;
</code></pre>
<p>... | [
{
"answer_id": 389292,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 4,
"selected": true,
"text": "function TSomeAbstractDialogForm.Execute: Boolean;\nbegin\n Result := ShowModal = mrOk;\nend;\n\nclass function TSome... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39348/"
] |
389,257 | <p>This seems to go against every design guideline.
A static method that accepts a single argument of type T should usually just be a member method.</p>
<p>It's so bizzare I actually had to post a <a href="https://stackoverflow.com/questions/389100/is-there-a-built-in-islowercase-in-net">StackOverflow question</a> to ... | [
{
"answer_id": 389391,
"author": "Gant",
"author_id": 12460,
"author_profile": "https://Stackoverflow.com/users/12460",
"pm_score": 2,
"selected": false,
"text": "double d = 100.0;\nConsole.WriteLine(\"Square root of d is \" + d.Sqrt());\n"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11236/"
] |
389,277 | <p>When my colleague debugs a web application in his visual studio instance his output window streams all of the assemblies that are being compiled, (at least I believe that is what it's doing) but mine does not. I do see the text "Ready" flashing down in the status bar intermittently which I believe is something simil... | [
{
"answer_id": 389391,
"author": "Gant",
"author_id": 12460,
"author_profile": "https://Stackoverflow.com/users/12460",
"pm_score": 2,
"selected": false,
"text": "double d = 100.0;\nConsole.WriteLine(\"Square root of d is \" + d.Sqrt());\n"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21909/"
] |
389,289 | <p>I am looking the fastest way to draw thousands of individually calculated pixels directly to the screen in an iPhone application that preforms extremely well.</p>
| [
{
"answer_id": 389335,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 3,
"selected": true,
"text": "glBegin(GL_POINTS);\nglColor3f(...);\nglVertex3f(...);\n...\nglEnd();\n"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30099/"
] |
389,290 | <p>I'm getting the error in the subject line. I'm running vs2k8 on server 2k3sp2. I've tried deleting the pdbs, cache directories, verifying that debugging is set up on the specific page. The interesting thing is other pages debug just fine. Just when I go to this one page. Must be a configuration issue but the page di... | [
{
"answer_id": 389363,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 2,
"selected": false,
"text": "<compilation debug=\"true\">"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46064/"
] |
389,298 | <p>Is there a way to update more than one Database having same schema using single ObjectDataSource in C#???</p>
<p>i.e Just by providing more than one connection string is it some how possible to update more than one Database? I need to update/insert same record in multiple Database with same schema using ObjectDataS... | [
{
"answer_id": 389350,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": 3,
"selected": true,
"text": "public void DeleteMyObject(int objectId)\n{\n SqlConnection connectionOne = new SqlConnection(\"MyFirstDbConnect... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47344/"
] |
389,341 | <p>I have a WPF ListBox bound to a data object. Inside the listbox are a series of images with text. It is layed out in a horizontal fashion, and mousing over the left or right sides of the box scroll the items left or right respectively.</p>
<p>let's say there are 20 items in the listbox. I'm trying to figure out how... | [
{
"answer_id": 397890,
"author": "PaulJ",
"author_id": 11308,
"author_profile": "https://Stackoverflow.com/users/11308",
"pm_score": 2,
"selected": true,
"text": "public class CyclicScrollViewer : ScrollViewer\n{\n public CyclicScrollViewer()\n {\n this.CommandBindings.Add(n... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22451/"
] |
389,342 | <p>The <code>image.size</code> attribute of <code>UIImageView</code> gives the size of the original <code>UIImage</code>. I would like to find out the size of the autoscaled image when it is put in the <code>UIImageView</code> (typically smaller than the original). </p>
<p>For example, I have the image set to <code>As... | [
{
"answer_id": 4987554,
"author": "cncool",
"author_id": 615517,
"author_profile": "https://Stackoverflow.com/users/615517",
"pm_score": 6,
"selected": false,
"text": "-(CGRect)frameForImage:(UIImage*)image inImageViewAspectFit:(UIImageView*)imageView\n{\n float imageRatio = image.siz... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
389,343 | <p>Currently, I'm working on a project to manage maintenance windows on a database of servers, etc. Basically, I only need to be accurate down to the hour, but allow for them to be set to allow, or disallow, for each day of the week.</p>
<p>I've had a few ideas on how to do this, but since I work by myself, I'm not wa... | [
{
"answer_id": 389357,
"author": "kemiller2002",
"author_id": 1942,
"author_profile": "https://Stackoverflow.com/users/1942",
"pm_score": 0,
"selected": false,
"text": "TABLE:\n StartTime DATETIME PrimaryKey,\n EndTime DATETIME PrimaryKey, /*if you are positive it will b... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17091/"
] |
389,361 | <p>We know that IIS caches ConfigurationManager.AppSettings so it reads the disk only once until the web.config is changed. This is done for performance purposes.</p>
<p>Someone at:</p>
<p><a href="http://forums.asp.net/p/1080926/1598469.aspx#1598469" rel="noreferrer">http://forums.asp.net/p/1080926/1598469.aspx#1598... | [
{
"answer_id": 389386,
"author": "ZombieSheep",
"author_id": 377,
"author_profile": "https://Stackoverflow.com/users/377",
"pm_score": 7,
"selected": true,
"text": "//edit the config file now.\nConsole.ReadLine();\n\nConsole.WriteLine(ConfigurationManager.AppSettings[\"ApplicationName\"]... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48465/"
] |
389,393 | <p>I've been watching Douglas Crockford's talks at YUI Theater, and I have a question about JavaScript inheritance...</p>
<p>Douglas gives this example to show that "Hoozit" inherits from "Gizmo":</p>
<pre><code>function Hoozit(id) {
this.id = id;
}
Hoozit.prototype = new Gizmo();
Hoozit.prototype.test = function... | [
{
"answer_id": 389402,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 5,
"selected": true,
"text": "Hoozit.prototype = Gizmo.prototype"
},
{
"answer_id": 389457,
"author": "Christoph",
"author_id": 48015... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7595/"
] |
389,396 | <p>I'm using a MOSS Publishing site with a custom master page. One of our requirements is to have a "Site Updated" footer. Currently we set this manually each time the site is updated. </p>
<p>What i'm trying to do is reference a specific list item (from a custom list) that stores this date. </p>
<p>I'm using sharepo... | [
{
"answer_id": 389402,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 5,
"selected": true,
"text": "Hoozit.prototype = Gizmo.prototype"
},
{
"answer_id": 389457,
"author": "Christoph",
"author_id": 48015... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46108/"
] |
389,398 | <p>I have a little python script that pulls emails from a POP mail address and dumps them into a file (one file one email)</p>
<p>Then a PHP script runs through the files and displays them.</p>
<p>I am having an issue with ISO-8859-1 (Latin-1) encoded email</p>
<p>Here's an example of the text i get: =?iso-8859-1?Q?... | [
{
"answer_id": 390688,
"author": "mcrute",
"author_id": 33786,
"author_profile": "https://Stackoverflow.com/users/33786",
"pm_score": 3,
"selected": true,
"text": "import email\nimport poplib\nimport random\nfrom cStringIO import StringIO\nfrom email.generator import Generator\n\npop = p... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22459/"
] |
389,403 | <p>How can you access and display the row index of a gridview item as the command argument in a buttonfield column button?</p>
<pre><code><gridview>
<Columns>
<asp:ButtonField ButtonType="Button"
CommandName="Edit" Text="Edit" Visible="True"
CommandArgument=" ? ? ? " />
.....
<... | [
{
"answer_id": 389424,
"author": "Dillie-O",
"author_id": 71,
"author_profile": "https://Stackoverflow.com/users/71",
"pm_score": 0,
"selected": false,
"text": "protected void FormatGridView(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)\n{\n if (e.Row.RowType == Data... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35286/"
] |
389,415 | <p>I'm sending a file from a z/OS system to a Linux ftp sever using sftp.</p>
<p>I want to append the date to the filename once the file resides on the linux box.
(Ex: filename.txt becomes filename122308.txt)</p>
<p>I have tried the 'rename' command using 'date +%m%d%y' - the file was renamed but the flags were not exe... | [
{
"answer_id": 389465,
"author": "dacracot",
"author_id": 13930,
"author_profile": "https://Stackoverflow.com/users/13930",
"pm_score": 0,
"selected": false,
"text": "sftp [[user@]host[:file [file]]]\n"
},
{
"answer_id": 389855,
"author": "JimB",
"author_id": 32880,
"... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
389,425 | <p>I am trying to layout a header for a web site and I would like to have 4 containers in the header for dropping various user controls into.</p>
<p>The 4 containers need to be positioned top left, top right, bottom left and bottom right inside the main the header container.</p>
<p>So far I can acheive this, the bit ... | [
{
"answer_id": 389452,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 0,
"selected": false,
"text": "bottomLeft"
},
{
"answer_id": 389613,
"author": "Adam Bellaire",
"author_id": 21632,
"author_pro... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1127460/"
] |
389,426 | <p>Somewhat unclear to me are references (pointers?) to classes in VB.NET. The question I am about to ask can be answered by a little bit of testing, but I was wondering if anybody could post a decent explanation (or links, too).</p>
<p>If you create a class:</p>
<pre><code>Public Class ReferenceClass
Private my... | [
{
"answer_id": 389722,
"author": "chyne",
"author_id": 25157,
"author_profile": "https://Stackoverflow.com/users/25157",
"pm_score": 1,
"selected": false,
"text": "Dim tempClass as New UsingClass(Reference)\n"
},
{
"answer_id": 389809,
"author": "user21826",
"author_id": ... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1271/"
] |
389,434 | <p>My (.NET) app allows users to tweak database values. They will then need to generate reports based on their edits, either Crystal or Reporting Services, but that's not important - what is important is that the generation won't definitely be able occur on their local box, e.g. they might not have Crystal Reports (or ... | [
{
"answer_id": 389477,
"author": "Gant",
"author_id": 12460,
"author_profile": "https://Stackoverflow.com/users/12460",
"pm_score": 2,
"selected": false,
"text": " Process p = new Process();\n\n p.StartInfo.UseShellExecute = false;\n\n SecureString password = new SecureString();... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2902/"
] |
389,437 | <p>From MS AJAX source code,</p>
<pre><code>Type.isClass = function Type$isClass(type) {
/// <summary locid="M:J#Type.isClass" />
/// <param name="type" mayBeNull="true"></param>
/// <returns type="Boolean"></returns>
var e = Function._validateParams(arguments, [
{name: "type", mayBeN... | [
{
"answer_id": 389443,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 3,
"selected": false,
"text": "type.__class"
},
{
"answer_id": 389667,
"author": "Community",
"author_id": -1,
"author_profile": ... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
389,438 | <p>I have a page which has a rectangular area with text and icons in it and the whole thing is clickable. The anchor tag is set to display: block. One of the icons has an onclick handler. If a person clicks on an icon, I just want the icon's onclick handler to run and not to actually activate the containing anchor t... | [
{
"answer_id": 389447,
"author": "idrosid",
"author_id": 17876,
"author_profile": "https://Stackoverflow.com/users/17876",
"pm_score": 0,
"selected": false,
"text": "<a href=\"javascript:void(0)\"> <img src=\"...\" onclick=\"..\"> </a>\n"
},
{
"answer_id": 389454,
"author": "... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28565/"
] |
389,439 | <p>I have data bound <code>DataGridView</code> in a desktop app with columns that have their <code>ToolTipText</code> property set, yet no tool tip is displayed when I hover over grid view (cells or cell headers).</p>
<p>The <code>ShowCellToolTips</code> property of the grid view is <code>true</code>, and I have verif... | [
{
"answer_id": 422742,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "CellToolTipTextNeeded"
},
{
"answer_id": 547194,
"author": "Robert Gowland",
"author_id": 20570,
"author_p... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20570/"
] |
389,456 | <p>I have two websites, let's say they're <code>example.com</code> and <code>anotherexample.net</code>.
On <code>anotherexample.net/page.html</code>, I have an <code>IFRAME SRC="http://example.com/someform.asp"</code>. That IFRAME displays a form for the user to fill out and submit to <code>http://example.com/process.a... | [
{
"answer_id": 389458,
"author": "Piskvor left the building",
"author_id": 19746,
"author_profile": "https://Stackoverflow.com/users/19746",
"pm_score": 10,
"selected": true,
"text": "policy1"
},
{
"answer_id": 2297382,
"author": "Helo",
"author_id": 233814,
"author_p... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19746/"
] |
389,459 | <p>I am trying to write operator overload for custom class and don't know how to handle null comparison.</p>
<pre><code>Class Customer
{
int id;
public static bool operator ==(Customer a, Customer b)
{
//When both a and b are null don't know how to compare as can't use == in here as
//it w... | [
{
"answer_id": 389472,
"author": "Steven Robbins",
"author_id": 26507,
"author_profile": "https://Stackoverflow.com/users/26507",
"pm_score": 1,
"selected": false,
"text": "if (((object)a == null) && ((object)b == null))\n{\n return true;\n}\n"
},
{
"answer_id": 389483,
"a... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48695/"
] |
389,485 | <p>If I make changes in the trunk to 3 different files, say revisions 40, 45, and 47 respectively, where none of those files have changed since revision 15, how can I merge those revisions into the branch (made at revision 30 and unchanged since) so that I get just the changes between rev 15 and rev 40, 45, and 47 for ... | [
{
"answer_id": 390045,
"author": "Mike Miller",
"author_id": 16138,
"author_profile": "https://Stackoverflow.com/users/16138",
"pm_score": 0,
"selected": false,
"text": "40,45,47"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20770/"
] |
389,488 | <p>Let's consider the following program and try to compile it under Cygwin:</p>
<pre><code>#include <GL/glut.h>
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glLoadIdentity();
}
</code></pre>
<p>It compiles and runs just fine. <code>-I/usr/include/opengl</code> seems to be terribly importan... | [
{
"answer_id": 1774411,
"author": "Steinbitglis",
"author_id": 215904,
"author_profile": "https://Stackoverflow.com/users/215904",
"pm_score": 2,
"selected": false,
"text": "#define _STDCALL_SUPPORTED\n#define _M_IX86\n#include <windows.h>\n#include <GL/glew.h>\n#include <GL/glut.h>\n#in... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19336/"
] |
389,496 | <p>What are some alternatives to <a href="http://en.wikipedia.org/wiki/Make_(software)" rel="noreferrer">make</a> for linux/freebsd?</p>
| [
{
"answer_id": 389673,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": true,
"text": "SConstruct"
},
{
"answer_id": 390068,
"author": "Nathan Fellman",
"author_id": 1084,
"author_profile":... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9789/"
] |
389,501 | <p>I have a listview that is binded to a ThreadSafeObservableCollection. The background of each of these items is set to an enum that is run through a color converter, here's the code for these 2 settings.</p>
<pre><code><UserControl.Resources>
<EncoderView:EncoderStatusToColorConverter x:Key="ColorConve... | [
{
"answer_id": 389569,
"author": "Sailing Judo",
"author_id": 42620,
"author_profile": "https://Stackoverflow.com/users/42620",
"pm_score": 1,
"selected": false,
"text": "public class UniqueWordDataTemplateSelector : DataTemplateSelector\n{\n public override DataTemplate SelectTemplat... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29849/"
] |
389,503 | <p>If you use an WebHandler inheriting IHttpAsyncHandler, you shouldn't notice that under undetermined specific circumstances the browser MS IE6 won't display it, the request will never finish. Is there a fix for it?</p>
| [
{
"answer_id": 389521,
"author": "Jader Dias",
"author_id": 48465,
"author_profile": "https://Stackoverflow.com/users/48465",
"pm_score": 3,
"selected": true,
"text": "using (Image resizedImage = generateImage())\n{\n using (MemoryStream memoryStream = new MemoryStream())\n {\n ... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48465/"
] |
389,504 | <p>I have a child form that is throwing an ApplicationException in the Load event handler (intentionally for testing purposes). The parent form wraps the ChildForm.Show() method in a Try...Catch ex As Exception block. The catch block simply displays a message and closes the child form. All works as expected when deb... | [
{
"answer_id": 389538,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 0,
"selected": false,
"text": " ChildForm child = new ChildForm();\n try {\n child.Show();\n }\n catch(Exception ex)\n {.....}\n"
},
{... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30419/"
] |
389,528 | <p>I am making a configuration page, that splits a category tree over 3 columns for easy browsing like:</p>
<pre><code>**Column 1** **Column 2** **Column3**
Category1 Category3 Category5
*SubCategory1* Category4 *SubCategory5*
Cat... | [
{
"answer_id": 389578,
"author": "Daniel Schaffer",
"author_id": 2596,
"author_profile": "https://Stackoverflow.com/users/2596",
"pm_score": 4,
"selected": true,
"text": "function refactor() {\n var array = jQuery.makeArray($('ul#remapped > li:not(.target)'));\n var mappedArray = j... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/314728/"
] |
389,535 | <p>I need to query a table for values given a string. The table is case sensitive but I want to do a ToLower() in the comparison. </p>
<p>Suppose I have a classes table with the following data.</p>
<pre><code>class teacher
-----------------
Mat101 Smith
MAT101 Jones
mat101 Abram
ENG102 Smith
</code></pre>
... | [
{
"answer_id": 389770,
"author": "Gabe",
"author_id": 48143,
"author_profile": "https://Stackoverflow.com/users/48143",
"pm_score": 2,
"selected": false,
"text": "SQL> WITH LETTERS AS\n 2 (SELECT 'a' LETTER FROM DUAL UNION ALL\n 3 SELECT 'b' LETTER FROM DUAL UNION ALL\n 4 SELECT ... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
389,541 | <p>Is there a way to select rows in Postgresql that aren't locked? I have a multi-threaded app that will do:</p>
<pre><code>Select... order by id desc limit 1 for update
</code></pre>
<p>on a table. </p>
<p>If multiple threads run this query, they both try to pull back the same row. </p>
<p>One gets the row lock, t... | [
{
"answer_id": 389610,
"author": "HUAGHAGUAH",
"author_id": 27233,
"author_profile": "https://Stackoverflow.com/users/27233",
"pm_score": 0,
"selected": false,
"text": "Select... order by id desc offset THREAD_NUMBER limit 1 for update\n"
},
{
"answer_id": 391927,
"author": "... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14059/"
] |
389,551 | <p>I have a condition in which I need to close the application and so I call this.Dispose () when I set a certian flag.</p>
<p>At first I thought it was a problem of calling functions after I call this.Dispose () and so I moved the code to be the last thing called, but I still get an "ArgumentException was unhandled" ... | [
{
"answer_id": 389561,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 4,
"selected": true,
"text": "Application.Exit()"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19802/"
] |
389,571 | <p>If I have an ObjectDataSource defined at design time, can I get a DataTable from that ObjectDataSource at runtime? I have a method that returns a DataTable that I am using for the Select method property of the ObjectDataSource.</p>
| [
{
"answer_id": 389561,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 4,
"selected": true,
"text": "Application.Exit()"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33690/"
] |
389,575 | <p>My technical lead insists on this exception mechanism:</p>
<pre><code>try
{
DoSth();
}
catch (OurException)
{
throw;
}
catch (Exception ex)
{
Util.Log(ex.Message, "1242"); // 1242 is unique to this catch block
throw new OurException(ex);
}
</code></pre>
<p>1242 here is an identifier of the catch me... | [
{
"answer_id": 389600,
"author": "Daniel Schaffer",
"author_id": 2596,
"author_profile": "https://Stackoverflow.com/users/2596",
"pm_score": 2,
"selected": false,
"text": "try\n{\nDoSth();\n}\ncatch(Exception ex)\n{\nUtil.Log(ex.Message, ex.StackTrace);\nif(ex is OurException) throw ex;\... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31505/"
] |
389,581 | <p>I am attempting to get the information from one table (games) and count the entries in another table (tickets) that correspond to each entry in the first. I want each entry in the first table to be returned even if there aren't any entries in the second. My query is as follows:</p>
<pre><code>SELECT g.*, count(*)... | [
{
"answer_id": 389587,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 4,
"selected": true,
"text": "SELECT g.Game_Number, g.PutColumnsHere, count(t.Game_Number) \nFROM games g\nLEFT JOIN tickets t ON g.Game_Number = t.Game_... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30133/"
] |
389,582 | <p>I've been searching for information for a common kernel implementation of queues, that is, first-in-first-out data structures. I thought there may be one since it's likely something that's common to use, and there's a standard for linked lists (in the form of the list_head structure). Is there some standard queue ... | [
{
"answer_id": 389602,
"author": "Diomidis Spinellis",
"author_id": 20520,
"author_profile": "https://Stackoverflow.com/users/20520",
"pm_score": 4,
"selected": true,
"text": " INIT_LIST_HEAD(&wq->list);\n // ...\n case CPU_UP_CANCELED:\n list_for_each_entry(wq, &workqueue... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34426/"
] |
389,591 | <p>Since the <code>OleDbParameter</code> does not use named parameters (due to its nature),
why is it that the .NET <code>OleDbParameter</code> class expects a name? <code>(string parametername ...)</code> </p>
<p>All constructors require a parameter name, and I'm never sure what name to give it; my name is ok? or my ... | [
{
"answer_id": 389647,
"author": "Ricardo Villamil",
"author_id": 19314,
"author_profile": "https://Stackoverflow.com/users/19314",
"pm_score": 1,
"selected": false,
"text": "OleDbCommand command = new OleDbCommand();\n...//Add your parameters with names, then reference them later if you... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
389,604 | <p>Is there any reason why there isn't an addAll() function available when using ArrayCollections in Actionscript? I've been using for loops to individually add them one at a time using addItem(). Is this common or is there a more convenient way?</p>
| [
{
"answer_id": 389682,
"author": "Tmdean",
"author_id": 45084,
"author_profile": "https://Stackoverflow.com/users/45084",
"pm_score": 2,
"selected": false,
"text": "Array"
},
{
"answer_id": 389948,
"author": "shadenite",
"author_id": 47130,
"author_profile": "https://... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47130/"
] |
389,620 | <p>Assume I have 10 Methods and 10 Properties. Is there a way to add the xml comments (///) to all 10 Methods and 10 Properties at once in VS 2008 or do I have to type /// for each one.</p>
| [
{
"answer_id": 389627,
"author": "Yuliy",
"author_id": 47527,
"author_profile": "https://Stackoverflow.com/users/47527",
"pm_score": 2,
"selected": false,
"text": "///"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33690/"
] |
389,644 | <p>The following code for a co-worker throws the following error when he tries to compile it using VS 2008:</p>
<p>Error:</p>
<blockquote>
<p>A new expression requires () or []
after type</p>
</blockquote>
<p>Code:</p>
<p>MyClass Structure:</p>
<pre><code>public class MyClass
{
public MyClass() {}
pub... | [
{
"answer_id": 389686,
"author": "Funky81",
"author_id": 37509,
"author_profile": "https://Stackoverflow.com/users/37509",
"pm_score": 2,
"selected": false,
"text": "x.Add(new MyClass()\n{\n Property1 = \"MyValue\",\n Property2 = \"Another Value\"\n});\n"
},
{
"answer_id": ... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
389,645 | <p>I was wondering how can I set a timeout on a <code>socket_read</code> call? The first time it calls <code>socket_read</code>, it waits till data is sent, and if no data is sent within 5 secs I want to shutdown the connection. Any Help? I already tried <code>SO_RCVTIMEO</code> with no luck.</p>
<p>I'm creating a soc... | [
{
"answer_id": 8205562,
"author": "Nick",
"author_id": 964080,
"author_profile": "https://Stackoverflow.com/users/964080",
"pm_score": 5,
"selected": false,
"text": "socket_set_option($socket,SOL_SOCKET, SO_RCVTIMEO, array(\"sec\"=>5, \"usec\"=>0));\n"
},
{
"answer_id": 40866511,... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45530/"
] |
389,660 | <p>I can use:</p>
<pre><code>select * from sys.tables
</code></pre>
<p>in mssql to show a list of all tables in the current database. Is there anyways I can use similar syntax to show list of tables in another database?</p>
<p>Say I am using A with:</p>
<pre><code>use A
</code></pre>
<p>statement, can I show table... | [
{
"answer_id": 389668,
"author": "Daniel Schaffer",
"author_id": 2596,
"author_profile": "https://Stackoverflow.com/users/2596",
"pm_score": 5,
"selected": true,
"text": "select * from your_database_name.sys.tables\n"
},
{
"answer_id": 772238,
"author": "Gudmundur Orn",
"... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10088/"
] |
389,677 | <p>Anyone know how to query for a specific date within entity framework ? I tried following code, but it gives me NotSupportedException.</p>
<pre><code>var deposit = (from tempDeposit in entities.Deposit
where !tempDeposit.IsApproved
&& tempDeposit.CreatedDate.Date == DateTime.Today
select tempDeposit).FirstOr... | [
{
"answer_id": 389870,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 5,
"selected": true,
"text": "var d1 = DateTime.Today;\nvar d2 = d1.AddDays(1);\nvar deposit = (from tempDeposit in entities.Deposit\n ... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37509/"
] |
389,680 | <p>I am using hudson CI to manage a straight java web project, using ant to build.</p>
<p>I would like to mandate that the unit test coverage never be worse than the previous build, thereby making sure any new code is always tested, or at least the coverage is continually improving.</p>
<p>Is there a hudson plugin th... | [
{
"answer_id": 389842,
"author": "Rob Hruska",
"author_id": 29995,
"author_profile": "https://Stackoverflow.com/users/29995",
"pm_score": 2,
"selected": false,
"text": "echo"
}
] | 2008/12/23 | [
"https://Stackoverflow.com/questions/389680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43379/"
] |
389,688 | <p>I'm about to start a project where I will be the only one doing actual code and two less experienced programmers (scary to think of myself as experienced!) will be watching and making suggestions on the program in general.</p>
<p>Is there a good (free) system that I can use to provide documentation for classes and ... | [
{
"answer_id": 900314,
"author": "Martin Geisler",
"author_id": 110204,
"author_profile": "https://Stackoverflow.com/users/110204",
"pm_score": 2,
"selected": false,
"text": "/**\n * Set the name.\n *\n * @param firstName the first name.\n * @param lastName the last name.\n */\npublic vo... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
389,692 | <p>I'm trying to connect to an Oracle DB which is currently offline. When it's online it's not a problem, however, now that it's offline my program is getting hung up on the $connection = oci_connect() line and timing out. How do I simply check the connectio and bail out if it's not there?</p>
| [
{
"answer_id": 389785,
"author": "Jack",
"author_id": 24998,
"author_profile": "https://Stackoverflow.com/users/24998",
"pm_score": 4,
"selected": true,
"text": "if ( @fsockopen($db_ip,$db_port ) ) {\n //connect to database\n} else {\n // didn't work\n}\n"
},
{
"answer_id":... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39653/"
] |
389,709 | <p>I'm trying to write a notification service (for completely legit non-spam purposes) in .NET using SmtpClient. Initially I just looped through each message and sent it, however this is slow and I would like to improve the speed. So, I switched to using 'SendAsync', but now get the following error on the second cal... | [
{
"answer_id": 389726,
"author": "Gant",
"author_id": 12460,
"author_profile": "https://Stackoverflow.com/users/12460",
"pm_score": 2,
"selected": false,
"text": "XXXAsync"
},
{
"answer_id": 1364338,
"author": "kntcnrg",
"author_id": 125376,
"author_profile": "https:/... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47225/"
] |
389,710 | <p>XAML:</p>
<pre><code><ToolBarTray Name="tlbTray" ButtonBase.Click="tlbTray_Click">
<ToolBar Name="tlbFile">
<Button Name="btnOpen"><Image Source="images\folder.png" Stretch="None" /></Button>
<Button Name="btnSave"><Image Source="images\disk.png" Stretch="None" />&... | [
{
"answer_id": 389733,
"author": "Nate",
"author_id": 3413,
"author_profile": "https://Stackoverflow.com/users/3413",
"pm_score": 1,
"selected": false,
"text": "Button test = (Button)sender;\nif(test.Name==\"btnOpen\")\n{\n //Do something\n}\n"
},
{
"answer_id": 389773,
"aut... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2172/"
] |
389,737 | <p>I have a Database table that I want to display in a DataGridView. However, it has several foreign keys and I don't want to show the integer that represents the other Table to the user.</p>
<p>I have this DataTable with a column userId
I have another DataTable with a column id, and a column username</p>
<p>I want t... | [
{
"answer_id": 389769,
"author": "Eduardo Crimi",
"author_id": 48132,
"author_profile": "https://Stackoverflow.com/users/48132",
"pm_score": 1,
"selected": false,
"text": "List<YourClass>"
},
{
"answer_id": 389774,
"author": "Dillie-O",
"author_id": 71,
"author_profil... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12243/"
] |
389,738 | <p>I'm working on a web app (ASP.NET) that has some features that require Microsoft Excel installed on the client. I'd like to disable those features if Excel is not present. </p>
<p>Windows/IE/Excel only solutions are fine. This is not a multi-browser, multi-OS web app.</p>
<p>Any clever JavaScript out there to acco... | [
{
"answer_id": 389777,
"author": "D'Arcy Rittich",
"author_id": 39430,
"author_profile": "https://Stackoverflow.com/users/39430",
"pm_score": 2,
"selected": false,
"text": "<script>\nvar excelInstalled;\ntry \n{\n var excel = new ActiveXObject(\"Excel.Application\");\n excelInstall... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44091/"
] |
389,741 | <p>I saw this keyword for the first time and I was wondering if someone could explain to me what it does.</p>
<ul>
<li>What is the <code>continue</code> keyword?</li>
<li>How does it work?</li>
<li>When is it used?</li>
</ul>
| [
{
"answer_id": 389744,
"author": "Diomidis Spinellis",
"author_id": 20520,
"author_profile": "https://Stackoverflow.com/users/20520",
"pm_score": 10,
"selected": true,
"text": "continue"
},
{
"answer_id": 389748,
"author": "Dustin",
"author_id": 39975,
"author_profile... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33911/"
] |
389,743 | <p>I need to limit the jquery ui date picker to only have future Tuesdays and Thursdays as selectable days. </p>
<p>How can I accomplish this?</p>
| [
{
"answer_id": 389756,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "$(\"div.selector\").datepicker({ \n onSelect: function(dateText) { \n alert(dateText);\n } \n})\n"
},
{
"an... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40149/"
] |
389,759 | <p>What is the easiest way to use post-commit hook with VisualSVN Server to export from the repository to a directory for staging / testing after a developer commits his changes?</p>
| [
{
"answer_id": 393160,
"author": "Stefan",
"author_id": 48003,
"author_profile": "https://Stackoverflow.com/users/48003",
"pm_score": 1,
"selected": false,
"text": "path\\to\\svn.exe export file:///%1/trunk path\\to\\where\\you\\want\\to\\export\\to\n"
},
{
"answer_id": 540802,
... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
389,761 | <p>What is the best method to determine if the current time is AM or PM using VB.NET?</p>
<p>Currently I'm using If Date.Today.ToString.Contains("AM") but I'm sure there is a better method.</p>
<pre><code>Good <%If Date.Today.ToString.Contains("AM") Then Response.Write("Morning") Else Response.Write("Afternoon")%&... | [
{
"answer_id": 389765,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 5,
"selected": true,
"text": "If Date.Now.Hour < 12 Then"
},
{
"answer_id": 389771,
"author": "Colby Africa",
"author_id": 47164,
... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
389,763 | <p>I know that <a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/" rel="nofollow noreferrer">CodeRush Xpress</a> is intended to be used on VS 2008 and not on VS 2005.<br>
But since I can't migrate to VS2008 yet, I want to install it on VS2005 and don't care it's not supposed to work.<br></p>
<... | [
{
"answer_id": 586303,
"author": "Alex Shnayder",
"author_id": 26042,
"author_profile": "https://Stackoverflow.com/users/26042",
"pm_score": 4,
"selected": true,
"text": "Windows Registry Editor Version 5.00\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Developer Express]\n[HKEY_LOCAL_MACHINE\\SOFTWAR... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26042/"
] |
389,767 | <p>I'm reading the book "LINQ Pocket Reference" and there is a particular example (slightly modified below) that I'm having difficulty getting my head around...
The explanation in the book is a bit brief, so I was wondering if someone could break it down step-by-step for me so that it makes sense...</p>
<pre><code> ... | [
{
"answer_id": 389780,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 4,
"selected": true,
"text": "IEnumerable<char> query2 = \"Not what you might expect\";\nChar t1 = 'a'; query2 = query2.Where(c => c != t1);\nChar t... | 2008/12/23 | [
"https://Stackoverflow.com/questions/389767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40410/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.