qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
221,267 | <p>What is the simplest way of copying symbolic links on the Mac?</p>
<p>A python or perl solution would be preferred, but any solution would be a help.</p>
<p>I am copying frameworks for an installation package, and need the links to be maintained</p>
| [
{
"answer_id": 221305,
"author": "Florian Bösch",
"author_id": 19435,
"author_profile": "https://Stackoverflow.com/users/19435",
"pm_score": 2,
"selected": false,
"text": "import os, stat\nif stat.S_ISLNK(os.lstat('foo').st_mode):\n src = os.readlink('source')\n os.symlink(src, 'de... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/259/"
] |
221,273 | <p>I've been given a prototype/mockup of a grid written in html and javascript (via ExtJS) that I now need to implement within an ASP.net web application. Does anyone have any pointers as to how to pass data to the grid (to a GroupingStore, specifically). </p>
<p>I'd rather not have a proliferation of web services or ... | [
{
"answer_id": 221360,
"author": "tobinharris",
"author_id": 1136215,
"author_profile": "https://Stackoverflow.com/users/1136215",
"pm_score": 2,
"selected": true,
"text": "http://mysite.com/query.aspx?sql=select * from orders where status = 'open'\n void Page_Load(object sender, EventAr... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7872/"
] |
221,277 | <p>I'm trying to do XHTML DOM parsing with JTidy, and it seems to be rather counterintuitive task. In particular, there's a method to parse HTML:</p>
<pre><code>Node Tidy.parse(Reader, Writer)
</code></pre>
<p>And to get the <body /> of that Node, I assume, I should use</p>
<pre><code>Node Node.findBody(TagTab... | [
{
"answer_id": 221327,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 2,
"selected": false,
"text": "parseDOM org.w3c.dom.Document Document document = Tidy.parseDOM(reader, writer);\nNode body = document.getElementsByT... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1764/"
] |
221,283 | <p>I like to keep my shell sessions named with useful titles as I work, this helps me keep track of what I'm using each of the many tabs for.</p>
<p>Currently to rename a session I double click its name on the tabbed part of the console - is there any command that I can use to do this from within the shell? It would s... | [
{
"answer_id": 221293,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 2,
"selected": false,
"text": "echo -n \"\\033]0;New Window Title\\007\"\n"
},
{
"answer_id": 222216,
"author": "ephemient",
"author_id": ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22061/"
] |
221,287 | <p>I've noticed that when you create a web service object (inheriting from SoapHttpClientProtocol) and you use the Async method, it makes the callback on the Windows GUI thread.</p>
<ol>
<li>Does anyone know how this works?</li>
<li>How can I achieve the same thing.</li>
</ol>
<p>I figure this will save me having to ... | [
{
"answer_id": 221506,
"author": "Richard Nienaber",
"author_id": 9539,
"author_profile": "https://Stackoverflow.com/users/9539",
"pm_score": 2,
"selected": false,
"text": " public partial class AsyncTest : Form\n {\n static void Main()\n {\n Application.Ru... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9539/"
] |
221,292 | <p>I have a problem with Crystal Reports 8. When exporting a report from my application, Crystal Reports <strong>sometimes</strong> freezes. The progress windows just stays, saying X of X records exported.</p>
<ol>
<li>Smaller reports with less data are more likley to freeze.</li>
<li>Faster workstations (P4, Core2) t... | [
{
"answer_id": 1321068,
"author": "Daniel Rikowski",
"author_id": 23368,
"author_profile": "https://Stackoverflow.com/users/23368",
"pm_score": 3,
"selected": true,
"text": "WaitForSingleObject(?, INFINITE) WaitForSingleObject"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23368/"
] |
221,294 | <p>I want a single number that represents the current date and time, like a <a href="https://en.wikipedia.org/wiki/Unix_time" rel="noreferrer">Unix timestamp</a>.</p>
| [
{
"answer_id": 221297,
"author": "daveb",
"author_id": 11858,
"author_profile": "https://Stackoverflow.com/users/11858",
"pm_score": 13,
"selected": true,
"text": "Date.now Date.now()\n + Date.prototype.valueOf + new Date()\n valueOf new Date().valueOf()\n Date.now if (!Date.now) {\n ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6068/"
] |
221,307 | <p>I've been scanning through all the popular js libraries, but I can't find one that has a width function for a DOM element that actually accounts for quirks mode in Internet Explorer. The issue is that padding and borders don't get counted in the the width when quirks mode is engaged. As far as I can tell this happen... | [
{
"answer_id": 221405,
"author": "Aleris",
"author_id": 20417,
"author_profile": "https://Stackoverflow.com/users/20417",
"pm_score": 1,
"selected": false,
"text": "<div id=\"mydiv\" style=\"width: 100px; border-left: 100px black solid;\"> </div>\n $(document).ready(function() {\n ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29899/"
] |
221,311 | <p>I have a sea of weighted nodes with edges linking clusters of nodes together. This graph follows the typical small world layout.</p>
<p>I wish to find a path finding algorithm, which isn't costly on processor power, to find a path along the best possible path where the nodes are the most favorably weighted, the fas... | [
{
"answer_id": 221454,
"author": "Skizz",
"author_id": 1898,
"author_profile": "https://Stackoverflow.com/users/1898",
"pm_score": 3,
"selected": false,
"text": "A---1---B---1---C\n| |\n\\-------1-------/\n A---r---B---r---C\n| |\n\\-------r-------/\n r(NM) = ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
221,317 | <p>I've created a custom search page with some defined options in my search scope.</p>
<p>I have a metadata mapped <code>jobtitle</code>, and added the search option to my custom search.</p>
<pre><code><Property name="JobTitle"
ManagedName="title"
ProfileURI="urn:schemas-microsoft-com:sharepo... | [
{
"answer_id": 227583,
"author": "RedDeckWins",
"author_id": 1646,
"author_profile": "https://Stackoverflow.com/users/1646",
"pm_score": 1,
"selected": false,
"text": "xsl/xml"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28139/"
] |
221,320 | <p>For a file containing the given class, SomeCoolClass, what would be the proper or standard filename?</p>
<pre>
1. somecoolclass.rb
2. some_cool_class.rb
3. some-cool-class.rb
4. SomeCoolClass.rb
</pre>
<p>or some other variation?</p>
<p>I noticed in the Ruby stdlib, versions 1, 2 and 3 are used.</p>
| [
{
"answer_id": 221391,
"author": "Daniel Beardsley",
"author_id": 13216,
"author_profile": "https://Stackoverflow.com/users/13216",
"pm_score": 7,
"selected": true,
"text": "lowercase_and_underscore.rb lowercasenounderscore.rb"
},
{
"answer_id": 222178,
"author": "Pistos",
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,345 | <p>I am currently writing a system that stores meta data for around 140,000 ish images stored within a legacy image library that are being moved to cloud storage. I am using the following to get the jpg data...</p>
<pre><code>System.Drawing.Image image = System.Drawing.Image.FromFile("filePath");
</code></pre>
<p>Im ... | [
{
"answer_id": 221348,
"author": "Ilya Ryzhenkov",
"author_id": 18575,
"author_profile": "https://Stackoverflow.com/users/18575",
"pm_score": 7,
"selected": true,
"text": " var fileLength = new FileInfo(filePath).Length; \n long jpegByteSize;\nusing (var ms = new MemoryStream(estimatedLe... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12918/"
] |
221,346 | <p>What is the arrow operator (<code>-></code>) a synonym for?</p>
| [
{
"answer_id": 221351,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 8,
"selected": true,
"text": "a->b\n\n(*a).b\n"
},
{
"answer_id": 221354,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_pro... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4975/"
] |
221,365 | <p>If I have a folder structure set up like this:</p>
<pre><code>~/Projects
emacs
package1
package1-helpers
package2
package2-helpers
package2-more-helpers
package3
package3-helpers
</code></pre>
<p>How do I add these folders:</p>
<ul>
<li>~... | [
{
"answer_id": 221449,
"author": "Jouni K. Seppänen",
"author_id": 26575,
"author_profile": "https://Stackoverflow.com/users/26575",
"pm_score": 5,
"selected": true,
"text": "(let ((base \"~/Projects/emacs\"))\n (add-to-list 'load-path base)\n (dolist (f (directory-files base))\n (l... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/712/"
] |
221,370 | <p>Is there an easy way with LINQ to flatten an XML file?</p>
<p>I can see a number of ways with XSLT but wondered what the best option with LINQ would be?</p>
<p>I cant put the xml structure up exactly as stackoverflow seems to filter chevron chars. But its something like this </p>
<p>nodeA </p>
<p>--nodeA1 </p>
... | [
{
"answer_id": 221377,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": true,
"text": "string xml = @\"<xml><nodeA><nodeA1/><nodeA2/></nodeA><NodeB/></xml>\";\n\nXmlDocument doc = new XmlDocument();\ndoc.L... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23066/"
] |
221,373 | <p>Sometimes, when we're doing small changes to our web apps, e.g. bug fixes, we don't build a whole new WAR-file each time, but merely replace just the affected class files in the exploded web app directory under <code>WEB-INF/classes</code> and restart the app.</p>
<p>Is that okay?</p>
| [
{
"answer_id": 221811,
"author": "miceuz",
"author_id": 24443,
"author_profile": "https://Stackoverflow.com/users/24443",
"pm_score": 2,
"selected": false,
"text": "svn update\nmvn clean compile war:exploded tomcat:inplace -P deployment\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18722/"
] |
221,376 | <p>I need to include a copyright statement at the top of every Python source file I produce:</p>
<pre><code># Copyright: © 2008 etc.
</code></pre>
<p>However, when I then run such a file I get this message:</p>
<p>SyntaxError: Non-ASCII character '\xa9' in file MyFile.py on line 3, but no encoding declared; see <a... | [
{
"answer_id": 221380,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 6,
"selected": true,
"text": "(c) Copyright"
},
{
"answer_id": 19210542,
"author": "sergio",
"author_id": 2852044,
"author_profile": "... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11677/"
] |
221,378 | <p>I appreciate that there are now many mechanisms in dotnet to deal with XML in a myriad of ways... </p>
<p>Suppose I have a string containing the XML....</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<root>
<Element1>
<Element1_1>
SomeData
</Elemen... | [
{
"answer_id": 221383,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "XElement element = doc.XPathSelectElement(\"/root/Element1/Element1_1\");\nelement.Remove();\n XElement element = doc.Des... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
221,379 | <p>Is it okay to run Hibernate applications configured with <code>hbm2ddl.auto=update</code> to update the database schema in a production environment?</p>
| [
{
"answer_id": 336101,
"author": "cliff.meyers",
"author_id": 41754,
"author_profile": "https://Stackoverflow.com/users/41754",
"pm_score": 5,
"selected": false,
"text": "String with @Column(length=50) ==> varchar(50)\nchanged to\nString with @Column(length=100) ==> still varchar(50), n... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18722/"
] |
221,385 | <p>Has anyone gotten the jquery plugin <a href="http://www.appelsiini.net/projects/jeditable" rel="nofollow noreferrer">jeditable</a> to run properly in a Rails applications. If so, could you share some hints on how to set it up? I'm having some trouble with creating the "submit-url".</p>
<hr>
<p>IIRC, you cannot sim... | [
{
"answer_id": 259187,
"author": "jonnii",
"author_id": 4590,
"author_profile": "https://Stackoverflow.com/users/4590",
"pm_score": 0,
"selected": false,
"text": "<%= url_for(@post) %>\n"
},
{
"answer_id": 259755,
"author": "Sebastian",
"author_id": 29909,
"author_pro... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29909/"
] |
221,386 | <p>I would like to trim long sequences of the same value from a binary file in python. A simple way of doing it is simply reading in the file and using re.sub to replace the unwanted sequence. This will of course not work on large binary files. Can it be done in something like numpy?</p>
| [
{
"answer_id": 221696,
"author": "Alex Coventry",
"author_id": 1941213,
"author_profile": "https://Stackoverflow.com/users/1941213",
"pm_score": 0,
"selected": false,
"text": "subprocess fgrep -o -b <search string> file seek read write"
},
{
"answer_id": 221851,
"author": "db... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29908/"
] |
221,387 | <p>I need a way to check for Wi-Fi routers/access points on my DS homebrew. I'm using PAlib.</p>
| [
{
"answer_id": 825415,
"author": "PypeBros",
"author_id": 15304,
"author_profile": "https://Stackoverflow.com/users/15304",
"pm_score": 2,
"selected": false,
"text": "Wifi_ScanMode() Wifi_GetNumAP() Wifi_GetAPData(i,&data); nbitems=Wifi_GetNumAP();\nWifi_AccessPoint ap;\n\nfor (int i=0;i... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1599/"
] |
221,396 | <p>Is it possible to call a function from PHP using <code>onsubmit</code> from JavaScript? If so could someone give me an example of how it would be done?</p>
<pre><code>function addOrder(){
$con = mysql_connect("localhost", "146687", "password");
if(!$con){
die('Could not connect: ' . mysql_error())
... | [
{
"answer_id": 221658,
"author": "e-satis",
"author_id": 9951,
"author_profile": "https://Stackoverflow.com/users/9951",
"pm_score": 5,
"selected": true,
"text": "$.ajax({\n type: \"POST\", // the request type. You most likely going to use POST\n url: \"your_php_script.php\", // the ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29912/"
] |
221,399 | <p>I am using <strong>mysql (5.0.32-Debian_7etch6-log)</strong> and i've got a nightly running bulk load <strong>php (5.2.6)</strong> script <strong>(using Zend_DB (1.5.1)</strong> via PDO) which does the following:</p>
<ol>
<li>truncating a set of 4 'import' tables</li>
<li>bulk inserting data into these 4 'import' t... | [
{
"answer_id": 222904,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "DELETE FROM TRUNCATE RENAME TABLE ALTER TABLE xxx RENAME TO zzz"
},
{
"answer_id": 224223,
"author": "Community",
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,410 | <p>I need to be able to logoff any user from his windows session from a program. </p>
<p>I know I could log in as an admin and force a remote logoff. Is there any other way to force a logoff without logging in? </p>
<p>The tool will run as admin so that's not a problem, being able to remote logoff without logging in ... | [
{
"answer_id": 222192,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 1,
"selected": false,
"text": "' Logoff.vbs, Version 1.00\n' Logoff current user on any WMI enabled computer on the network\n'\n' Adapted from post... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5190/"
] |
221,411 | <p>I'm creating window using pure Win32 API (RegisterClass and CreateWindow functions). How can I specify a font for the window instead of system defined one?</p>
| [
{
"answer_id": 221419,
"author": "vividos",
"author_id": 23740,
"author_profile": "https://Stackoverflow.com/users/23740",
"pm_score": 3,
"selected": false,
"text": "CreateFont CreateFontIndirect WM_SETFONT SetFont DeleteObject CreateFont CreateFontIndirect WM_SETFONT WM_GETFONT"
},
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,432 | <p>I'm opening a new browser window from my site for some of the members. However, some may later close it, or it might have initially failed to open.</p>
<p>Is there a snippet of fairly plain Javascript that can be run on each page to confirm if another browser window is open, and if not, to provide a link to re-open... | [
{
"answer_id": 221439,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 1,
"selected": false,
"text": "var myWin = window.open(...);\n\nif (myWin.closed)\n{\n myWin = window.open(...);\n}\n"
},
{
"answer_id": 221461,
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6216/"
] |
221,434 | <p>I'm trying to serve dynamically generated xml pages from a web server, and provide a custom, static, xslt from the same web server, that will offload the processing into the client web browser.</p>
<p>Until recently, I had this working fine in Firefox 2, 3, IE5, 6 and Chrome. Recently, though, something has changed... | [
{
"answer_id": 3925500,
"author": "Prof. Falken",
"author_id": 193892,
"author_profile": "https://Stackoverflow.com/users/193892",
"pm_score": 2,
"selected": false,
"text": "_ my_super_nice_xslt_which_loads_in_opera_and_ie.xsl my-super-nice-xslt-which-loads-in-opera-and-ie.xsl"
},
{
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7938/"
] |
221,442 | <p>With JSR 311 and its implementations we have a powerful standard for exposing Java objects via REST. However on the client side there seems to be something missing that is comparable to Apache Axis for SOAP - something that hides the web service and marshals the data transparently back to Java objects.</p>
<p>How d... | [
{
"answer_id": 221763,
"author": "James Strachan",
"author_id": 2068211,
"author_profile": "https://Stackoverflow.com/users/2068211",
"pm_score": 6,
"selected": false,
"text": " clientConfig = new DefaultClientConfig();\n client = Client.create(clientConfig);\n\n resource = clie... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7524/"
] |
221,444 | <p>How can I put up a "File Open" dialog from some VBA running in Excel? </p>
<p>I'm using Excel 2003. </p>
| [
{
"answer_id": 221456,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 2,
"selected": false,
"text": "Sub PromptForFile()\nDim d As New MSComDlg.CommonDialog\n\nd.Filter = \"xls\"\nd.Filename = \"*.xls\"\nd.ShowOpen\n\nExcel... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7211/"
] |
221,452 | <pre><code>Control.TabIndex
</code></pre>
<p>Only allows me to overide the Tab order of controls in a given container. </p>
<p>Is there a way to specify this across all the controls in, for example a UserControl, regardless of the contains used to arrange the controls.</p>
<p>Cheers,</p>
<p>Jan</p>
| [
{
"answer_id": 234133,
"author": "James Osborn",
"author_id": 6686,
"author_profile": "https://Stackoverflow.com/users/6686",
"pm_score": 1,
"selected": false,
"text": "KeyboardNavigation.TabNavigation TabIndex TabNavigation"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/460845/"
] |
221,455 | <p>My stomach churns when I see this kind of output.</p>
<p><a href="http://www.freeimagehosting.net/uploads/e1097a5a10.jpg" rel="nofollow noreferrer">http://www.freeimagehosting.net/uploads/e1097a5a10.jpg</a></p>
<p>and this was my command
as suggested by <a href="https://stackoverflow.com/questions/75500/best-way-t... | [
{
"answer_id": 221588,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 1,
"selected": false,
"text": "nconvert -page 1 -out tiff -dpi 200 -c 2 -o c.tif FMD.pdf\n"
},
{
"answer_id": 224517,
"author": "Setori",
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
221,467 | <p>I'm trying to complete a practice question from a book on generics but the question doesn't make sense to me. Here it goes.</p>
<p>Create two classes with identical functionality. Use generics for the first class, and cast the second class to Object types. Create a for loop that uses class and the Object based clas... | [
{
"answer_id": 221470,
"author": "endian",
"author_id": 25462,
"author_profile": "https://Stackoverflow.com/users/25462",
"pm_score": 4,
"selected": true,
"text": "List<Human> myList = new List<Human>();\nHuman h = new Human();\nmyList.Add(h);\n ArrayList myObjectList = new ArrayList();\... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17211/"
] |
221,474 | <p>When you create a link to an executable file intended for download (like say update.exe), on a web page, IE7 gives the user the option to "Run" or "Save". I don't want users to be running the update file they should be downloading.</p>
<p>Is it possible to disable the "Save" option on the dialog the IE displays, or... | [
{
"answer_id": 221493,
"author": "Mark S. Rasmussen",
"author_id": 12469,
"author_profile": "https://Stackoverflow.com/users/12469",
"pm_score": 3,
"selected": true,
"text": "HttpContext.Current.Response.Buffer = false;\nHttpContext.Current.Response.ClearContent();\nHttpContext.Current.R... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5019/"
] |
221,475 | <p>In LinqToSql, it is lovely easy to load a row, change a column, and submit the changes to the database:</p>
<pre><code>using (MyDataContext wdc = new MyDataContext())
{
Article article = wdc.Article.First(p => p.ID == id);
article.ItemsInStock = itemsinstock;
wdc.SubmitChanges();
}
</code></pre>
<... | [
{
"answer_id": 221547,
"author": "liggett78",
"author_id": 19762,
"author_profile": "https://Stackoverflow.com/users/19762",
"pm_score": 3,
"selected": false,
"text": "UPDATE ... SET ... WHERE ID = @2\n UPDATE ... SET ... WHERE ID = @2 AND ItemsInStock = @1 AND SomeOtherColumn = @3 AND... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7021/"
] |
221,476 | <p>After update, old Eclipse plugins remain in "plugins" folder (there are also leftovers in "features" folder).</p>
<p>Is there a way to remove those automatically?</p>
| [
{
"answer_id": 221985,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "\\[eclipse\\]/dropins/eclemma1.3.1/eclipse/(plugins|features)\n"
},
{
"answer_id": 10878310,
"author": "LiuYan 刘研",... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5817/"
] |
221,502 | <p>I'm comparing the results produced when i use the 'Make .exe' compared to when i run the exact same process using the exact same variables though the IDE vb 6 debugger.</p>
<p>I've tried an array of different compiler options but to no avail.</p>
<p>So my question is why would i get a difference between the debugg... | [
{
"answer_id": 221622,
"author": "dummy",
"author_id": 6297,
"author_profile": "https://Stackoverflow.com/users/6297",
"pm_score": 2,
"selected": false,
"text": "Debug.Assert Debug.Print Debug.Assert( DoSomeThingImportend() )\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5186/"
] |
221,503 | <p>I wish we have "Usable" pattern in C#, when code block of using construct would be passed to a function as delegate:</p>
<pre><code>class Usable : IUsable
{
public void Use(Action action) // implements IUsable
{
// acquire resources
action();
// release resources
}
}
</code></pre>
<p>and in use... | [
{
"answer_id": 221522,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 1,
"selected": false,
"text": "using(new Usable(delegate() {\n // actions here\n}) {}\n"
},
{
"answer_id": 221923,
"author": "Hallgrim... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18575/"
] |
221,514 | <p>Suppose, objects of type <i>A</i> are stored in DB. Here's the way I load specific one from DB using hibernate:</p>
<pre><code>org.hibernate.Session session = ...;
long id = 1;
A obj = session.load(A.class, id);
</code></pre>
<p>If object with id=1 doesn't exist I will get <i>ObjectNotFoundException</i>. But is th... | [
{
"answer_id": 221526,
"author": "Juanma",
"author_id": 3730,
"author_profile": "https://Stackoverflow.com/users/3730",
"pm_score": 6,
"selected": true,
"text": "session.get public Object get(Class clazz,\n Serializable id)\n throws HibernateException\n"
},
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,519 | <p>The following Code does not compile</p>
<pre><code>Dim BasicGroups As String() = New String() {"Node1", "Node2"}
Dim NodesToRemove = From Element In SchemaDoc.Root.<Group> _
Where Element.@Name not in BasicGroups
For Each XNode In NodesToRemove
XNode.Remove()
Next
</code></pre>
<p>It ... | [
{
"answer_id": 221605,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 3,
"selected": true,
"text": "where (not (list.Contains(foo))\n"
},
{
"answer_id": 221613,
"author": "mdb",
"author_id": 8562,
"author... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
221,520 | <p>I don't understand, why does the following regular expression:</p>
<pre><code>^*$
</code></pre>
<p>Match the string "127.0.0.1"? Using <code>Regex.IsMatch("127.0.0.1", "^*$");</code></p>
<p>Using Expresso, it does not match, which is also what I would expect. Using the expression <code>^.*$</code> does match the ... | [
{
"answer_id": 221537,
"author": "Richard Nienaber",
"author_id": 9539,
"author_profile": "https://Stackoverflow.com/users/9539",
"pm_score": -1,
"selected": false,
"text": "^+$\n"
},
{
"answer_id": 221545,
"author": "Mecki",
"author_id": 15809,
"author_profile": "htt... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12469/"
] |
221,523 | <p>I would like to hide the UISearchBar most of the time and only call it to appear when user wants it. </p>
<p>I've put a UISearchBar in Interface Builder and hide it behind a view, when user click a button, it calls the following code, which I hoped it would bring the search bar to the front and slide the keyboard t... | [
{
"answer_id": 221581,
"author": "Stephen Darlington",
"author_id": 2998,
"author_profile": "https://Stackoverflow.com/users/2998",
"pm_score": 2,
"selected": false,
"text": "mySearchBar.hidden = NO;\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9774/"
] |
221,525 | <p>Please don't say EHCache or OSCache, etc. Assume for purposes of this question that I want to implement my own using just the SDK (learning by doing). Given that the cache will be used in a multithreaded environment, which datastructures would you use? I've already implemented one using <a href="http://docs.oracle.c... | [
{
"answer_id": 221546,
"author": "Steve McLeod",
"author_id": 2959,
"author_profile": "https://Stackoverflow.com/users/2959",
"pm_score": 3,
"selected": false,
"text": "class CacheElement {\n private final Object obj;\n private int numberOfUsers = 0;\n\n CacheElement(Object obj)... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4203/"
] |
221,534 | <p>What are the <strong>differences</strong> in considerations in respect to designing or developing an <strong>Intranet and an Internet application</strong> ?</p>
| [
{
"answer_id": 221632,
"author": "Jon Schneider",
"author_id": 12484,
"author_profile": "https://Stackoverflow.com/users/12484",
"pm_score": 3,
"selected": false,
"text": "\\\\corporateserver\\devteam\\ArchitectureDiagram.vsd"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11614/"
] |
221,539 | <p>I've seen this in a few <a href="https://stackoverflow.com/questions/221294/how-do-you-get-a-timestamp-in-javascript#221357">places</a></p>
<pre><code>function fn() {
return +new Date;
}
</code></pre>
<p>And I can see that it is returning a timestamp rather than a date object, but I can't find any documentatio... | [
{
"answer_id": 221560,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 6,
"selected": false,
"text": ">>> +new Date()\n1224589625406\n>>> +\"3\"\n3\n>>> +true\n1\n>>> 3 == \"3\"\ntrue\n"
},
{
"answer_id": 221565... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20074/"
] |
221,568 | <p>Is there a way in SWT to get a monospaced font simply, that works across various operating systems?</p>
<p>For example. this works on Linux, but not Windows:</p>
<pre>
<code>
Font mono = new Font(parent.getDisplay(), "Mono", 10, SWT.NONE);
</code>
</pre>
<p>or do I need to have a method that tries loading varying... | [
{
"answer_id": 222885,
"author": "fhe",
"author_id": 4445,
"author_profile": "https://Stackoverflow.com/users/4445",
"pm_score": 5,
"selected": true,
"text": "Font mono = new Font(parent.getDisplay(), \"Monospaced\", 10, SWT.NONE);"
},
{
"answer_id": 226404,
"author": "McDowe... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17832/"
] |
221,570 | <p>I'd like them to be easy to bundle, with few dependencies and easy to use.</p>
| [
{
"answer_id": 33449865,
"author": "stack questions",
"author_id": 5395968,
"author_profile": "https://Stackoverflow.com/users/5395968",
"pm_score": 1,
"selected": false,
"text": " RSyntaxTextArea textArea = new RSyntaxTextArea();\n textArea.setSyntaxEditingStyle(SyntaxCons... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28968/"
] |
221,578 | <p>I'm trying to make a script that sleeps my wireless card in linux. For that I'm using the <code>deepsleep</code> command of <code>iwpriv</code>:</p>
<pre><code>iwpriv wlan0 deepsleep 1
</code></pre>
<p>The problem is that this command only works if the wireless card is disconnected and disassociated. When it's con... | [
{
"answer_id": 327211,
"author": "ctuffli",
"author_id": 26683,
"author_profile": "https://Stackoverflow.com/users/26683",
"pm_score": 1,
"selected": false,
"text": "iwconfig wlan0 ap 00:00:00:00:00:00\nsleep 1\niwpriv wlan0 deepsleep 1\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28855/"
] |
221,582 | <p>This question comes up occasionally, but I haven't seen a satisfactory answer.</p>
<p>A typical pattern is (row is a <strong>DataRow</strong>):</p>
<pre><code> if (row["value"] != DBNull.Value)
{
someObject.Member = row["value"];
}
</code></pre>
<p>My first question is which is more efficient (I've flippe... | [
{
"answer_id": 221590,
"author": "Jon Grant",
"author_id": 18774,
"author_profile": "https://Stackoverflow.com/users/18774",
"pm_score": 5,
"selected": false,
"text": "Convert.IsDBNull()\n int? myValue = (Convert.IsDBNull(row[\"column\"]) ? null : (int?) Convert.ToInt32(row[\"column\"]))... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9825/"
] |
221,584 | <p>I have some products that belongs to the some category.</p>
<p>Each category can have different properties.</p>
<p>For example, </p>
<ul>
<li>category <em>cars</em> has properties <em>color</em>,
power, ... </li>
<li>category <em>pets</em> have properties <em>weight</em>, <em>age</em>, ...</li>
</ul>
<p>Number ... | [
{
"answer_id": 221614,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 1,
"selected": false,
"text": "tProduct \n productID\n <other product details>\n\ntCategory\n categoryID\n <other category details>\n\ntProperty\n... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,592 | <p>Does anyone know whether the iPhone supports or will soon support the <a href="http://dev.w3.org/geo/api/spec-source.html" rel="noreferrer">W3C Geolocation specification</a>?</p>
<p>I'm looking to build an app for mobile users, but rather than spend the time developing apps for every different platform (iPhone, And... | [
{
"answer_id": 1134136,
"author": "SavoryBytes",
"author_id": 131944,
"author_profile": "https://Stackoverflow.com/users/131944",
"pm_score": 7,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http:/... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12037/"
] |
221,593 | <p>I am building an ObjectQuery like this:</p>
<pre><code> string query = "select value obj from Entities.Class as obj " +
"where obj.Property = @Value";
ObjectQuery<Class> oQuery = new ObjectQuery<Class>(query, EntityContext.Instance);
oQuery.Parameters.Add(n... | [
{
"answer_id": 221630,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "ObjectQuery<T> IQueryable<T> int count = oQuery.Count();\n"
},
{
"answer_id": 221633,
"author": "Jon Grant... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3610/"
] |
221,595 | <p>I have a button inside an update panel that I would like to update the whole page. I have set <code>ChildrenAsTriggers="false"</code> and <code>UpdateMode="Conditional"</code>.</p>
<p>I have some sample code here that demonstrates my problem.</p>
<pre><code><asp:UpdatePanel ID="myFirstPanel" runat="server" Chil... | [
{
"answer_id": 221718,
"author": "tpower",
"author_id": 18107,
"author_profile": "https://Stackoverflow.com/users/18107",
"pm_score": 1,
"selected": false,
"text": "<Triggers>\n <asp:PostBackTrigger ControlID=\"mySecondButton\" />\n</Triggers>\n"
},
{
"answer_id": 12943127,
... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18107/"
] |
221,611 | <p>For a certain Hibernate entity we have a requirement to store its creation time and the last time it was updated. How would you design this?</p>
<ul>
<li><p>What data types would you use in the database (assuming MySQL, possibly in a different timezone that the JVM)? Will the data types be timezone-aware?</p></li... | [
{
"answer_id": 221782,
"author": "davetron5000",
"author_id": 3029,
"author_profile": "https://Stackoverflow.com/users/3029",
"pm_score": 2,
"selected": false,
"text": "java.util.Calender java.util.Date"
},
{
"answer_id": 221827,
"author": "Guðmundur Bjarni",
"author_id":... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23109/"
] |
221,674 | <p>Are there ways except CAPTCHAs for web apps like <a href="http://pastie.org" rel="nofollow noreferrer">pastie.org</a> or <a href="http://p.ramaze.net" rel="nofollow noreferrer">p.ramaze.net</a>? CAPTCHAs take too long for a small paste for my taste.</p>
| [
{
"answer_id": 221721,
"author": "Gene",
"author_id": 22673,
"author_profile": "https://Stackoverflow.com/users/22673",
"pm_score": 1,
"selected": false,
"text": "* Current software is unable to solve accurately.\n* Most humans can solve.\n* Does not rely on the type of CAPTCHA being new... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28968/"
] |
221,687 | <p>I want to make a generic class that accepts only serializable classes, can it be done with the where constraint?</p>
<p>The concept I'm looking for is this:</p>
<pre><code>public class MyClass<T> where T : //[is serializable/has the serializable attribute]
</code></pre>
| [
{
"answer_id": 221695,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "where T : class where T : struct where T : SomeClass where T : ISomeInterface where T : new()"
},
{
"answer_id": ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1782/"
] |
221,691 | <p>This might be a old question: Why does <code>IEnumerable<T></code> inherit from <code>IEnumerable</code>?</p>
<p>This is how .NET do, but it brings a little trouble. Every time I write a class implements <code>IEumerable<T></code>, I have to write two <code>GetEnumerator()</code> functions, one for <cod... | [
{
"answer_id": 221722,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": false,
"text": "IEnumerable IEnumerable IEnumerator.Current object IEnumerator<T>.Current T object IList<T> IList Add(object) IList ILis... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26349/"
] |
221,693 | <p>I have a function that automatically exports a table into a CSV file, then I try to attach that same file into a function that will email it. I have sent attachments using html mime mail before, but I was wondering if that created CSV file needs to be stored on the server first before attaching it to the email?</p>
| [
{
"answer_id": 221720,
"author": "vfilby",
"author_id": 24279,
"author_profile": "https://Stackoverflow.com/users/24279",
"pm_score": 0,
"selected": false,
"text": "uuencode"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26130/"
] |
221,730 | <p>I want to create a .bat file so I can just click on it so it can run:</p>
<pre><code>svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localhost:8000/ServiceModelSamples/service
</code></pre>
<p>Can someone help me with the structure of the .bat file?</p>
| [
{
"answer_id": 221815,
"author": "myplacedk",
"author_id": 28683,
"author_profile": "https://Stackoverflow.com/users/28683",
"pm_score": 3,
"selected": false,
"text": "@echo off\nsvcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localhost:8000/ServiceModelSamples/... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,732 | <p>I've been searching a lot but couldn't find a solution. How do you deal with a DateTime that should be able to contain an uninitialized value (equivalent to null)? I have a class which might have a DateTime property value set or not. I was thinking of initializing the property holder to DateTime.MinValue, which then... | [
{
"answer_id": 221740,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 10,
"selected": true,
"text": "DateTime.MinValue DateTime? MyNullableDate;\n Nullable<DateTime> MyNullableDate;\n null DateTime.MinValue default(Date... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16440/"
] |
221,745 | <p>I realize I'm probably just dumb and missing something big and important, but I can't figure out how to specify a timeout in twisted using reactor.listenUDP. My goal is to be able to specify a timeout, and after said amount of time, if DatagramProtocol.datagramReceived has not been executed, have it execute a callba... | [
{
"answer_id": 221832,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": 4,
"selected": true,
"text": "from twisted.internet import task\nfrom twisted.internet import reactor\n\ndatagramRecieved = False\ntimeout = 1.0 # On... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572/"
] |
221,774 | <p>I have a MySQL database of keywords that are presently mixed-case. However, I want to convert them all to lowercase. Is there an easy command to do this, either using MySQL or MySQL and PHP?</p>
| [
{
"answer_id": 221780,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 4,
"selected": false,
"text": "SELECT LOWER(foo) AS foo FROM bar"
},
{
"answer_id": 221787,
"author": "Paul Dixon",
"author_id": 6521,
"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
221,781 | <p>We are migrating a web applicatin from vs05 to vs08. This application is using Telerik web controls. After I converted the project, and run, I get the exception: "A control is already associated with the element". I traced it down to a use control that has Telerik RadCombo box on it. However, I don't see anything ou... | [
{
"answer_id": 6444157,
"author": "Greg Woods",
"author_id": 810857,
"author_profile": "https://Stackoverflow.com/users/810857",
"pm_score": 1,
"selected": false,
"text": "child.control.dispose();\nchild.control = undefined;\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29726/"
] |
221,783 | <p>Consider the following code:</p>
<pre><code>client.Send(data, data.Length, endpoint);
byte[] response = client.Receive(ref endpoint);
</code></pre>
<p>While, according to WireShark (network sniffer), the remote host does reply with data,
the application here just waits for data forever... it does not receive the a... | [
{
"answer_id": 4849573,
"author": "Mostafa",
"author_id": 596652,
"author_profile": "https://Stackoverflow.com/users/596652",
"pm_score": 1,
"selected": false,
"text": "client.Client.ReceiveTimeout = 5000; \n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28149/"
] |
221,800 | <p>I want to learn MSBuild, was wondering if someone could get me started with a simple build script to filter out my vs.net 2008 project of all files with the .cs extension.</p>
<ol>
<li>how do I run the build?</li>
<li>where do you usually store the build also?</li>
</ol>
| [
{
"answer_id": 221854,
"author": "kenny",
"author_id": 3225,
"author_profile": "https://Stackoverflow.com/users/3225",
"pm_score": 0,
"selected": false,
"text": "C:\\projects\\_Play\\SimpleIpService>type \\\\sysrdswbld1\\public\\bin\\mrb-vs2008.cmd\n@echo off\n\ncall \"c:\\Program Files\... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,804 | <p>I need to find the min and max value in an array. The <code>.max</code> function works but <code>.min</code> keeps showing zero.</p>
<pre><code>Public Class Program_2_Grade
Dim max As Integer
Dim min As Integer
Dim average As Integer
Dim average1 As Integer
Dim grade As String
Private Sub Bu... | [
{
"answer_id": 221834,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "max = grade_enter.Take(counter).Max()\nmin = grade_enter.Take(counter).Min()\n List(Of Integer)"
},
{
"answer_id... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
221,806 | <p>I have two questions :</p>
<ol>
<li><p>While doing source level debugging (using any debugger) does any debugger save state of some iteration/for-loop/any code executed and allow the user to go back to that previously executed code/data state at a later point of time during debugging?
The need for this is some vari... | [
{
"answer_id": 221849,
"author": "pkaeding",
"author_id": 4257,
"author_profile": "https://Stackoverflow.com/users/4257",
"pm_score": 1,
"selected": false,
"text": "for (i = 0; i < list.size(); i++) {\n foo = list[i];\n}\n i == 17 foo == null"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2759376/"
] |
221,822 | <p>I'm familiar with Sybase / SQL server, where I can create a temp. table like this: </p>
<pre><code>SELECT *
INTO #temp
FROM tab1 ,
tab2
WHERE tab1.key = tab2.fkey
SELECT *
FROM #temp
WHERE field1 = 'value'
</code></pre>
<p>#temp only exists for the duration of this session, and can only be se... | [
{
"answer_id": 221880,
"author": "carson",
"author_id": 25343,
"author_profile": "https://Stackoverflow.com/users/25343",
"pm_score": 1,
"selected": false,
"text": "CREATE GLOBAL TEMPORARY TABLE my_temp_table ON COMMIT DELETE ROWS select * from other table;\n"
},
{
"answer_id": 2... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7211/"
] |
221,824 | <p>Basically I'm converting local dates stored in the database into UTC. But I've read somewhere that daylight saving rules have changed in 2007. So does the Date.ToUniversalTime() function still work correctly. Basically the dates before 2007(when the new rules came into effect) would be converted correctly but the da... | [
{
"answer_id": 221850,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 1,
"selected": false,
"text": "ToUniversalTime()"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688440/"
] |
221,830 | <p>I have two BufferedImages I loaded in from pngs. The first contains an image, the second an alpha mask for the image.</p>
<p>I want to create a combined image from the two, by applying the alpha mask. My google-fu fails me.</p>
<p>I know how to load/save the images, I just need the bit where I go from two Buffered... | [
{
"answer_id": 221869,
"author": "Zarkonnen",
"author_id": 15255,
"author_profile": "https://Stackoverflow.com/users/15255",
"pm_score": 0,
"selected": false,
"text": "for (int y = 0; y < image.getHeight(); y++) {\n for (int x = 0; x < image.getWidth(); x++) {\n Color c = new C... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15255/"
] |
221,892 | <p>Is there a way to write an enumeration that can be extended. I have several methods that I would like to always have available for my enumerations. For example I use an enumeration for my database fields. I include the actual field name in the database. </p>
<pre><code>public enum ORDERFIELDS
{
... | [
{
"answer_id": 221902,
"author": "Guido",
"author_id": 12388,
"author_profile": "https://Stackoverflow.com/users/12388",
"pm_score": 4,
"selected": false,
"text": "java.lang.Enum"
},
{
"answer_id": 221916,
"author": "Dónal",
"author_id": 2648,
"author_profile": "https... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17712/"
] |
221,894 | <p>We are currently using the <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;118623" rel="noreferrer">NetBios method</a>, and it works ok under XP. Preliminary tests under Vista show that it also works, but there are caveats - NetBIOS has to be present, for instance, and from what I've been reading, t... | [
{
"answer_id": 221992,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 4,
"selected": false,
"text": "void getdMacAddresses(std::vector<std::string> &vMacAddresses;)\n{\n vMacAddresses.clear();\n IP_ADAPTER_INFO A... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7134/"
] |
221,901 | <p>Do the clients need something else than a proper jdk and javafx compliant browser to visit javafx applets?</p>
| [
{
"answer_id": 221992,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 4,
"selected": false,
"text": "void getdMacAddresses(std::vector<std::string> &vMacAddresses;)\n{\n vMacAddresses.clear();\n IP_ADAPTER_INFO A... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/148909/"
] |
221,909 | <p>I'm writing a stored procedure that needs to have a lot of conditioning in it. With the general knowledge from C#.NET coding that exceptions can hurt performance, I've always avoided using them in PL/SQL as well. My conditioning in this stored proc mostly revolves around whether or not a record exists, which I cou... | [
{
"answer_id": 221960,
"author": "Steve Bosman",
"author_id": 4389,
"author_profile": "https://Stackoverflow.com/users/4389",
"pm_score": 1,
"selected": false,
"text": "DECLARE\n CURSOR foo_cur IS \n SELECT NEEDED_FIELD WHERE condition ;\nBEGIN\n OPEN foo_cur;\n FETCH foo_cur INTO ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27457/"
] |
221,913 | <p>I am getting a warning when trying to include the .net 3.5 sp1 prerequisite for my setup project. The warning states Prerequisite could not found for bootstrapping.</p>
<p>Any suggestions?</p>
<p>Thanks</p>
| [
{
"answer_id": 5556080,
"author": "Michael Eakins",
"author_id": 437301,
"author_profile": "https://Stackoverflow.com/users/437301",
"pm_score": 1,
"selected": false,
"text": "<PackageFile Name=\"TOOLS\\clwireg.exe\"/>\n<PackageFile Name=\"TOOLS\\clwireg_x64.exe\"/>\n<PackageFile Name=\"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29961/"
] |
221,919 | <p>Is there a difference between the two examples below for beginning a Perl script? If so, when would I use one over the other?</p>
<p>example 1:</p>
<pre><code>#!/usr/bin/perl
use warnings;
</code></pre>
<p>example 2:</p>
<pre><code>#!/usr/bin/perl -w
</code></pre>
| [
{
"answer_id": 222071,
"author": "friedo",
"author_id": 20745,
"author_profile": "https://Stackoverflow.com/users/20745",
"pm_score": 4,
"selected": false,
"text": "-w use warnings no warnings -w"
},
{
"answer_id": 227553,
"author": "Community",
"author_id": -1,
"auth... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6406/"
] |
221,921 | <p>I'm looking for the string <code>foo=</code> in text files in a directory tree. It's on a common Linux machine, I have bash shell:</p>
<pre><code>grep -ircl "foo=" *
</code></pre>
<p>In the directories are also many binary files which match <code>"foo="</code>. As these results are not relevant a... | [
{
"answer_id": 221929,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 11,
"selected": true,
"text": "grep pattern -r --include=\\*.cpp --include=\\*.h rootdir\n --exclude --include=\"*.cpp\" grep pattern -r --include=... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19746/"
] |
221,925 | <p>What is the prefered method for creating a byte array from an input stream? </p>
<p>Here is my current solution with .NET 3.5. </p>
<pre><code>Stream s;
byte[] b;
using (BinaryReader br = new BinaryReader(s))
{
b = br.ReadBytes((int)s.Length);
}
</code></pre>
<p>Is it still a better idea to read and write ch... | [
{
"answer_id": 221941,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 11,
"selected": true,
"text": "s.Length public static byte[] ReadFully(Stream input)\n{\n byte[] buffer = new byte[16*1024];\n using (MemoryStrea... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45/"
] |
221,930 | <p>I have a master page that contains an ASP.NET server side Menu control (System.Web.UI.WebControls.Menu)</p>
<p>I <em>am</em> using the CSSFriendly adapters from here</p>
<p><a href="http://www.asp.net/CSSAdapters/Menu.aspx" rel="noreferrer">http://www.asp.net/CSSAdapters/Menu.aspx</a></p>
<p>and they do make the ... | [
{
"answer_id": 9429489,
"author": "Ignacio Calvo",
"author_id": 429487,
"author_profile": "https://Stackoverflow.com/users/429487",
"pm_score": 2,
"selected": false,
"text": "IncludeStyleBlock <style> style=\"float:left\" float: none !important"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28584/"
] |
221,938 | <p>I want to provide silverlight app to my customer while hosting the app at my own site for streamlined maintenance.</p>
<ul>
<li>my Silverlight .xap is hosted in, let say, domain <em>me-supplier.com</em></li>
<li>i want to embed it in, let say, domain <em>my-customer.com</em></li>
</ul>
<p>It works perfectly for ... | [
{
"answer_id": 9429489,
"author": "Ignacio Calvo",
"author_id": 429487,
"author_profile": "https://Stackoverflow.com/users/429487",
"pm_score": 2,
"selected": false,
"text": "IncludeStyleBlock <style> style=\"float:left\" float: none !important"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/221938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29952/"
] |
221,950 | <p>This <a href="http://themechanicalbride.blogspot.com/2008/04/using-operators-with-generics.html" rel="nofollow noreferrer">article</a> describes a way, in C#, to allow the addition of arbitrary value types which have a + operator defined for them. In essence it allows the following code:</p>
<pre><code>public T Add... | [
{
"answer_id": 221961,
"author": "Pieter",
"author_id": 5822,
"author_profile": "https://Stackoverflow.com/users/5822",
"pm_score": 5,
"selected": true,
"text": "template < class T >\nT add(T const & val1, T const & val2)\n{\n return val1 + val2;\n}\n"
},
{
"answer_id": 221962... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4055/"
] |
221,976 | <p>I am creating an application in java which will be the part of an external application. My application contains a viewport which shows some polygons and stuff like that. The external application needs to get the image of the viewport in gif format. For that it calls a method in an interface (implemented by my applic... | [
{
"answer_id": 222010,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 3,
"selected": true,
"text": "OutputStream ByteArrayOutputStream"
},
{
"answer_id": 417778,
"author": "asalamon74",
"author_id": 21348,... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22550/"
] |
221,984 | <p>I'm writing an Excel Addin using COM Interop from .net. I have a command that pops up a dialog, and from the dialog I do some work like collecting data from the used range of several sheets. The problem is that if a cell is in edit mode, some of the calls that I need to make will throw exceptions. I would like a way... | [
{
"answer_id": 25057820,
"author": "SZL",
"author_id": 2278037,
"author_profile": "https://Stackoverflow.com/users/2278037",
"pm_score": 3,
"selected": false,
"text": " Function IsInEditMode(ByRef exapp As Excel.Application) As Boolean\n If exapp.Interactive = False Then\n ... | 2008/10/21 | [
"https://Stackoverflow.com/questions/221984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1727/"
] |
222,017 | <p>I'm looking for (simple) examples of problems for which JMS is a good solution, and also reasons why JMS is a good solution in these cases. In the past I've simply used the database as a means of passing messages from A to B when the message cannot necessarily be processed by B immediately.</p>
<p>A hypothetical ex... | [
{
"answer_id": 19044855,
"author": "Aniket Thakur",
"author_id": 2396539,
"author_profile": "https://Stackoverflow.com/users/2396539",
"pm_score": 2,
"selected": false,
"text": "what is JMS good for?"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
222,018 | <p>How to format numbers in JavaScript?</p>
<hr>
<ul>
<li><a href="https://stackoverflow.com/questions/51564/javascript-culture-sensitive-currency-formatting">JavaScript culture sensitive currency formatting</a></li>
</ul>
| [
{
"answer_id": 222038,
"author": "SaaS Developer",
"author_id": 7215,
"author_profile": "https://Stackoverflow.com/users/7215",
"pm_score": 5,
"selected": true,
"text": "var num = 10;\nvar result = num.toFixed(2); // result will equal 10.00\n\nnum = 930.9805;\nresult = num.toFixed(3); //... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1100/"
] |
222,019 | <p>How do i take advantage of MySQL's ability to cache prepared statements?
One reason to use prepared statements is that there is no need to send the prepared statement itself multiple times if the same prepared statement is to be used again. </p>
<pre><code>Class.forName("com.mysql.jdbc.Driver");
Connection conn = D... | [
{
"answer_id": 374372,
"author": "kosoant",
"author_id": 15114,
"author_profile": "https://Stackoverflow.com/users/15114",
"pm_score": 2,
"selected": false,
"text": "Connection conn = DatabaseUtil.getConnection();\nPreparedStatement stmtUpdate = conn.prepareStatement(\"UPDATE foo SET bar... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11411/"
] |
222,028 | <p>Lots of frameworks let me expose an ejb as a webservice. </p>
<p>But then 2 months after publishing the initial service I need to change the ejb or any part of its interface. I still have clients that need to access the old interface, so I obviously need to have 2 webservices with different signatures.</p>
<p>Anyo... | [
{
"answer_id": 265013,
"author": "Kariem",
"author_id": 12039,
"author_profile": "https://Stackoverflow.com/users/12039",
"pm_score": 4,
"selected": true,
"text": "@WebService\n@SOAPBinding(style = Style.RPC)\npublic interface ILegacyService extends IOtherLegacyService {\n // the inte... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23691/"
] |
222,029 | <p>the WPF Popup control is nice, but somewhat limited in my opinion. is there a way to "drag" a popup around when it is opened (like with the DragMove() method of windows)?</p>
<p>can this be done without big problems or do i have to write a substitute for the popup class myself?
thanks</p>
| [
{
"answer_id": 222219,
"author": "Jobi Joy",
"author_id": 8091,
"author_profile": "https://Stackoverflow.com/users/8091",
"pm_score": 4,
"selected": false,
"text": "<Popup x:Name=\"pop\" IsOpen=\"True\" Height=\"200\" Placement=\"AbsolutePoint\" Width=\"200\">\n <Rectangle Stretch=\"F... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20227/"
] |
222,030 | <p>How can I create 7-Zip archives from my C# console application? I need to be able to extract the archives using the regular, widely available <a href="http://www.7-zip.org/" rel="noreferrer">7-Zip</a> program.</p>
<hr>
<h2>Here are my results with the examples provided as answers to this question</h2>
<ul>
<li>"S... | [
{
"answer_id": 367502,
"author": "WOPR",
"author_id": 46255,
"author_profile": "https://Stackoverflow.com/users/46255",
"pm_score": 3,
"selected": false,
"text": "using SevenZip.Compression.LZMA;\nprivate static void CompressFileLZMA(string inFile, string outFile)\n{\n SevenZip.Compres... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
222,043 | <p>I have a variable that contains a 4 byte, network-order IPv4 address (this was created using pack and the integer representation). I have another variable, also a 4 byte network-order, subnet. I'm trying to add them together and add one to get the first IP in the subnet.</p>
<p>To get the ASCII representation, I ... | [
{
"answer_id": 222096,
"author": "Leon Timmermans",
"author_id": 4727,
"author_profile": "https://Stackoverflow.com/users/4727",
"pm_score": 5,
"selected": true,
"text": "$ip&$netmask inet_ntoa pack(\"N\", unpack(\"N\", $ip&$netmask) + 1)\n"
},
{
"answer_id": 222169,
"author"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7548/"
] |
222,052 | <p>I have a ControlTemplate that is made up of a ToolBarTray and a ToolBar. In my ToolBar, I have several buttons and then a label. I want to be able to update the label in my toolbar with something like "1 of 10" </p>
<p>My first thought is to programatically find the label and set it, but I'm reading that this s... | [
{
"answer_id": 222106,
"author": "Bryan Anderson",
"author_id": 21186,
"author_profile": "https://Stackoverflow.com/users/21186",
"pm_score": 1,
"selected": false,
"text": "<Label x:Name=\"myStatusLabel\" Content=\"{TemplateBinding Content}\"/>\n"
},
{
"answer_id": 222129,
"... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047/"
] |
222,053 | <p>this is my first question here so I hope I can articulate it well and hopefully it won't be too mind-numbingly easy.</p>
<p>I have the following class <em>SubSim</em> which extends <em>Sim</em>, which is extending <em>MainSim</em>. In a completely separate class (and library as well) I need to check if an object be... | [
{
"answer_id": 222059,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 3,
"selected": false,
"text": "if (sim is MainSim)\n"
},
{
"answer_id": 222062,
"author": "Mark Cidade",
"author_id": 1659,
"aut... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13064/"
] |
222,065 | <p>When creating an index over a column that is going to be UNIQUE (but not the primary key of the table), SQL server let's me choose a few options:</p>
<p>1) I can choose for it to be a Constraint or an Index.<br>
I'm guessing this means that if I set it as constraint, it won't use it when querying, only when writing... | [
{
"answer_id": 222284,
"author": "onedaywhen",
"author_id": 15354,
"author_profile": "https://Stackoverflow.com/users/15354",
"pm_score": 4,
"selected": true,
"text": "UNIQUE UNIQUE UNIQUE"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3314/"
] |
222,089 | <p>With the following file reading code:</p>
<pre><code>using (FileStream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.None))
{
using (TextReader tr = new StreamReader(fileStream))
{
string fileContents = tr.ReadToEnd();
}
}
</code></pre>
<p>And the following fil... | [
{
"answer_id": 222100,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 2,
"selected": false,
"text": "Mutex"
},
{
"answer_id": 222111,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https:/... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5993/"
] |
222,108 | <p>On my busiest production installation, on occasion I get a single thread that seems to get stuck in an infinite loop. I've not managed to figure out who is the culprit, after much research and debugging, but it seems like it should be possible. Here are the gory details:</p>
<p><strong><em>Current debugging notes... | [
{
"answer_id": 1199127,
"author": "ubiyubix",
"author_id": 19701,
"author_profile": "https://Stackoverflow.com/users/19701",
"pm_score": 5,
"selected": true,
"text": "\"http-342.877.573.944-8080-360\" daemon prio=10 tid=0x0000002adaba9c00 nid=0x754c in Object.wait() [0x00000000595bc000..... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2961/"
] |
222,117 | <p><a href="https://stackoverflow.com/questions/106597/why-are-fixnums-in-emacs-only-29-bits">The fixnum question</a> brought my mind to an other question I've wondered for a long time.</p>
<p>Many online material about garbage collection does not tell about how runtime type information can be implemented. Therefore I... | [
{
"answer_id": 711687,
"author": "Damien Pollet",
"author_id": 63112,
"author_profile": "https://Stackoverflow.com/users/63112",
"pm_score": 0,
"selected": false,
"text": "SmallInteger LargePositiveInteger SmallInteger maxVal LargePositiveInteger SmallInteger"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21711/"
] |
222,119 | <p>I have encapsulated a backup database command in a Try/Catch and it appears that the error message is being lost somewhere. For example:</p>
<pre><code>BACKUP DATABASE NonExistantDB TO DISK = 'C:\TEMP\NonExistantDB.bak'
</code></pre>
<p>..gives error:<br>
<strong><em>Could not locate entry in sysdatabases for dat... | [
{
"answer_id": 222277,
"author": "Josef",
"author_id": 5581,
"author_profile": "https://Stackoverflow.com/users/5581",
"pm_score": 3,
"selected": true,
"text": " BACKUP DATABASE NonExistantDB TO DISK = 'C:\\TEMP\\NonExistantDB.bak'\n"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11989/"
] |
222,133 | <p>I'm working on a web application that will return a variable set of modules depending on user input. Each module is a Python class with a constructor that accepts a single parameter and has an '.html' property that contains the output.</p>
<p>Pulling the class dynamically from the global namespace works:</p>
<pre>... | [
{
"answer_id": 222307,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "https://Stackoverflow.com/users/20789",
"pm_score": 2,
"selected": false,
"text": "dispatch = {'Foo': Foo, 'Bar': Bar, 'Bizbaz': Bizbaz}\n globals() classname classname dispatch globals()[variable] vari... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7341/"
] |
222,139 | <p>I'm building a new site for my company, and I'm at the stage where I've created the html mockup of the first page. I'm going to use this as a basis for the rest of the site. I'm thinking of organising my stylesheet better now I've got the design looking consistent cross-browser, but I'm wondering how far to go when ... | [
{
"answer_id": 222158,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 3,
"selected": false,
"text": "base.css reset.css page.css microsite_skin.css"
},
{
"answer_id": 222867,
"author": "Steve Paulo",
"author_id":... | 2008/10/21 | [
"https://Stackoverflow.com/questions/222139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
222,148 | <p>The default value for the first item in a drop down list is the name of the database field. I need to change it to a more user friendly name. How do I change the value?</p>
| [
{
"answer_id": 222852,
"author": "Joshua",
"author_id": 6013,
"author_profile": "https://Stackoverflow.com/users/6013",
"pm_score": 4,
"selected": true,
"text": "<script> document.formWarpRequest._oLstChoicesMyList[0].text = '--SELECT A CITY--'; </script>"
}
] | 2008/10/21 | [
"https://Stackoverflow.com/questions/222148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6013/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.