qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
37,011 | <p>Should you ever use protected member variables? What are the the advantages and what issues can this cause?</p>
| [
{
"answer_id": 194655,
"author": "paercebal",
"author_id": 14089,
"author_profile": "https://Stackoverflow.com/users/14089",
"pm_score": 2,
"selected": false,
"text": "template <typename T, typename TContainer>\nclass Base\n{\n // etc.\n protected\n TContainer container ;\n}\n\ntem... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3305/"
] |
37,026 | <p>If one Googles for "difference between <code>notify()</code> and <code>notifyAll()</code>" then a lot of explanations will pop up (leaving apart the javadoc paragraphs). It all boils down to the number of waiting threads being waken up: one in <code>notify()</code> and all in <code>notifyAll()</code>.</p>
<p>Howeve... | [
{
"answer_id": 37038,
"author": "Spoike",
"author_id": 3713,
"author_profile": "https://Stackoverflow.com/users/3713",
"pm_score": 2,
"selected": false,
"text": "notify() notifyAll() notify() notifyAll()"
},
{
"answer_id": 37046,
"author": "Liedman",
"author_id": 890,
... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3894/"
] |
37,029 | <p>It is generally accepted that the use of cursors in stored procedures should be avoided where possible (replaced with set based logic etc). If you take the cases where you need to iterate over some data, and can do in a read only manner, are fast forward (read only forward) cursor more or less inefficient than say w... | [
{
"answer_id": 461370,
"author": "Miles D",
"author_id": 3898,
"author_profile": "https://Stackoverflow.com/users/3898",
"pm_score": 2,
"selected": false,
"text": "SELECT INSERT UPDATE DELETE FROM FAST FORWARD"
},
{
"answer_id": 27359172,
"author": "Fabiano Novaes Ferreira",
... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3898/"
] |
37,041 | <p>I have a question on the best way of exposing an asynchronous remote interface.</p>
<p>The conditions are as follows:</p>
<ul>
<li>The protocol is asynchronous</li>
<li>A third party can modify the data at any time</li>
<li>The command round-trip can be significant</li>
<li>The model should be well suited for UI i... | [
{
"answer_id": 37093,
"author": "Staale",
"author_id": 3355,
"author_profile": "https://Stackoverflow.com/users/3355",
"pm_score": 3,
"selected": true,
"text": "java.util.concurrent Future<T> Iterable QuerySet Iterable<Song> allSongs() allSongs().artist(\"Beatles\") allSongs().artist(\"B... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2010/"
] |
37,048 | <p>Can anyone advise on how to crop an image, let's say jpeg, without using any .NET framework constructs, just raw bytes? Since this is the only* way in Silverlight...</p>
<p>Or point to a library?</p>
<p>I'm not concerned with rendering i'm wanting to manipulate a jpg before uploading.</p>
<p>*There are no GDI+(S... | [
{
"answer_id": 97669,
"author": "Lou Franco",
"author_id": 3937,
"author_profile": "https://Stackoverflow.com/users/3937",
"pm_score": 2,
"selected": false,
"text": "for (int y = 0; y < _newHeight; y++)\n{\n i_sY = (int)sY; sX = 0;\n\n UpdateProgress((double)y / _newHeight);\n\n ... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/580/"
] |
37,053 | <p>I'm trying to find out the 'correct' windows API for finding out the localized name of 'special' folders, specifically the Recycle Bin. I want to be able to prompt the user with a suitably localized dialog box asking them if they want to send files to the recycle bin or delete them directly.</p>
<p>I've found lots ... | [
{
"answer_id": 7417694,
"author": "ladenedge",
"author_id": 222481,
"author_profile": "https://Stackoverflow.com/users/222481",
"pm_score": 0,
"selected": false,
"text": "public static string GetLocalizedRecycleBinName()\n{\n IntPtr relative_pidl, parent_ptr, absolute_pidl;\n\n PInvo... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1849/"
] |
37,056 | <p>I'm setting up a web application with a FreeBSD PostgreSQL back-end. I'm looking for some database performance optimization tool/technique.</p>
| [
{
"answer_id": 65180,
"author": "brianestes",
"author_id": 8993,
"author_profile": "https://Stackoverflow.com/users/8993",
"pm_score": 2,
"selected": false,
"text": "#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements\n #... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2313/"
] |
37,069 | <p>On Mac OS X 10.5 I downloaded the latest version of Apache 2.2.9. After the usual configure, make, make install dance I had a build of apache without mod_rewrite. This wasn't statically linked and the module was not built in the /modules folder either.</p>
<p>I had to do the following to build Apache and mod_rewrit... | [
{
"answer_id": 37111,
"author": "Brendan",
"author_id": 199,
"author_profile": "https://Stackoverflow.com/users/199",
"pm_score": 5,
"selected": true,
"text": "./configure --enable-mods-shared=\"all\" --enable-mods-shared=\"<list of modules>\" --enable-so"
},
{
"answer_id": 90948... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/636/"
] |
37,070 | <p>This is a somewhat low-level question. In x86 assembly there are two SSE instructions: </p>
<blockquote>
<p><code>MOVDQA <i><em>xmmi, m128</em></i></code></p>
</blockquote>
<p>and </p>
<blockquote>
<p><code>MOVNTDQA <i><em>xmmi, m128</em></i></code></p>
</blockquote>
<p>The IA-32 Software Developer's Manua... | [
{
"answer_id": 53199688,
"author": "chus",
"author_id": 1037634,
"author_profile": "https://Stackoverflow.com/users/1037634",
"pm_score": 4,
"selected": false,
"text": "prefetchnta"
}
] | 2008/08/31 | [
"https://Stackoverflow.com/questions/37070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1084/"
] |
37,073 | <p>What is currently the best way to get a favicon to display in all browsers that currently support it?</p>
<p>Please include:</p>
<ol>
<li><p>Which image formats are supported by which browsers.</p></li>
<li><p>Which lines are needed in what places for the various browsers.</p></li>
</ol>
| [
{
"answer_id": 37076,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 2,
"selected": false,
"text": "favicon.* <link rel=\"icon\" type=\"image/png\" href=\"/path/image.png\" />\n"
},
{
"answer_id": 37091,
"author": "... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/177/"
] |
37,089 | <p>When launching a thread or a process in .NET or Java, is there a way to choose which processor or core it is launched on? How does the shared memory model work in such cases?</p>
| [
{
"answer_id": 37117,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 2,
"selected": false,
"text": "Processes Set Affinity..."
},
{
"answer_id": 37127,
"author": "sieben",
"author_id": 1147,
"author_pr... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/646/"
] |
37,095 | <p>How do I avoid read locks in my database?</p>
<p>Answers for multiple databases welcome!</p>
| [
{
"answer_id": 37099,
"author": "Joe Barone",
"author_id": 3452,
"author_profile": "https://Stackoverflow.com/users/3452",
"pm_score": 2,
"selected": false,
"text": "Select table1.columna, table2.columna\nfrom table1 with(nolock), table2 with(nolock)\n"
}
] | 2008/08/31 | [
"https://Stackoverflow.com/questions/37095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
37,101 | <p>Is there a way clear or reset the outputcache for an entire website without a restart?</p>
<p>I'm just starting to use outputcache on a site and when I make a mistake in setting it up I need a page I can browse to that will reset it.</p>
| [
{
"answer_id": 37167,
"author": "Ethan Gunderson",
"author_id": 2066,
"author_profile": "https://Stackoverflow.com/users/2066",
"pm_score": 4,
"selected": true,
"text": "Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)\n\n Dim path As String\n path=\"/Abosol... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
37,103 | <p>I have a container div with a fixed <code>width</code> and <code>height</code>, with <code>overflow: hidden</code>.</p>
<p>I want a horizontal row of float: left divs within this container. Divs which are floated left will naturally push onto the 'line' below after they read the right bound of their parent. This wil... | [
{
"answer_id": 37125,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 3,
"selected": false,
"text": "#foo {\n background: red;\n max-height: 100px;\n overflow-y: hidden;\n}\n\n.bar {\n background: blue;\n width: 100p... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1349865/"
] |
37,104 | <p>What's are the best practices for versioning web sites?</p>
<ul>
<li>Which revision control systems are well suited for such a job?</li>
<li>What special-purpose tools exist?</li>
<li>What other questions should I be asking?</li>
</ul>
| [
{
"answer_id": 37147,
"author": "Christian Lescuyer",
"author_id": 341,
"author_profile": "https://Stackoverflow.com/users/341",
"pm_score": 2,
"selected": false,
"text": "<?php print(\"$Revision: 1 $\"); ?>\n"
}
] | 2008/08/31 | [
"https://Stackoverflow.com/questions/37104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
37,122 | <p>How do I make a user's browser blink/flash/highlight in the task bar using JavaScript? For example, if I make an AJAX request every 10 seconds to see if the user has any new messages on the server, I want the user to know it right away, even if he is using another application at the time.</p>
<p><em>Edit: These use... | [
{
"answer_id": 37283,
"author": "Toran Billups",
"author_id": 2701,
"author_profile": "https://Stackoverflow.com/users/2701",
"pm_score": 1,
"selected": false,
"text": "document.title = \"[user] hello world\";\n"
},
{
"answer_id": 156274,
"author": "nickf",
"author_id": 9... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1191/"
] |
37,142 | <p>Even though <a href="http://twistedmatrix.com/pipermail/twisted-python/2004-May/007896.html" rel="noreferrer">Python</a> and <a href="http://www.reddit.com/comments/6wmum/thread_safe_ruby_on_rails_in_22_release/" rel="noreferrer">Ruby</a> have one kernel thread per interpreter thread, they have a global interpreter ... | [
{
"answer_id": 37146,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 1,
"selected": false,
"text": "mod_wsgi mod_wsgi"
},
{
"answer_id": 191257,
"author": "David Eyk",
"author_id": 18950,
"author_pro... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3855/"
] |
37,162 | <p>We generate web pages that should always be printed in landscape mode. Web browser print dialogs default to portrait, so for every print job the user has to manually select landscape. It's minor, but would be nice for the user if we can remove this unnecessary step. </p>
<p>Thanks in advance to all respondents.</p... | [
{
"answer_id": 37168,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 1,
"selected": false,
"text": "@page"
}
] | 2008/08/31 | [
"https://Stackoverflow.com/questions/37162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3915/"
] |
37,198 | <ol>
<li>Specifically getting on Windows the "..\Documents & Settings\All Users, basicaly any path that needs the front end to be dynamically derived based on the OS your software is running on. <strong>(Now I need the answer to this)</strong></li>
<li>the current users My Documents dirctory <strong>(okay this has... | [
{
"answer_id": 37240,
"author": "nimish",
"author_id": 3926,
"author_profile": "https://Stackoverflow.com/users/3926",
"pm_score": 3,
"selected": false,
"text": "System.getProperty(\"user.home\");\n"
},
{
"answer_id": 37693,
"author": "Lee Theobald",
"author_id": 1900,
... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3576/"
] |
37,219 | <p>Suppose your git history looks like this:</p>
<p>1
2
3
4
5</p>
<p>1–5 are separate revisions. You need to remove 3 while still keeping 1, 2, 4 and 5. How can this be done?</p>
<p>Is there an efficient method when there are hundreds of revisions after the one to be deleted?</p>
| [
{
"answer_id": 37267,
"author": "garethm",
"author_id": 2219,
"author_profile": "https://Stackoverflow.com/users/2219",
"pm_score": 7,
"selected": true,
"text": "git rebase -i <after-this-commit>"
},
{
"answer_id": 3705310,
"author": "rado",
"author_id": 127388,
"auth... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3146/"
] |
37,248 | <p>While the C# spec does include a pre-processor and basic directives (#define, #if, etc), the language does not have the same flexible pre-processor found in languages such as C/C++. I believe the lack of such a flexible pre-processor was a design decision made by Anders Hejlsberg (although, unfortunately, I can't fi... | [
{
"answer_id": 37941,
"author": "Timbo",
"author_id": 1810,
"author_profile": "https://Stackoverflow.com/users/1810",
"pm_score": 1,
"selected": false,
"text": "public static string GetNameOfCurrentMethod()\n{\n // Skip 1 frame (this method call)\n var trace = new System.Diagnostic... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/708/"
] |
37,275 | <p>What is the SQL query to select all of the MSSQL Server's logins?</p>
<p>Thank you. More than one of you had the answer I was looking for:</p>
<pre><code>SELECT * FROM syslogins
</code></pre>
| [
{
"answer_id": 37280,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 4,
"selected": false,
"text": "EXEC sp_helplogins\n EXEC sp_helplogins @LoginNamePattern='fred'\n"
},
{
"answer_id": 37284,
"author": "GateK... | 2008/08/31 | [
"https://Stackoverflow.com/questions/37275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1208/"
] |
37,299 | <p>What's the instruction to cause a hard-break in Xcode? For example under Visual Studio I could do '_asm int 3' or 'DebugBreak()'. Under some GCC implementations it's asm("break 0") or asm("trap").</p>
<p>I've tried various combos under Xcode without any luck. (inline assembler works fine so it's not a syntax issue)... | [
{
"answer_id": 37304,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 6,
"selected": true,
"text": "asm {trap} ; Halts a program running on PPC32 or PPC64.\n\n__asm {int 3} ; Halts a program running on... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1043/"
] |
37,310 | <p>I have developed some classes with similar behavior, they all implement the same interface. I implemented a factory that creates the appropriate object and returns the interface. I am writing a unit test for the factory. All you get back is an interface to the object.
What is the best way to test that the factory... | [
{
"answer_id": 37316,
"author": "Cem Catikkas",
"author_id": 3087,
"author_profile": "https://Stackoverflow.com/users/3087",
"pm_score": 6,
"selected": true,
"text": "IMyInterface fromFactory = factory.create(...); \nAssert.assertTrue(fromFactory instanceof MyInterfaceImpl1);\n"
},
... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3576/"
] |
37,317 | <p>I'm working on a windows forms application (C#) where a user is entering data in a form. At any point while editing the data in the form the user can click one of the buttons on the form to perform certain actions. By default the focus goes to the clicked button so the user has to click back on to the control they... | [
{
"answer_id": 37331,
"author": "Dan Herbert",
"author_id": 392,
"author_profile": "https://Stackoverflow.com/users/392",
"pm_score": 1,
"selected": false,
"text": "private void Form_OnLoad(object obj, EventArgs e)\n{\n AddGotFocusListener(this);\n}\n\nprivate void AddGotFocusListener... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3452/"
] |
37,324 | <p>I'm writing a LINQ to SQL statement, and I'm after the standard syntax for a normal inner join with an <code>ON</code> clause in C#.</p>
<p>How do you represent the following in LINQ to SQL:</p>
<pre><code>select DealerContact.*
from Dealer
inner join DealerContact on Dealer.DealerID = DealerContact.DealerID
</co... | [
{
"answer_id": 37332,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 10,
"selected": true,
"text": "from t1 in db.Table1\njoin t2 in db.Table2 on t1.field equals t2.field\nselect new { t1.field2, t2.field3}\n var dealerconta... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2975/"
] |
37,335 | <p>I am writing a client-side <strong>Swing</strong> application (graphical font designer) on <strong>Java 5</strong>. Recently, I am running into <code>java.lang.OutOfMemoryError: Java heap space</code> error because I am not being conservative on memory usage. The user can open unlimited number of files, and the prog... | [
{
"answer_id": 37349,
"author": "Ben Childs",
"author_id": 2925,
"author_profile": "https://Stackoverflow.com/users/2925",
"pm_score": 9,
"selected": true,
"text": "2GB"
},
{
"answer_id": 37466,
"author": "David Webb",
"author_id": 3171,
"author_profile": "https://Sta... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3827/"
] |
37,346 | <p>If I create a class like so: </p>
<pre><code>// B.h
#ifndef _B_H_
#define _B_H_
class B
{
private:
int x;
int y;
};
#endif // _B_H_
</code></pre>
<p>and use it like this:</p>
<pre><code>// main.cpp
#include <iostream>
#include <vector>
class B; // Forward declaration.
class A
{
public:
... | [
{
"answer_id": 37348,
"author": "Curt Hagenlocher",
"author_id": 533,
"author_profile": "https://Stackoverflow.com/users/533",
"pm_score": 6,
"selected": true,
"text": "std::vector<B*>"
},
{
"answer_id": 14010890,
"author": "daotheman",
"author_id": 1924938,
"author_p... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61/"
] |
37,374 | <p>We've just started using LINQ to SQL at work for our DAL & we haven't really come up with a standard for out caching model. Previously we had being using a base 'DAL' class that implemented a cache manager property that all our DAL classes inherited from, but now we don't have that. I'm wondering if anyone has... | [
{
"answer_id": 37432,
"author": "Greg Hurlman",
"author_id": 35,
"author_profile": "https://Stackoverflow.com/users/35",
"pm_score": 2,
"selected": false,
"text": "List<TableItem> myResult = (from t in db.Table select t).ToList();\n"
},
{
"answer_id": 357970,
"author": "Pete ... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2975/"
] |
37,375 | <p>We have a whole bunch of DLLs that give us access to our database and other applications and services.</p>
<p>We've wrapped these DLLs with a thin WCF service layer which our clients then consume.</p>
<p>I'm a little unsure on how to write unit tests that only test the WCF service layer. Should I just write unit t... | [
{
"answer_id": 37385,
"author": "Toran Billups",
"author_id": 2701,
"author_profile": "https://Stackoverflow.com/users/2701",
"pm_score": 3,
"selected": false,
"text": "Public Class ProductService\n Implements IProductService\n\n Private mRepository As IProductRepository\n\n Pub... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/781/"
] |
37,378 | <p>Everyone I work with is obsessed with the data-centric approach to enterprise development and hates the idea of using custom collections/objects. What is the best way to convince them otherwise?</p>
| [
{
"answer_id": 37475,
"author": "Brian Leahy",
"author_id": 580,
"author_profile": "https://Stackoverflow.com/users/580",
"pm_score": 1,
"selected": false,
"text": "Collection<T>"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2701/"
] |
37,381 | <p>I'm exploring the possibility of writing an application in Erlang, but it would need to have a portion written in Cocoa (presumably Objective-C). I'd like the front-end and back-end to be able to communicate easily. How can this best be done?</p>
<p>I can think of using C ports and connected processes, but I think ... | [
{
"answer_id": 37408,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 4,
"selected": true,
"text": "launchd launchd launchd launchd launchd"
},
{
"answer_id": 37683,
"author": "Theo",
"author_id": 1109,
... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3948/"
] |
37,391 | <p>Ok, so PHP isn't the best language to be dealing with arbitrarily large integers in, considering that it only natively supports 32-bit signed integers. What I'm trying to do though is create a class that could represent an arbitrarily large binary number and be able to perform simple arithmetic operations on two of ... | [
{
"answer_id": 1381855,
"author": "Jonathon Hill",
"author_id": 168815,
"author_profile": "https://Stackoverflow.com/users/168815",
"pm_score": 3,
"selected": true,
"text": "gmp_strval(gmp_init($n, 10), 2);\n"
},
{
"answer_id": 20730795,
"author": "Alix Axel",
"author_id"... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384/"
] |
37,441 | <p>Why are SQL distributions so non-standard despite an ANSI standard existing for SQL? Are there really that many meaningful differences in the way SQL databases work or is it just the two databases with which I have been working: MS-SQL and PostgreSQL? Why do these differences arise?</p>
| [
{
"answer_id": 37443,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 3,
"selected": false,
"text": "AUTO INCREMENT"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
37,449 | <p>I've used the StAX API in Java quite a bit, and find it quite a clean way of dealing with XML files. Is there any equivalent library I could use for performing similar processing in C?</p>
| [
{
"answer_id": 465382,
"author": "OJW",
"author_id": 46478,
"author_profile": "https://Stackoverflow.com/users/46478",
"pm_score": -1,
"selected": false,
"text": "\n #include \"expat.h\"`\nVRM_parser = XML_ParserCreate(\"ISO-8859-1\");\nXML_SetElementHandler(VRM_parser, CbStartTagHandler... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
37,464 | <p>If I create an application on my Mac, is there any way I can get it to run on an iPhone without going through the app store?</p>
<p>It doesn't matter if the iPhone has to be jailbroken, as long as I can still run an application created using the official SDK. For reasons I won't get into, I can't have this program ... | [
{
"answer_id": 37522,
"author": "Jason Weathered",
"author_id": 3736,
"author_profile": "https://Stackoverflow.com/users/3736",
"pm_score": 9,
"selected": true,
"text": "openssh uikittools jasoniphone.local mobile root build/Release-iphoneos scp -r AccelerometerGraph.app root@jasoniphone... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/752/"
] |
37,468 | <p>I have a site running in a Windows shared hosting environment. In their control panel for the shared hosting account I have it set to use ASP.NET version 3.0 but it doesn't say 3.5 SP1 specifically.</p>
<p>How can I view the installed version running on the server where my website is hosted in an asp.net page?</p>
| [
{
"answer_id": 6564854,
"author": "JanBorup",
"author_id": 276414,
"author_profile": "https://Stackoverflow.com/users/276414",
"pm_score": 1,
"selected": false,
"text": "<%=Environment.Version%>"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
37,471 | <p>The minimum spanning tree problem is to take a connected weighted graph and find the subset of its edges with the lowest total weight while keeping the graph connected (and as a consequence resulting in an acyclic graph).</p>
<p>The algorithm I am considering is:</p>
<ul>
<li>Find all cycles.</li>
<li>remove the l... | [
{
"answer_id": 37477,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 1,
"selected": false,
"text": "V = { a, b, c, d }\nE = { (a,b,1), (b,c,2), (c,a,4), (b,d,9), (d,a,3) }\n"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
37,473 | <p>If I use <code>assert()</code> and the assertion fails then <code>assert()</code> will call <code>abort()</code>, ending the running program abruptly. I can't afford that in my production code. Is there a way to assert in runtime yet be able to catch failed assertions so I have the chance to handle them gracefully... | [
{
"answer_id": 37474,
"author": "wilhelmtell",
"author_id": 456,
"author_profile": "https://Stackoverflow.com/users/456",
"pm_score": 6,
"selected": true,
"text": "assert() assert() abort() template <typename X, typename A>\ninline void Assert(A assertion)\n{\n if( !assertion ) throw ... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/456/"
] |
37,479 | <p>Below I have a very simple example of what I'm trying to do. I want to be able to use HTMLDecorator with any other class. Ignore the fact it's called decorator, it's just a name.</p>
<pre><code>import cgi
class ClassX(object):
pass # ... with own __repr__
class ClassY(object):
pass # ... with own __repr__
... | [
{
"answer_id": 37488,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 0,
"selected": false,
"text": "HTMLDecorator.__init__() def decorator (func):\n def new_func ():\n return \"new_func %s\" % func ()\n ret... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1057/"
] |
37,483 | <p>I suck at math. I need to figure out how to calculate a video duration with only a few examples of values. For example, a value of 70966 is displayed as 1:10 minutes. A value of 30533 displays as 30 seconds. A value of 7007 displays as 7 seconds. </p>
| [
{
"answer_id": 37487,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 0,
"selected": false,
"text": " 70966 / 70 seconds = 1013.8\n"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2601/"
] |
37,486 | <p>Because regular expressions scare me, I'm trying to find a way to remove all HTML tags and resolve HTML entities from a string in Python.</p>
| [
{
"answer_id": 37504,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 1,
"selected": false,
"text": " <div>5 < 7</div>\n < 7</div>\n"
},
{
"answer_id": 37512,
"author": "Peter Hoffmann",
"author_id": 720,
... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3971/"
] |
37,495 | <p>I'm trying to get some stats on how many of the visitors to our website have Silverlight enabled browsers. </p>
<p>We currently use Google Analytics for the rest of our stats so ideally we'd like to just add 'Silverlight enabled' tracking in with the rest of our Google Analytics stats. But if it has to get writte... | [
{
"answer_id": 3323399,
"author": "mdarnall",
"author_id": 42998,
"author_profile": "https://Stackoverflow.com/users/42998",
"pm_score": 0,
"selected": false,
"text": "__utmSetVar() _setCustomVar()"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/242/"
] |
37,501 | <p>Thanks to a Q&A on stackoverflow. I just found out how to determine the installed version on my hosting provider's server. Now I need to know what that number means.</p>
<p>Using <code><%=Environment.Version%></code> on my local machine returns 2.0.50727.3053.</p>
<p>Can someone give me a list of the ver... | [
{
"answer_id": 56390256,
"author": "RBT",
"author_id": 465053,
"author_profile": "https://Stackoverflow.com/users/465053",
"pm_score": 0,
"selected": false,
"text": "<%=Environment.Version%>"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
37,525 | <p>Imagine we have a program trying to write to a particular file, but failing.</p>
<p>On the Windows platform, what are the possible things which might be causing the file to be un-writable, and what steps could be suggested to an end user/administrator to fix it.</p>
<hr />
<p>Please include steps which might require... | [
{
"answer_id": 37527,
"author": "Michael Ratanapintha",
"author_id": 1879,
"author_profile": "https://Stackoverflow.com/users/1879",
"pm_score": 3,
"selected": true,
"text": "attrib -r"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
37,529 | <p>I'd like to pull a stream of PCM samples from a Mac's line-in or built-in mic and do a little live analysis (the exact nature doesn't pertain to this question, but it could be an FFT every so often, or some basic statistics on the sample levels, or what have you).</p>
<p>What's a good fit for this? Writing an Audi... | [
{
"answer_id": 38543,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 3,
"selected": false,
"text": "AudioQueueNewInput /Developer/Examples/CoreAudio/SimpleSDK"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3462/"
] |
37,535 | <p>I've got a bunch of FoxPro (VFP9) DBF files on my Ubuntu system, is there a library to open these in Python? I only need to read them, and would preferably have access to the memo fields too.</p>
<p><strong>Update</strong>: Thanks @cnu, I used Yusdi Santoso's <a href="http://www.physics.ox.ac.uk/users/santoso/dbf.... | [
{
"answer_id": 37917,
"author": "Anders Sandvig",
"author_id": 1709,
"author_profile": "https://Stackoverflow.com/users/1709",
"pm_score": 4,
"selected": false,
"text": ".DBF"
},
{
"answer_id": 10254842,
"author": "Steve Koch",
"author_id": 868718,
"author_profile": "... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3715/"
] |
37,538 | <p>How do I determine the size of my array in C? </p>
<p>That is, the number of elements the array can hold?</p>
| [
{
"answer_id": 37539,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 12,
"selected": true,
"text": "int a[17];\nsize_t n = sizeof(a)/sizeof(a[0]);\n sizeof int a[17];\nsize_t n = sizeof(a);\n int a[17];\nsize_t n = sizeof... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
37,551 | <p>I have a problem with an application running on Fedora Core 6 with JDK 1.5.0_08.</p>
<p>After some amount of uptime (usually some days) threads begin getting stuck in native methods.</p>
<p>The threads are locked in something like this:</p>
<pre><code>"pool-2-thread-2571" prio=1 tid=0x08dd0b28 nid=0x319e w... | [
{
"answer_id": 177855,
"author": "VoidPointer",
"author_id": 23424,
"author_profile": "https://Stackoverflow.com/users/23424",
"pm_score": 1,
"selected": false,
"text": "\"Thread-0\" prio=5 tid=0x0100b060 nid=0x84c000 waiting for monitor entry [0xb0c8a000..0xb0c8ad90]\n at Deadlock$1.... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3904/"
] |
37,568 | <p>How do I find duplicate addresses in a database, or better stop people already when filling in the form ? I guess the earlier the better?</p>
<p>Is there any good way of abstracting street, postal code etc so that typos and simple attempts to get 2 registrations can be detected? like: </p>
<pre><code>Quellenstrass... | [
{
"answer_id": 44897826,
"author": "Sagar V",
"author_id": 2427065,
"author_profile": "https://Stackoverflow.com/users/2427065",
"pm_score": 0,
"selected": false,
"text": "Quellenstrasse 66/11 Quellenstr. 66a-11"
},
{
"answer_id": 44935403,
"author": "kichik",
"author_id"... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/925/"
] |
37,586 | <p>Our application is interfacing with a lot of web services these days. We have our own package that someone wrote a few years back using UTL_HTTP and it generally works, but needs some hard-coding of the SOAP envelope to work with certain systems. I would like to make it more generic, but lack experience to know how ... | [
{
"answer_id": 67977,
"author": "Sten Vesterli",
"author_id": 9363,
"author_profile": "https://Stackoverflow.com/users/9363",
"pm_score": 4,
"selected": true,
"text": "UTL_HTTP UTL_DBWS"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1895/"
] |
37,591 | <p>I would like to display details of an xml error log to a user in a winforms application and am looking for the best control to do the job.</p>
<p>The error data contains all of the sever variables at the time that the error occurred. These have been formatted into an XML document that looks something to the effect ... | [
{
"answer_id": 37612,
"author": "Skizz",
"author_id": 1898,
"author_profile": "https://Stackoverflow.com/users/1898",
"pm_score": 0,
"selected": false,
"text": "DataGridView"
},
{
"answer_id": 37631,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stack... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/231/"
] |
37,593 | <p>What is the best source of free Vista style graphics for application development? I want <strong>32x32</strong> and <strong>16x16</strong> that I can use in a Winforms application.</p>
| [
{
"answer_id": 37596,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": true,
"text": "Common7\\VS2008ImageLibrary"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2608/"
] |
37,597 | <p>TreeNodeCollection, like some of the other control collections in System.Windows.Forms, implements IEnumerable. Is there any design reason behind this or is it just a hangover from the days before generics?</p>
| [
{
"answer_id": 37609,
"author": "Artem Tikhomirov",
"author_id": 2313,
"author_profile": "https://Stackoverflow.com/users/2313",
"pm_score": 4,
"selected": true,
"text": "using System.Linq; \n... \nvar nodes = GetTreeNodeCollection().OfType<TreeNode>();\n"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2608/"
] |
37,628 | <p>What is reflection, and why is it useful?</p>
<p>I'm particularly interested in Java, but I assume the principles are the same in any language.</p>
| [
{
"answer_id": 37632,
"author": "Matt Sheppard",
"author_id": 797,
"author_profile": "https://Stackoverflow.com/users/797",
"pm_score": 12,
"selected": true,
"text": "Method method = foo.getClass().getMethod(\"doSomething\", null);\nmethod.invoke(foo, null);\n"
},
{
"answer_id": ... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/142/"
] |
37,644 | <p>I have a set of Berkeley DB files on my Linux file system that I'd like to examine.</p>
<p>What useful tools exist for getting a quick overview of the contents? I can write Perl scripts that use BDB modules for examining them, but I'm looking for some CLI utility to be able to take a look inside without having to s... | [
{
"answer_id": 37655,
"author": "David Crow",
"author_id": 2783,
"author_profile": "https://Stackoverflow.com/users/2783",
"pm_score": 6,
"selected": true,
"text": "apt-get install db-util apt-get install db4.8-util"
},
{
"answer_id": 19793412,
"author": "strickli",
"auth... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1951/"
] |
37,649 | <p>I have a MySQL table with coordinates, the column names are X and Y. Now I want to swap the column values in this table, so that X becomes Y and Y becomes X. The most apparent solution would be renaming the columns, but I don't want to make structure changes since I don't necessarily have permissions to do that.</p>... | [
{
"answer_id": 37657,
"author": "fijter",
"author_id": 3215,
"author_profile": "https://Stackoverflow.com/users/3215",
"pm_score": 2,
"selected": false,
"text": " ALTER TABLE table ADD COLUMN tmp;\nUPDATE table SET tmp = X;\nUPDATE table SET X = Y;\nUPDATE table SET Y = tmp;\nALTER TABLE... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/890/"
] |
37,650 | <p>What is the best way to implement, from a web page a download action using asp.net 2.0?</p>
<p>Log files for a action are created in a directory called [Application Root]/Logs. I have the full path and want to provide a button, that when clicked will download the log file from the IIS server to the users local pc.... | [
{
"answer_id": 37656,
"author": "Martin",
"author_id": 770,
"author_profile": "https://Stackoverflow.com/users/770",
"pm_score": 6,
"selected": true,
"text": "Response.ContentType = \"application/octet-stream\";\nResponse.AppendHeader(\"Content-Disposition\",\"attachment; filename=logfil... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3416/"
] |
37,662 | <p>I'm writing a Perl script and would like to use a n-ary tree data structure.</p>
<p>Is there a good implementation that is available as source code (rather than part of a Perl library) ?</p>
| [
{
"answer_id": 38857,
"author": "nohat",
"author_id": 3101,
"author_profile": "https://Stackoverflow.com/users/3101",
"pm_score": 2,
"selected": false,
"text": " t\n / \\\n a d\n / \\ / \\\n b c e f\n $tree = [ t => [ a => [ b => ... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/381/"
] |
37,665 | <p>When <strong>Eclipse</strong> creates a new file (<strong>.c</strong> or <strong>.h</strong> file) in a C project the editor always auto creates a <code>#define</code> at the top of the file like this: If the file is named 'myCFile.c' there will be a <code>#define</code> at the start of the file like this</p>
<pre>... | [
{
"answer_id": 38416,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 1,
"selected": false,
"text": "#pragma once\n"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2079/"
] |
37,684 | <p>I am using the function below to match URLs inside a given text and replace them for HTML links. The regular expression is working great, but currently I am only replacing the first match.</p>
<p>How I can replace all the URL? I guess I should be using the <em>exec</em> command, but I did not really figure how to d... | [
{
"answer_id": 37687,
"author": "Sam Hasler",
"author_id": 2541,
"author_profile": "https://Stackoverflow.com/users/2541",
"pm_score": 8,
"selected": false,
"text": ".museum /ig;\n"
},
{
"answer_id": 2166104,
"author": "Travis",
"author_id": 252828,
"author_profile": ... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
37,696 | <p>I have three tables <code>tag</code>, <code>page</code>, <code>pagetag</code></p>
<p>With the data below</p>
<p><strong><em>page</em></strong></p>
<pre><code>ID NAME
1 page 1
2 page 2
3 page 3
4 page 4
</code></pre>
<p><strong><em>tag</em></strong></p>
<pre><code>ID NAME
1 ... | [
{
"answer_id": 37700,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": 2,
"selected": false,
"text": "SELECT page_tag.id, page.name, group_concat(tags.name)\nFROM tag, page, page_tag\nWHERE page_tag.page_id = page.page_id AND p... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
37,702 | <p>Sorry for this not being a "real" question, but Sometime back i remember seeing a post here about randomizing a randomizer randomly to generate truly random numbers, not just pseudo random. I dont see it if i search for it.</p>
<p>Does anybody know about that article?</p>
| [
{
"answer_id": 37716,
"author": "Espo",
"author_id": 2257,
"author_profile": "https://Stackoverflow.com/users/2257",
"pm_score": 3,
"selected": false,
"text": "/dev/random"
},
{
"answer_id": 172268,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://St... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2759376/"
] |
37,731 | <p>I seem right now to be embroiled in a debate with another programmer on this project who thinks that views have no merits. He proposes a system that PHP looks something like this:</p>
<pre><code>$draw = new Draw;
$nav = $draw->wideHeaderBox().
$draw->left().
$draw->image().
Image::get($image,6... | [
{
"answer_id": 37768,
"author": "Brian Warshaw",
"author_id": 1344,
"author_profile": "https://Stackoverflow.com/users/1344",
"pm_score": 4,
"selected": true,
"text": "new Draw wideHeaderBox left wideHeaderBox HTML::link(\"Wikipedia\", \"http://en.wikipedia.org\");\nHTML::bulleted_list(a... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2594/"
] |
37,732 | <p>What is the RegEx pattern for DateTime (2008-09-01 12:35:45 ) ?</p>
<p>I get this error:</p>
<blockquote>
<p>No ending delimiter '^' found</p>
</blockquote>
<p>Using:</p>
<pre><code>preg_match('(?n:^(?=\d)((?<day>31(?!(.0?[2469]|11))|30(?!.0?2)|29(?(.0?2)(?=.{3,4}(1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579... | [
{
"answer_id": 37758,
"author": "Tom",
"author_id": 3715,
"author_profile": "https://Stackoverflow.com/users/3715",
"pm_score": 5,
"selected": false,
"text": "(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}) \n"
},
{
"answer_id": 37767,
"author": "Greg Hewgill",
"author_id": 8... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4013/"
] |
37,743 | <p>I'd like to find the different ways to solve a real life problem I had: imagine to have a contest, or a game, during which the users collect points. You have to build a query to show the list of users with the best "n" scores. </p>
<p>I'm making an example to clarify. Let's say that this is the Users table, with th... | [
{
"answer_id": 37750,
"author": "Espo",
"author_id": 2257,
"author_profile": "https://Stackoverflow.com/users/2257",
"pm_score": 5,
"selected": true,
"text": "select * from users where points in\n(select distinct top 3 points from users order by points desc)\n"
},
{
"answer_id": ... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1178/"
] |
37,759 | <p>I have the following code in a web.config file of the default IIS site.</p>
<pre><code><httpModules>
<add type="MDL.BexWebControls.Charts.ChartStreamHandler,Charts" name="ChartStreamHandler"/>
</httpModules>
</code></pre>
<p>Then when I setup and browse to a virtual directory I get this error... | [
{
"answer_id": 37762,
"author": "John Owen",
"author_id": 2471,
"author_profile": "https://Stackoverflow.com/users/2471",
"pm_score": 5,
"selected": true,
"text": "<location path=\".\" inheritInChildApplications=\"false\">\n <system.web>\n <httpModules>\n <add type=\"MDL.BexWebC... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2471/"
] |
37,791 | <p>At the moment my code (PHP) has too many SQL queries in it. eg...</p>
<pre><code>// not a real example, but you get the idea...
$results = $db->GetResults("SELECT * FROM sometable WHERE iUser=$userid");
if ($results) {
// Do something
}
</code></pre>
<p>I am looking into using stored procedures to reduce th... | [
{
"answer_id": 38053,
"author": "Gary Richardson",
"author_id": 2506,
"author_profile": "https://Stackoverflow.com/users/2506",
"pm_score": 2,
"selected": false,
"text": "SELECT * FROM sometable WHERE iUser = ?\n"
},
{
"answer_id": 38186,
"author": "Slacker",
"author_id":... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4012/"
] |
37,799 | <p>Is it possible to use gcov for coverage testing of multi-threaded applications? </p>
<p>I've set some trivial tests of our code-base up, but it would be nice to have some idea of the coverage we're achieving. If gcov isn't appropriate can anyone recommend an alternative tool (possible oprofile), ideally with some g... | [
{
"answer_id": 38317,
"author": "Douglas Leeder",
"author_id": 3978,
"author_profile": "https://Stackoverflow.com/users/3978",
"pm_score": 4,
"selected": true,
"text": "-fprofile-arcs -ftest-coverage"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2246/"
] |
37,805 | <p>I have a <code>List<int></code> and a <code>List<customObject></code>. The customObject class has an ID property. How can I get a <code>List<customObject></code> containing only the objects where the ID property is in the <code>List<int></code> using LINQ?</p>
<p><strong>Edit</strong>: I acc... | [
{
"answer_id": 37807,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 3,
"selected": false,
"text": "var matches = from o in objList \n join i in intList on o.ID equals i\n select o;\n"
... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2257/"
] |
37,809 | <p>How can I go about generating a Friendly URL in C#? Currently I simple replace spaces with an underscore, but how would I go about generating URL's like Stack Overflow?</p>
<p>For example how can I convert:</p>
<blockquote>
<p>How do I generate a Friendly URL in C#?</p>
</blockquote>
<p>Into</p>
<blockquote>
... | [
{
"answer_id": 37817,
"author": "Jeff Atwood",
"author_id": 1,
"author_profile": "https://Stackoverflow.com/users/1",
"pm_score": 4,
"selected": false,
"text": "if (String.IsNullOrEmpty(title)) return \"\";\n\n// remove entities\ntitle = Regex.Replace(title, @\"&\\w+;\", \"\");\n// remov... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/383/"
] |
37,822 | <p>I have read that the iPhone SDK (part of Xcode 3) is restricted to Mac's with the intel chipset. Does this restriction apply to only the simulator part of the SDK or the complete shebang?</p>
<p>I have a Powerbook G4 running Leopard and would very much like to do dev on it rather than fork out for a new machine.</p... | [
{
"answer_id": 38577,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 1,
"selected": false,
"text": "xcodebuild"
},
{
"answer_id": 45592,
"author": "Clokey",
"author_id": 2438,
"author_profile": "https://Stackove... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2438/"
] |
37,830 | <p>I want to show a chromeless modal window with a close button in the upper right corner.
Is this possible?</p>
| [
{
"answer_id": 37878,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 6,
"selected": true,
"text": "<Window WindowStyle=\"None\">\n"
},
{
"answer_id": 37883,
"author": "aku",
"author_id": 1196,
"author_... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2374/"
] |
37,912 | <p>How do you use the the org.springframework.ws.transport.jms.WebServiceMessageDrivenBean class from the Java Spring Framework - Spring-WS project?</p>
<p>There is very little documentation or examples available on the web.</p>
| [
{
"answer_id": 92867,
"author": "Keith Lyall",
"author_id": 17719,
"author_profile": "https://Stackoverflow.com/users/17719",
"pm_score": 0,
"selected": false,
"text": "public class HelloWorldMessageDrivenBean extends WebServiceMessageDrivenBean {\n private static final long serialVer... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
37,920 | <p>I have developed a COM component (dll) that implements an Edit() method displaying a WTL modal dialog.</p>
<p>The complete interface to this COM component corresponds to a software standard used in the chemical process industry (CAPE-OPEN) and as a result this COM component is supposed to be usable by a range of 3r... | [
{
"answer_id": 37943,
"author": "Mark Ingram",
"author_id": 986,
"author_profile": "https://Stackoverflow.com/users/986",
"pm_score": 1,
"selected": false,
"text": "MyDialog dialog(pParent);\ndialog.DoModal();\n"
},
{
"answer_id": 37954,
"author": "dguaraglia",
"author_id... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3229/"
] |
37,929 | <p>I am reviewing a big java application to see if there are any performance bottlenecks. The real problem is that I cannot pinpoint the performance issues to any single module. The whole application is slow as such.</p>
<p>Is there some tool/technique I can use to help me out in this?</p>
| [
{
"answer_id": 39056,
"author": "wvdschel",
"author_id": 2018,
"author_profile": "https://Stackoverflow.com/users/2018",
"pm_score": 3,
"selected": false,
"text": "Java -Xprof"
},
{
"answer_id": 15366173,
"author": "Riking",
"author_id": 1210278,
"author_profile": "ht... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
37,931 | <p>The <a href="http://msdn.microsoft.com/en-us/library/y23b5415.aspx" rel="nofollow noreferrer">official guidelines</a> suggest that there can be very few practical uses for these. Does anyone have examples of where they've put them to good use?</p>
| [
{
"answer_id": 37938,
"author": "Chris James",
"author_id": 3193,
"author_profile": "https://Stackoverflow.com/users/3193",
"pm_score": 0,
"selected": false,
"text": "enum MyWeirdType {\nTypeA, TypeB, TypeC};\n\nswitch(value){\ncase MyWeirdType.TypeA:\n...\n"
},
{
"answer_id": 37... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3974/"
] |
37,932 | <p>I'd like to do the following and can't find an elegant way:</p>
<ol>
<li>Read an XML template into a <code>System.Xml.XmlDocument</code> </li>
<li>Populate it with data from my UI </li>
<li>Transform it with an <code>XSLT</code> I've written </li>
<li>Apply a <code>CSS</code> Stylesheet </li>
<li>Render it to a... | [
{
"answer_id": 165236,
"author": "rasx",
"author_id": 22944,
"author_profile": "https://Stackoverflow.com/users/22944",
"pm_score": 0,
"selected": false,
"text": "void WireUpBrowserEvents()\n{\n\n HtmlElement table = this._browser.Document.GetElementById( \"UnitFormsTable\" );\n if... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4019/"
] |
37,956 | <p>I would like to open a small video file and map every frames in memory (to apply some custom filter). I don't want to handle the video codec, I would rather let the library handle that for me.</p>
<p>I've tried to use Direct Show with the SampleGrabber filter (using this sample <a href="http://msdn.microsoft.com/en... | [
{
"answer_id": 21258871,
"author": "Bob",
"author_id": 3154041,
"author_profile": "https://Stackoverflow.com/users/3154041",
"pm_score": 2,
"selected": false,
"text": "ThreadLibManager()\n{\n List<MyThreads> listOfActiveThreads;\n public AddThread(MyThreads);\n}\nYour thread class is s... | 2008/09/01 | [
"https://Stackoverflow.com/questions/37956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1578/"
] |
37,969 | <p><strong>Can anyone recommend a tool for quickly posting test messages onto a JMS queue?</strong></p>
<p><strong>Description</strong>:</p>
<ol>
<li>The tool should allow the user to enter some data, perhaps an XML
payload, and then submit it to a queue.</li>
<li>I should be able to test consumer without producer.</li... | [
{
"answer_id": 73737,
"author": "James Strachan",
"author_id": 2068211,
"author_profile": "https://Stackoverflow.com/users/2068211",
"pm_score": 2,
"selected": false,
"text": "from(\"file://someDirectory\").\n to(\"activemq:MyQueue\");\n"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2454/"
] |
37,996 | <p>We are using SourceForge Enterprise Edition 4.4 in one of our project.</p>
<p>My question is, in CollabNet SFEE (SourceForge Enterprise Edition 4.4), how will we get attachments associated with an Artifacts Using SFEE SOAP API?</p>
<p>We have made our own .net 2.0 client. We are not using .net SDK provided by Coll... | [
{
"answer_id": 187019,
"author": "binco",
"author_id": 19671,
"author_profile": "https://Stackoverflow.com/users/19671",
"pm_score": 0,
"selected": false,
"text": "/usr/local/sourceforge/sourceforge_home/integration/post-commit.py\n"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/37996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/191/"
] |
38,005 | <p>Now that <code>LINQ</code> to <code>SQL</code> is a little more mature, I'd like to know of any techniques people are using to create an <strong>n-tiered solution</strong> using the technology, because it does not seem that obvious to me.</p>
| [
{
"answer_id": 38330,
"author": "Giovanni Galbo",
"author_id": 4050,
"author_profile": "https://Stackoverflow.com/users/4050",
"pm_score": 0,
"selected": false,
"text": "var emps = from e in Employees\n join m in Employees\n on e.ManagerEmpID equals m.EmpID\... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4050/"
] |
38,010 | <p>When performing string concatentation of an existing string in the intern pool, is a new string entered into the intern pool or is a reference returned to the existing string in the intern pool? According to this article, String.Concat and StringBuilder will insert new string instances into the intern pool? </p>
<p... | [
{
"answer_id": 38040,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "String.IsInterned null"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/38010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2993/"
] |
38,014 | <p>I am facing problem with an Oracle Query in a .net 2.0 based windows application. I am using <code>System.Data.OracleClient</code> to connect to oracle database. Name of database is <code>myDB</code>. Below the the connection string I am using:</p>
<pre><code>Data Source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PRO... | [
{
"answer_id": 38022,
"author": "skolima",
"author_id": 3205,
"author_profile": "https://Stackoverflow.com/users/3205",
"pm_score": 0,
"selected": false,
"text": "CONNECT_DATA=(SID=myDB)(SERVICE_NAME=ORCL)\n"
},
{
"answer_id": 6239631,
"author": "Gary Myers",
"author_id":... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/191/"
] |
38,021 | <p>How can I find the origins of conflicting DNS records?</p>
| [
{
"answer_id": 38025,
"author": "Kyle Cronin",
"author_id": 658,
"author_profile": "https://Stackoverflow.com/users/658",
"pm_score": 1,
"selected": false,
"text": " NS51.DOMAINCONTROL.COM\n NS52.DOMAINCONTROL.COM\n"
},
{
"answer_id": 38028,
"author": "Antti Kissaniemi",
... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319/"
] |
38,027 | <p>Both are mathematical values, however the float does have more precision. Is that the only reason for the error - the difference in precision? Or is there another potential (and more serious) problem?</p>
| [
{
"answer_id": 43486,
"author": "smh",
"author_id": 1077,
"author_profile": "https://Stackoverflow.com/users/1077",
"pm_score": 1,
"selected": false,
"text": "short -> 15 bits\nfloat -> 23 bits\nlong -> 31 bits\ndouble -> 52 bits\n float short double long"
},
{
"answer_id": 1... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
38,035 | <p>I'm building a basic search functionality, using LIKE (I'd be using fulltext but can't at the moment) and I'm wondering if MySQL can, on searching for a keyword (e.g. WHERE field LIKE '%word%') return 20 words either side of the keyword, as well?</p>
| [
{
"answer_id": 38188,
"author": "JimmyJ",
"author_id": 2083,
"author_profile": "https://Stackoverflow.com/users/2083",
"pm_score": 0,
"selected": false,
"text": "SELECT SUBSTRING(field_name, LOCATE('keyword', field_name) - chars_before, total_chars) FROM table_name WHERE field_name LIKE ... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/393028/"
] |
38,037 | <p>In my C++ program I want to parse a small piece of XML, insert some nodes, then extract the new XML (preferably as a <code>std::string</code>).<br>
<a href="http://rapidxml.sourceforge.net/" rel="nofollow noreferrer">RapidXml</a> has been recommended to me, but I can't see how to retrieve the XML back as a text stri... | [
{
"answer_id": 38413,
"author": "Thomas Watnedal",
"author_id": 4059,
"author_profile": "https://Stackoverflow.com/users/4059",
"pm_score": 4,
"selected": true,
"text": "#include <iostream>\n#include <sstream>\n#include \"rapidxml/rapidxml.hpp\"\n#include \"rapidxml/rapidxml_print.hpp\"\... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3590/"
] |
38,039 | <p>How do I find the start of the week (both Sunday and Monday) knowing just the current time in C#?</p>
<p>Something like:</p>
<pre><code>DateTime.Now.StartWeek(Monday);
</code></pre>
| [
{
"answer_id": 38049,
"author": "Skizz",
"author_id": 1898,
"author_profile": "https://Stackoverflow.com/users/1898",
"pm_score": 4,
"selected": false,
"text": "DateTime t = DateTime.Now;\nt -= new TimeSpan ((int) t.DayOfWeek, 0, 0, 0);\n"
},
{
"answer_id": 38051,
"author": "... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/383/"
] |
38,056 | <p>The only <em>nice</em> way I've found is:</p>
<pre><code>import sys
import os
try:
os.kill(int(sys.argv[1]), 0)
print "Running"
except:
print "Not running"
</code></pre>
<p>(<a href="http://www.unix.com/unix-advanced-expert-users/79267-trick-bash-scripters-check-if-process-running.html" re... | [
{
"answer_id": 38196,
"author": "dF.",
"author_id": 3002,
"author_profile": "https://Stackoverflow.com/users/3002",
"pm_score": 4,
"selected": false,
"text": "/proc os.kill import sys\nimport os\nimport errno\n\ntry:\n os.kill(int(sys.argv[1]), 0)\nexcept OSError, err:\n if err.err... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1531/"
] |
38,057 | <pre><code>@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public class Problem {
@ManyToOne
private Person person;
}
@Entity
@DiscriminatorValue("UP")
public class UglyProblem extends Problem {}
@Entity
public class Person {
@OneToMany(mappedBy="person")
private List< UglyProblem >... | [
{
"answer_id": 38992,
"author": "David Crow",
"author_id": 2783,
"author_profile": "https://Stackoverflow.com/users/2783",
"pm_score": 3,
"selected": false,
"text": "public interface Problem {\n public Person getPerson();\n}\n\npublic interface UglyProblem extends Problem {\n}\n @Mapp... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4052/"
] |
38,068 | <p>Is there any shorthand way of defining and using generic definitions without having to keep repeating a particular generic description such that if there is a change I don't have to change all definitions/usages though out the codebase for example is something like this possible:</p>
<pre><code>Typedef myGenDef = &... | [
{
"answer_id": 38098,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": 1,
"selected": false,
"text": "def map = new HashMap<complicated generic expression>();\n"
},
{
"answer_id": 38102,
"author": "Shog9",
... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
38,074 | <p>If you create an Oracle dblink you cannot directly access LOB columns in the target tables.</p>
<p>For instance, you create a dblink with:</p>
<pre><code>create database link TEST_LINK
connect to TARGETUSER IDENTIFIED BY password using 'DATABASESID';
</code></pre>
<p>After this you can do stuff like:</p>
<pre... | [
{
"answer_id": 14547653,
"author": "user2015502",
"author_id": 2015502,
"author_profile": "https://Stackoverflow.com/users/2015502",
"pm_score": 4,
"selected": false,
"text": "SELECT (select column_b from sample_table@TEST_LINK) AS column_b FROM DUAL\n"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/38074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2846/"
] |
38,081 | <p>I need to create a quick-n-dirty knob control in Visual Basic 2005 Express, the value of which is incremented/decremented by "grabbing" it with the mouse and moving the cursor up/down. Because the knob itself doesn't move, I need to keep tracking the mouse movement outside of the rectangle of the control.</p>
<p>I ... | [
{
"answer_id": 14547653,
"author": "user2015502",
"author_id": 2015502,
"author_profile": "https://Stackoverflow.com/users/2015502",
"pm_score": 4,
"selected": false,
"text": "SELECT (select column_b from sample_table@TEST_LINK) AS column_b FROM DUAL\n"
}
] | 2008/09/01 | [
"https://Stackoverflow.com/questions/38081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2095/"
] |
38,160 | <p>Lets say I have a loop in Bash:</p>
<pre><code>for foo in `some-command`
do
do-something $foo
done
</code></pre>
<p><code>do-something</code> is cpu bound and I have a nice shiny 4 core processor. I'd like to be able to run up to 4 <code>do-something</code>'s at once.</p>
<p>The naive approach seems to be:</p>... | [
{
"answer_id": 38166,
"author": "skolima",
"author_id": 3205,
"author_profile": "https://Stackoverflow.com/users/3205",
"pm_score": 4,
"selected": false,
"text": "make -jX wait man wait wait maxjobs = 10\n\nforeach line in `cat file.txt` {\n jobsrunning = 0\n while jobsrunning < maxjobs ... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163/"
] |
38,181 | <p>I have a basic understanding of mock and fake objects, but I'm not sure I have a feeling about when/where to use mocking - especially as it would apply to this scenario <a href="https://stackoverflow.com/questions/37375/how-do-i-unit-test-a-wcf-service"><strong>here</strong></a>.</p>
| [
{
"answer_id": 38260,
"author": "Jan Soltis",
"author_id": 3997,
"author_profile": "https://Stackoverflow.com/users/3997",
"pm_score": 8,
"selected": false,
"text": "sendInvitations(MailServer mailServer) MailServer.createMessage() MailServer.sendMessage(m) MailServer MailServerImpl Test... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/781/"
] |
38,190 | <p>Is it possible to read a disk directly with .NET? By directly, I mean via the device bypassing the file system. I think I would go about this by opening the device some way "\Device\Ide\IdeDeviceP2T0L0-1" for example.</p>
<p>If I can't open the device with a .NET API, knowing which Win32 API to use would... | [
{
"answer_id": 38275,
"author": "Darryl Braaten",
"author_id": 1834,
"author_profile": "https://Stackoverflow.com/users/1834",
"pm_score": 4,
"selected": false,
"text": "using System;\nusing System.Runtime.InteropServices;\nusing System.IO;\nusing Microsoft.Win32.SafeHandles;\n\nnamespac... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1834/"
] |
38,193 | <p>Is there an easy way to tell if a ruby script is already running and then handle it appropriately? For example: I have a script called really_long_script.rb. I have it cronned to run every 5 minutes. When it runs, I want to see if the previous run is still running and then stop the execution of the second script... | [
{
"answer_id": 38200,
"author": "Eli Courtwright",
"author_id": 1694,
"author_profile": "https://Stackoverflow.com/users/1694",
"pm_score": 0,
"selected": false,
"text": "if ps aux | grep really_long_script.rb | grep -vq grep\nthen\n echo Script already running\nelse\n ruby really_... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4082/"
] |
38,197 | <p>The primary class in the <code>subprocess</code> module is name <code>Popen</code>, and represents a subprocess. <code>Popen</code> sounds like someone was trying to force the name to follow some function naming format, rather than chosing a name that actually represents what the object is. Does anyone know why it ... | [
{
"answer_id": 38202,
"author": "Sergio Acosta",
"author_id": 2954,
"author_profile": "https://Stackoverflow.com/users/2954",
"pm_score": -1,
"selected": false,
"text": "subprocess os os.popen"
},
{
"answer_id": 38206,
"author": "dF.",
"author_id": 3002,
"author_profi... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114/"
] |
38,198 | <p><code>celsius = (5.0/9.0) * (fahr-32.0);</code></p>
<p>Is it just a development choice that the C developers decided upon or is there a reason to this? I believe a float is smaller than a double, so it might be to prevent overflows caused by not knowing what decimal format to use. Is that the reason, or am I overlo... | [
{
"answer_id": 38229,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 5,
"selected": false,
"text": "celsius = (5.0/9.0) * (fahr-32.0);\n 5.0 9.0 32.0 double float F celsius = (5.0F/9.0F) * (fahr-32.0F);\n fahr double double"
},... | 2008/09/01 | [
"https://Stackoverflow.com/questions/38198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.