qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
164,996 | <p>Using C# in Visual Studio 2008 and stepping through a function in the debugger I get to the end of a function and am on the final curly brace } and about to return. Is there a way to find out what value the function is about to return?</p>
<p>This is necessary if the return value is calculated such as:</p>
<pre><c... | [
{
"answer_id": 165004,
"author": "MagicKat",
"author_id": 8505,
"author_profile": "https://Stackoverflow.com/users/8505",
"pm_score": 2,
"selected": false,
"text": "(x.Func() > y.Func())\n return ValueChangesAfterEveryCall();\n"
},
{
"answer_id": 165226,
"author": "Gabriel Is... | 2008/10/02 | [
"https://Stackoverflow.com/questions/164996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
165,025 | <p>In ASP.NET, I am exporting some data to Excel by simply binding a DataSet to a GridView and then setting the ContentType to Excel.</p>
<p>My ASPX page is very simple and looks like this:</p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamExportReport.aspx.cs" Inherits="Cabi.CamCentral.... | [
{
"answer_id": 165084,
"author": "azamsharp",
"author_id": 3797,
"author_profile": "https://Stackoverflow.com/users/3797",
"pm_score": 2,
"selected": false,
"text": "protected void Page_Load(object sender, EventArgs e)\n {\n if (!Page.IsPostBack)\n {\n ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/165025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1436/"
] |
165,042 | <p>Does anyone happen to know if there is a token I can add to my csv for a certain field so Excel doesn't try to convert it to a date?</p>
<p>I'm trying to write a .csv file from my application and one of the values happens to look enough like a date that Excel is automatically converting it from text to a date. I'v... | [
{
"answer_id": 165049,
"author": "Harley Holcombe",
"author_id": 1057,
"author_profile": "https://Stackoverflow.com/users/1057",
"pm_score": -1,
"selected": false,
"text": "25/12/2008 '25/12/2008"
},
{
"answer_id": 165052,
"author": "Jarod Elliott",
"author_id": 1061,
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/165042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
165,043 | <p>This is an excerpt of code from a class I am working with in Java (below). Obviously the code is defining a static variable named EPSILON with the data type double. What I don't understand is the "1E-14" part. What kind of number is that? What does it mean?</p>
<p>final double EPSILON = 1E-14;</p>
| [
{
"answer_id": 165057,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 5,
"selected": true,
"text": "final double EPSILON = 0.00000000000001;\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/165043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
165,075 | <p>I'd like to map a reference to an object instead of the object value with an HashTable</p>
<pre><code>configMapping.Add("HEADERS_PATH", Me.headers_path)
</code></pre>
<p>that way when I'm going to retrieve the value of "HEADERS_PATH" I'll be able to assign a value to Me.headers_path</p>
<p>something like the " &a... | [
{
"answer_id": 165091,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 3,
"selected": true,
"text": "public class Holder<T> {\n public T Value { get; set; }\n}\n\n...\n\nHolder<String> headerPath = new Holder<String>... | 2008/10/02 | [
"https://Stackoverflow.com/questions/165075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6367/"
] |
165,082 | <p>I'm hand-maintaining an HTML document, and I'm looking for a way to automatically insert a link around text in a table. Let me illustrate:</p>
<pre><code><table><tr><td class="case">123456</td></tr></table>
</code></pre>
<p>I would like to automatically make every text in a TD w... | [
{
"answer_id": 165100,
"author": "Dan",
"author_id": 17121,
"author_profile": "https://Stackoverflow.com/users/17121",
"pm_score": 5,
"selected": true,
"text": "function makeCasesClickable(){\n var cells = document.getElementsByTagName('td')\n for (var i = 0, cell; cell = cells[i];... | 2008/10/02 | [
"https://Stackoverflow.com/questions/165082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19207/"
] |
165,092 | <p>Basically I wanted to do something like <code>git push mybranch to repo1, repo2, repo3</code></p>
<p>right now I'm just typing push many times, and if I'm in a hurry to the the pushing done, I just send them all to the background <code>git push repo1 & git push repo2 &</code></p>
<p>I'm just wondering if <... | [
{
"answer_id": 165131,
"author": "Adam Franco",
"author_id": 15872,
"author_profile": "https://Stackoverflow.com/users/15872",
"pm_score": 3,
"selected": false,
"text": "#!/bin/sh\n#\n# An example hook script to prepare a packed repository for use over\n# dumb transports.\n#\n# To enable... | 2008/10/02 | [
"https://Stackoverflow.com/questions/165092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13989/"
] |
165,101 | <p>The following code:</p>
<pre><code>template <typename S, typename T>
struct foo {
void bar();
};
template <typename T>
void foo <int, T>::bar() {
}
</code></pre>
<p>gives me the error</p>
<pre><code>invalid use of incomplete type 'struct foo<int, T>'
declaration of 'struct foo<int, ... | [
{
"answer_id": 165153,
"author": "coppro",
"author_id": 16855,
"author_profile": "https://Stackoverflow.com/users/16855",
"pm_score": 7,
"selected": true,
"text": "template <typename U = T> struct Nested this->member"
},
{
"answer_id": 6238814,
"author": "Anonymous Coward",
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/165101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/112/"
] |
165,102 | <p>What's wrong with Linq to SQL?</p>
<p>Or - what about Linq to SQL would make it unsuitable for a project, either new or existing? I want to hear about why you would <strong>not</strong> choose Linq to SQL for a particular project - including what project parameters make it unsuitable.</p>
| [
{
"answer_id": 165166,
"author": "jalbert",
"author_id": 1360388,
"author_profile": "https://Stackoverflow.com/users/1360388",
"pm_score": 2,
"selected": false,
"text": "System.Data.Linq.DataContext"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/165102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16942/"
] |
165,135 | <p>I've written a command line utility that detects which network interface is connected, and sets the staitc ip address and dns servers for it (by calling netsh). However, I can't seem to figure out how to set the dns search suffixes. netsh doesnt appear capable of doing that. How do I do that otherwise (WMI perhaps)... | [
{
"answer_id": 64265537,
"author": "marsh-wiggle",
"author_id": 1574221,
"author_profile": "https://Stackoverflow.com/users/1574221",
"pm_score": 0,
"selected": false,
"text": "string searchList = \"\";\ntry \n{\n using (var reg = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(tcpSe... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2712/"
] |
165,140 | <p>Does SubSonic.SqlQuery have a between/and for date ranges? If not, what would be the best way to get a range.</p>
| [
{
"answer_id": 165234,
"author": "Forgotten Semicolon",
"author_id": 1960,
"author_profile": "https://Stackoverflow.com/users/1960",
"pm_score": 3,
"selected": true,
"text": "SqlQuery query = new SqlQuery().From(\"Table\")\n .WhereExpression(\"Column\")\n ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13954/"
] |
165,170 | <p>I want to display dates in the format: short day of week, short month, day of month without leading zero but including "th", "st", "nd", or "rd" suffix.</p>
<p>For example, the day this question was asked would display "Thu Oct 2nd".</p>
<p>I'm using Ruby 1.8.7, and <a href="http://ruby-doc.org/core/Time.html#meth... | [
{
"answer_id": 165202,
"author": "mwilliams",
"author_id": 23909,
"author_profile": "https://Stackoverflow.com/users/23909",
"pm_score": 7,
"selected": false,
"text": ">> 3.ordinalize\n=> \"3rd\"\n>> 2.ordinalize\n=> \"2nd\"\n>> 1.ordinalize\n=> \"1st\"\n"
},
{
"answer_id": 16521... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12887/"
] |
165,175 | <p>I'm failing to understand exactly what the IF statement is doing, from what I can see it is checking if the variable <code>x</code> is equal to the int <code>0</code>. If this is <code>true</code> the ABSOLUTE value of the variable <code>y</code> is returned... this is when I lose the plot, why would the return stat... | [
{
"answer_id": 165180,
"author": "Airsource Ltd",
"author_id": 18017,
"author_profile": "https://Stackoverflow.com/users/18017",
"pm_score": 3,
"selected": false,
"text": "if(x == 0)\n{\n boolean ret = Math.abs(y) <= EPSILON;\n return ret;\n}\n int x = 3 + 4 * 5;\n"
},
{
"ans... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
165,188 | <p>I have some c(++) code that uses sprintf to convert a uint_64 to a string. This needs to be portable to both linux and Solaris.</p>
<p>On linux we use %ju, but there does not appear to be any equivalent on Solaris. The closest I can find is %lu, but this produces incorrect output. Some sample code:</p>
<pre><co... | [
{
"answer_id": 165199,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 0,
"selected": false,
"text": "%llu long long"
},
{
"answer_id": 165203,
"author": "Michael Burr",
"author_id": 12711,
"author_profile"... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16977/"
] |
165,212 | <p>How can I check the umask of a program which is currently running?</p>
<p>[update: another process, not the current process.]</p>
| [
{
"answer_id": 165327,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "umask mode_t\nread_umask (void)\n{\n mode_t mask = umask (0);\n umask (mask);\n return mask;\n}\n getumask getumask ->uma... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
165,231 | <p>Although I played with it before, I'm finally starting to use <a href="http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard" rel="noreferrer">Dvorak (Simplified)</a> regularly. I've been in a steady relationship with Vim for several years now, and I'm trying to figure out the best way to remap the key bindings to... | [
{
"answer_id": 165252,
"author": "Adam Davis",
"author_id": 2915,
"author_profile": "https://Stackoverflow.com/users/2915",
"pm_score": 6,
"selected": true,
"text": "Dvorak it!\nno d h\nno h j\nno t k\nno n l\nno s :\nno S :\nno j d\nno l n\nno L N\nAdded benefits\nno - $\nno _ ^\nno N <... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
165,253 | <p>If I load the nextimg URL manually in the browser, it gives a new picture every time I reload. But this bit of code shows the same image every iteration of <code>draw()</code>.</p>
<p>How can I force myimg not to be cached?</p>
<pre><code><html>
<head>
<script type="text/javascript">
... | [
{
"answer_id": 165256,
"author": "Dan",
"author_id": 17121,
"author_profile": "https://Stackoverflow.com/users/17121",
"pm_score": 5,
"selected": false,
"text": "var url = 'http://.../?' + escape(new Date())\n Math.random() escape(new Date())"
},
{
"answer_id": 165258,
"autho... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
165,284 | <p>I have a flowlayout panel and on a resize event, I resize all the controls inside the flowlayout panel so they fit the width of the (flowlayoutpanel - padding - scroll bar width). On some resizes, the scroll bar is not shown, hiding most of the controls outside the area of the flowlayoutpanel while on other resizes... | [
{
"answer_id": 165891,
"author": "Alex Lyman",
"author_id": 5897,
"author_profile": "https://Stackoverflow.com/users/5897",
"pm_score": 4,
"selected": true,
"text": ".PerformLayout()"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/165284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1632/"
] |
165,316 | <p>From the MSDN article on STAThread:</p>
<blockquote>
<p>Indicates that the COM threading model for an application is single-threaded apartment (STA).</p>
</blockquote>
<p>(For reference, that's <a href="http://msdn.microsoft.com/en-us/library/system.stathreadattribute.aspx" rel="noreferrer">the entire article</a... | [
{
"answer_id": 165351,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 2,
"selected": false,
"text": "CoInitialize"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/165316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
165,338 | <p>I'm working in Visual Studio 2005 and have added a text file that needs to be parsed by right-clicking the project in the solution explorer and add --> new item. This places the .txt file to the project folder. The debug .exe file is in the /bin/debug folder. </p>
<p>How do I properly point to the txt file from cod... | [
{
"answer_id": 165353,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 2,
"selected": false,
"text": "xcopy \"$(ProjectDir)*.txt\" \"$(OutDir)\"\n $(ConfigurationName)\" $(ProjectDir)"
},
{
"answer_id": 166538,
... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4856/"
] |
165,346 | <p>I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-grayscale colors. </p>
<p>I have a script that draws a spiral pattern, and should vary the colors in the spiral based on a modulus check. The script ... | [
{
"answer_id": 170069,
"author": "extraneon",
"author_id": 24582,
"author_profile": "https://Stackoverflow.com/users/24582",
"pm_score": 3,
"selected": true,
"text": "public class Main extends PApplet\n{\n ...\n\n int currentColor = gray;\n\n public Main(){}\n\n ...\n\n public void ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13293/"
] |
165,355 | <p>I'm trying to produce just the day number in a WPF text block, without leading zeroes and without extra space padding (which throws off the layout). The first produces the day number with a space, the second produces the entire date. According to the <a href="http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx" re... | [
{
"answer_id": 165382,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 0,
"selected": false,
"text": "{0:d} string.Format(\"{0}\", DateTime.Today.ToString(\"d \", CultureInfo.InvariantCulture));\n"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/165355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18482/"
] |
165,365 | <p>I am having fickle of problem in Oracle 9i</p>
<p>select 1"FirstColumn" from dual;</p>
<p>Oracle throwing error while executing above query. ORA-03001: unimplemented feature in my Production server.</p>
<p>The Same query is working fine in my Validation server. Both servers are with Oracle 9i</p>
<p>Any one have... | [
{
"answer_id": 165616,
"author": "Doug Porter",
"author_id": 4311,
"author_profile": "https://Stackoverflow.com/users/4311",
"pm_score": 1,
"selected": false,
"text": "select 1 as \"FirstColumn\" from dual;\n select * from v$version;\n"
},
{
"answer_id": 166288,
"author": "bo... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
165,401 | <p>I'm looking for a way to validate the SQL schema on a production DB after updating an application version. If the application does not match the DB schema version, there should be a way to warn the user and list the changes needed.</p>
<p>Is there a tool or a framework (to use programatically) with built-in feature... | [
{
"answer_id": 165411,
"author": "Dan",
"author_id": 17121,
"author_profile": "https://Stackoverflow.com/users/17121",
"pm_score": 0,
"selected": false,
"text": "CREATE TABLE version (\n version VARCHAR(255) NOT NULL\n)\nINSERT INTO version VALUES ('v1.0');\n"
},
{
"answer_id"... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1363/"
] |
165,402 | <p>I need help on this following aspx code</p>
<p>aspx Code:</p>
<pre><code><asp:Label ID ="lblName" runat ="server" Text ="Name"></asp:Label>
<asp:TextBox ID ="txtName" runat ="server"></asp:TextBox>
</code></pre>
<p>Consider this is my aspx page content. I am going to populate the values fo... | [
{
"answer_id": 165409,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 3,
"selected": true,
"text": "runat='server' <label> lblNames"
},
{
"answer_id": 165469,
"author": "Joel Coehoorn",
"author_id": 3043,
... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22162/"
] |
165,404 | <p>I'm looking for some good references for learning how to model 2d physics in games. I am <strong>not</strong> looking for a library to do it for me - I want to think and learn, not blindly use someone else's work.</p>
<p>I've done a good bit of Googling, and while I've found a few tutorials on GameDev, etc., I find... | [
{
"answer_id": 168098,
"author": "Chris Smith",
"author_id": 322,
"author_profile": "https://Stackoverflow.com/users/322",
"pm_score": 2,
"selected": false,
"text": "let distance : float<meters> = gravity * 3.0<seconds>\n"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/165404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16942/"
] |
165,424 | <p>I have a ListBox which until recently was displaying a flat list of items. I was able to use myList.ItemContainerGenerator.ConainerFromItem(thing) to retrieve the ListBoxItem hosting "thing" in the list.</p>
<p>This week I've modified the ListBox slightly in that the CollectionViewSource that it binds to for its it... | [
{
"answer_id": 169123,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 6,
"selected": true,
"text": "ItemsGenerator.StatusChanged void ItemContainerGenerator_StatusChanged(object sender, EventArgs e)\n {\n ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/615/"
] |
165,443 | <p>I have a "span" element inside a "table" "td" element. The span tag has a Title.</p>
<p>I want to get the title of that span tag and pull it out to make it the "mouseover" tip for the "td" element.</p>
<p>For example:</p>
<p>I want to turn this:</p>
<pre><code><td>
<a href="#"><span id="test"... | [
{
"answer_id": 165449,
"author": "John Boker",
"author_id": 2847,
"author_profile": "https://Stackoverflow.com/users/2847",
"pm_score": 1,
"selected": false,
"text": "$(\"span#test\").mouseover( function () {\n tip($(this).attr(\"title\"));\n}\n"
},
{
"answer_id": 165450,
"... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7644/"
] |
165,445 | <p>I have a function that includes a file based on the string that gets passed to it i.e. the action variable from the query string. I use this for filtering purposes etc so people can't include files they shouldn't be able to and if the file doesn't exist a default file is loaded instead.
The problem is that when the... | [
{
"answer_id": 165448,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 3,
"selected": false,
"text": "// myInclude.php\n$x = \"abc\";\n\n// -----------------------\n// myRegularFile.php\n\nfunction doInclude() {\n include 'my... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11753/"
] |
165,455 | <p>Just wondering why people like case sensitivity in a programming language? I'm not trying to start a flame war just curious thats all.<br>
Personally I have never really liked it because I find my productivity goes down when ever I have tried a language that has case sensitivity, mind you I am slowly warming up/gett... | [
{
"answer_id": 165472,
"author": "Kristopher Johnson",
"author_id": 1175,
"author_profile": "https://Stackoverflow.com/users/1175",
"pm_score": 6,
"selected": true,
"text": "Foo foo = ... // \"Foo\" is a type, \"foo\" is a variable with that type\n"
},
{
"answer_id": 165480,
... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
165,458 | <p>Which is the most correct code?</p>
<pre><code>if (HttpContext.Current.Response.Cookies[authCookieName] != null) {
HttpContext.Current.Response.Cookies[authCookieName].Value = "New Value";
}
</code></pre>
<p>or </p>
<pre><code>if (HttpContext.Current != null)
if (HttpContext.Current.Response != null)
... | [
{
"answer_id": 165468,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://Stackoverflow.com/users/1199",
"pm_score": 0,
"selected": false,
"text": "Current Response Cookies Cookies[authCookieName] null"
},
{
"answer_id": 165476,
"author": "John Boker",
... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24395/"
] |
165,466 | <p>I think this is best asked in the form of a simple example. The following chunk of SQL causes a <em>"DB-Library Error:20049 Severity:4 Message:Data-conversion resulted in overflow"</em> message, but how come? </p>
<pre><code>declare @a numeric(18,6), @b numeric(18,6), @c numeric(18,6)
select @a = 1.000000, @b = 1.... | [
{
"answer_id": 171863,
"author": "John Rudy",
"author_id": 14048,
"author_profile": "https://Stackoverflow.com/users/14048",
"pm_score": 3,
"selected": true,
"text": "SET ARITHABORT NUMERIC_TRUNCATION OFF\n SET ARITHABORT NUMERIC_TRUNCATION ON\n"
},
{
"answer_id": 32738583,
"... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1030/"
] |
165,474 | <p>I have seen member functions programed both inside of the class they belong to and outside of the class with a function prototype inside of the class. I have only ever programmed using the first method, but was wondering if it is better practice to use the other or just personal preference?</p>
| [
{
"answer_id": 165510,
"author": "Andrew Stein",
"author_id": 13029,
"author_profile": "https://Stackoverflow.com/users/13029",
"pm_score": 2,
"selected": false,
"text": "int getFoo() const { return _foo; }\n"
},
{
"answer_id": 165956,
"author": "SmacL",
"author_id": 2256... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20229/"
] |
165,488 | <p>I am trying to install the starling gem on my Windows machine. But, whenever I try to install it I get this error:</p>
<pre><code>Building native extensions. This could take a while...
ERROR: Error installing starling:
ERROR: Failed to build gem native extension.
c:/ruby/bin/ruby.exe extconf.rb in... | [
{
"answer_id": 167250,
"author": "Charles Roper",
"author_id": 1944,
"author_profile": "https://Stackoverflow.com/users/1944",
"pm_score": 3,
"selected": false,
"text": "$ gem install eventmachine --version=0.12.0\nSuccessfully installed eventmachine-0.12.0-x86-mswin32\n1 gem installed\n... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5004/"
] |
165,495 | <p>How can I detect mouse clicks regardless of the window the mouse is in?</p>
<p>Perferabliy in python, but if someone can explain it in any langauge I might be able to figure it out.</p>
<p>I found this on microsoft's site:
<a href="http://msdn.microsoft.com/en-us/library/ms645533(VS.85).aspx" rel="noreferrer">http... | [
{
"answer_id": 166054,
"author": "Zebra North",
"author_id": 17440,
"author_profile": "https://Stackoverflow.com/users/17440",
"pm_score": 2,
"selected": false,
"text": "WM_LBUTTONDBLCLK CS_DBLCLKS"
},
{
"answer_id": 166144,
"author": "gimel",
"author_id": 6491,
"auth... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24718/"
] |
165,496 | <p>So i have a piece of assembly that needs to call a function with the fastcall calling convention on windows, but gcc doesn't (afaict) support it. GCC does provide the regparm attribute but that expects the first 3 parameters to be passed in eax, edx and ecx, whereas fastcall expects the first two parameters to be p... | [
{
"answer_id": 165528,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "CALL"
},
{
"answer_id": 165529,
"author": "ephemient",
"author_id": 20713,
"author_profile": "https://Stac... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/784/"
] |
165,539 | <p>Can the iPhone SDK take advantage of the iPhone's proximity sensors? If so, why hasn't anyone taken advantage of them? I could picture a few decent uses.</p>
<p>For example, in a racing game, you could put your finger on the proximity sensor to go instead of taking up screen real-estate with your thumb. Of course t... | [
{
"answer_id": 168561,
"author": "benzado",
"author_id": 10947,
"author_profile": "https://Stackoverflow.com/users/10947",
"pm_score": 5,
"selected": true,
"text": "proximityState"
},
{
"answer_id": 1088382,
"author": "Brian",
"author_id": 113538,
"author_profile": "h... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13009/"
] |
165,551 | <p>I would like to know if there is an easy way to detect if the text on the clipboard is in ISO 8859 or UTF-8 ?</p>
<p>Here is my current code:</p>
<pre><code> COleDataObject obj;
if (obj.AttachClipboard())
{
if (obj.IsDataAvailable(CF_TEXT))
{
HGLOBAL hmem = obj.GetGlobalDat... | [
{
"answer_id": 165570,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 2,
"selected": false,
"text": "Unicode Byte1 Byte2 Byte3 Byte4\nU+000000-U+00007F 0xxxxxxx\nU+000080-U+00... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13676/"
] |
165,556 | <p>I have Windows Vista MCML app, and I need to figure out the current name of the file playing.</p>
<p>The Media Center SDK alludes to using MediaMetadata["Title"] to get this information, unfortunately this does not work with playlists (.wpl) files as there is no method for getting the position in the playlist. </p>... | [
{
"answer_id": 197616,
"author": "Jason Stevenson",
"author_id": 13368,
"author_profile": "https://Stackoverflow.com/users/13368",
"pm_score": 0,
"selected": false,
"text": "MediaContext.GetProperty(TrackTitle)\n <music-title duration = \"2000\" x=\"69\" y=\"29\" width=\"187\" height=\"2... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17174/"
] |
165,571 | <p>I have a list of times in a database column (representing visits to a website).</p>
<p>I need to group them in intervals and then get a 'cumulative frequency' table of those dates.</p>
<p>For instance I might have:</p>
<pre><code>9:01
9:04
9:11
9:13
9:22
9:24
9:28
</code></pre>
<p>and i want to convert that into... | [
{
"answer_id": 165610,
"author": "ephemient",
"author_id": 20713,
"author_profile": "https://Stackoverflow.com/users/20713",
"pm_score": 1,
"selected": false,
"text": "periods SELECT periods.name, count(time)\n FROM periods, times\n WHERE period.start <= times.time\n AND ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24727/"
] |
165,595 | <p>I have a Flex app that does a a fair amount of network traffic, it uses ExternalInterface to make some javascript calls (for SCORM), it loads XML files, images, video, audio and it has a series of modules that it could be loading at some point...</p>
<p>So the problem is - we now have a requirement where the user n... | [
{
"answer_id": 165680,
"author": "jdecuyper",
"author_id": 296,
"author_profile": "https://Stackoverflow.com/users/296",
"pm_score": -1,
"selected": false,
"text": "System.security.allowDomain(\"www.yourdomain.com\");\n"
},
{
"answer_id": 198038,
"author": "davr",
"author... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3435/"
] |
165,603 | <p>I was wondering if there was a way to get at the raw HTTP request data in PHP running on apache that doesn't involve using any additional extensions. I've seen the <a href="http://au2.php.net/http" rel="noreferrer">HTTP</a> functions in the manual, but I don't have the option of installing an extension in my environ... | [
{
"answer_id": 165623,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 4,
"selected": true,
"text": "$_SERVER print_r($_SERVER);\n foreach(getallheaders() as $key=>$value) {\n print $key.': '.$value.\"<br />\";\n}\n"
},
{... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15004/"
] |
165,637 | <p>Whenever I use the signal/slot editor dialog box, I have to choose from the existing list of slots. So the question is how do I create a custom named slot?</p>
| [
{
"answer_id": 165921,
"author": "Pierre",
"author_id": 24449,
"author_profile": "https://Stackoverflow.com/users/24449",
"pm_score": 2,
"selected": false,
"text": "QPushButton QWidget"
},
{
"answer_id": 444608,
"author": "Henrik Hartz",
"author_id": 50830,
"author_pr... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24560/"
] |
165,648 | <p>How can I display a calendar control (date picker) in Oracle forms 9/10?</p>
| [
{
"answer_id": 165921,
"author": "Pierre",
"author_id": 24449,
"author_profile": "https://Stackoverflow.com/users/24449",
"pm_score": 2,
"selected": false,
"text": "QPushButton QWidget"
},
{
"answer_id": 444608,
"author": "Henrik Hartz",
"author_id": 50830,
"author_pr... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10557/"
] |
165,650 | <p>I need to add a tooltip/alt to a "td" element inside of my tables with jquery.</p>
<p>Can someone help me out?</p>
<p>I tried:</p>
<pre><code>var tTip ="Hello world";
$(this).attr("onmouseover", tip(tTip));
</code></pre>
<p>where I have verified that I am using the "td" as "this".</p>
<p>**Edit:**I am able to c... | [
{
"answer_id": 165651,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 5,
"selected": false,
"text": "$(this).mouseover(function() {\n tip(tTip);\n});\n title <table id=\"myTable\">\n <tbody>\n <tr>\n <td... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7644/"
] |
165,699 | <p>I am analyzing a .dmp file that was created and I have a call stack which gives me a lot of info. But I'd like to double click on the call stack and have it bring me to the source code. </p>
<p>I can right click on the call stack and select symbol settings.. where I can put the location to the PDB. But there is ... | [
{
"answer_id": 169685,
"author": "Andy Stevenson",
"author_id": 9734,
"author_profile": "https://Stackoverflow.com/users/9734",
"pm_score": 2,
"selected": false,
"text": "http://msdl.microsoft.com/download/symbols\n"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/165699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
165,713 | <p>I need a function to return a suffix for days when displaying text like the "<code>th</code>" in "<code>Wednesday June 5th, 2008</code>".</p>
<p>It only need work for the numbers 1 through 31 (no error checking required) and English.</p>
| [
{
"answer_id": 165714,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 3,
"selected": false,
"text": "char *makeDaySuffix (unsigned int day) {\n //if ((day < 1) || (day > 31)) return \"\";\n switch (day) {\n c... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14860/"
] |
165,719 | <p>Could you please explain what the practical usage is for the <code>internal</code> keyword in C#?</p>
<p>I know that the <code>internal</code> modifier limits access to the current assembly, but when and in which circumstance should I use it?</p>
| [
{
"answer_id": 165724,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": -1,
"selected": false,
"text": "public class DangerousClass {\n public void SafeMethod() { }\n internal void UpdateGlobalStateInSomeBizarreWay() ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
165,720 | <p>I'm looking for an easy way to debug RESTful services. For example, most webapps can be debugged using your average web browser. Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST.</p>
<p>I am not looking to automate tests. I'd like to run new services th... | [
{
"answer_id": 166123,
"author": "Hank Gay",
"author_id": 4203,
"author_profile": "https://Stackoverflow.com/users/4203",
"pm_score": 2,
"selected": false,
"text": "cURL"
},
{
"answer_id": 166269,
"author": "James Strachan",
"author_id": 2068211,
"author_profile": "ht... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14731/"
] |
165,723 | <p>I've noticed RAII has been getting lots of attention on Stackoverflow, but in my circles (mostly C++) RAII is so obvious its like asking what's a class or a destructor.</p>
<p>So I'm really curious if that's because I'm surrounded daily, by hard-core C++ programmers, and RAII just isn't that well known in general (... | [
{
"answer_id": 165736,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 0,
"selected": false,
"text": "delete using IDisposable"
},
{
"answer_id": 165742,
"author": "John Millikin",
"author_id": 3560,
"autho... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
165,729 | <p>The <code>end()</code> function in jQuery reverts the element set back to what it was before the last destructive change, so I can see how it's supposed to be used, but I've seen some code examples, eg: <a href="http://alistapart.com/articles/prettyaccessibleforms" rel="nofollow noreferrer">on alistapart</a> <em>(wh... | [
{
"answer_id": 165748,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 3,
"selected": false,
"text": "end() $('#myBox') $('#myBox').show ().children ('.myClass').hide ().end ().blink ();\n myBox $('form#login')\n // h... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
165,735 | <p>I have a form showing progress messages as a fairly long process runs. It's a call to a web service so I can't really show a percentage complete figure on a progress bar meaningfully. (I don't particularly like the Marquee property of the progress bar)</p>
<p>I would like to show an animated GIF to give the process... | [
{
"answer_id": 4483452,
"author": "Aruch",
"author_id": 547747,
"author_profile": "https://Stackoverflow.com/users/547747",
"pm_score": 4,
"selected": false,
"text": " private void MyThreadRoutine()\n {\n this.Invoke(this.ShowProgressGifDelegate);\n //your long running process\n ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5019/"
] |
165,767 | <p>I need something like <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html" rel="noreferrer">this</a>, a collection of elements which contains no duplicates of any element. Does Common Lisp, specifically SBCL, have any thing like this? </p>
| [
{
"answer_id": 166273,
"author": "Tamelite",
"author_id": 24436,
"author_profile": "https://Stackoverflow.com/users/24436",
"pm_score": 2,
"selected": false,
"text": "(let ((set (list)))\n (pushnew 11 set)\n (pushnew 42 set)\n (pushnew 11 set) \n (print set) ; set={42,11}\n (setq se... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/85/"
] |
165,779 | <p>I've seen a couple questions around here like <a href="https://stackoverflow.com/questions/165720/how-to-debug-restful-services">How to debug RESTful services</a>, which mentions:</p>
<blockquote>
<p>Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST.</... | [
{
"answer_id": 166129,
"author": "Hank Gay",
"author_id": 4203,
"author_profile": "https://Stackoverflow.com/users/4203",
"pm_score": 4,
"selected": false,
"text": "XMLHttpRequest XMLHttpRequest XMLHttpRequest XMLHttpRequest XMLHttpRequest XMLHttpRequest PUT DELETE"
},
{
"answer_... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3560/"
] |
165,783 | <p>It seems pretty common to want to let your javascript know a particular dom node corresponds to a record in the database. So, how do you do it?</p>
<p>One way I've seen that's pretty common is to use a class for the type and an id for the id:</p>
<pre><code><div class="thing" id="5">
<script> myThing ... | [
{
"answer_id": 165787,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 4,
"selected": false,
"text": "<div class=\"thing\" id=\"myapp-thing-5\"/>\n\n// Get thing on the page for a particular ID\nvar myThing = select(\"#m... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2653/"
] |
165,790 | <p>I'm used to coding Java Swing UIs, and in those if you have some properties that change, and you want your UI to update, you would implement the observer/observable pattern. In Java you do this normally by having your class maintain a list of listeners that it notifies of different events.</p>
<p>I've played with O... | [
{
"answer_id": 166062,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 6,
"selected": true,
"text": "-addObserver:forKeyPath:options:context: NSNotificationCenter userInfo"
},
{
"answer_id": 166724,
"author": "r... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6044/"
] |
165,796 | <p>I must be getting daft, but I can't seem to find how to read old-fashioned ini files with VB 6.0. All I can seem to find is about reading from and writing to the registry. Can someone push me in the right direction? Mind you, I am not a programmer, just a hobbyist trying to have some harmless fun with his computer, ... | [
{
"answer_id": 166062,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 6,
"selected": true,
"text": "-addObserver:forKeyPath:options:context: NSNotificationCenter userInfo"
},
{
"answer_id": 166724,
"author": "r... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17382/"
] |
165,808 | <p>I'm looking for very simple obfuscation (like encrypt and decrypt but not necessarily secure) functionality for some data. It's not mission critical. I need something to keep honest people honest, but something a little stronger than <a href="http://en.wikipedia.org/wiki/ROT13" rel="noreferrer">ROT13</a> or <a href=... | [
{
"answer_id": 165826,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 1,
"selected": false,
"text": "System.Security.Cryptography TripleDESCryptoServiceProvider RijndaelManaged System.Security"
},
{
"answer_id":... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/232/"
] |
165,811 | <p>What are opinions on the design of a "performance assertion checking" system?</p>
<p>The idea is that a developer makes some assertions about his/her code and use these to test the evolution of the <strong>performance</strong> of the code. What is the experience with such a system?</p>
<p>My current block is "What... | [
{
"answer_id": 165871,
"author": "SmacL",
"author_id": 22564,
"author_profile": "https://Stackoverflow.com/users/22564",
"pm_score": 1,
"selected": false,
"text": "StartTest\nInitialiseCounter\n'\n'\nDo some testing\n'\n'\nCheckPoint\nGetElapsedTime\nCompare ElapsedTime with stored elaps... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17382/"
] |
165,828 | <p>I need to queue events and tasks for external systems in a reliable/transactional way. Using things like MSMQ or ActiveMQ look very seductive, but the transactional part becomes complicated (MSDTC, etc).</p>
<p>We could use the database (SQL Server 2005+, Oracle 9+) and achieve easier transactional support, but th... | [
{
"answer_id": 165876,
"author": "csmba",
"author_id": 350,
"author_profile": "https://Stackoverflow.com/users/350",
"pm_score": 4,
"selected": true,
"text": "SELECT TOP 1 @Id = callid\nFROM callqtbl WITH (READPAST, XLOCK)\nwhere 1=1 ORDER BY xx,yy\n"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/165828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10862/"
] |
165,883 | <p>Suppose I have a class with some attributes. How is it best (in the Pythonic-OOP) sense to access these attributes ? Just like <code>obj.attr</code> ? Or perhaps write get accessors ?
What are the accepted naming styles for such things ?</p>
<p><strong>Edit:</strong>
Can you elaborate on the best-practices of nami... | [
{
"answer_id": 165892,
"author": "monkut",
"author_id": 24718,
"author_profile": "https://Stackoverflow.com/users/24718",
"pm_score": 2,
"selected": false,
"text": ">>> class myclass:\n... x = 'hello'\n...\n>>>\n>>> class_inst = myclass()\n>>> class_inst.x\n'hello'\n>>> class_inst.x ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8206/"
] |
165,887 | <p>What's the easiest way to compute the amount of working days since a date? VB.NET preferred, but C# is okay.</p>
<p>And by "working days", I mean all days excluding Saturday and Sunday. If the algorithm can also take into account a list of specific 'exclusion' dates that shouldn't count as working days, that would ... | [
{
"answer_id": 165902,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "https://Stackoverflow.com/users/22506",
"pm_score": 4,
"selected": false,
"text": "DateTime start = new DateTime(2008, 10, 3);\nDateTime end = new DateTime(2008, 12, 31);\nint workingDays = 0;\nwhile... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17235/"
] |
165,931 | <p>In a program I work on, I have a lot of code as follows:</p>
<pre><code>pthread_mutex_lock( &frame->mutex );
frame->variable = variable;
pthread_mutex_unlock( &frame->mutex );
</code></pre>
<p>This is clearly a waste of CPU cycles if the middle instruction can just be replaced with an atomic store... | [
{
"answer_id": 171110,
"author": "ephemient",
"author_id": 20713,
"author_profile": "https://Stackoverflow.com/users/20713",
"pm_score": 2,
"selected": false,
"text": "pthread_mutex_lock volatile volatile asm(\"\" : \"=m\" (variable));\nframe->variable = variable;\n variable"
},
{
... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11206/"
] |
165,938 | <p>Is there a way to step through a .bat script? The thing is, I have a build script , which calls a lot of other scripts, and I would like to see what is the order in which they are called, so that I may know where exactly I have to go about and add my modifications.</p>
| [
{
"answer_id": 165939,
"author": "jop",
"author_id": 11830,
"author_profile": "https://Stackoverflow.com/users/11830",
"pm_score": 2,
"selected": false,
"text": "echo pause"
},
{
"answer_id": 165942,
"author": "Eric Schoonover",
"author_id": 3957,
"author_profile": "h... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11234/"
] |
165,951 | <p>Say I have a third party Application that does background work, but prints out all errors and messages to the console. This means, that currently, we have to keep a user logged on to the server, and restart the application (double-click) every time we reboot.</p>
<p><em>Not so very cool.</em></p>
<p>I was kind of ... | [
{
"answer_id": 165955,
"author": "David Webb",
"author_id": 3171,
"author_profile": "https://Stackoverflow.com/users/3171",
"pm_score": 5,
"selected": true,
"text": "srvany.exe srvany.exe [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\MyService\\Parameters]\n\"Application\"=\"... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
165,975 | <p>What is the most reliable and secure way to determine what page either sent, or called (via AJAX), the current page. I don't want to use the <code>$_SERVER['HTTP_REFERER']</code>, because of the (lack of) reliability, and I need the page being called to only come from requests originating on my site.<br /><br />
E... | [
{
"answer_id": 12609613,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "if (!empty($_SERVER['HTTP_REFERER'])) {\n header(\"Location: \" . $_SERVER['HTTP_REFERER']);\n} else {\n header(\"Loca... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
165,987 | <p>My division has been tasked with recording the morning presentation audio for future use, using the built-in Windows Sound Recorder. Because of human nature, we don't always remember to start it on time. </p>
<p>Windows doesn't have a built-in equivalent to the Unix <strong>cron</strong> function. Besides installin... | [
{
"answer_id": 166555,
"author": "Craig Norton",
"author_id": 24804,
"author_profile": "https://Stackoverflow.com/users/24804",
"pm_score": 3,
"selected": true,
"text": "set WshShell = WScript.CreateObject(\"WScript.Shell\") \nWScript.Sleep(100)\nWshShell.Run \"%SystemRoot%\\system32\\sn... | 2008/10/03 | [
"https://Stackoverflow.com/questions/165987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18676/"
] |
166,004 | <p>I am facing a performance issue on a multi-core (8+) architecture with software written in C++ / VistualStudio / WindowsXP.</p>
<p>Suddenly I realized that I have no idea of the performances of my L1 and L2 cache and CPU->to->Memory bandwidth.</p>
<p>I have tested several tools (including VTune, Glowcode, etc, etc... | [
{
"answer_id": 166555,
"author": "Craig Norton",
"author_id": 24804,
"author_profile": "https://Stackoverflow.com/users/24804",
"pm_score": 3,
"selected": true,
"text": "set WshShell = WScript.CreateObject(\"WScript.Shell\") \nWScript.Sleep(100)\nWshShell.Run \"%SystemRoot%\\system32\\sn... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20042/"
] |
166,023 | <p>I'm supporting a site that still uses mixed ASP.NET and <a href="http://en.wikipedia.org/wiki/Active_Server_Pages" rel="nofollow noreferrer">ASP Classic</a>. The user receives a 'You are not authorized' error page while accessing certain ASP Classic page. I've checked her active directory account and she could acces... | [
{
"answer_id": 166891,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https://Stackoverflow.com/users/17516",
"pm_score": 3,
"selected": true,
"text": "Request.ServerVariables(\"AUTH_USER\")"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/166023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24755/"
] |
166,028 | <p>I have been working in a web project(asp.net) for around six months. The final product is about to go live. The project uses SQL Server as the database. We have done performance testing with some large volumes of data, results show that performance degrades when data becomes too large, say 2 million rows (timeout is... | [
{
"answer_id": 166359,
"author": "Philippe Grondier",
"author_id": 11436,
"author_profile": "https://Stackoverflow.com/users/11436",
"pm_score": 4,
"selected": false,
"text": "DBASEIII"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/166028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965628/"
] |
166,033 | <p>What is meant by ‘value semantics’, and what is meant by ‘implicit pointer semantics’?</p>
| [
{
"answer_id": 166039,
"author": "David Pierre",
"author_id": 18296,
"author_profile": "https://Stackoverflow.com/users/18296",
"pm_score": 5,
"selected": true,
"text": "void foo(Bar * b) ...\n... b->bar() ...\n void foo(Bar b) ...\n... b.bar() ...\n"
},
{
"answer_id": 166041,
... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
166,044 | <p>When writing a batch file to automate something on a Windows box, I've needed to pause its execution for several seconds (usually in a test/wait loop, waiting for a process to start). At the time, the best solution I could find uses ping (I kid you not) to achieve the desired effect. I've found a better write-up of ... | [
{
"answer_id": 166053,
"author": "Daren Thomas",
"author_id": 2260,
"author_profile": "https://Stackoverflow.com/users/2260",
"pm_score": 2,
"selected": false,
"text": "sleep cygwin.dll"
},
{
"answer_id": 166058,
"author": "Luk",
"author_id": 5789,
"author_profile": "... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2193/"
] |
166,051 | <p>So most Java resources when speaking of packages mention a <code>com.yourcompany.project</code> setup. However, I do not work for a company, and don't have a website. Are there any naming conventions that are common? An email address, perhaps?</p>
| [
{
"answer_id": 166069,
"author": "Stu Thompson",
"author_id": 2961,
"author_profile": "https://Stackoverflow.com/users/2961",
"pm_score": 5,
"selected": true,
"text": "import java.util.*;\nimport bernard.myProject.*;\nimport org.apache.commons.lang.*;\n"
},
{
"answer_id": 166294,... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61/"
] |
166,080 | <p>Am working on sybase ASE 15. Looking for something like this</p>
<pre><code>Select * into #tmp exec my_stp;
</code></pre>
<p>my_stp returns 10 data rows with two columns in each row.</p>
| [
{
"answer_id": 175830,
"author": "AdamH",
"author_id": 21081,
"author_profile": "https://Stackoverflow.com/users/21081",
"pm_score": 3,
"selected": false,
"text": "\n --You must use this whole script to recreate the sproc \n create table #mine\n (col1 varchar(3),\n col2 va... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21246/"
] |
166,083 | <p>I have the following preprocessor divective:</p>
<pre><code>#ifndef NDEBUG
#define TRACE printf
#else
#define TRACE(...)
#endif
</code></pre>
<p>and example of usage is:</p>
<pre><code>TRACE("TRACE: some parameter = %i\n", param);
</code></pre>
<p>In C all works perfectly well when I build both debug and release... | [
{
"answer_id": 166087,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": true,
"text": "inline void TRACE(...) {}\n"
},
{
"answer_id": 166124,
"author": "MSalters",
"author_id": 15416,
"auth... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4378/"
] |
166,089 | <p>I'm interested: What is C#'s analog of <code>std::pair</code> in C++? I found <code>System.Web.UI.Pair</code> class, but I'd prefer something template-based.</p>
<p>Thank you!</p>
| [
{
"answer_id": 166094,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 10,
"selected": true,
"text": "Tuple<string, int> t = new Tuple<string, int>(\"Hello\", 4);\n System.Collections.Generic.KeyValuePair<K, V> public c... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
166,099 | <p>Starting new .NET projects always involves a bit of work. You have to create the solution, add projects for different tiers (Domain, DAL, Web, Test), set up references, solution structure, copy javascript files, css templates and master pages etc etc.</p>
<p>What I'd like is <strong>an easy way of cloning any given... | [
{
"answer_id": 166135,
"author": "Andre Bossard",
"author_id": 21027,
"author_profile": "https://Stackoverflow.com/users/21027",
"pm_score": 2,
"selected": false,
"text": "text/plain"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/166099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1136215/"
] |
166,113 | <p>If I want to call <code>Bar()</code> instead of <code>Foo()</code>, does <code>Bar()</code> return me a copy (additional overhead) of what Foo() returns, or it returns the same object which <code>Foo()</code> places on the temporary stack?</p>
<pre><code>vector<int> Foo(){
vector<int> result;
... | [
{
"answer_id": 166116,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 2,
"selected": false,
"text": "vector<int> vector<int> Foo(){ \n004118D0 push ebp \n004118D1 mov ebp,esp \n004118D3 push ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20646/"
] |
166,125 | <p>I'm currently trying to pass a mono threaded program to multithread. This software do heavy usage of "refCounted" objects, which lead to some issues in multithread. I'm looking for some design pattern or something that might solve my problem.</p>
<p>The main problem is object deletion between thread, normally delet... | [
{
"answer_id": 166167,
"author": "grrussel",
"author_id": 8516,
"author_profile": "https://Stackoverflow.com/users/8516",
"pm_score": 0,
"selected": false,
"text": "ACE_Atomic_Op"
},
{
"answer_id": 166200,
"author": "tloach",
"author_id": 14092,
"author_profile": "htt... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1578/"
] |
166,127 | <p>I have a web page where I'd like to remap Ctrl+N to a different behavior. I followed YUI's example of register Key Listeners and my function is called but Firefox still creates a new browser window. Things seem to work fine on IE7. How do I stop the new window from showing up?</p>
<p>Example:</p>
<pre><code>var kl... | [
{
"answer_id": 786261,
"author": "Tac-Tics",
"author_id": 92971,
"author_profile": "https://Stackoverflow.com/users/92971",
"pm_score": 4,
"selected": true,
"text": "function callback(type, args)\n{\n var event = args[1]; // the actual event object\n alert('Click');\n\n // like ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/680/"
] |
166,132 | <p>I want to store the data returned by <code>$_SERVER["REMOTE_ADDR"]</code> in PHP into a DB field, pretty simple task, really. The problem is that I can't find any proper information about the maximum length of the <strong>textual representation</strong> of an IPv6 address, which is what a webserver provides through ... | [
{
"answer_id": 166157,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 11,
"selected": true,
"text": "0000:0000:0000:0000:0000:0000:0000:0000\n : . [::ffff:192.168.100.228] 0000:0000:0000:0000:0000:ffff:192.168.100.... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10024/"
] |
166,134 | <p>In PHP, which is quicker; using <code>include('somefile.php')</code> or querying a MySQL database with a simple <code>SELECT</code> query to get the same information?</p>
<p>For example, say you had a JavaScript autocomplete search field which needed 3,000 terms to match against. Is it quicker to read those terms i... | [
{
"answer_id": 166215,
"author": "Gravstar",
"author_id": 17381,
"author_profile": "https://Stackoverflow.com/users/17381",
"pm_score": 5,
"selected": true,
"text": "<?php\n\n start = microtime(true);\n\n include( 'somefile.php' );\n\n echo microtime(true)-start;\n\n?>\n <?php\n\n st... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21709/"
] |
166,159 | <p>I recall there is a difference between some methods/properties called directly on the <a href="http://msdn.microsoft.com/en-us/library/system.data.datatable(VS.71).aspx" rel="noreferrer">DataTable</a> class, and the identically named methods/properties on the <a href="http://msdn.microsoft.com/en-us/library/system.d... | [
{
"answer_id": 166190,
"author": "Jaymz",
"author_id": 24761,
"author_profile": "https://Stackoverflow.com/users/24761",
"pm_score": 2,
"selected": false,
"text": "datatable.clear datatable.rows.clear datatable.clear datatable.rows.clear datatable.clear datatable.reset datatable.reset da... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5422/"
] |
166,160 | <p>How can I scale the content of an iframe (in my example it is an HTML page, and is not a popup) in a page of my web site?</p>
<p>For example, I want to display the content that appears in the iframe at 80% of the original size.</p>
| [
{
"answer_id": 166287,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": -1,
"selected": false,
"text": "font-size: 80%;"
},
{
"answer_id": 166343,
"author": "roenving",
"author_id": 23142,
"author_profile":... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24765/"
] |
166,174 | <p>I have a list of objects, each containing an Id, Code and Description.</p>
<p>I need to convert this list into a Hashtable, using <strong>Description</strong> as the key and <strong>Id</strong> as the value.</p>
<p>This is so the Hashtable can then be serialised to JSON.</p>
<p>Is there a way to convert from List... | [
{
"answer_id": 166207,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 6,
"selected": true,
"text": "var dict = myList.Cast<Foo>().ToDictionary(o => o.Description, o => o.Id);\n"
},
{
"answer_id": 166251,
"auth... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4734/"
] |
166,179 | <p>I'm currently using the sun preverifier to preverify my MIDlet. I'm finding that it can be a bit slow, doesnt give any decent error messages and is only available as a windows exe.</p>
<p>Are there any better preverifiers around that will work cross platform (linux specifically)</p>
| [
{
"answer_id": 166512,
"author": "JaanusSiim",
"author_id": 706,
"author_profile": "https://Stackoverflow.com/users/706",
"pm_score": 0,
"selected": false,
"text": "Proguard"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/166179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24072/"
] |
166,198 | <p>I'm writing a little debug app for a bit of kit we're developing and I'd like to roll it out to a few users to see if they can provoke any crashes. Does anyone know a way of effectively wrapping a wxPython app to catch any and all unhandled exceptions that would cause the app to crash?</p>
<p>Ideally I'd want to ca... | [
{
"answer_id": 166213,
"author": "Milan Babuškov",
"author_id": 14690,
"author_profile": "https://Stackoverflow.com/users/14690",
"pm_score": 1,
"selected": false,
"text": "void Application::HandleEvent(wxEvtHandler* handler, wxEventFunction func, wxEvent& event) const\n{\n try\n {... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15369/"
] |
166,210 | <p>I'll regularly get an extract from a DB/2 database with dates and timestaps formatted like this:</p>
<pre><code>2002-01-15-00.00.00.000000
2008-01-05-12.36.05.190000
9999-12-31-24.00.00.000000
</code></pre>
<p>Is there an easier way to convert this into the Excel date format than decomposing with substrings?</p>
... | [
{
"answer_id": 166216,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 1,
"selected": false,
"text": "DB2string = \"2002-01-15-00.00.00.000000\";\nDB2date = DateValue(DB2string.SubString(0, 10).Replace('-', '/'));\n... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15296/"
] |
166,212 | <p>I might be an exception here but I have never worked on a team with more than three developers and / or five people. Still we could manage to get the job done (somehow).</p>
<p>Is there a software development process which fits this "extreme" scenario? And, if you work as a standalone programmer is there something ... | [
{
"answer_id": 598697,
"author": "MarkJ",
"author_id": 15639,
"author_profile": "https://Stackoverflow.com/users/15639",
"pm_score": 3,
"selected": false,
"text": " intellisense \n ||\n \\/\n code >>> compile >>>>> run >>>> success >>>> profit ;-)\n /\\ ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23297/"
] |
166,217 | <p>I'm trying to create a named_scope that uses a join, but although the generated SQL looks right, the result are garbage. For example:</p>
<pre><code>class Clip < ActiveRecord::Base
named_scope :visible, {
:joins => "INNER JOIN series ON series.id = clips.owner_id INNER JOIN shows on shows.id = ser... | [
{
"answer_id": 166329,
"author": "Ben Scofield",
"author_id": 6478,
"author_profile": "https://Stackoverflow.com/users/6478",
"pm_score": 6,
"selected": true,
"text": "named_scope :visible, {\n :select => \"episodes.*\",\n :joins => \"INNER JOIN series ON series.id = clips.owner_id INN... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18666/"
] |
166,220 | <p>I have a project in subversion, which I'm developing using Eclipse. I did the original checkout from the svn repository from inside Eclipse. All was well for some weeks then for some unknown reason, Eclipse (specifically: subclipse in Ganymede) no longer recognizes my project as being under svn control. The team con... | [
{
"answer_id": 28626589,
"author": "Psychonaut",
"author_id": 906070,
"author_profile": "https://Stackoverflow.com/users/906070",
"pm_score": 0,
"selected": false,
"text": "maven.1424425443350 svn status maven.1424425443350"
},
{
"answer_id": 71846883,
"author": "el-teedee",
... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6716/"
] |
166,221 | <p>I would like to upload a file asynchronously with jQuery. </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function () {
$("#uploadbutton").click(f... | [
{
"answer_id": 166284,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 8,
"selected": false,
"text": "file"
},
{
"answer_id": 215476,
"author": "Darryl Hein",
"author_id": 5441,
"author_profile": "https://Sta... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
166,231 | <p><a href="http://en.wikipedia.org/wiki/Tcl" rel="noreferrer">Tcl/Tk</a> is a simple way to script small GUIs.</p>
<p>Can anyone give a nice example with a <em>button</em> and a <em>text</em> widget. When the button is pressed should a shell command be executed and the output piped to the <em>text</em> widget.</p>
<... | [
{
"answer_id": 166247,
"author": "epatel",
"author_id": 842,
"author_profile": "https://Stackoverflow.com/users/842",
"pm_score": 2,
"selected": false,
"text": "#!/usr/bin/wish\n\nproc push_button {} {\n put_text\n .main see end\n}\n\nproc put_text {} {\n set f [ open \"| date\" r... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/842/"
] |
166,258 | <p>Is there a way to configure an assembly in GAC? I want to add a custom configuration to my assembly with System.Configuration.</p>
<p>Mher</p>
| [
{
"answer_id": 166826,
"author": "Chris Ballard",
"author_id": 18782,
"author_profile": "https://Stackoverflow.com/users/18782",
"pm_score": 0,
"selected": false,
"text": "Application Data Common Application Data"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/166258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
166,270 | <p>Is it possible to use oracle instant client for application that use oraoledb driver for connecting to oracle 9i DB.</p>
| [
{
"answer_id": 49946548,
"author": "Baumann",
"author_id": 1303378,
"author_profile": "https://Stackoverflow.com/users/1303378",
"pm_score": 2,
"selected": false,
"text": "install oledb c:\\oracle\\odac_12_1 odac true regsvr32 oraoledb12.dll"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/166270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
166,298 | <p>Is there any substantial difference between those two terms?. I understand that JDK stands for Java Development Kit that is a subset of SDK (Software Development Kit). But specifying Java SDK, it should mean the same as JDK.</p>
| [
{
"answer_id": 66506764,
"author": "Kidus Tekeste",
"author_id": 6021740,
"author_profile": "https://Stackoverflow.com/users/6021740",
"pm_score": 0,
"selected": false,
"text": "write a java program run a java program contains Write Once(compile once) run anywhere.(WORA)"
}
] | 2008/10/03 | [
"https://Stackoverflow.com/questions/166298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/94303/"
] |
166,299 | <p>I'm using the jQuery slideToggle function on a site to reveal 'more information' about something. When I trigger the slide, the content is gradually revealed, but is located to the right by about 100 pixels until the end of the animation when it suddenly jumps to the correct position. Going the other way, the cont... | [
{
"answer_id": 172362,
"author": "matdumsa",
"author_id": 1775,
"author_profile": "https://Stackoverflow.com/users/1775",
"pm_score": 2,
"selected": false,
"text": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n"
},
{
"answer_id":... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/691/"
] |
166,321 | <p>Is it possible to create a SQL query which will return one column which contains the dates from a given date range (e.g. all dates from last year till today). E.g.</p>
<pre><code>dat
----
2007-10-01
2007-10-02
2007-10-03
2007-10-04
...
</code></pre>
<p>I am wondering if this is possible as an alternative to creati... | [
{
"answer_id": 166345,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 2,
"selected": false,
"text": "DECLARE @start datetime\nDECLARE @end datetime\nDECLARE @results TABLE\n(\n val datetime not null\n)\nset @start = ... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21672/"
] |
166,322 | <p>what is the best way of displaying/using the revision number in a java webapp?</p>
<p>we just use ant to build our .war archive, no buildserver or such. i'd hope there was some kind if $ref that i could write in a resource file, but this is only updated when the file in question is committed. i need it globally.</p... | [
{
"answer_id": 166328,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 1,
"selected": false,
"text": "$Id:$"
},
{
"answer_id": 167092,
"author": "serg10",
"author_id": 1853,
"author_profile": "https://Stackov... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16542/"
] |
166,330 | <p>This is a nut I'm cracking these days</p>
<p>Application I'm working on has some advanced processing towards SQL. One of the operations selects various metadata on the objects in the current context from different tables, based on the item names in the collection. For this, a range of "select...from...where...in()"... | [
{
"answer_id": 166348,
"author": "Torbjörn Gyllebring",
"author_id": 21182,
"author_profile": "https://Stackoverflow.com/users/21182",
"pm_score": 3,
"selected": false,
"text": "declare @wanted xml\nset @wanted = '<ids><id>1</id><id>2</id></ids>'\nselect * \nfrom (select 1 Id union all s... | 2008/10/03 | [
"https://Stackoverflow.com/questions/166330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21692/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.