qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
27,405 | <p>On an 8-bit micro controller I would like to do the following:</p>
<pre><code>16bit_integer = another_16bit_integer * 0.997;</code></pre>
<p>with the least possible number of instructions.</p>
| [
{
"answer_id": 27415,
"author": "T Percival",
"author_id": 954,
"author_profile": "https://Stackoverflow.com/users/954",
"pm_score": 2,
"selected": false,
"text": "16bit_integer = (int16_t) (another_16bit_integer * (int32_t) 997 / 1000);\n"
},
{
"answer_id": 27418,
"author": ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/609/"
] |
27,407 | <p>Virtual memory from a computer size perspective is </p>
<blockquote>
<p>[a way to make the program] think it
has a large range of contiguous
addresses; but in reality the parts it
is currently using are scattered
around RAM, and the inactive parts are
saved in a disk file. (<a href="http://en.wikipedia... | [
{
"answer_id": 27426,
"author": "T Percival",
"author_id": 954,
"author_profile": "https://Stackoverflow.com/users/954",
"pm_score": 1,
"selected": false,
"text": "cat cat /proc/self/maps 00400000-00408000 r-xp /bin/cat\n00607000-00608000 rw-p /bin/cat\n008ac000... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1918/"
] |
27,435 | <p>I am working on a web application using Python (Django) and would like to know whether MySQL or PostgreSQL would be more suitable when deploying for production.</p>
<p>In one <a href="https://blog.stackoverflow.com/2008/06/podcast-8/">podcast</a> Joel said that he had some problems with MySQL and the data wasn't con... | [
{
"answer_id": 27440,
"author": "Josh",
"author_id": 257,
"author_profile": "https://Stackoverflow.com/users/257",
"pm_score": 8,
"selected": true,
"text": "count"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/27435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448/"
] |
27,442 | <p>Is there a rake task for backing up the data in your database? </p>
<p>I already have my schema backed up, but I want to make a backup of the data. It's a small MySQL database. </p>
| [
{
"answer_id": 27448,
"author": "thelsdj",
"author_id": 163,
"author_profile": "https://Stackoverflow.com/users/163",
"pm_score": 4,
"selected": true,
"text": "set :dbuser \"user\"\nset :dbhost \"host\"\nset :database \"db\"\n\nnamespace :db do\n desc \"Get the database password from us... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1632/"
] |
27,472 | <p>I have a long running SQL statement that I want to run, and no matter what I put in the "timeout=" clause of my connection string, it always seems to end after 30 seconds. </p>
<p>I'm just using <code>SqlHelper.ExecuteNonQuery()</code> to execute it, and letting it take care of opening connections, etc.</p>
<p>Is... | [
{
"answer_id": 27477,
"author": "Ishmaeel",
"author_id": 227,
"author_profile": "https://Stackoverflow.com/users/227",
"pm_score": 4,
"selected": false,
"text": "SqlCommand command = new SqlCommand(sqlQuery, _Database.Connection);\ncommand.CommandTimeout = 0;\nint rows = command.ExecuteN... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/489/"
] |
27,474 | <p>I need to send hundreds of newsletters, but would like to check first if email exists on server. It's called <a href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol" rel="noreferrer">SMTP</a> validation, at least I think so, based on my research on Internet. </p>
<p>There's several libraries that can d... | [
{
"answer_id": 2795865,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "\n // Create a new instance of the EmailValidator class.\n EmailValidator em = new EmailValidator();\n em.MessageLoggin... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1407/"
] |
27,482 | <p>Im currently writing my bachelor thesis with latex and using TexnicCenter. I want to be able to send my generated pdf file to people and they should be able to write comments.
It seems like commenting is not allowed by default, how do I change this?</p>
<p>I am using straight to PDF with pdflatex and acrobat reader... | [
{
"answer_id": 27513,
"author": "onnodb",
"author_id": 1037,
"author_profile": "https://Stackoverflow.com/users/1037",
"pm_score": 2,
"selected": false,
"text": "pdflatex pdflatex"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/27482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2450/"
] |
27,499 | <p>Recently Jeff has <a href="http://blog.codinghorror.com/deadlocked/" rel="noreferrer">posted</a> regarding his trouble with database deadlocks related to reading. <a href="https://en.m.wikipedia.org/wiki/Multiversion_concurrency_control" rel="noreferrer">Multiversion Concurrency Control (MVCC)</a> claims to solve t... | [
{
"answer_id": 952122,
"author": "John Greeley",
"author_id": 62209,
"author_profile": "https://Stackoverflow.com/users/62209",
"pm_score": 3,
"selected": false,
"text": "SET READ_COMMITTED_SNAPSHOT ON"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/27499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
27,509 | <p>How do I check if an object property in JavaScript is undefined?</p>
| [
{
"answer_id": 27510,
"author": "tslocum",
"author_id": 1662,
"author_profile": "https://Stackoverflow.com/users/1662",
"pm_score": -1,
"selected": false,
"text": "if (somevariable == undefined) {\n alert('the variable is not defined!');\n}\n function isset(varname){\n return(typeof(wi... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
27,532 | <p>Given 2 rgb colors and a rectangular area, I'd like to generate a basic linear gradient between the colors. I've done a quick search and the only thing I've been able to find is <a href="http://jtauber.com/blog/2008/05/18/creating_gradients_programmatically_in_python/" rel="noreferrer">this blog entry</a>, but the e... | [
{
"answer_id": 27536,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 6,
"selected": true,
"text": "R = firstCol.R * p + secondCol.R * (1 - p)\n GradientPaint"
},
{
"answer_id": 27553,
"author": "David Crow"... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/85/"
] |
27,559 | <p>The ones that stick out and make life usefull.</p>
| [
{
"answer_id": 27563,
"author": "chrissie1",
"author_id": 2936,
"author_profile": "https://Stackoverflow.com/users/2936",
"pm_score": 1,
"selected": false,
"text": "\n Imports Nunit.FrameWork\n\n Namespace $NAMESPACE$\n ''' \n ''' A TestClass\n ''' \n ''' \n _\n ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2936/"
] |
27,562 | <p>I am running oracle and have a query which pulls some results from the database. I would like to write the results as a text file. How would I go about doing this?</p>
<p>My prefered way would be by using UTL_FILE. Would some one have an example of how to do this?</p>
| [
{
"answer_id": 39409,
"author": "Andrew Wood",
"author_id": 1095,
"author_profile": "https://Stackoverflow.com/users/1095",
"pm_score": 2,
"selected": false,
"text": "\n create directory logfile as 'd:\\logfile'; -- must have priv to do this\n\ndeclare\n vFile utl_file.file_type;\nbegi... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
27,568 | <p>I'd like to learn how to program in Assembler. I've done a bit of assembly before (during my A-Level Computing course) but that was very definitely a simplified 'pseudo-assembler'. I've borrowed my Dad's old Z80 Assembler reference manual, and that seems quite interesting so if possible I'd like to have a go with Z8... | [
{
"answer_id": 27626,
"author": "Nic Wise",
"author_id": 2947,
"author_profile": "https://Stackoverflow.com/users/2947",
"pm_score": 2,
"selected": false,
"text": "<%@ page language=\"Asm80386\" %>\n<%\nStr: DB \"Testing...\", 0\n\n mov eax, -2\n cmp eax, 2\n jle Label1\n xor eax, e... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1912/"
] |
27,570 | <p>Is there a way to find the number of files of a specific type without having to loop through all results inn a Directory.GetFiles() or similar method? I am looking for something like this:</p>
<pre><code>int ComponentCount = MagicFindFileCount(@"c:\windows\system32", "*.dll");
</code></pre>
<p>I know that I can ma... | [
{
"answer_id": 27584,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 6,
"selected": true,
"text": "string[] files = directory.GetFiles(@\"c:\\windows\\system32\", \"*.dll\", SearchOption.AllDirectories);\n\nreturn files.Leng... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2257/"
] |
27,578 | <p>In Java (or any other language with checked exceptions), when creating your own exception class, how do you decide whether it should be checked or unchecked?</p>
<p>My instinct is to say that a checked exception would be called for in cases where the caller might be able to recover in some productive way, where as ... | [
{
"answer_id": 73355,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 5,
"selected": false,
"text": "/**\n * Build a folder. <br />\n * Folder located under a Parent Folder (either RootFolder or an existing Folder)\n * @param aFo... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
27,581 | <p>What issues / pitfalls must be considered when overriding <code>equals</code> and <code>hashCode</code>?</p>
| [
{
"answer_id": 27609,
"author": "Antti Kissaniemi",
"author_id": 2948,
"author_profile": "https://Stackoverflow.com/users/2948",
"pm_score": 12,
"selected": true,
"text": "equals() o.equals(null) hashCode() equals() a.equals(b) a.hashCode() b.hashCode() equals() hashCode() public class P... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
27,598 | <p>I've deployed some Managed Beans on WebSphere 6.1 and I've managed to invoke them through a standalone client, but when I try to use the application "jconsole" distributed with the standard JDK can can't make it works.</p>
<p>Has anyone achieved to connect the jconsole with WAS 6.1?</p>
<p>IBM WebSphere 6.1 it's s... | [
{
"answer_id": 922409,
"author": "Flueras Bogdan",
"author_id": 83843,
"author_profile": "https://Stackoverflow.com/users/83843",
"pm_score": 1,
"selected": false,
"text": " 1) Change the config.xml and start the server. \n 2) start the jconsole with : jconsole -J-Djavax.net.ssl.keySto... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2937/"
] |
27,599 | <p>(<strong>Updated a little</strong>)</p>
<p>I'm not very experienced with internationalization using PHP, it must be said, and a deal of searching didn't really provide the answers I was looking for.</p>
<p>I'm in need of working out a reliable way to convert only 'relevant' text to Unicode to send in an SMS messag... | [
{
"answer_id": 27603,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 0,
"selected": false,
"text": "mb_convert_encoding mb_detect_encoding"
},
{
"answer_id": 27623,
"author": "Magnus Westin",
"author_id": 2957,
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2951/"
] |
27,607 | <p>Let's say I have a list of server names stored in a vector, and I would like to contact them one at a time until one has successfully responded. I was thinking about using STL's find_if algorithm in the following way:</p>
<pre><code>find_if(serverNames.begin(), serverNames.end(), ContactServer());
</code></pre>
<p... | [
{
"answer_id": 27614,
"author": "Magnus Hoff",
"author_id": 2971,
"author_profile": "https://Stackoverflow.com/users/2971",
"pm_score": 2,
"selected": false,
"text": "ContactServer CanContactServer"
},
{
"answer_id": 27619,
"author": "Daren Thomas",
"author_id": 2260,
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2150/"
] |
27,610 | <p>I want to introduce some tracing to a C# application I am writing. Sadly, I can never really remember how it works and would like a tutorial with reference qualities to check up on every now and then. It should include:</p>
<ul>
<li>App.config / Web.config stuff to add for registering TraceListeners</li>
<li>how to ... | [
{
"answer_id": 35034967,
"author": "Shaun",
"author_id": 276874,
"author_profile": "https://Stackoverflow.com/users/276874",
"pm_score": 3,
"selected": false,
"text": "TraceSource.TraceEvent(TraceEventType, Int32, String) TraceSource tracelog.txt TraceSource source = new TraceSource(\"so... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260/"
] |
27,621 | <p>On the UNIX bash shell (specifically Mac OS X Leopard) what would be the simplest way to copy every file having a specific extension from a folder hierarchy (including subdirectories) to the same destination folder (without subfolders)?</p>
<p>Obviously there is the problem of having duplicates in the source hierar... | [
{
"answer_id": 27625,
"author": "Magnus Hoff",
"author_id": 2971,
"author_profile": "https://Stackoverflow.com/users/2971",
"pm_score": 7,
"selected": true,
"text": "find /foo -iname '*.txt' -exec cp \\{\\} /dest/ \\;\n find /foo *.txt -iname find cp {} /dest/ {}"
},
{
"answer_id... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2954/"
] |
27,622 | <p>The <strong><a href="http://msdn.microsoft.com/en-us/library/4wyz8787(VS.80).aspx" rel="noreferrer">TRACE macro</a></strong> can be used to output diagnostic messages to the debugger when the code is compiled in <strong>Debug</strong> mode. I need the same messages while in <strong>Release</strong> mode. Is there a ... | [
{
"answer_id": 27628,
"author": "Mark Ingram",
"author_id": 986,
"author_profile": "https://Stackoverflow.com/users/986",
"pm_score": 1,
"selected": false,
"text": "#define ATLTRACE __noop\n void MyTrace(const CString& text)\n{\n ::OutputDebugString(text); // Outputs to conso... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
27,643 | <p>On a web page I want to dynamically render very basic flow diagrams, i.e. a few boxes joined by lines. Ideally the user could then click on one of these boxes (<code>DIVs</code>?) and be taken to a different page. Resorting to Flash seems like an overkill. Is anyone aware of any client-side (i.e. <code>server agnost... | [
{
"answer_id": 16935309,
"author": "bluish",
"author_id": 505893,
"author_profile": "https://Stackoverflow.com/users/505893",
"pm_score": 2,
"selected": false,
"text": "/**Draw an arrow made of 3 lines. \n * Requires wz_jsGraphics (http://www.walterzorn.de/en/jsgraphics/jsgraphics_e.htm)... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2966/"
] |
27,674 | <p>In our project, <a href="http://sharpwired.sourceforge.net/" rel="nofollow noreferrer">SharpWired</a>, we're trying to create a download component similar to the download windows in Firefox or Safari. That is, one single top down list of downloads which are custom controls containing progress bars, buttons and what ... | [
{
"answer_id": 619685,
"author": "SLaks",
"author_id": 34397,
"author_profile": "https://Stackoverflow.com/users/34397",
"pm_score": 3,
"selected": true,
"text": "DataRepeater Panel AutoScroll Dock Top"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/27674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2457/"
] |
27,695 | <p>It happens to me all the time. I accidentally version a file, I do not want to be versioned (i.e. developer/machine specific config-files).</p>
<p>If I commit this file, I will mess up the paths on all the other developer machines - they will be unhappy.</p>
<p>If I do delete the file from versioning, it will be d... | [
{
"answer_id": 27701,
"author": "Sergio Acosta",
"author_id": 2954,
"author_profile": "https://Stackoverflow.com/users/2954",
"pm_score": 2,
"selected": false,
"text": "git rm <filename>\n git commit -m ...\n"
},
{
"answer_id": 27707,
"author": "Greg Hewgill",
"author_id"... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1870/"
] |
27,711 | <p>I'm having a problem obtaining the total row count for items displayed in a Gridview using Paging and with a LinqDataSource as the source of data.</p>
<p>I've tried several approaches:</p>
<pre><code>protected void GridDataSource_Selected(object sender, LinqDataSourceStatusEventArgs e)
{
totalLabel.Text = ... | [
{
"answer_id": 3347416,
"author": "Nick Kahn",
"author_id": 275390,
"author_profile": "https://Stackoverflow.com/users/275390",
"pm_score": 0,
"selected": false,
"text": " protected void LinqDataSource1_Selecting(object sender, LinqDataSourceStatusEventArgs e)\n {\n Sys... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2841/"
] |
27,726 | <p>I completely understand the concept of expression trees, but I am having a hard time trying to find situations in which they are useful. Is there a specific instance in which expression trees can be applied? Or is it only useful as a transport mechanism for code? I feel like I am missing something here. Thanks!</p>
| [
{
"answer_id": 27736,
"author": "Fredrik Kalseth",
"author_id": 1710,
"author_profile": "https://Stackoverflow.com/users/1710",
"pm_score": 3,
"selected": false,
"text": "myMock.Verify(m => m.SomeMethod(someObject)); // tells moq to verify that the method\n ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2993/"
] |
27,743 | <p>My RubyOnRails app is set up with the usual pack of mongrels behind Apache configuration. We've noticed that our Mongrel web server memory usage can grow quite large on certain operations and we'd really like to be able to dynamically do a graceful restart of selected Mongrel processes at any time.</p>
<p>However, ... | [
{
"answer_id": 27787,
"author": "John Topley",
"author_id": 1450,
"author_profile": "https://Stackoverflow.com/users/1450",
"pm_score": 0,
"selected": false,
"text": "mongrel_cluster_ctl stop\n mongrel_cluster_ctl restart\n"
},
{
"answer_id": 31556,
"author": "AndrewR",
"... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2994/"
] |
27,745 | <p>Given the URL (single line):<br>
<a href="http://test.example.com/dir/subdir/file.html" rel="noreferrer">http://test.example.com/dir/subdir/file.html</a></p>
<p>How can I extract the following parts using regular expressions:</p>
<ol>
<li>The Subdomain (test)</li>
<li>The Domain (example.com)</li>
<li>The path wit... | [
{
"answer_id": 27755,
"author": "hometoast",
"author_id": 2009,
"author_profile": "https://Stackoverflow.com/users/2009",
"pm_score": 8,
"selected": true,
"text": "^((http[s]?|ftp):\\/)?\\/?([^:\\/\\s]+)((\\/\\w+)*\\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$ /*\n ^(.*:)//([A-Za-z0-9... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2644/"
] |
27,757 | <p>I am storing a PNG as an embedded resource in an assembly. From within the same assembly I have some code like this:</p>
<pre><code>Bitmap image = new Bitmap(typeof(MyClass), "Resources.file.png");
</code></pre>
<p>The file, named "file.png" is stored in the "Resources" folder (within Visual Studio), and is marke... | [
{
"answer_id": 27769,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": false,
"text": "ProjectNamespace.Properties.Resources.file\n"
},
{
"answer_id": 27773,
"author": "John",
"author_id": ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1006/"
] |
27,758 | <p>OK, I know what you're thinking, "why write a method you do not want people to use?" Right?</p>
<p>Well, in short, I have a class that needs to be serialized to XML. In order for the <a href="https://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer%28v=vs.110%29.aspx" rel="noreferrer... | [
{
"answer_id": 27763,
"author": "hometoast",
"author_id": 2009,
"author_profile": "https://Stackoverflow.com/users/2009",
"pm_score": 2,
"selected": false,
"text": " /// <summary>\n /// do not use\n /// </summary>\n /// <param name=\"item\">don't pass it anything -- you shoul... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
27,774 | <p>Effectively I want to give numeric scores to alphabetic grades and sum them. In Excel, putting the <code>LOOKUP</code> function into an array formula works:</p>
<pre><code>{=SUM(LOOKUP(grades, scoringarray))}
</code></pre>
<p>With the <code>VLOOKUP</code> function this does not work (only gets the score for the fi... | [
{
"answer_id": 29690,
"author": "Sam Brightman",
"author_id": 2492,
"author_profile": "https://Stackoverflow.com/users/2492",
"pm_score": 1,
"selected": true,
"text": "MATCH INDEX OFFSET INDIRECT CHOOSE CHOOSE CHOOSE =ARRAYFORMULA(SUM(CHOOSE(MATCH(D1:D8,Lookups!$A$1:$A$3,0),\n ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2492/"
] |
27,818 | <p>We've embedded an OSGi runtime (Equinox) into out custom client-server application to facilitate plugin development and so far things are going great. We've been using Eclipse to build plugins due to the built-in manifest editor, dependency management, and export wizard. Using Eclipse to manager builds isn't very co... | [
{
"answer_id": 5155085,
"author": "mike",
"author_id": 639398,
"author_profile": "https://Stackoverflow.com/users/639398",
"pm_score": 0,
"selected": false,
"text": "select 252 - osgi-archetype\nmvn idea:idea\n <Export-Package>org.foo.myproject.api</Export-Package>\n <Import-Package>org.... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/287/"
] |
27,832 | <p>I have a DirectShow graph to render MPEG2/4 movies from a network stream. When I assemble the graph by connecting the pins manually it doesn't render. But when I call Render on the GraphBuilder it renders fine. </p>
<p>Obviously there is some setup step that I'm not performing on some filter in the graph that Graph... | [
{
"answer_id": 27858,
"author": "Timbo",
"author_id": 1810,
"author_profile": "https://Stackoverflow.com/users/1810",
"pm_score": 5,
"selected": true,
"text": "void AddToRot( IUnknown *pUnkGraph, DWORD *pdwRegister ) \n{\n IMoniker* pMoniker;\n IRunningObjectTable* pROT;\n GetRu... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2587612/"
] |
27,835 | <p>Recently, I started changing some of our applications to support <code>MS SQL Server</code> as an alternative back end. </p>
<p>One of the compatibility issues I ran into is the use of MySQL's CREATE TEMPORARY TABLE to create in-memory tables that hold data for very fast access during a session with no need for per... | [
{
"answer_id": 27842,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 2,
"selected": false,
"text": "declare @foo table (\n Id int,\n Name varchar(100)\n);\n select * from @foo f\n join bar b on b.Id = f.Id\n"
}... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2077/"
] |
27,846 | <p>What is the configuration setting for modifying the default homepage in a Grails application to no longer be appName/index.gsp? Of course you can set that page to be a redirect but there must be a better way.</p>
| [
{
"answer_id": 17335212,
"author": "Rashedul.Rubel",
"author_id": 1632305,
"author_profile": "https://Stackoverflow.com/users/1632305",
"pm_score": 4,
"selected": false,
"text": "class UrlMappings {\n\n static mappings = {\n\n \"/$controller/$action?/$id?\"{\n constr... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3014/"
] |
27,850 | <p>So far I have encountered adjacency list, nested sets and nested intervals as models for storing tree structures in a database. I know these well enough and have migrated trees from one to another.</p>
<p>What are other popular models? What are their characteristics? What are good resources (books, web, etc) on thi... | [
{
"answer_id": 27863,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 2,
"selected": false,
"text": "C:\\\n Temp\n Windows\n System32\n Key Name Parent Path\n1 C: *1*\n2 ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2077/"
] |
27,894 | <p>In SQL Server 2005, we can create temp tables one of two ways:</p>
<pre><code>declare @tmp table (Col1 int, Col2 int);
</code></pre>
<p>or</p>
<pre><code>create table #tmp (Col1 int, Col2 int);
</code></pre>
<p>What are the differences between these two? I have read conflicting opinions on whether @tmp still us... | [
{
"answer_id": 64891,
"author": "Rory",
"author_id": 8479,
"author_profile": "https://Stackoverflow.com/users/8479",
"pm_score": 10,
"selected": true,
"text": "SELECT NOLOCK"
},
{
"answer_id": 8204184,
"author": "Martin Smith",
"author_id": 73226,
"author_profile": "h... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1219/"
] |
27,899 | <p>Is there a way to make S3 default to an index.html page? E.g.: My bucket object listing:</p>
<pre><code>/index.html
/favicon.ico
/images/logo.gif
</code></pre>
<p>A call to <strong>www.example.com/<em>index.html</em></strong> works great! But if one were to call <strong>www.example.com/</strong> we'd either get ... | [
{
"answer_id": 5040105,
"author": "Alex Jasmin",
"author_id": 162407,
"author_profile": "https://Stackoverflow.com/users/162407",
"pm_score": 6,
"selected": true,
"text": "index.html aws s3 website $MY_BUCKET_NAME --index-document index.html\n"
},
{
"answer_id": 24377823,
"au... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2961/"
] |
27,910 | <p>The <a href="http://doi.org/" rel="noreferrer">DOI</a> system places basically no useful limitations on what constitutes <a href="http://doi.org/handbook_2000/enumeration.html#2.2" rel="noreferrer">a reasonable identifier</a>. However, being able to pull DOIs out of PDFs, web pages, etc. is quite useful for citation... | [
{
"answer_id": 29639,
"author": "Silas Snider",
"author_id": 2933,
"author_profile": "https://Stackoverflow.com/users/2933",
"pm_score": 1,
"selected": false,
"text": "/(10\\.\\d+\\/\\d+)/\n http://hdl.handle.net/<doi>\n http://dx.doi.org/<doi>\n"
},
{
"answer_id": 1876427,
"... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2963/"
] |
27,921 | <p>Story: The user uploads an image that will be added to a photo gallery. As part of the upload process, we need to A) store the image on the web server's hard drive and B) store a thumbnail of the image on the web server's hard drive.</p>
<p>"Best" here is defined as </p>
<ul>
<li>Relatively easy to implement, un... | [
{
"answer_id": 27938,
"author": "Huppie",
"author_id": 1830,
"author_profile": "https://Stackoverflow.com/users/1830",
"pm_score": 5,
"selected": true,
"text": "// Example in C#, should be quite alike in ASP.NET\n// Assuming filename as the uploaded file\nusing ( Image bigImage = new Bit... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/308/"
] |
27,928 | <p>How do I calculate the distance between two points specified by latitude and longitude?</p>
<p>For clarification, I'd like the distance in kilometers; the points use the WGS84 system and I'd like to understand the relative accuracies of the approaches available.</p>
| [
{
"answer_id": 27943,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 11,
"selected": true,
"text": "function getDistanceFromLatLonInKm(lat1,lon1,lat2,lon2) {\n var R = 6371; // Radius of the earth in km\n var dLat = deg2rad(l... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1456/"
] |
27,952 | <p>Basically what I want to do it this: a pdb file contains a location of source files (e.g. <code>C:\dev\proj1\helloworld.cs</code>). Is it possible to modify that pdb file so that it contains a different location (e.g. <code>\more\differenter\location\proj1\helloworld.cs</code>)?</p>
| [
{
"answer_id": 28174,
"author": "Matt Dillard",
"author_id": 863,
"author_profile": "https://Stackoverflow.com/users/863",
"pm_score": 3,
"selected": false,
"text": "subst subst N: <MyRealPath>\n"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/27952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2822/"
] |
27,983 | <p>I have a table of tags and want to get the highest count tags from the list.</p>
<p>Sample data looks like this</p>
<pre><code>id (1) tag ('night')
id (2) tag ('awesome')
id (3) tag ('night')
</code></pre>
<p>using</p>
<pre><code>SELECT COUNT(*), `Tag` from `images-tags`
GROUP BY `Tag`
</code></pre>
<p>gets me ... | [
{
"answer_id": 27992,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 6,
"selected": false,
"text": "SELECT COUNT(id), `Tag` from `images-tags`\nGROUP BY `Tag`\nORDER BY 1 DESC\nLIMIT 20\n"
},
{
"answer_id": 279... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1477/"
] |
27,998 | <p>Most of my C/C++ development involves monolithic module files and absolutely no classes whatsoever, so usually when I need to make a <strong>DLL</strong> with accessible functions I just export them using the standard <code>__declspec(dllexport)</code> directive. Then access them either dynamically via <code>LoadLi... | [
{
"answer_id": 28018,
"author": "crashmstr",
"author_id": 1441,
"author_profile": "https://Stackoverflow.com/users/1441",
"pm_score": 4,
"selected": false,
"text": "#define ISDLL USEDLL LoadLibrary"
},
{
"answer_id": 28022,
"author": "Graeme Perrow",
"author_id": 1821,
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/27998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/194/"
] |
28,002 | <p>I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts i.e.</p>
<pre><code>MyClass *m = (MyClass *)ptr;
</code></pre>
<p>all over the place, but there seem to be two other types of casts, and I don't k... | [
{
"answer_id": 28020,
"author": "Inisheer",
"author_id": 2982,
"author_profile": "https://Stackoverflow.com/users/2982",
"pm_score": 4,
"selected": false,
"text": "dynamic_cast static_cast"
},
{
"answer_id": 1255015,
"author": "Johannes Schaub - litb",
"author_id": 34509,... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1821/"
] |
28,003 | <p>I have a large database and would like to select table names that have a certain column name. I have done something like this in MySQL, but can't find any info on SQL Server.</p>
<p>I want to do something like:</p>
<pre><code>select [table]
from [db]
where table [has column 'classtypeid']
</code></pre>
<p>How c... | [
{
"answer_id": 28008,
"author": "SQLMenace",
"author_id": 740,
"author_profile": "https://Stackoverflow.com/users/740",
"pm_score": 4,
"selected": true,
"text": "select table_name \nfrom information_schema.columns \nwhere column_name = 'classtypeid'\n"
},
{
"answer_id": 28012,
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
28,011 | <p>Working with dates in ruby and rails on windows, I'm having problems with pre-epoch dates (before 1970) throwing out of range exceptions. I tried using both <a href="http://ruby-doc.org/core-2.2.0/Time.html" rel="nofollow noreferrer"><code>Time</code></a> and <a href="http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdo... | [
{
"answer_id": 28148,
"author": "Mo.",
"author_id": 1870,
"author_profile": "https://Stackoverflow.com/users/1870",
"pm_score": 2,
"selected": true,
"text": "Date"
},
{
"answer_id": 28517,
"author": "John Duff",
"author_id": 3041,
"author_profile": "https://Stackoverf... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3041/"
] |
28,029 | <p>How can I have it so Visual Studio doesn't keep re-creating this folder that I never use. It's annoying ot keep looking and unnecessary.</p>
| [
{
"answer_id": 29442,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": -1,
"selected": true,
"text": "Tools->Options->Addin/Macro Security\n"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/28029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2993/"
] |
28,051 | <p>Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX controls that you want to share across these 2 applications.</p>
<p>What's the best way to create a "user control library", so that you can use the same control implementation in the 2 applications, withuot having to duplicate code?<... | [
{
"answer_id": 28142,
"author": "EndangeredMassa",
"author_id": 106,
"author_profile": "https://Stackoverflow.com/users/106",
"pm_score": 1,
"selected": false,
"text": "<DefaultProperty(\"Text\"), ToolboxData(\"<{0}:BreadCrumb runat=server />\")> _\nPublic Class BreadCrumb\n WebContro... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2868/"
] |
28,080 | <p>We often hear/read that one should avoid dynamic casting. I was wondering what would be 'good use' examples of it, according to you?</p>
<p>Edit:</p>
<p>Yes, I'm aware of <a href="https://stackoverflow.com/questions/28002/regular-cast-vs-staticcast-vs-dynamiccast">that other thread</a>: it is indeed when reading o... | [
{
"answer_id": 117185,
"author": "rlerallut",
"author_id": 20055,
"author_profile": "https://Stackoverflow.com/users/20055",
"pm_score": 1,
"selected": false,
"text": "template<class T>\nclass MyVector : public ContainerInterface\n...\n // function prototype (public API, in the header fi... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2638/"
] |
28,092 | <p>I have a ListBox that has a style defined for ListBoxItems. Inside this style, I have some labels and a button. One that button, I want to define a click event that can be handled on my page (or any page that uses that style). How do I create an event handler on my WPF page to handle the event from my ListBoxItem... | [
{
"answer_id": 28187,
"author": "Jas",
"author_id": 777,
"author_profile": "https://Stackoverflow.com/users/777",
"pm_score": 0,
"selected": false,
"text": "Public Event btnRemove()\n RaiseEvent btnRemove()\n"
},
{
"answer_id": 28252,
"author": "Arcturus",
"author_id": 90... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047/"
] |
28,098 | <p>How do I convert the value of a PHP variable to string?</p>
<p>I was looking for something better than concatenating with an empty string:</p>
<pre><code>$myText = $myVar . '';
</code></pre>
<p>Like the <code>ToString()</code> method in Java or .NET.</p>
| [
{
"answer_id": 28101,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 4,
"selected": false,
"text": "$myText = \"$myVar\";\n"
},
{
"answer_id": 28104,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_p... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2680/"
] |
28,110 | <p>I have a large table with 1 million+ records. Unfortunately, the person who created the table decided to put dates in a <code>varchar(50)</code> field.</p>
<p>I need to do a simple date comparison -</p>
<pre><code>datediff(dd, convert(datetime, lastUpdate, 100), getDate()) < 31
</code></pre>
<p>But it fails on... | [
{
"answer_id": 28135,
"author": "SQLMenace",
"author_id": 740,
"author_profile": "https://Stackoverflow.com/users/740",
"pm_score": 0,
"selected": false,
"text": "WHERE datediff(dd, convert(datetime, lastUpdate), getDate()) < 31\n where lastUpdate > getDate() -31\n"
},
{
"answer_... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
28,150 | <p>OK, this kind of follows on from <a href="https://stackoverflow.com/questions/27758/notify-developer-of-a-do-not-use-method">my previous question</a>.</p>
<p>What I would really like to do is create some sort of attribute which allows me to decorate a method that will <strong>break the build</strong>. Much like the... | [
{
"answer_id": 28191,
"author": "Greg Hurlman",
"author_id": 35,
"author_profile": "https://Stackoverflow.com/users/35",
"pm_score": -1,
"selected": false,
"text": "[MyMadeUpAttributeThatBreaksTheBuildForSure]\npublic class NotDoneYet {}\n"
},
{
"answer_id": 28242,
"author": ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
28,160 | <p>For whatever reason, our company has a coding guideline that states:</p>
<p><code>Each class shall have it's own header and implementation file.</code></p>
<p>So if we wrote a class called <code>MyString</code> we would need an associated <strong>MyStringh.h</strong> and <strong>MyString.cxx</strong>.</p>
<p>Does... | [
{
"answer_id": 105329,
"author": "paercebal",
"author_id": 14089,
"author_profile": "https://Stackoverflow.com/users/14089",
"pm_score": 6,
"selected": false,
"text": "A.def.hpp B.def.hpp A.inl.hpp B.inl.hpp A.hpp B.hpp A.def.hpp B.def.hpp A.inl.hpp B.inl.hpp A.def.hpp B.def.hpp A.hpp B.... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1881/"
] |
28,165 | <p>Python has this wonderful way of handling string substitutions using dictionaries:</p>
<pre><code>>>> 'The %(site)s site %(adj)s because it %(adj)s' % {'site':'Stackoverflow', 'adj':'rocks'}
'The Stackoverflow site rocks because it rocks'
</code></pre>
<p>I love this because you can specify a value once i... | [
{
"answer_id": 28247,
"author": "Marius",
"author_id": 1585,
"author_profile": "https://Stackoverflow.com/users/1585",
"pm_score": 4,
"selected": true,
"text": "function subst($str, $dict){\n return preg_replace(array_map(create_function('$a', 'return \"/%\\\\($a\\\\)s/\";'), array_ke... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305/"
] |
28,196 | <p>This is a very specific question regarding <strong>MySQL</strong> as implemented in <strong>WordPress</strong>.</p>
<p>I'm trying to develop a plugin that will show (select) posts that have specific '<strong>tags</strong>' and belong to specific '<strong>categories</strong>' (both multiple)</p>
<p>I was told it's im... | [
{
"answer_id": 28233,
"author": "Matt Rogish",
"author_id": 2590,
"author_profile": "https://Stackoverflow.com/users/2590",
"pm_score": 2,
"selected": false,
"text": "SELECT *\n FROM wp_posts p\n WHERE EXISTS( SELECT *\n FROM wp_term_relationship tr\n WHER... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1011/"
] |
28,202 | <p>Every time I create a new project I copy the last project's ant file to the new one and make the appropriate changes (trying at the same time to make it more flexible for the next project). But since I didn't really thought about it at the beginning, the file started to look really ugly.</p>
<p>Do you have an Ant t... | [
{
"answer_id": 28448,
"author": "Peter Hilton",
"author_id": 2670,
"author_profile": "https://Stackoverflow.com/users/2670",
"pm_score": 4,
"selected": true,
"text": "<project name=\"myapp\">\n ...\n <target name=\"jar\">\n ...\n <jar jarfile=\"${ant.project.name}.jar\" ...... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2644/"
] |
28,212 | <p>I'm using two different libraries in my project, and both of them supply a basic rectangle <code>struct</code>. The problem with this is that there seems to be no way to insert a conversion between the types, so I can't call a function in one library with the result from a function in the other. If I was the author ... | [
{
"answer_id": 28226,
"author": "Stu",
"author_id": 414,
"author_profile": "https://Stackoverflow.com/users/414",
"pm_score": 0,
"selected": false,
"text": "struct reinterpret_cast"
},
{
"answer_id": 28232,
"author": "mmattax",
"author_id": 1638,
"author_profile": "ht... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1421/"
] |
28,219 | <p>Can I get a 'when to use' for these and others? </p>
<pre><code><% %>
<%# EVAL() %>
</code></pre>
<p>Thanks</p>
| [
{
"answer_id": 28227,
"author": "Brian Warshaw",
"author_id": 1344,
"author_profile": "https://Stackoverflow.com/users/1344",
"pm_score": 2,
"selected": false,
"text": "<%= Class.Method() %>"
},
{
"answer_id": 28263,
"author": "chakrit",
"author_id": 3055,
"author_pro... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1293/"
] |
28,224 | <p>Is there a way to run a regexp-string replace on the current line in the bash?</p>
<p>I find myself rather often in the situation, where I have typed a long commandline and then realize, that I would like to change a word somewhere in the line.</p>
<p>My current approach is to finish the line, press <kbd>Ctrl</kbd... | [
{
"answer_id": 113250,
"author": "Zak Johnson",
"author_id": 17052,
"author_profile": "https://Stackoverflow.com/users/17052",
"pm_score": 2,
"selected": true,
"text": "~/.inputrc \"\\C-x6\": \"\\C-a#\\C-m^\"\n\"\\C-x7\": \"\\C-m\\C-P\\C-a\\C-d\\C-m\"\n .inputrc C-x C-r ls abcxyz # ^ xyz... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1870/"
] |
28,235 | <p>Using <a href="http://www.oracle.com/technology/products/jdev" rel="noreferrer">JDeveloper</a>, I started developing a set of web pages for a project at work. Since I didn't know much about JDev at the time, I ran over to Oracle to follow some tutorials. The JDev tutorials recommended doing <a href="http://www.filei... | [
{
"answer_id": 28472,
"author": "Peter Hilton",
"author_id": 2670,
"author_profile": "https://Stackoverflow.com/users/2670",
"pm_score": 7,
"selected": true,
"text": "<script type=\"text/javascript\">\n if (number < 0) {\n"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/28235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
28,243 | <p>I'm trying to install some Ruby Gems so I can use Ruby to notify me when I get twitter messages. However, after doing a <code>gem update --system</code>, I now get a zlib error every time I try and do a <code>gem install</code> of anything. below is the console output I get when trying to install ruby gems. (along w... | [
{
"answer_id": 109708,
"author": "srboisvert",
"author_id": 6805,
"author_profile": "https://Stackoverflow.com/users/6805",
"pm_score": 3,
"selected": true,
"text": "gem update --system\n"
},
{
"answer_id": 110496,
"author": "Asaf Bartov",
"author_id": 7483,
"author_p... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1726/"
] |
28,256 | <p>I've developed an equation parser using a simple stack algorithm that will handle binary (+, -, |, &, *, /, etc) operators, unary (!) operators, and parenthesis.</p>
<p>Using this method, however, leaves me with everything having the same precedence - it's evaluated left to right regardless of operator, although... | [
{
"answer_id": 28272,
"author": "OysterD",
"author_id": 2638,
"author_profile": "https://Stackoverflow.com/users/2638",
"pm_score": 4,
"selected": false,
"text": "<Exp> ::= <Exp> + <Term> |\n <Exp> - <Term> |\n <Term>\n\n<Term> ::= <Term> * <Factor> |\n <Term>... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2915/"
] |
28,293 | <p>I have an XML document with a DTD, and would love to be able to access the XML model, something like this:</p>
<pre><code>title = Thing.Items[0].Title
</code></pre>
<p>Is there a way, in Ruby, to generate this kind of object model based on a DTD? Or am I stuck using REXML?</p>
<p>Thanks!</p>
| [
{
"answer_id": 1462093,
"author": "David Richards",
"author_id": 177363,
"author_profile": "https://Stackoverflow.com/users/177363",
"pm_score": 1,
"selected": false,
"text": "require 'rubygems'\nrequire 'activesupport' # For xml-simple\nrequire 'ostruct' \n\nh = Hash.from_xml File.read(... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/722/"
] |
28,301 | <p>I'm unsure whether the following code would ensure all conditions given in Comparator's Javadoc. </p>
<pre><code>class TotalOrder<T> implements Comparator<T> {
public boolean compare(T o1, T o2) {
if (o1 == o2 || equal(o1, o2)) return 0;
int h1 = System.identityHashCode(o1);
... | [
{
"answer_id": 28394,
"author": "Cem Catikkas",
"author_id": 3087,
"author_profile": "https://Stackoverflow.com/users/3087",
"pm_score": 0,
"selected": false,
"text": "System.identityHashCode(Object) Object.hashCode() Object.equals(Object)"
},
{
"answer_id": 28439,
"author": ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3071/"
] |
28,353 | <p>We have a couple of mirrored SQL Server databases.</p>
<p>My first problem - the key problem - is to get a notification when the db fails over. I don't <em>need</em> to know because, erm, its mirrored and so it (almost) all carries on working automagically but it would useful to be advised and I'm currently getting... | [
{
"answer_id": 37116,
"author": "Murph",
"author_id": 1070,
"author_profile": "https://Stackoverflow.com/users/1070",
"pm_score": 3,
"selected": true,
"text": "using System;\nusing System.Data.SqlClient;\n\nnamespace FailoverMonitorConcept\n{\n class Program\n {\n static voi... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1070/"
] |
28,369 | <p>I'm looking for a "safe" eval function, to implement spreadsheet-like calculations (using numpy/scipy).</p>
<p>The functionality to do this (the <a href="http://docs.python.org/lib/module-rexec.html" rel="nofollow noreferrer">rexec module</a>) has been removed from Python since 2.3 due to apparently unfixable secur... | [
{
"answer_id": 32028,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": 3,
"selected": true,
"text": ">>> names['f'] = open('foo', 'w+')\n>>> safe_eval.safe_eval(\"baz = type(f)('baz', 'w+')\", names)\n>>> names['baz']\n<o... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3002/"
] |
28,377 | <p>In Visual Basic, is there a performance difference when using the <code>IIf</code> function instead of the <code>If</code> statement?</p>
| [
{
"answer_id": 28421,
"author": "Tom Mayfield",
"author_id": 2314,
"author_profile": "https://Stackoverflow.com/users/2314",
"pm_score": 6,
"selected": false,
"text": "IIf() Module Module1\n Sub Main()\n Dim test As Boolean = False\n Dim result As String = IIf(test, Foo(... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/299/"
] |
28,380 | <p>Has anybody managed to get the Android Emulator working behind a proxy that requires authentication?</p>
<p>I've tried setting the -http-proxy argument to</p>
<pre><code>http://DOMAIN/USERNAME:PASSWORD@IP:PORT
</code></pre>
<p>but am having no success.</p>
<p>I've tried following the docs to no avail. I've also trie... | [
{
"answer_id": 28406,
"author": "dlamblin",
"author_id": 459,
"author_profile": "https://Stackoverflow.com/users/459",
"pm_score": 2,
"selected": false,
"text": "http://$USER:password@www-proxy.company.com:80"
},
{
"answer_id": 40189,
"author": "Naseer",
"author_id": 907,... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1281/"
] |
28,395 | <p>How do you pass <code>$_POST</code> values to a page using <code>cURL</code>?</p>
| [
{
"answer_id": 28411,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 8,
"selected": true,
"text": "$data = array('name' => 'Ross', 'php_master' => true);\n\n// You can POST a file by prefixing with an @ (for <input type=\"file\"... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2863/"
] |
28,428 | <p>I want to bring up a file dialog in Java that defaults to the application installation directory.</p>
<p>What's the best way to get that information programmatically?</p>
| [
{
"answer_id": 28454,
"author": "Rich Lawrence",
"author_id": 1281,
"author_profile": "https://Stackoverflow.com/users/1281",
"pm_score": 4,
"selected": true,
"text": "System.getProperty(\"user.dir\") \n"
},
{
"answer_id": 28726,
"author": "McDowell",
"author_id": 304,
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
28,478 | <p>I recently asked a question about <a href="https://stackoverflow.com/questions/28377/iif-vs-if">IIf vs. If</a> and found out that there is another function in VB called <strong>If</strong> which basically does the same thing as <strong>IIf</strong> but is a short-circuit.</p>
<p>Does this <strong>If</strong> functi... | [
{
"answer_id": 28498,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": true,
"text": "If Dim result = If(a > 0, Math.Sqrt(a), -1.0)\n\n' versus\n\nDim result As Double ' Redundant default initialization!\n... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/299/"
] |
28,529 | <p>When using <a href="http://jquery.com/" rel="nofollow noreferrer">jQuery</a>'s <a href="http://docs.jquery.com/Ajax/jQuery.ajax#options" rel="nofollow noreferrer">ajax method</a> to submit form data, what is the best way to handle errors?
This is an example of what a call might look like:</p>
<pre><code>$.ajax({
... | [
{
"answer_id": 28545,
"author": "travis",
"author_id": 1414,
"author_profile": "https://Stackoverflow.com/users/1414",
"pm_score": 4,
"selected": false,
"text": "<div id=\"error\"></div> error: function (XMLHttpRequest, textStatus, errorThrown) {\n $(\"#error\").html(XMLHttpRequest.st... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1403/"
] |
28,542 | <p>My C code snippet takes the address of an argument and stores it in a volatile memory location (preprocessed code):</p>
<pre><code>void foo(unsigned int x) {
*(volatile unsigned int*)(0x4000000 + 0xd4) = (unsigned int)(&x);
}
int main() {
foo(1);
while(1);
}
</code></pre>
<p>I used an SVN version ... | [
{
"answer_id": 28651,
"author": "Will Dean",
"author_id": 987,
"author_profile": "https://Stackoverflow.com/users/987",
"pm_score": 1,
"selected": false,
"text": "void foo(unsigned int x) \n{\n volatile unsigned int* pArg = &x;\n *(volatile unsigned int*)(0x4000000 + 0xd4) = (unsig... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/616/"
] |
28,559 | <p>What's the best Python idiom for this C construct?</p>
<pre><code>while ((x = next()) != END) {
....
}
</code></pre>
<p>I don't have the ability to recode next().</p>
<p>update: and the answer from seems to be:</p>
<pre><code>for x in iter(next, END):
....
</code></pre>
| [
{
"answer_id": 28563,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://Stackoverflow.com/users/1199",
"pm_score": 2,
"selected": false,
"text": "x = next()\nwhile x != END:\n do_something_with_x\n x = next()\n"
},
{
"answer_id": 28566,
"author": "... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
28,577 | <p>I need to store products for an e-commerce solution in a database. Each product should have descriptive information, such as name, description etc.</p>
<p>I need any product to be localized to x number of languages.</p>
<p>What I've done so far, is to make any column that should be localized and <code>nvarchar(MAX... | [
{
"answer_id": 28871,
"author": "Luke",
"author_id": 327,
"author_profile": "https://Stackoverflow.com/users/327",
"pm_score": 3,
"selected": true,
"text": "public class Product\n{\n private idType id;\n public string Name\n {\n get\n {\n return Localizer.Instance.GetLocalS... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2972/"
] |
28,588 | <p>I want to log onto Stack Overflow using OpenID, but I thought I'd set up my own OpenID provider, just because it's harder :) How do you do this in Ubuntu?</p>
<p>Edit: Replacing 'server' with the correct term OpenID provider (Identity provider would also be correct according to <a href="http://en.wikipedia.org/wiki... | [
{
"answer_id": 35659,
"author": "tonygambone",
"author_id": 3344,
"author_profile": "https://Stackoverflow.com/users/3344",
"pm_score": 3,
"selected": false,
"text": "<link rel=\"openid.server\" href=\"http://openid.claimid.com/server\" />\n<link rel=\"openid.delegate\" href=\"http://ope... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3102/"
] |
28,637 | <p>I need to find a bottleneck and need to accurately as possible measure time.</p>
<p>Is the following code snippet the best way to measure the performance?</p>
<pre><code>DateTime startTime = DateTime.Now;
// Some execution process
DateTime endTime = DateTime.Now;
TimeSpan totalTimeTaken = endTime.Subtract(startT... | [
{
"answer_id": 28648,
"author": "Markus Olsson",
"author_id": 2114,
"author_profile": "https://Stackoverflow.com/users/2114",
"pm_score": 10,
"selected": true,
"text": "System.Diagnostics Stopwatch sw = Stopwatch.StartNew();\nPerformWork();\nsw.Stop();\n\nConsole.WriteLine(\"Time taken: ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2469/"
] |
28,642 | <p>Having a heckuva time with this one, though I feel I'm missing something obvious. I have a control that inherits from <code>System.Web.UI.WebControls.Button</code>, and then implements an interface that I have set up. So think...</p>
<pre><code>public class Button : System.Web.UI.WebControls.Button, IMyButtonInterf... | [
{
"answer_id": 28662,
"author": "bdukes",
"author_id": 2688,
"author_profile": "https://Stackoverflow.com/users/2688",
"pm_score": 1,
"selected": false,
"text": "foreach (Control c in this.Page.Controls) {\n IMyButtonInterface myButton = c as IMyButtonInterface;\n if (myButton != n... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1212/"
] |
28,675 | <p>I'm using <code>ByteBuffers</code> and <code>FileChannels</code> to write binary data to a file. When doing that for big files or successively for multiple files, I get an <code>OutOfMemoryError</code> exception.
I've read elsewhere that using <code>Bytebuffers</code> with NIO is broken and should be avoided. Does a... | [
{
"answer_id": 28690,
"author": "Marcin",
"author_id": 3105,
"author_profile": "https://Stackoverflow.com/users/3105",
"pm_score": 1,
"selected": false,
"text": "java.io.FileOutputStream DataOutputStream ObjectOutputStream"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/28675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2612/"
] |
28,708 | <p>My code needs to determine how long a particular process has been running. But it continues to fail with an access denied error message on the <code>Process.StartTime</code> request. This is a process running with a User's credentials (ie, not a high-privilege process). There's clearly a security setting or a policy... | [
{
"answer_id": 31792,
"author": "TheSmurf",
"author_id": 1975282,
"author_profile": "https://Stackoverflow.com/users/1975282",
"pm_score": 3,
"selected": false,
"text": "using System.Management;\nString queryString = \"select CreationDate from Win32_Process where ProcessId='\" + ProcessI... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1975282/"
] |
28,709 | <p>In Eclipse 3.2.2 on Linux content assist is not finding classes within the same project. Upgrading above 3.2 is not an option as SWT is not available above 3.2 for Solaris.</p>
<p>I have seen suggestions to clean the workspace, reopen the workspace, run eclipse with the <code>-clean</code> command, none of which ha... | [
{
"answer_id": 549032,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": true,
"text": "package FG::CatalogueFichier;\nuse FG::Catalogue;\nour @ISA = qw(FG::Catalogue);\nuse strict;\n"
},
{
"answer_id": 4280... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1539/"
] |
28,713 | <p>Is there a simple way of getting a HTML textarea and an input type="text" to render with (approximately) equal width (in pixels), that works in different browsers?</p>
<p>A CSS/HTML solution would be brilliant. I would prefer not to have to use Javascript.</p>
<p>Thanks
/Erik</p>
| [
{
"answer_id": 28728,
"author": "Re0sless",
"author_id": 2098,
"author_profile": "https://Stackoverflow.com/users/2098",
"pm_score": 5,
"selected": true,
"text": ".mywidth {\n width: 100px; \n} <input class=\"mywidth\">\n<br>\n<textarea class=\"mywidth\"></textarea>"
},
{
"ans... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/276/"
] |
28,723 | <p>In handling a form post I have something like</p>
<pre><code> public ActionResult Insert()
{
Order order = new Order();
BindingHelperExtensions.UpdateFrom(order, this.Request.Form);
this.orderService.Save(order);
return this.RedirectToAction("Details", new { id = order.ID })... | [
{
"answer_id": 35299,
"author": "Joseph Kingry",
"author_id": 3046,
"author_profile": "https://Stackoverflow.com/users/3046",
"pm_score": 2,
"selected": true,
"text": " public ActionResult Insert(Contact contact)\n {\n\n if (this.ViewData.ModelState.IsValid)\n {\n ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3046/"
] |
28,739 | <p>I recently ran out of disk space on a drive on a FreeBSD server. I truncated the file that was causing problems but I'm not seeing the change reflected when running <code>df</code>. When I run <code>du -d0</code> on the partition it shows the correct value. Is there any way to force this information to be updated... | [
{
"answer_id": 447740,
"author": "Dave C",
"author_id": 55504,
"author_profile": "https://Stackoverflow.com/users/55504",
"pm_score": 2,
"selected": false,
"text": "cp /bin/cat /tmp/cat-test\n/tmp/cat-test &\nrm /tmp/cat-test\n"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/28739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72/"
] |
28,756 | <p>Whats the best/easiest way to obtain a count of items within an IEnumerable collection without enumerating over all of the items in the collection?</p>
<p>Possible with LINQ or Lambda?</p>
| [
{
"answer_id": 28761,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": false,
"text": "Count var result = myenum.Count();\n"
},
{
"answer_id": 28762,
"author": "Greg Hurlman",
"author_id": ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2993/"
] |
28,765 | <p>I recently upgraded a VS2005 web deployment project to VS2008 - and now I get the following error when building:</p>
<pre><code>The specified task executable location "bin\aspnet_merge.exe" is invalid.
</code></pre>
<p>Here is the source of the error (from the web deployment targets file):</p>
<pre><code><Targ... | [
{
"answer_id": 28822,
"author": "Adam",
"author_id": 1341,
"author_profile": "https://Stackoverflow.com/users/1341",
"pm_score": 4,
"selected": true,
"text": "SET FrameworkSDKDir=\"C:\\Program Files\\Microsoft SDKs\\Windows\\v6.1\"\n"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/28765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1341/"
] |
28,817 | <p>There is a legacy CVS repository, which contains a large number of directories, sub-directories, and paths. There is also a large number of branches and tags that do not necessarilly cover all paths & files - usually a subset. How can I find out, which branch / tag covers, which files and paths?</p>
<p>CVS log ... | [
{
"answer_id": 34953,
"author": "John Meagher",
"author_id": 3535,
"author_profile": "https://Stackoverflow.com/users/3535",
"pm_score": 4,
"selected": true,
"text": "cvs log <filename>\n cvs update -r <tagname>\ncvs co <modulename> -r <tagname>\ncvs export <modulename> -r <tagname>\n"
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2877/"
] |
28,832 | <p>If I call <code>finalize()</code> on an object from my program code, will the <strong>JVM</strong> still run the method again when the garbage collector processes this object?</p>
<p>This would be an approximate example:</p>
<pre><code>MyObject m = new MyObject();
m.finalize();
m = null;
System.gc()
</code></pr... | [
{
"answer_id": 28856,
"author": "John Topley",
"author_id": 1450,
"author_profile": "https://Stackoverflow.com/users/1450",
"pm_score": 2,
"selected": false,
"text": "public void cleanUp() {\n .\n .\n .\n}\n\nmyInstance.cleanUp();\n"
},
{
"answer_id": 28906,
"author": "Tim... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2697/"
] |
28,858 | <p>Saw a post about hidden features in C# but not a lot of people have written linq/lambdas example so... I wonder...</p>
<blockquote>
<p>What's the coolest (as in the most elegant) use of the C# LINQ and/or Lambdas/anonymous delegates you have ever saw/written?</p>
</blockquote>
<p>Bonus if it has went into produc... | [
{
"answer_id": 28973,
"author": "Chris Ammerman",
"author_id": 2729,
"author_profile": "https://Stackoverflow.com/users/2729",
"pm_score": 4,
"selected": false,
"text": "public static class Functionals\n{\n // One-argument Y-Combinator.\n public static Func<T, TResult> Y<T, TResult... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3055/"
] |
28,878 | <p>I'm translating my C# code for YouTube video comments into PHP. In order to properly nest comment replies, I need to re-arrange XML nodes. In PHP I'm using DOMDocument and DOMXPath which closely corresponds to C# XmlDocument. I've gotten pretty far in my translation but now I'm stuck on getting the parent node of a ... | [
{
"answer_id": 28998,
"author": "Marius",
"author_id": 1585,
"author_profile": "https://Stackoverflow.com/users/1585",
"pm_score": 1,
"selected": false,
"text": "$link->parent_node() $link**s**->parent_node() s"
},
{
"answer_id": 49586651,
"author": "Dimas Lanjaka",
"auth... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2601/"
] |
28,881 | <p>Using the same <strong>sort</strong> command with the same input produces different results on different machines. How do I fix that?</p>
| [
{
"answer_id": 28893,
"author": "Jon Ericson",
"author_id": 1438,
"author_profile": "https://Stackoverflow.com/users/1438",
"pm_score": 3,
"selected": false,
"text": "$ echo 'CO2_\nCO_' | env LC_ALL=C sort\nCO2_\nCO_\n\n\n$ echo 'CO2_\nCO_' | env LC_ALL=en_US sort\nCO_\nCO2_\n"
},
{
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438/"
] |
28,894 | <p>For years I have been using the DEBUG compiler constant in VB.NET to write messages to the console. I've also been using System.Diagnostics.Debug.Write in similar fashion. It was always my understanding that when RELEASE was used as the build option, that all of these statements were left out by the compiler, free... | [
{
"answer_id": 28913,
"author": "juan",
"author_id": 1782,
"author_profile": "https://Stackoverflow.com/users/1782",
"pm_score": 1,
"selected": false,
"text": "public void Debug(string s)\n{\n#if DEBUG\n System.Diagnostics.Debug(...);\n#endif\n}\n"
},
{
"answer_id": 28934,
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3059/"
] |
28,896 | <p>I'm currently designing a program that will involve some physics (nothing too fancy, a few balls crashing to each other)</p>
<p>What's the most exact datatype I can use to represent position (without a feeling of discrete jumps) in c#?</p>
<p>Also, what's the smallest ammount of time I can get between t and t+1? O... | [
{
"answer_id": 28917,
"author": "tghw",
"author_id": 2363,
"author_profile": "https://Stackoverflow.com/users/2363",
"pm_score": 4,
"selected": true,
"text": "decimal public class Position\n{\n decimal x;\n decimal y;\n decimal z;\n}\n"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/28896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1782/"
] |
28,922 | <p>I have an SQL server database that I am querying and I only want to get the information when a specific row is null. I used a where statement such as:</p>
<pre><code>WHERE database.foobar = NULL
</code></pre>
<p>and it does not return anything. However, I know that there is at least one result because I created an... | [
{
"answer_id": 28929,
"author": "Farinha",
"author_id": 2841,
"author_profile": "https://Stackoverflow.com/users/2841",
"pm_score": 1,
"selected": false,
"text": "IS NULL"
},
{
"answer_id": 28966,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https:/... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2486/"
] |
28,932 | <p>What is the the best JavaScript compressor available? I'm looking for a tool that:</p>
<ul>
<li>is easy to use</li>
<li>has a high compression rate</li>
<li>Produce reliable end results (doesn't mess up the code)</li>
</ul>
| [
{
"answer_id": 3541878,
"author": "mishoo",
"author_id": 154985,
"author_profile": "https://Stackoverflow.com/users/154985",
"pm_score": 8,
"selected": true,
"text": "Node.js foo[\"bar\"] foo.bar"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/28932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1363/"
] |
28,949 | <p>After reading <a href="https://stackoverflow.com/questions/28832/java-and-manually-executing-finalize">this question</a>, I was reminded of when I was taught Java and told never to call finalize() or run the garbage collector because "it's a big black box that you never need to worry about". Can someone boil the rea... | [
{
"answer_id": 30567,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Stackoverflow.com/users/872",
"pm_score": 2,
"selected": false,
"text": "finalize() finalize() close() FileInputStream.close() finalize()"
},
{
"answer_id": 5388006,
"author": "Leo",
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
28,950 | <p>Does anyone have links to documentation or guides on making the decision between REST vs. SOAP? I understand both of these but am looking for some references on the key decision points, eg, security, which may make you lean towards one or the other.</p>
| [
{
"answer_id": 19463563,
"author": "kapil das",
"author_id": 2041542,
"author_profile": "https://Stackoverflow.com/users/2041542",
"pm_score": 2,
"selected": false,
"text": "REST uses standard HTTP so it is simplerto creating clients, developing APIs \nREST permits many different data fo... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/636/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.