qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
55,860 | <p>Okay, here is the 411 - I have the following event handler in my Global.asax.cs file:</p>
<pre><code>private void Global_PostRequestHandlerExecute(object sender, EventArgs e)
{
if (/* logic that determines that this is an ajax call */)
{
// we want to set a cookie
Response.Cookies.Add(new HttpCook... | [
{
"answer_id": 56261,
"author": "Erlend",
"author_id": 5746,
"author_profile": "https://Stackoverflow.com/users/5746",
"pm_score": 2,
"selected": false,
"text": ";expires=Thu, 01-Jan-1970 00:00:01 GMT"
},
{
"answer_id": 56740,
"author": "Ricky",
"author_id": 653,
"aut... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1790/"
] |
55,869 | <p>I'm downloading some images from a service that doesn't always include a content-type and doesn't provide an extension for the file I'm downloading (ugh, don't ask).</p>
<p>What's the best way to determine the image format in .NET?</p>
<p>The application that is reading these downloaded images needs to have a prop... | [
{
"answer_id": 55879,
"author": "Garth Kidd",
"author_id": 5700,
"author_profile": "https://Stackoverflow.com/users/5700",
"pm_score": 3,
"selected": false,
"text": "file file man file /usr/share/file/magic man magic libmagic"
},
{
"answer_id": 55887,
"author": "Vinko Vrsalov... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5277/"
] |
55,871 | <p>Is it possible to detect when the user clicks on the browser's back button?</p>
<p>I have an Ajax application and if I can detect when the user clicks on the back button I can display the appropriate data back</p>
<p>Any solution using PHP, JavaScript is preferable. Hell a solution in any language is fine, just need... | [
{
"answer_id": 33439550,
"author": "Jeffrey Harmon",
"author_id": 555329,
"author_profile": "https://Stackoverflow.com/users/555329",
"pm_score": 2,
"selected": false,
"text": "<input type=\"hidden\" id=\"needs-refresh\" value=\"no\">\n<script>\n onload=function(){\n var e = do... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3983/"
] |
55,899 | <p>I'm using a custom-built inhouse application that generates a standard set of reports on a weekly basis. I have no access to the source code of the application, and everyone tells me there is no documentation available for the Oracle database schema. (Aargh!)</p>
<p>I've been asked to define the specs for a variant... | [
{
"answer_id": 55914,
"author": "Mark Nold",
"author_id": 4134,
"author_profile": "https://Stackoverflow.com/users/4134",
"pm_score": 6,
"selected": true,
"text": "and TABLETYPE=’:b16’\n and TABLETYPE=’MT’\n SELECT \n module, \n sql_text, \n username, \n disk_reads_per_exec, \n buffer_ge... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/480/"
] |
55,901 | <p>Is there a web service of some sort (or any other way) to pull a current time zone settings for a (US) city. For the parts of the country that don't follow the Daylight Saving Time and basically jump timezones when everyone else is switching summer/winter time... I don't fancy creating own database of the places tha... | [
{
"answer_id": 14988400,
"author": "Mike Davis",
"author_id": 641879,
"author_profile": "https://Stackoverflow.com/users/641879",
"pm_score": 6,
"selected": false,
"text": "\"location\": {\n \"lat\": 37.77492950,\n \"lng\": -122.41941550\n}\n {\n \"status\": \"OK\",\n ... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4808/"
] |
55,956 | <p>is there an alternative for <code>mysql_insert_id()</code> php function for PostgreSQL? Most of the frameworks are solving the problem partially by finding the current value of the sequence used in the ID. However, there are times that the primary key is not a serial column....</p>
| [
{
"answer_id": 55959,
"author": "aib",
"author_id": 1088,
"author_profile": "https://Stackoverflow.com/users/1088",
"pm_score": 2,
"selected": false,
"text": "INSERT INTO table (col1, col2) VALUES (1, 2) RETURNING pkey_col\n"
},
{
"answer_id": 56055,
"author": "Vertigo",
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5742/"
] |
55,964 | <p>How can I make a major upgrade to an installation set (MSI) built with <a href="http://en.wikipedia.org/wiki/WiX" rel="noreferrer">WiX</a> install into the same folder as the original installation?</p>
<p>The installation is correctly detected as an upgrade, but the directory selection screen is still shown and wit... | [
{
"answer_id": 56123,
"author": "Anthony Williams",
"author_id": 5597,
"author_profile": "https://Stackoverflow.com/users/5597",
"pm_score": 6,
"selected": true,
"text": "<Property Id=\"INSTALLDIR\">\n <RegistrySearch Id='AcmeFoobarRegistry' Type='raw'\n Root='HKLM' Key='Software\\Ac... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4683/"
] |
55,978 | <p>I know how to test an object to see if it is of a type, using the IS keyword e.g.</p>
<pre><code>if (foo is bar)
{
//do something here
}
</code></pre>
<p>but how do you test for it not being "bar"?, I can't seem to find a keyword that works with IS to test for a negative result. </p>
<p>BTW - I have a horrible... | [
{
"answer_id": 55980,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 5,
"selected": true,
"text": "if (!(foo is bar)) {\n}\n"
},
{
"answer_id": 55981,
"author": "aku",
"author_id": 1196,
"author_pr... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5175/"
] |
55,984 | <p>What is the difference between <strong><code>const</code></strong> and <strong><code>readonly</code></strong> in C#? </p>
<p>When would you use one over the other?</p>
| [
{
"answer_id": 55987,
"author": "Daren Thomas",
"author_id": 2260,
"author_profile": "https://Stackoverflow.com/users/2260",
"pm_score": 4,
"selected": false,
"text": "const readonly"
},
{
"answer_id": 56024,
"author": "Gishu",
"author_id": 1695,
"author_profile": "ht... | 2008/09/11 | [
"https://Stackoverflow.com/questions/55984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
56,011 | <p>According to the documentation, they're pretty much interchangeable. Is there a stylistic reason to use one over the other?</p>
| [
{
"answer_id": 56041,
"author": "Tony Meyer",
"author_id": 4966,
"author_profile": "https://Stackoverflow.com/users/4966",
"pm_score": 5,
"selected": false,
"text": "\"You're able to do this\" 'He said \"Hi!\"' '' \"\" \" ' \"\"\"these\"\"\" '''these'''"
},
{
"answer_id": 56073,
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
56,037 | <p>I am working with fixtures on rails and I want one of the fixture fields to be blank.</p>
<p>Example:</p>
<pre><code>two:
name: test
path: - I want this blank but not to act as a group heading.
test: 4
</code></pre>
<p>But, I do not know how to leave <code>path:</code> blank without it acting as a group title. D... | [
{
"answer_id": 56060,
"author": "Paul Wicks",
"author_id": 85,
"author_profile": "https://Stackoverflow.com/users/85",
"pm_score": 1,
"selected": false,
"text": "path: \\\"\\\"\n"
},
{
"answer_id": 56519,
"author": "Tom",
"author_id": 4753,
"author_profile": "https://... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5004/"
] |
56,045 | <p>I'm having some internationalisation woes:</p>
<p>My UTF-8 string fields are being rendered in the browser as ???? after being returned from the database.</p>
<p>After retrieval from the database using Hibernate, the String fields are presented correctly on inspection using the eclipse debugger.</p>
<p>However St... | [
{
"answer_id": 56626,
"author": "ScArcher2",
"author_id": 1310,
"author_profile": "https://Stackoverflow.com/users/1310",
"pm_score": 1,
"selected": true,
"text": "<%@ page contentType=\"text/html; charset=UTF-8\" %>\n"
},
{
"answer_id": 78724,
"author": "chickeninabiscuit",
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3966/"
] |
56,052 | <p>EditPad Lite has a nice feature (<kbd>CTRL</kbd>-<kbd>E</kbd>, <kbd>CTRL</kbd>-<kbd>I</kbd>) which inserts a time stamp e.g. "2008-09-11 10:34:53" into your code.</p>
<p>What is the best way to get this functionality in Vim?</p>
<p>(I am using Vim 6.1 on a Linux server via SSH. In the current situation a number of... | [
{
"answer_id": 56061,
"author": "Daren Thomas",
"author_id": 2260,
"author_profile": "https://Stackoverflow.com/users/2260",
"pm_score": 8,
"selected": true,
"text": ":r! date\n Thu Sep 11 10:47:30 CEST 2008\n :r! date \"+\\%Y-\\%m-\\%d \\%H:\\%M:\\%S\"\n 2008-09-11 10:50:56\n"
},
{
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
56,078 | <p>I got a Function that returns a <code>Collection<string></code>, and that calls itself recursively to eventually return one big <code>Collection<string></code>.</p>
<p>Now, i just wonder what the best approach to merge the lists? <code>Collection.CopyTo()</code> only copies to string[], and using a <cod... | [
{
"answer_id": 56092,
"author": "jfs",
"author_id": 718,
"author_profile": "https://Stackoverflow.com/users/718",
"pm_score": 1,
"selected": false,
"text": "HashSet<T> HashSet<T> HashSet<T> Dictionary<TKey, TValue>"
},
{
"answer_id": 56100,
"author": "Mendelt",
"author_id... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
56,087 | <p>I know about the "cooperative" threading of ruby using <a href="http://en.wikipedia.org/wiki/Green_threads" rel="noreferrer">green threads</a>. How can I create real "OS-level" threads in my application in order to make use of multiple cpu cores for processing?</p>
| [
{
"answer_id": 57802,
"author": "Jörg W Mittag",
"author_id": 2988,
"author_profile": "https://Stackoverflow.com/users/2988",
"pm_score": 10,
"selected": true,
"text": "Process Process.fork"
},
{
"answer_id": 21531941,
"author": "user454322",
"author_id": 454322,
"aut... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3205/"
] |
56,091 | <p>Whilst refactoring some legacy C++ code I found that I could potentially remove some code duplication by somehow defining a variable that could point to any class method that shared the same signature. After a little digging, I found that I could do something like the following:</p>
<pre><code>class MyClass
{
prot... | [
{
"answer_id": 56101,
"author": "Paulius",
"author_id": 1353085,
"author_profile": "https://Stackoverflow.com/users/1353085",
"pm_score": 1,
"selected": false,
"text": "bool res = this->*CaseMethod( 999, \"hello world\" );\n"
},
{
"answer_id": 56111,
"author": "Anthony Willia... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2958/"
] |
56,096 | <p>I have a project which is source controlled using Subversion and VisualSVN. Since the version of web.config is different on the server and the developers' computers I want the file to remain on the computers but to be ignored by Subversion. I added it to the svn:ignore but it still remains (and still has a red excla... | [
{
"answer_id": 56142,
"author": "ibz",
"author_id": 5475,
"author_profile": "https://Stackoverflow.com/users/5475",
"pm_score": 1,
"selected": false,
"text": "svn rm --force web.config\nsvn commit\n"
},
{
"answer_id": 2685099,
"author": "Gökhan Ercan",
"author_id": 7751,
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5754/"
] |
56,107 | <p>I'm looking for a library/method to parse an html file with more html specific features than generic xml parsing libraries.</p>
| [
{
"answer_id": 56228,
"author": "Erlend",
"author_id": 5746,
"author_profile": "https://Stackoverflow.com/users/5746",
"pm_score": 5,
"selected": false,
"text": "using mshtml;\n...\nobject[] oPageText = { html };\nHTMLDocument doc = new HTMLDocumentClass();\nIHTMLDocument2 doc2 = (IHTMLD... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/327/"
] |
56,112 | <p>I have written a Silverlight 2 application communicating with a WCF service (BasicHttpBinding). The site hosting the Silverlight content is protected using a ASP.NET Membership Provider. I can access the current user using HttpContext.Current.User.Identity.Name from my WCF service, and I have turned on AspNetCompati... | [
{
"answer_id": 57760,
"author": "Jonas Follesø",
"author_id": 1199387,
"author_profile": "https://Stackoverflow.com/users/1199387",
"pm_score": 4,
"selected": true,
"text": "var authService = new AuthService.AuthenticationServiceClient();\nvar diveService = new DiveLogService.DiveLogServ... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1199387/"
] |
56,118 | <p>I am trying to write a formula in ActionScript 3 that will give me var "z" (please see image below) in degrees, which I will then convert to radians.</p>
<p>I will already know the value of vars "x" and "y". Using trigonometry, how can I calculate the length of the hypotenuse and therefore the variable angle of var... | [
{
"answer_id": 56126,
"author": "Patrick",
"author_id": 429,
"author_profile": "https://Stackoverflow.com/users/429",
"pm_score": 2,
"selected": false,
"text": "180 - arctan(x/y) //Degrees\npi - arctan(x/y) //radians\n"
},
{
"answer_id": 56131,
"author": "Blorgbeard",
"au... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/192/"
] |
56,124 | <p>Can I run a 64-bit VMware image on a 32-bit machine?</p>
<p>I've googled this, but there doesn't seem to be a conclusive answer.</p>
<p>I know that it would have to be completely emulated and would run like a dog - but slow performance isn't necessarily an issue as I'm just interested in testing some of my backgro... | [
{
"answer_id": 56332,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 5,
"selected": false,
"text": "$ cd /path/to/vmware/guestos\n$ for i in \\`ls *[0-9].vmdk\\`; do qemu-img convert -f vmdk $i -O raw {i/vmdk/raw};done\n$ cat *.raw... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1078/"
] |
56,149 | <p>How do you store file permissions in a repository? A few files need to be read-only to stop a third party program from trashing it but after checking out of the repository they are set to read-write.</p>
<p>I looked on google and found a <a href="http://mamchenkov.net/wordpress/2005/04/27/subversion-and-file-permis... | [
{
"answer_id": 56158,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": -1,
"selected": false,
"text": "svn lock"
},
{
"answer_id": 56217,
"author": "Garth Kidd",
"author_id": 5700,
"author_profile": "ht... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/342/"
] |
56,168 | <p>The code in <a href="https://stackoverflow.com/questions/17181/test-cases-vs-assertion-statement">this question</a> made me think</p>
<pre><code>assert(value>0); //Precondition
if (value>0)
{
//Doit
}
</code></pre>
<p>I never write the if-statement. Asserting is enough/all you <em>can</em> do.
"Crash early... | [
{
"answer_id": 56174,
"author": "Rik",
"author_id": 5409,
"author_profile": "https://Stackoverflow.com/users/5409",
"pm_score": 2,
"selected": false,
"text": "assert(value>0);\nif(value<=0) throw new ArgumentOutOfRangeException(\"value\");\n//do stuff\n"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1163/"
] |
56,195 | <p>How to obtain Vista Edition programmatically, that is Home Basic, Home Premium, Business or Ultimate ?</p>
| [
{
"answer_id": 56251,
"author": "Ed Guiness",
"author_id": 4200,
"author_profile": "https://Stackoverflow.com/users/4200",
"pm_score": 1,
"selected": false,
"text": "[Environment.OSVersion][1]\n"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5383/"
] |
56,208 | <p>I've having trouble directly accessing the <strong>Win32_OperatingSystem</strong> management class that is exposed via WMI.</p>
<p>It is a singleton class, and I'm pretty certain "Win32_OperatingSystem=@" is the correct path syntax to get the instance of a singleton.</p>
<p>The call to InvokeMethod produces the ex... | [
{
"answer_id": 65735,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "ManagementObject OS = new ManagementObject(@\"Win32_OperatingSystem.Name='OSname'\")\n"
},
{
"answer_id": 90709,
"a... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82/"
] |
56,215 | <p>Not so long ago I was in an interview, that required solving two very interesting problems. I'm curious how would you approach the solutions.</p>
<p>Problem 1 :</p>
<p><strong>Product of everything except current</strong> </p>
<p>Write a function that takes as input two integer arrays of length len, input and in... | [
{
"answer_id": 56270,
"author": "Tnilsson",
"author_id": 4165,
"author_profile": "https://Stackoverflow.com/users/4165",
"pm_score": 3,
"selected": false,
"text": "int countZeroes (int[] vec) {\nint ret = 0;\nforeach(int i in vec) if (i == 0) ret++;\n\nreturn ret;\n}\n\nint[] mysticCalc(... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
56,224 | <p>I have an application that reads a table from a database. </p>
<p>I issue an SQL query to get a result set, based on a unique string value I glean from the results, I use a case/switch statement to generate certain objects (they inherit TreeNode BTW). These created objects get shunted into a Dictionary object to b... | [
{
"answer_id": 56299,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 2,
"selected": true,
"text": "TreeNode TreeNode"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5175/"
] |
56,227 | <p>I would like to start tagging my deployed binaries with the latest SVN revision number.</p>
<p>However, because SVN is file-based and not directory/project-based, I need to scan through all the directory's and subdirectory's files in order to determine the highest revision number.</p>
<p>Using <code>svn info</code... | [
{
"answer_id": 56240,
"author": "Charles Miller",
"author_id": 3052,
"author_profile": "https://Stackoverflow.com/users/3052",
"pm_score": 6,
"selected": true,
"text": "$ svn up\n...stuff...\nUpdated to revision 66593.\n $ svn info\nPath: .\nURL: https://svn.example.com/svn/myproject/tru... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
56,229 | <p>I'm currently trying ElementTree and it looks fine, it escapes HTML entities and so on and so forth. Am I missing something truly wonderful I haven't heard of?</p>
<p>This is similar to what I'm actually doing:</p>
<pre><code>import xml.etree.ElementTree as ET
root = ET.Element('html')
head = ET.SubElement(root,'h... | [
{
"answer_id": 56262,
"author": "Daren Thomas",
"author_id": 2260,
"author_profile": "https://Stackoverflow.com/users/2260",
"pm_score": 2,
"selected": false,
"text": "html(head(script(type='text/javascript', content='var a = ...')),\nbody(h1('And I like the fact that 3 < 1'), p('just so... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5190/"
] |
56,271 | <p>I am using Forms authentication in my asp.net (3.5) application. I am also using roles to define what user can access which subdirectories of the app. Thus, the pertinent sections of my web.config file look like this:</p>
<pre><code><system.web>
<authentication mode="Forms">
<forms loginUrl="De... | [
{
"answer_id": 57040,
"author": "Yaakov Ellis",
"author_id": 51,
"author_profile": "https://Stackoverflow.com/users/51",
"pm_score": 4,
"selected": true,
"text": "<system.web>\n <roleManager enabled=\"true\" />\n</system.web>\n"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51/"
] |
56,279 | <p>We're building a CMS. The site will be built and managed by the users in aspx pages, but we would like to create a static site of HTML's.
The way we're doing it now is with code I found <a href="http://forums.asp.net/p/931180/1092188.aspx#1092188" rel="nofollow noreferrer">here</a> that overloads the Render method ... | [
{
"answer_id": 56281,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 3,
"selected": true,
"text": "Render WebContext WebRequest Render curl wget"
},
{
"answer_id": 66312,
"author": "Lea Cohen",
"author_id"... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/278/"
] |
56,303 | <p>I need to specify a date value in a sybase where clause. For example:</p>
<pre><code>select *
from data
where dateVal < [THE DATE]
</code></pre>
| [
{
"answer_id": 56310,
"author": "cmsherratt",
"author_id": 3512,
"author_profile": "https://Stackoverflow.com/users/3512",
"pm_score": 5,
"selected": false,
"text": "select * from data \nwhere dateVal < convert(datetime, '01/01/2008', 103)\n"
},
{
"answer_id": 74525,
"author"... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3512/"
] |
56,324 | <p>I have a little routine that's run under Linux and Windows written in C and displays output on the console. I'm not linking in any form of curses or anything like that.</p>
<p>Currently I clear the screen using</p>
<pre><code>#ifdef __WIN32
system( "cls" );
#else
system( "clear" );
#endif
</code></pre>
<p>The... | [
{
"answer_id": 425208,
"author": "seanyboy",
"author_id": 1726,
"author_profile": "https://Stackoverflow.com/users/1726",
"pm_score": 0,
"selected": false,
"text": "printf \"\\x[0;0H\"\n"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5330/"
] |
56,334 | <p>Suppose that two tables exist: <code>users</code> and <code>groups</code>.</p>
<p><strong>How does one provide "simple search" in which a user enters text and results contain both users and groups whose names contain the text?</strong></p>
<p>The result of the search must distinguish between the two types.</p>
| [
{
"answer_id": 56336,
"author": "Bobby Jack",
"author_id": 5058,
"author_profile": "https://Stackoverflow.com/users/5058",
"pm_score": 3,
"selected": true,
"text": "UNION SELECT \"group\" type, name\n FROM groups\n WHERE name LIKE \"%$text%\"\nUNION ALL\n SELECT \"user\" type, name\n... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5058/"
] |
56,340 | <p>I have a class in system-C with some data members as such: </p>
<pre><code>long double x[8];
</code></pre>
<p>I'm initializing it in the construction like this:</p>
<pre><code>for (i = 0; i < 8; ++i) {
x[i] = 0;
}
</code></pre>
<p>But the first time I use it in my code I have garbage there.</p>
<p>Becau... | [
{
"answer_id": 56336,
"author": "Bobby Jack",
"author_id": 5058,
"author_profile": "https://Stackoverflow.com/users/5058",
"pm_score": 3,
"selected": true,
"text": "UNION SELECT \"group\" type, name\n FROM groups\n WHERE name LIKE \"%$text%\"\nUNION ALL\n SELECT \"user\" type, name\n... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1084/"
] |
56,342 | <p>We've got a scenario that requires us to parse lots of e-mail (plain text), each e-mail 'type' is the result of a script being run against various platforms. Some are tab delimited, some are space delimited, some we simply don't know yet.</p>
<p>We'll need to support more 'formats' in the future too.</p>
<p>Do we ... | [
{
"answer_id": 56398,
"author": "Josef",
"author_id": 5581,
"author_profile": "https://Stackoverflow.com/users/5581",
"pm_score": 0,
"selected": false,
"text": "IndexOf if(s.IndexOf(\"search1\")>-1 || s.IndexOf(\"search2\")>-1 ||..."
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5791/"
] |
56,347 | <p>I'm returning to c++ after being away for a bit and trying to dust off the old melon. </p>
<p>In Java Iterator is an interface to a container having methods: <code>hasNext()</code>, <code>next()</code> and <code>remove()</code>. The presence of <code>hasNext()</code> means it <strong>has the concept of a limit</str... | [
{
"answer_id": 56370,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 5,
"selected": true,
"text": "transform"
},
{
"answer_id": 161439,
"author": "Aaron",
"author_id": 14153,
"author_profile": "https:/... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445087/"
] |
56,357 | <p>I am developping a (relatively small) website in ASP.Net 2.0. I am also using nAnt to perform some easy tweaking on my project before delivering executables. In its current state, the website is "precompiled" using </p>
<blockquote>
<p><code>aspnet_compiler.exe -nologo -v ${Appname} -u ${target}</code></p>
</bloc... | [
{
"answer_id": 56365,
"author": "Gulzar Nazim",
"author_id": 4337,
"author_profile": "https://Stackoverflow.com/users/4337",
"pm_score": 1,
"selected": false,
"text": "<compilation debug=false>"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5789/"
] |
56,362 | <p>I'm starting to learn ruby. I'm also a day-to-day C++ dev.
For C++ projects I usually go with following dir structure</p>
<pre><code>/
-/bin <- built binaries
-/build <- build time temporary object (eg. .obj, cmake intermediates)
-/doc <- manuals and/or Doxygen docs
-/src
--/module-1
--/module-2
-- ... | [
{
"answer_id": 56448,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 2,
"selected": false,
"text": "- src/\n some_ruby_file.rb:\n require 'spider'\n Spider.do_something\n\n+ doc/\n\n- lib/\n - spider/\n ... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5731/"
] |
56,373 | <p>I am writing a unit test to check that a private method will close a stream.</p>
<p>The unit test calls methodB and the variable something is null</p>
<p>The unit test doesn't mock the class on test</p>
<p>The private method is within a public method that I am calling.</p>
<p>Using emma in eclipse (via the eclem... | [
{
"answer_id": 56816,
"author": "Stu Thompson",
"author_id": 2961,
"author_profile": "https://Stackoverflow.com/users/2961",
"pm_score": 0,
"selected": false,
"text": "methodB() methodA() methodB() methodC()"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
56,375 | <p>Put differently:</p>
<p>Is there a good reason to choose a loosely-typed collection over a type-safe one (HashTable vs. Dictionary)? Are they still there only for compatibility?</p>
<p>As far as I understand, generic collections not only are type-safe, but their performance is better.</p>
<hr>
<p>Here's a compre... | [
{
"answer_id": 56381,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 1,
"selected": false,
"text": "List<Object>"
},
{
"answer_id": 70542386,
"author": "user17804168",
"author_id": 17804168,
"author_prof... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1670/"
] |
56,391 | <p>Trying to honor a feature request from our customers, I'd like that my application, when Internet is available, check on our website if a new version is available.</p>
<p>The problem is that I have no idea about what have to be done on the server side.</p>
<p>I can imagine that my application (developped in C++ us... | [
{
"answer_id": 56418,
"author": "pilif",
"author_id": 5083,
"author_profile": "https://Stackoverflow.com/users/5083",
"pm_score": 6,
"selected": true,
"text": "http://www.example.com/update?version=1.2.4\n"
},
{
"answer_id": 56593,
"author": "Peter Turner",
"author_id": 1... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2796/"
] |
56,402 | <p>I am trying to make SVG XML documents with a mixture of lines and brief text snippets (two or three words typically). The major problem I'm having is getting the text aligning with line segments.</p>
<p>For horizontal alignment I can use <code>text-anchor</code> with <code>left</code>, <code>middle</code> or <code>... | [
{
"answer_id": 73257,
"author": "Ian G",
"author_id": 5764,
"author_profile": "https://Stackoverflow.com/users/5764",
"pm_score": 7,
"selected": true,
"text": "<path d=\"M10, 20 L17, 20\"\n style=\"fill:none; color:black; stroke:black; stroke-width:1.00\"/>\n<text fill=\"black\" fon... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5764/"
] |
56,411 | <p>First off, this question is ripped out from <a href="https://stackoverflow.com/questions/56215/interesting-interview-questions#56291">this</a> question. I did it because I think this part is bigger than a sub-part of a longer question. If it offends, please pardon me.</p>
<p>Assume that you have a algorithm that ge... | [
{
"answer_id": 56509,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 0,
"selected": false,
"text": " // ...\n int main() {\n typedef std::map<std::pair<size_t, Deck::value_type>, size_t> Map;\n Map freqs; \n Deck d;... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4165/"
] |
56,430 | <p>I have a foxpro app, that contains hard coded path for icons and bitmaps. That's how foxpro does it and there is no way around it. And this works fine, except that when a removable drive has been used but is not connected, and when is connected windows assigns the same letter as hard coded path, when opening any for... | [
{
"answer_id": 56487,
"author": "PabloG",
"author_id": 394,
"author_profile": "https://Stackoverflow.com/users/394",
"pm_score": 2,
"selected": false,
"text": "Specifies how an application searches for data and resources such as functions, procedures, executable files, and so on. \n\nYou... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
56,443 | <p>I currently have a class and I'm trying to create an easy GUI to create a collection of this class. Most of the attributes of this class are strings. However, one of the attributes I want the user to be able to set is an Enum. Therefore, I would like the user interface, to have a dropdownlist for this enum, to rest... | [
{
"answer_id": 56483,
"author": "Ozgur Ozcitak",
"author_id": 976,
"author_profile": "https://Stackoverflow.com/users/976",
"pm_score": 6,
"selected": true,
"text": "comboBox1.DataSource = Enum.GetValues(typeof(MyEnum));\n MyEnum value = (MyEnum)comboBox1.SelectedValue;\n DataGridViewCom... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4660/"
] |
56,446 | <p>Although perhaps a bizare thing to want to do, I need to create an Array in .Net with a lower bound > 0. This at first seems to be possible, using:</p>
<pre><code>Array.CreateInstance(typeof(Object), new int[] {2}, new int[] {9});
</code></pre>
<p>Produces the desired results (an array of objects with a lower boun... | [
{
"answer_id": 56495,
"author": "Coincoin",
"author_id": 42,
"author_profile": "https://Stackoverflow.com/users/42",
"pm_score": 2,
"selected": false,
"text": "class ConstrainedArray<T> : IEnumerable<T> where T : new()\n{\n public ConstrainedArray(int min, int max)\n {\n arr... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1111/"
] |
56,472 | <p>I'm trying to send messages to Objective-C objects in gdb.</p>
<pre><code>(gdb) p $esi
$2 = (void *) 0x1268160
(gdb) po $esi
<NSArray: 0x1359c0>
(gdb) po [$esi count]
Target does not respond to this message selector.
</code></pre>
<p>I can't send any message to it. Am I missing something? Do I really need th... | [
{
"answer_id": 57279,
"author": "John Calsbeek",
"author_id": 5696,
"author_profile": "https://Stackoverflow.com/users/5696",
"pm_score": 1,
"selected": false,
"text": "$esi p (NSUInteger)[(NSArray *)$esi count]\n"
},
{
"answer_id": 58687,
"author": "asksol",
"author_id":... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5577/"
] |
56,478 | <p>I am looking for a way to interact with a standalone full version of Windows Media Player.<br>
Mostly I need to know the Path of the currently played track.</p>
<p>The iTunes SDK makes this really easy but unfortunately there really isn't any way to do it with Windows Media Player, at least not in .Net(C#) without ... | [
{
"answer_id": 56494,
"author": "Markus Olsson",
"author_id": 2114,
"author_profile": "https://Stackoverflow.com/users/2114",
"pm_score": 3,
"selected": false,
"text": "using WMPLib;\n var Player = new WindowsMediaPlayer();\n// Load a playlist or file and then get the title \nvar title =... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5798/"
] |
56,500 | <p>I'm stuck on a fix to a legacy Visual C++ 6 app. In the C++ DLL source I have put</p>
<pre><code>extern "C" _declspec(dllexport) char* MyNewVariable = 0;
</code></pre>
<p>which results in MyNewVariable showing up (nicely undecorated) in the export table (as shown by dumpbin /exports blah.dll). However, I can't fig... | [
{
"answer_id": 56513,
"author": "Tony Lee",
"author_id": 5819,
"author_profile": "https://Stackoverflow.com/users/5819",
"pm_score": 2,
"selected": false,
"text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\ndeclspec(dllimport) char MyNewVariable;\n#ifdef __cplusplus\n}\n#endif\n"
},
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5816/"
] |
56,518 | <p>In C# are the nullable primitive types (i.e. <code>bool?</code>) just aliases for their corresponding <code>Nullable<T></code> type or is there a difference between the two?</p>
| [
{
"answer_id": 56520,
"author": "Curt Hagenlocher",
"author_id": 533,
"author_profile": "https://Stackoverflow.com/users/533",
"pm_score": 3,
"selected": false,
"text": "Nullable<T> Nullable<bool> bool? Nullable<bool>"
},
{
"answer_id": 56523,
"author": "spoulson",
"autho... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/93/"
] |
56,521 | <p>I have a "numeric textbox" in C# .NET which is nothing more than a derivation of Textbox, with some added logic to prevent the user entering anything non-numeric. As part of this, I have added a Value property of type <code>double?</code> (or <code>Nullable<double></code>). It's nullable to support the case wh... | [
{
"answer_id": 56528,
"author": "Alex Duggleby",
"author_id": 5790,
"author_profile": "https://Stackoverflow.com/users/5790",
"pm_score": -1,
"selected": false,
"text": "[DefaultValue(new Nullable<double>(1))] \npublic double? Value ...\n"
},
{
"answer_id": 56533,
"author": ... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
56,547 | <p>How do you perform a CROSS JOIN with LINQ to SQL?</p>
| [
{
"answer_id": 679174,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 5,
"selected": false,
"text": "var combo = from Person in people\n from Car in cars\n select new {Person, Car};\n"
},
{
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5556/"
] |
56,554 | <p>Let's say I want to represent <code>\q</code> (or any other particular "backslash-escaped character"). That is, I want to match <code>\q</code> but not <code>\\q</code>, since the latter is a backslash-escaped backslash followed by a <code>q</code>. Yet <code>\\\q</code> would match, since it's a backslash-escaped... | [
{
"answer_id": 56668,
"author": "Jared",
"author_id": 1980,
"author_profile": "https://Stackoverflow.com/users/1980",
"pm_score": -1,
"selected": false,
"text": "(?:[\\\\][\\\\])(?!(([\\\\](?![\\\\])[a-zA-Z])))\n"
},
{
"answer_id": 56842,
"author": "James A. Rosen",
"auth... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
56,561 | <p>What is the approved way to convert from char* to System::string and back in C++/CLI? I found a few references to marshal_to<> templated functions on Google, but it appears that this feature never made the cut for Visual Studio 2005 (and isn't in Visual Studio 2008 either, AFAIK). I have also seen some code on <a... | [
{
"answer_id": 56779,
"author": "Ben Straub",
"author_id": 1319,
"author_profile": "https://Stackoverflow.com/users/1319",
"pm_score": 6,
"selected": false,
"text": " using namespace system;\n const char* charstr = \"Hello, world!\";\n String^ clistr = gcnew String(charstr);\n Console::W... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3114/"
] |
56,568 | <p>How do you actually perform datetime operations such as adding date, finding difference, find out how many days excluding weekends in an interval? I personally started to pass some of these operations to my postgresql dbms as typically I would only need to issue one sql statement to obtain an answer, however, to do ... | [
{
"answer_id": 56606,
"author": "Jarrett Meyer",
"author_id": 5834,
"author_profile": "https://Stackoverflow.com/users/5834",
"pm_score": 1,
"selected": false,
"text": "now = time();\ntomorrow = now + 24 * 60 * 60; // 24 hours * 60 minutes * 60 seconds\n"
},
{
"answer_id": 56900,... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5742/"
] |
56,574 | <p>A while back I was reading the W3C article on '<a href="http://www.w3.org/International/articles/text-reuse/" rel="noreferrer">Re-using Strings in Scripted Content</a>', which contains some useful advice on internationalisation, but which strikes me as at odds iwth the DRY (Don't Repeat Yourself) principle of elimin... | [
{
"answer_id": 56617,
"author": "Mendelt",
"author_id": 3320,
"author_profile": "https://Stackoverflow.com/users/3320",
"pm_score": 5,
"selected": true,
"text": "The printer is on\nThe printer is off\nThe stapler is on\nThe stapler is off\n"
},
{
"answer_id": 103623,
"author"... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
56,589 | <p>Does a new <code>SessionFactor</code>y and <code>Session</code> object have to be created for each database? I have a data store for my application data, and a separate data store for my employee security, which is used to validate users. Do I have to create a new SessionFactory ans Session object for calls to the 2... | [
{
"answer_id": 45129618,
"author": "Frédéric",
"author_id": 1178314,
"author_profile": "https://Stackoverflow.com/users/1178314",
"pm_score": 0,
"selected": false,
"text": "OpenSession catalog <class> schema schema catalog linkedServerName.DbName"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1284/"
] |
56,591 | <p>Ok, this is bit of an obscure question, but hopefully someone can help me out with it.</p>
<p>The system I'm working on builds a dynamic SQL string for execution inside a stored procedure, and part of that dynamic SQL defining column aliases, which themselves are actually values retrieved from another table of user... | [
{
"answer_id": 56636,
"author": "JosephStyons",
"author_id": 672,
"author_profile": "https://Stackoverflow.com/users/672",
"pm_score": 1,
"selected": false,
"text": "select 'test\"columnname\"' from dual\n 'TESTCOLUMNNAME'\n--------------------------------\ntest\"columnname\n"
},
{
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5827/"
] |
56,615 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/361635/debugging-javascript-in-ie7">Debugging JavaScript in IE7</a> </p>
</blockquote>
<p>Firefox has Web Developer plugin and Firebug for troubleshooting html/css/javascript issues. Google Chrome and Safari ha... | [
{
"answer_id": 1433745,
"author": "Esteban Küber",
"author_id": 34813,
"author_profile": "https://Stackoverflow.com/users/34813",
"pm_score": 4,
"selected": false,
"text": "javascript:var%20firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/release... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4249/"
] |
56,628 | <p>I'm not a SQL expert, and I'm reminded of the fact every time I need to do something beyond the basics. I have a test database that is not large in size, but the transaction log definitely is. How do I clear out the transaction log?</p>
| [
{
"answer_id": 985032,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "DBCC ShrinkFile(yourLogical_LogFileName, 50)\n"
},
{
"answer_id": 2898241,
"author": "ripvlan",
"author_id": 3... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5469/"
] |
56,630 | <p>Slashdot has a little widget that allows you to tweak your comment threshold to filter out down-modded comments. It will be in one place if you scroll to the top of the page, and as you scroll down, at some point, where its original home is about to scroll off the page, it will switch to fixed position, and stay on... | [
{
"answer_id": 56759,
"author": "pkaeding",
"author_id": 4257,
"author_profile": "https://Stackoverflow.com/users/4257",
"pm_score": 3,
"selected": true,
"text": "var MenuManager = Class.create({\n initialize: function initialize(menuElt) {\n this.menu = $(menuElt);\n th... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4257/"
] |
56,638 | <p>I want to convert a number that is in <a href="https://en.wikipedia.org/wiki/Netscape_Portable_Runtime#Time" rel="nofollow noreferrer">PRTime</a> format (a 64-bit integer representing the number of microseconds since midnight (00:00:00) 1 January 1970 Coordinated Universal Time (UTC)) to a <code>DateTime</code>.</p>... | [
{
"answer_id": 56674,
"author": "Barry",
"author_id": 845,
"author_profile": "https://Stackoverflow.com/users/845",
"pm_score": 3,
"selected": true,
"text": "Dim prTimeInMillis As UInt64\nprTimeInMillis = prTime/1000\n\nDim prDateTime As New DateTime(1970, 1, 1)\nprDateTime = prDateTime.... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1842864/"
] |
56,642 | <p>I am building on C++ dll, by writing code in C#.</p>
<p>I get an error, saying </p>
<blockquote>
<p>LoaderLock was detected Message:
Attempting managed execution inside OS
Loader lock. Do not attempt to run
managed code inside a DllMain or image
initialization function since doing so
can cause the appl... | [
{
"answer_id": 31322244,
"author": "Stefan Wanitzek",
"author_id": 1995301,
"author_profile": "https://Stackoverflow.com/users/1995301",
"pm_score": 2,
"selected": false,
"text": "m_ComObject = Activator.CreateInstance(Type.GetTypeFromProgID(\"Fancy.McDancy\"));\n ThreadStart threadRef =... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/895/"
] |
56,644 | <p>I want to automate a Windows 2000+ server reboot process using Task Scheduler or similar tool to remotely reboot a server and wait for it to come back up. I can issue <code>shutdown</code> or <code>psshutdown</code> to remotely reboot, but I want something better than <code>sleep</code> to wait for it to come back.... | [
{
"answer_id": 56660,
"author": "Chris Miller",
"author_id": 206,
"author_profile": "https://Stackoverflow.com/users/206",
"pm_score": 2,
"selected": false,
"text": "psservice \\\\someothermachine query spooler\n"
},
{
"answer_id": 56666,
"author": "JosephStyons",
"author... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3347/"
] |
56,648 | <p>If you have an <code>NSMutableArray</code>, how do you shuffle the elements randomly?</p>
<p>(I have my own answer for this, which is posted below, but I'm new to Cocoa and I'm interested to know if there is a better way.)</p>
<hr>
<p>Update: As noted by @Mukesh, as of iOS 10+ and macOS 10.12+, there is an <code>... | [
{
"answer_id": 56656,
"author": "Kristopher Johnson",
"author_id": 1175,
"author_profile": "https://Stackoverflow.com/users/1175",
"pm_score": 8,
"selected": false,
"text": "(arc4random() % nElements) arc4random_uniform(nElements) // NSMutableArray_Shuffling.h\n\n#if TARGET_OS_IPHONE\n#... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
56,657 | <p>I am curious whether it is OK to copy a directory that is under version control and start working on both copies.</p>
<p>I know it can be different from one VCS to another, but I intentionally don't specify any VCS since I am curious about different cases.</p>
<p>I was talking to a coworker recently about doing it... | [
{
"answer_id": 56792,
"author": "spoulson",
"author_id": 3347,
"author_profile": "https://Stackoverflow.com/users/3347",
"pm_score": 0,
"selected": false,
"text": ".svn .svn clean up switch .svn svn"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5475/"
] |
56,658 | <h3>Summary</h3>
<p>What's the best way to ensure a table cell cannot be less than a certain minimum width. </p>
<h3>Example</h3>
<p>I want to ensure that all cells in a table are at least 100px wide regards of the width of the tables container. If there is more available space the table cells should fill that space... | [
{
"answer_id": 56663,
"author": "James B",
"author_id": 2951,
"author_profile": "https://Stackoverflow.com/users/2951",
"pm_score": 7,
"selected": true,
"text": "td { min-width: 100px; }\n"
},
{
"answer_id": 56667,
"author": "Jeffrey04",
"author_id": 5742,
"author_pro... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5182/"
] |
56,677 | <p>I have 150+ SQL queries in separate text files that I need to analyze (just the actual SQL code, not the data results) in order to identify all column names and table names used. Preferably with the number of times each column and table makes an appearance. Writing a brand new SQL parsing program is trickier than is... | [
{
"answer_id": 309912,
"author": "Neil Barnwell",
"author_id": 26414,
"author_profile": "https://Stackoverflow.com/users/26414",
"pm_score": 2,
"selected": false,
"text": "SELECT TOP 0 * FROM MY_TABLE\n"
},
{
"answer_id": 50530231,
"author": "Dexygen",
"author_id": 34806,... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5854/"
] |
56,680 | <p>I have been writing Flex applications for a few months now and luckily have not needed a full debugger as of yet, so far I have just used a few Alert boxes...</p>
<p>Is there an available debugger that is included in the free Flex SDK? I am not using FlexBuilder (I have been using Emacs and compiling with ant).</p>... | [
{
"answer_id": 56929,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 4,
"selected": true,
"text": "fdb"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
56,684 | <p>I want Windows Update to automatically download and install updates on my Vista machine, however I don't want to be bothered by the system tray reboot prompts (which can, at best, only be postponed by 4 hours).</p>
<p>I have performed the registry hack described <a href="http://www.howtogeek.com/howto/windows-vista... | [
{
"answer_id": 56691,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": " sc stop wuauserv \n"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3012/"
] |
56,687 | <p>In our application, we are using RMI for client-server communication in very different ways:</p>
<ol>
<li>Pushing data from the server to the client to be displayed.</li>
<li>Sending control information from the client to the server.</li>
<li>Callbacks from those control messages code paths that reach back from the... | [
{
"answer_id": 303081,
"author": "Bob Cross",
"author_id": 5812,
"author_profile": "https://Stackoverflow.com/users/5812",
"pm_score": 1,
"selected": false,
"text": "UnicastRemoteObject public class RemoteObjectWrapped extends UnicastRemoteObject {\n// ....\nprivate RemoteObjectWrapped(f... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5812/"
] |
56,692 | <p>Consider the class below that represents a Broker:</p>
<pre><code>public class Broker
{
public string Name = string.Empty;
public int Weight = 0;
public Broker(string n, int w)
{
this.Name = n;
this.Weight = w;
}
}
</code></pre>
<p>I'd like to randomly select a Broker from an a... | [
{
"answer_id": 56735,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 6,
"selected": true,
"text": "< <= if (randomNumber < broker.Weight)\n totalWeight"
},
{
"answer_id": 57508,
"author": "1800 INFORMATION"... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2868/"
] |
56,708 | <p>What would be the best way to write Objective-C on the Windows platform?</p>
<p>Cygwin and gcc? Is there a way I can somehow integrate this into Visual Studio?</p>
<p>Along those lines - are there any suggestions as to how to link in and use the Windows SDK for something like this. Its a different beast but I know... | [
{
"answer_id": 9849288,
"author": "teshguru",
"author_id": 1246951,
"author_profile": "https://Stackoverflow.com/users/1246951",
"pm_score": 6,
"selected": false,
"text": "GNUstep MSYS Subsystem GNUstep Core GNUstep Devel C:\\GNUstep\\GNUstep\\System\\Library\\Headers\\Foundation Foundat... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4910/"
] |
56,722 | <p>Just got a request from my boss for an application I'm working on. Basically we're getting an email address setup for an external client to submit excel files to. </p>
<p>What I need is a way to automatically pick up any email sent to this address, so I can take the attachment, process it and save it to a folder.</... | [
{
"answer_id": 76684,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "Dim doc As NotesDocument\nDim rtitem As Variant\n'...set value of doc...\nSet rtitem = doc.GetFirstItem( \"Body\" )\nIf ( rtite... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1419/"
] |
56,723 | <p>When using an aggregate control in some reports you would prefer to see a blank field instead of 0. There does not appear to be a way to do this automatically. Does anyone have a way that this can be done. Note, you want to maintain the '0' value for the field in cases when you export, but you want to show a blan... | [
{
"answer_id": 56976,
"author": "Scott Rosenbaum",
"author_id": 5412,
"author_profile": "https://Stackoverflow.com/users/5412",
"pm_score": 3,
"selected": false,
"text": "function hideText (dataControl){\n if (dataControl.getValue() == 0) {\n var color = dataControl.getStyle().... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5412/"
] |
56,729 | <p>Can somebody give me a complete and working example of calling the <code>AllocateAndInitializeSid</code> function from C# code?</p>
<p>I found <a href="http://msdn.microsoft.com/en-us/library/aa375213(VS.85).aspx" rel="nofollow noreferrer">this</a>: </p>
<pre><code>BOOL WINAPI AllocateAndInitializeSid(
__in P... | [
{
"answer_id": 58180,
"author": "jfs",
"author_id": 718,
"author_profile": "https://Stackoverflow.com/users/718",
"pm_score": 3,
"selected": true,
"text": " [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]\n public struct ... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/95/"
] |
56,737 | <p>Is the standard Java 1.6 <a href="http://java.sun.com/javase/6/docs/api/javax/xml/parsers/DocumentBuilder.html" rel="noreferrer">javax.xml.parsers.DocumentBuilder</a> class thread safe? Is it safe to call the parse() method from several threads in parallel?</p>
<p>The JavaDoc doesn't mention the issue, but the <a h... | [
{
"answer_id": 56815,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 6,
"selected": true,
"text": "private static final ThreadLocal<DocumentBuilder> builderLocal =\n new ThreadLocal<DocumentBuilder>() {\n ... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1605/"
] |
56,741 | <p>Is there a way to access file system info via some type of Windows API? If not what other methods are available to a user mode developer?</p>
| [
{
"answer_id": 56882,
"author": "ima",
"author_id": 5733,
"author_profile": "https://Stackoverflow.com/users/5733",
"pm_score": 3,
"selected": true,
"text": "DeviceIoControl() DeviceIoControl()"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
56,761 | <p>Is there a keyboard shortcut in Access 2003 that will run a query while in design or sql mode?</p>
| [
{
"answer_id": 56921,
"author": "Buggabill",
"author_id": 2106,
"author_profile": "https://Stackoverflow.com/users/2106",
"pm_score": 1,
"selected": false,
"text": "Public Function RunMyQuery() As Boolean\n SendKeys \"%Q\" & \"R\"\n RunMyQuery = True\nEnd Function\n"
},
{
"an... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2106/"
] |
56,767 | <p>Is there a difference (performance, overhead) between these two ways of merging data sets?</p>
<pre><code>MyTypedDataSet aDataSet = new MyTypedDataSet();
aDataSet .Merge(anotherDataSet);
aDataSet .Merge(yetAnotherDataSet);
</code></pre>
<p>and</p>
<pre><code>MyTypedDataSet aDataSet = anotherDataSet;
aDataSet .Merge(... | [
{
"answer_id": 56772,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 3,
"selected": false,
"text": "MyTypedDataSet ds1 = new MyTypedDataSet();\nds1.Merge(anotherDataSet);\n//ds1 is a copy of anotherDataSet\nds1.Tables.Add(\"test\... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1360/"
] |
56,769 | <p>I am currently designing an application that has one module which will load large amounts of data from a database and reduce it to a much smaller set by various calculations depending on the circumstances.</p>
<p>Many of the more intensive operations behave deterministically and would lend themselves to parallel pr... | [
{
"answer_id": 66302,
"author": "Torsten Marek",
"author_id": 9567,
"author_profile": "https://Stackoverflow.com/users/9567",
"pm_score": 2,
"selected": false,
"text": "import processing\n\ndef worker(i):\n return i*i\nnum_workers = 2\npool = processing.Pool(num_workers)\nresult = poo... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2077/"
] |
56,770 | <p>I'm creating an ASP.NET web site where all pages hang off a database-driven tree-hierarchy. Pages typically present HTML content. But, some will execute programming.</p>
<p><em>Examples:</em> <br></p>
<ol>
<li>a "contact us" form </li>
<li>a report generator</li>
</ol>
<p>How should I represent/reference the pr... | [
{
"answer_id": 57207,
"author": "John Calsbeek",
"author_id": 5696,
"author_profile": "https://Stackoverflow.com/users/5696",
"pm_score": 2,
"selected": false,
"text": "<my:contact-us-form/> .ascx"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83/"
] |
56,786 | <p>We have a 42U rack which is getting a load of new 1U and 2U servers real soon. One of the guys here reckons that you need to leave a gap between the servers (of 1U) to aid cooling.</p>
<p>Question is, do you? When looking around the datacenter, no-one else seems to be, and it also diminishes how much we can fit i... | [
{
"answer_id": 57113,
"author": "John Vasileff",
"author_id": 5076,
"author_profile": "https://Stackoverflow.com/users/5076",
"pm_score": 2,
"selected": false,
"text": "TOP OF RACK\n===============\n===============\n===============\n===============\n===============\n======== (Shallow equ... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4787/"
] |
56,810 | <p>I have used fork() in C to start another process. How do I start a new thread?</p>
| [
{
"answer_id": 56825,
"author": "Commodore Jaeger",
"author_id": 4659,
"author_profile": "https://Stackoverflow.com/users/4659",
"pm_score": 7,
"selected": true,
"text": "int pthread_create(pthread_t * thread, pthread_attr_t * attr, void *\n (*start_routine)(void *), void * arg);\n"... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2077/"
] |
56,812 | <p>I'm trying to consume a SharePoint webservice from ColdFusion via cfinvoke ('cause I don't want to deal with (read: parse) the SOAP response itself).</p>
<p>The SOAP response includes a byte-order-mark character (BOM), which produces the following exception in CF:</p>
<pre><code>"Cannot perform web service invocat... | [
{
"answer_id": 73634,
"author": "Dan Cramer",
"author_id": 3274,
"author_profile": "https://Stackoverflow.com/users/3274",
"pm_score": 2,
"selected": false,
"text": "<!--- Remove BOM from the start of the string, if it exists --->\n<cfif Left(responseText, 1) EQ chr(65279)>\n<cfset respo... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5849/"
] |
56,820 | <p>The documentation for the <a href="http://docs.python.org/lib/built-in-funcs.html" rel="noreferrer">round()</a> function states that you pass it a number, and the positions past the decimal to round. Thus it <em>should</em> do this:</p>
<pre><code>n = 5.59
round(n, 1) # 5.6
</code></pre>
<p>But, in actuality, good... | [
{
"answer_id": 56832,
"author": "ima",
"author_id": 5733,
"author_profile": "https://Stackoverflow.com/users/5733",
"pm_score": -1,
"selected": false,
"text": "round(n,1)+epsilon\n"
},
{
"answer_id": 56833,
"author": "Jimmy",
"author_id": 4435,
"author_profile": "http... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/736/"
] |
56,837 | <p>My problem is that my XML document contains snippets of XHTML within it and while passing it through an XSLT I would like it to render those snippets without mangling them.</p>
<p>I've tried wrapping the snippet in a CDATA but it doesn't work since less than and greater than are translated to < and > as oppos... | [
{
"answer_id": 58471,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": true,
"text": "<xsl:template match=\"@*|node()\">\n <xsl:copy>\n <xsl:apply-templates select=\"@*|node()\"/>\n </xsl:copy>\n</xsl:tem... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
56,843 | <p>I'm looking for a builder for <a href="http://www.hibernate.org/hib_docs/reference/en/html/queryhql.html" rel="noreferrer">HQL</a> in Java. I want to get rid of things like:</p>
<pre><code>StringBuilder builder = new StringBuilder()
.append("select stock from ")
.append( Stock.class.getName() )
.append(... | [
{
"answer_id": 56883,
"author": "Alex Argo",
"author_id": 5885,
"author_profile": "https://Stackoverflow.com/users/5885",
"pm_score": 2,
"selected": false,
"text": "List<Stock> stocks = session.createCriteria(Stock.class)\n .add(Property.forName(\"id\").eq(id))\n .list();\n Detache... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2797/"
] |
56,856 | <p>My application has a need to let the user choose a date from a list of dates conforming to a certain pattern. For instance, they may need to choose a monday from a list Monday's for a month. Is there a way to get a <code>UIDatePicker</code> to limit date choices to a certain subset or should I just use a <code>UIPic... | [
{
"answer_id": 59152,
"author": "millenomi",
"author_id": 6061,
"author_profile": "https://Stackoverflow.com/users/6061",
"pm_score": 4,
"selected": true,
"text": "UIDatePicker UIPickerView"
},
{
"answer_id": 16299518,
"author": "Desdenova",
"author_id": 771231,
"auth... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1967/"
] |
56,860 | <p>I have heard that the Liskov Substitution Principle (LSP) is a fundamental principle of object oriented design. What is it and what are some examples of its use?</p>
| [
{
"answer_id": 56904,
"author": "NotMyself",
"author_id": 303,
"author_profile": "https://Stackoverflow.com/users/303",
"pm_score": 9,
"selected": false,
"text": "Tiles ThreeDBoard Board Board Height Width ThreeDBoard Board AddUnit GetTile GetUnits Board ThreeDBoard Board Board ThreeDBoa... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/303/"
] |
56,865 | <p>A simple question, but could someone provide sample code as to how would someone call a web service from within the JBoss Seam framework, and process the results?</p>
<p>I need to be able to integrate with a search platform being provided by a private vendor who is exposing his functionality as a web service. So, I... | [
{
"answer_id": 57090,
"author": "Hank Gay",
"author_id": 4203,
"author_profile": "https://Stackoverflow.com/users/4203",
"pm_score": 0,
"selected": false,
"text": "import org.restlet.Client;\nimport org.restlet.data.Protocol;\nimport org.restlet.data.Reference;\nimport org.restlet.data.R... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
56,867 | <p>When should I use an interface and when should I use a base class? </p>
<p>Should it always be an interface if I don't want to actually define a base implementation of the methods?</p>
<p>If I have a Dog and Cat class. Why would I want to implement IPet instead of PetBase? I can understand having interfaces for IS... | [
{
"answer_id": 56887,
"author": "spoulson",
"author_id": 3347,
"author_profile": "https://Stackoverflow.com/users/3347",
"pm_score": 2,
"selected": false,
"text": "override new UserControl PetBase PetBase"
},
{
"answer_id": 56912,
"author": "Jon Limjap",
"author_id": 372,... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2871/"
] |
56,895 | <p>How would you go about proving that two queries are functionally equivalent, eg they will always both return the same result set.</p>
<hr>
<p>As I had a specific query in mind when I was doing this, I ended up doing as @dougman suggested, over about 10% of rows the tables concerned and comparing the results, ensur... | [
{
"answer_id": 57313,
"author": "Matt Rogish",
"author_id": 2590,
"author_profile": "https://Stackoverflow.com/users/2590",
"pm_score": 1,
"selected": false,
"text": "SELECT /*+RULE*/ FROM yourtable\n"
},
{
"answer_id": 93489,
"author": "Doug Porter",
"author_id": 4311,
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3839/"
] |
56,905 | <p>Ran into an “Out of Stack Space” error trying to serialize an ASP.Net AJAX Array object. </p>
<p>Here is the scenario with simplified code:</p>
<ol>
<li><p><code>Default.aspx</code></p></li>
<li><p><code>MainScript.js</code></p>
<pre><code>function getObject(){
return new Array();
}
function function1(obj){
... | [
{
"answer_id": 194249,
"author": "Kevin Hakanson",
"author_id": 22514,
"author_profile": "https://Stackoverflow.com/users/22514",
"pm_score": 1,
"selected": false,
"text": " var obj = [];\n obj.push(1);\n"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3635/"
] |
56,913 | <p>I have a whole bunch of files with filenames using our lovely Swedish letters <strong>å å</strong> and <strong>ö</strong>.
For various reasons I now need to convert these to an [a-zA-Z] range. Just removing anything outside this range is fairly easy. The thing that's causing me trouble is that I'd like to replace <s... | [
{
"answer_id": 57049,
"author": "Jay Bazuzi",
"author_id": 5314,
"author_profile": "https://Stackoverflow.com/users/5314",
"pm_score": 1,
"selected": false,
"text": "$mapping = @{ \n \"å\" = \"a\"\n \"ä\" = \"a\"\n \"ö\" = \"o\"\n}\n\nGet-ChildItem -Recurse . *.txt | Foreach-Obj... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/914/"
] |
56,923 | <p>Just what the title says, I need to change the password for an existing sql server login and I want to do it via sql script.</p>
| [
{
"answer_id": 6172468,
"author": "bkaid",
"author_id": 265570,
"author_profile": "https://Stackoverflow.com/users/265570",
"pm_score": 3,
"selected": false,
"text": "alter login mylogin with password = 'mylogin'\n"
},
{
"answer_id": 10925471,
"author": "Nagendra Mishr",
... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1642688/"
] |
56,943 | <p>I'm looking for a simple solution for a yes/no dialog to use in a Java ME midlet. I'd like to use it like this but other ways are okey.</p>
<pre><code>if (YesNoDialog.ask("Are you sure?") == true) {
// yes was chosen
} else {
// no was chosen
}
</code></pre>
| [
{
"answer_id": 56970,
"author": "Telcontar",
"author_id": 518,
"author_profile": "https://Stackoverflow.com/users/518",
"pm_score": -1,
"selected": false,
"text": "int JOptionPane.showConfirmDialog(java.awt.Component parentComponent, java.lang.Object >message, java.lang.String title, int... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5896/"
] |
56,946 | <p>Say I have:</p>
<pre><code><ul>
<li id="x">
<a href="x">x</a>
</li>
<li id="y">
<a href="y">y</a>
<ul>
<li id="z">
<a href="z">z</a>
</li>
</ul>
... | [
{
"answer_id": 58329,
"author": "jelovirt",
"author_id": 2679,
"author_profile": "https://Stackoverflow.com/users/2679",
"pm_score": 1,
"selected": false,
"text": "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">\n\n <xsl:variable name=\"ancestors\" se... | 2008/09/11 | [
"https://Stackoverflow.com/questions/56946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
56,947 | <p>In follow up to <a href="https://stackoverflow.com/questions/56820/round-in-python-doesnt-seem-to-be-rounding-properly">this question</a>, it appears that some numbers cannot be represented by floating point at all, and instead are approximated.</p>
<p>How are floating point numbers stored?</p>
<p>Is there a commo... | [
{
"answer_id": 56962,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 3,
"selected": false,
"text": "BigDecimal"
}
] | 2008/09/11 | [
"https://Stackoverflow.com/questions/56947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2915/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.