qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
332,705 | <p>I have double (or float) variables that might be "empty", as in holding no valid value. How can I represent this condition with the built in types float and double?</p>
<p>One option would be a wrapper that has a float and a boolean, but that can´t work, as my libraries have containers that store doubles and not ob... | [
{
"answer_id": 332712,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": false,
"text": "double d = std::numeric_limits<double>::signaling_NaN();\nbool isNaN = (d != d);\n"
},
{
"answer_id... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78828/"
] |
332,709 | <p>This is for my DB class. I am new to OO, been a procedural lad for some time, so I'm still a bit murky.</p>
<p>My first idea was using a bunch of setter functions/methods.. but after writing a whole bunch, I thought about using PHP's define function, like so.</p>
<pre><code>define('MYSQL_USERNAME', 'jimbo');
</cod... | [
{
"answer_id": 332724,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 2,
"selected": false,
"text": "$config = (object) array(\n 'prop1' => 'somevalue',\n 'prop2' => 'somevalue2',\n 'prop3' => 'somevalue3',\n);\n\n$db = ne... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
332,717 | <p>My app needs to build a buffer from all the selected cells on a worksheet. I have it working correctly when the selected cells are all one contiguous group, but if the user selects a group of cells, then holds down the control key and selects other cells that are not contiguous to the first set of cells, the Worksh... | [
{
"answer_id": 332750,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 2,
"selected": false,
"text": "\nfor i = 1 to selection.Areas.Count : debug.Print selection.areas(i).Address : next\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965047/"
] |
332,720 | <p>What replacements are available for pinging an ip address in Ruby? The stdlib "ping" library seems to be pretty limited in functionality. I'm not interested in rolling my own code here. Are there good gems available? Should I just suck it up and live with it?</p>
<p>(I'm coding in Ruby 1.8.6 on Linux)</p>
| [
{
"answer_id": 333305,
"author": "Gordon Wilson",
"author_id": 23071,
"author_profile": "https://Stackoverflow.com/users/23071",
"pm_score": 4,
"selected": true,
"text": "net-ping"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/757/"
] |
332,727 | <p>I'm using a UITableView to show some data from an array. This array can be changed at any time by other threads. (I believe that whether the array is mutable, or just replaced entirely, doesn't make a difference.) Access to the array itself is threadsafe.</p>
<p>What's the proper way to ensure thread safety with re... | [
{
"answer_id": 5683955,
"author": "Jon Shier",
"author_id": 272952,
"author_profile": "https://Stackoverflow.com/users/272952",
"pm_score": 2,
"selected": false,
"text": "dispatch_async(dispatch_get_main_queue(), ^{\n [array addObject:object];\n [tableView r... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/79/"
] |
332,734 | <p>The software base I am developing for uses a signficant amount of yacc which I don't need to deal with. Some times I think it would be helpful in understanding some problems I find but most of the time I can get away with my complete ignorance of yacc.</p>
<p>My question are there enough new projects out there that... | [
{
"answer_id": 332746,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 3,
"selected": false,
"text": "key=val"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42303/"
] |
332,738 | <p>I'm trying to write a simple ruby function that can prompt the user for a value and if the user presses ENTER by itself, then a default value is used.
In the following example, the first call to the Prompt function can be handled by pressing ENTER by itself and the default value will be used. However, the second tim... | [
{
"answer_id": 332921,
"author": "rampion",
"author_id": 9859,
"author_profile": "https://Stackoverflow.com/users/9859",
"pm_score": 0,
"selected": false,
"text": ":! ruby prompt.rb\nPrompt>(sdfsdf)\n\nsdfsdf\nPrompt>(default)\n\ndefault\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
332,757 | <p>I get a 404 response from .Net MVC when I try to make a request where my search term ends with a <code>.</code> (period). This is the route that I'm using:</p>
<pre><code>routes.MapRoute(
"Json",
"Remote.mvc/{action}/{searchTerm}/{count}",
new { controller="Remote", c... | [
{
"answer_id": 3542524,
"author": "bkaid",
"author_id": 265570,
"author_profile": "https://Stackoverflow.com/users/265570",
"pm_score": 3,
"selected": false,
"text": "<httpRuntime relaxedUrlToFileSystemMapping=\"true\" />\n"
},
{
"answer_id": 7598759,
"author": "Kosau",
"... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
332,758 | <p>I have a desktop application having heavyweight components (JxBrowser) in a JFrame. How can I make a snapshot from the GUI and save it to for example a png file? </p>
<p>Note: The method using Graphics2d and Component.paint()/paintAll()/print/printAll works only for lightweight components. </p>
<p>Any answers appr... | [
{
"answer_id": 332765,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 1,
"selected": false,
"text": "Point p = yourAwtComponent.getLocationOnScreen();\nint w = yourAwtComponent.getWidth();\nint h = yourAwtComponent.get... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19621/"
] |
332,766 | <p>Here's a code snippet. . .</p>
<pre><code><form name="FinalAccept" method="get"><br>
<input type="radio" name="YesNo" value="Yes" onclick="/accept"> Yes<br>
<input type="radio" name="YesNo" value="No" onclick="/accept"> No<br>
</code></pre>
<p>Clearly, what I'm trying to do is... | [
{
"answer_id": 332772,
"author": "BoltBait",
"author_id": 20848,
"author_profile": "https://Stackoverflow.com/users/20848",
"pm_score": 2,
"selected": false,
"text": "onclick=\"SomeJavaScriptCode\"\n"
},
{
"answer_id": 333304,
"author": "Benry",
"author_id": 28408,
"a... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1179/"
] |
332,767 | <p>I get this error when I do the make:</p>
<pre><code>relocation R_X86_64_32 against `vtable for Torch::MemoryDataSet' can not be used
when making a shared object; recompile with -fPIC
</code></pre>
<p>It says that I should recompile with the <code>-fPIC</code> option. I did that, adding
the <code>-fPIC</code> opt... | [
{
"answer_id": 14441697,
"author": "cmo",
"author_id": 1023645,
"author_profile": "https://Stackoverflow.com/users/1023645",
"pm_score": 3,
"selected": false,
"text": "CXX=g++\nCXXFLAGS= -O3 -Wall\n...\n... \n%.o: %.c\n $(CXX) $(CXXFLAGS) -fpic -c $< \n\nlibmylibrary.so: $... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39160/"
] |
332,781 | <p>okee, I followed all instructions I could find <a href="https://stackoverflow.com/questions/279170/utf-8-all-the-way-through">here</a>
and i could display all kinds of multilingual characters on my pages...<br>
The problem is in phpmyadmin the japanese characters are replaced by question marks, as in a bunch of <cod... | [
{
"answer_id": 332795,
"author": "Eran Galperin",
"author_id": 10585,
"author_profile": "https://Stackoverflow.com/users/10585",
"pm_score": -1,
"selected": false,
"text": "SET CHARACTER SET utf8;\nSET NAMES utf8;\n"
},
{
"answer_id": 6910102,
"author": "Community",
"auth... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24744/"
] |
332,788 | <p>How can I maintain the scroll position of a treeview control in .NET application? For example, I have a treeview control and go through a process of adding various nodes to it tacking them on to the bottom. During this process, I can scroll through the treeview and view different nodes. The problem is when the proce... | [
{
"answer_id": 332841,
"author": "Matt Hanson",
"author_id": 5473,
"author_profile": "https://Stackoverflow.com/users/5473",
"pm_score": 5,
"selected": true,
"text": "If treeNodeParent.IsExpanded = False Then\n Dim currentNode As TreeNode = TreeViewHosts.GetNodeAt(0, 0)\n treeNodeP... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5473/"
] |
332,792 | <p>I currently have two XSD schemes and one is a "light" version of the other. Right now I have everything in the "light" version repeated in the "complete" schema, but this becomes a pain when I need to make a change, and it goes against the DRY principle anyways, so I was wondering if there was an element that served... | [
{
"answer_id": 489385,
"author": "jdmichal",
"author_id": 12275,
"author_profile": "https://Stackoverflow.com/users/12275",
"pm_score": 7,
"selected": true,
"text": "<xsd:include schemaLocation=\"pathToFile\" />"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
332,794 | <p>I'm thinking about exploring the idea of having our client software run as a service on a high port and listen for simple http GET requests from 127.0.0.1. The theory is that I would be able to access this service via js from a web page that is served from my site.</p>
<p>1) User installs client software that inst... | [
{
"answer_id": 332944,
"author": "Kibbee",
"author_id": 1862,
"author_profile": "https://Stackoverflow.com/users/1862",
"pm_score": 1,
"selected": false,
"text": "<script>"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42317/"
] |
332,798 | <p>What is the equivalent of varchar(max) in MySQL?</p>
| [
{
"answer_id": 332805,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 9,
"selected": true,
"text": "VARCHAR(65535)\n"
},
{
"answer_id": 332894,
"author": "joshperry",
"author_id": 30587,
"author_prof... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2469/"
] |
332,803 | <p>The current guidlelines for explicit member implementation recommend:</p>
<ul>
<li>Using explicit members to approximate private interface implementations. <em>If you need to implement an interface for only infrastructure reasons and you <strong>never</strong> expect developers to directly call methods on that inte... | [
{
"answer_id": 332822,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": "public void IXmlSerializable.WriteXml( XmlWriter writer )\n{\n InternalWriteXml( writer );\n}\n\npublic void WriteTo... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2029/"
] |
332,809 | <p>I am trying to get a header that will work with Apache, IIS 6, and IIS 7. I won't go into the reason for that here. Let's just say that it's not as easy as I thought it would be :-)</p>
<p>Anyway, the problem has something to do with NPH. In our code (originally written for IIS 6) we have</p>
<pre><code>use CGI... | [
{
"answer_id": 332929,
"author": "Frew Schmidt",
"author_id": 12448,
"author_profile": "https://Stackoverflow.com/users/12448",
"pm_score": 1,
"selected": true,
"text": "sub header {\n return (($ENV{PERLXS})?\"HTTP/1.0 200 OK\\r\\n\":\"\").CGI->header(@_);\n}\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12448/"
] |
332,810 | <p>when I apply the tag above my methods I get the error </p>
<blockquote>
<p>Type System.Runtime.CompilerServices.Extension is not defined.</p>
</blockquote>
<p>Here is my sample</p>
<pre><code><System.Runtime.CompilerServices.Extension()> _
Public Sub test()
End Sub
</code></pre>
<p>Where am I goin... | [
{
"answer_id": 332966,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 1,
"selected": false,
"text": "Imports System.Runtime.CompilerServices\n\n<Extension()> _\nPublic Sub Test(ByVal Value As String)\n\nEnd Sub\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23667/"
] |
332,833 | <p>I'm doing this system <a href="http://stacked.ra-ajax.org/" rel="nofollow noreferrer">Stacked</a> and I am creating the search function. And in that process it occurs to me that <em>maybe</em> AR/nHibernate Expression.Like (and siblings) might maybe not be 100% "safe" in that you can create stuff like;
"\r\ndrop dat... | [
{
"answer_id": 332915,
"author": "Sean Carpenter",
"author_id": 729,
"author_profile": "https://Stackoverflow.com/users/729",
"pm_score": 3,
"selected": true,
"text": "sp_executesql 'select blah from table where column = @p1', '@p1 varchar(10)', @p1 = 'drop database xxx;---'"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29746/"
] |
332,849 | <p>How can I parse integers passed to an application as command line arguments if the app is unicode?</p>
<p>Unicode apps have a main like this:</p>
<pre><code>int _tmain(int argc, _TCHAR* argv[])
</code></pre>
<p>argv[?] is a wchar_t*. That means i can't use atoi. How can I convert it to an integer? Is stringstream... | [
{
"answer_id": 332900,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "std::basic_istringstream"
},
{
"answer_id": 332905,
"author": "Adam Pierce",
"author_id": 53... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78828/"
] |
332,852 | <p>So I am currently learning C++ and decided to make a program that tests my skills I have learned so far. Now in my code I want to check if the value that the user enters is a double, if it is not a double I will put a if loop and ask them to reenter it. The problem I have is how do I go about checking what type of v... | [
{
"answer_id": 332886,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": false,
"text": "std::istringstream"
},
{
"answer_id": 332898,
"author": "maccullt",
"author_id": 4945,
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/265448/"
] |
332,859 | <p>Is it possible to have a WPF window/element detect the drag'n'dropping of a file from windows explorer in C# .Net 3.5? I've found solutions for WinForms, but none for WPF.</p>
| [
{
"answer_id": 332913,
"author": "NoizWaves",
"author_id": 38438,
"author_profile": "https://Stackoverflow.com/users/38438",
"pm_score": 2,
"selected": false,
"text": "private void btnFindType_Drop(object sender, DragEventArgs e)\n{\n if (e.Data is System.Windows.DataObject &&\n ((Sy... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38438/"
] |
332,862 | <p>When in release it crashes with an unhandled exception: std::length error.</p>
<p>The call stack looks like this:</p>
<pre><code>msvcr90.dll!__set_flsgetvalue() Line 256 + 0xc bytes C
msvcr90.dll!__set_flsgetvalue() Line 256 + 0xc bytes C
msvcr90.dll!_getptd_noexit() Line 616 + 0x7 bytes C
msvcr90.dll!_get... | [
{
"answer_id": 333161,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 2,
"selected": false,
"text": "CGAL::Random::Random"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78828/"
] |
332,864 | <p>In another question on SO I answered with code like the one below and got a comment that the LINQ-query probably was evaluated in every iteration of the for/each. Is that true?</p>
<p>I know that LINQ-querys does not executes before its items is evaluated so it seems possible that this way to iterate the result can... | [
{
"answer_id": 332919,
"author": "Timothy Khouri",
"author_id": 11917,
"author_profile": "https://Stackoverflow.com/users/11917",
"pm_score": 4,
"selected": true,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace ConsoleApplication1\n{\n class ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19307/"
] |
332,871 | <p>this c# code is probably not the most efficient but gets what I want done. </p>
<p>How do I accomplish the same thing in F# code?</p>
<pre><code> string xml = " <EmailList> " +
" <Email>test@email.com</Email> " +
" <Email>test2@email.com</Email... | [
{
"answer_id": 332912,
"author": "Cory Foy",
"author_id": 4083,
"author_profile": "https://Stackoverflow.com/users/4083",
"pm_score": 1,
"selected": false,
"text": "\nList<string> EmailAddresses(string xml)\n{\n XmlDocument xdoc = new XmlDocument();\n XmlNodeList nodeList;\n Str... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/72123/"
] |
332,872 | <p>How do you safely encode a URL using JavaScript such that it can be put into a GET string?</p>
<pre><code>var myUrl = "http://example.com/index.html?param=1&anotherParam=2";
var myOtherUrl = "http://example.com/index.html?url=" + myUrl;
</code></pre>
<p>I assume that you need to encode the <code>myUrl</code> v... | [
{
"answer_id": 332888,
"author": "Buu",
"author_id": 17815,
"author_profile": "https://Stackoverflow.com/users/17815",
"pm_score": 13,
"selected": true,
"text": "var myOtherUrl = \n \"http://example.com/index.html?url=\" + encodeURIComponent(myUrl);\n"
},
{
"answer_id": 332... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
332,874 | <p>What is the purpose of the LongLength property for arrays in .Net. Using a standard integer for length, you could accommodate up to 2 billion indices. Are there really people using .Net to maintain a single array with more the 2 billion elements. Even if each element was a single byte, that would still be 2 GB of... | [
{
"answer_id": 333090,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 3,
"selected": false,
"text": " 17,179,869,184 bytes of the\n18,446,744,073,709,551,616 bytes of 64-bit address space available.\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1862/"
] |
332,908 | <p>I'm administering a svn repo for a project where the source wasn't imported with a single top level directory. As a result, there are about 15 separate 'projects' instead of one. How can I merge these into one folder while maintaining the change history?</p>
<p>*hint: svn move doesn't work in this case.</p>
<p>[ed... | [
{
"answer_id": 332950,
"author": "Stewart Johnson",
"author_id": 6408,
"author_profile": "https://Stackoverflow.com/users/6408",
"pm_score": 0,
"selected": false,
"text": "svn propedit svn:externals top_dir"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2567/"
] |
332,920 | <p>In java, there's three levels of access:</p>
<ul>
<li>Public - Open to the world</li>
<li>Private - Open only to the class </li>
<li>Protected - Open only to the class and its subclasses (inheritance).</li>
</ul>
<p>So why does the java compiler allow this to happen?</p>
<p>TestBlah.java:</p>
<pre><code>public c... | [
{
"answer_id": 332933,
"author": "Lawrence Dol",
"author_id": 8946,
"author_profile": "https://Stackoverflow.com/users/8946",
"pm_score": 4,
"selected": false,
"text": "protected"
},
{
"answer_id": 332942,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profil... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20526/"
] |
332,930 | <p>I'm looking for something like: </p>
<pre><code>svnserve stop
</code></pre>
| [
{
"answer_id": 332940,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 6,
"selected": true,
"text": "kill"
},
{
"answer_id": 24862405,
"author": "JoDev",
"author_id": 2111078,
"author_profile": "htt... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3966/"
] |
332,936 | <p>I recently signed up to shared web hosting with godaddy using Linux and PHP 5. I want to work with multiple RSS feeds. I previously had this all functioning under Apache, however, the host supplied the PEAR installation. Now I have to do this myself and I am in unfamiliar territory.I installed PEAR PHP and managed... | [
{
"answer_id": 334094,
"author": "Pawka",
"author_id": 33599,
"author_profile": "https://Stackoverflow.com/users/33599",
"pm_score": 0,
"selected": false,
"text": "get_include_path()"
},
{
"answer_id": 334972,
"author": "David",
"author_id": 9908,
"author_profile": "h... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
332,948 | <p>I'm perplexed. At CodeRage today, Marco Cantu said that CharInSet was slow and I should try a Case statement instead. I did so in my parser and then checked with AQTime what the speedup was. I found the Case statement to be much slower.</p>
<p>4,894,539 executions of:</p>
<blockquote>
<p>while not CharInSet (P^,... | [
{
"answer_id": 332975,
"author": "Barry Kelly",
"author_id": 3712,
"author_profile": "https://Stackoverflow.com/users/3712",
"pm_score": 6,
"selected": true,
"text": "case"
},
{
"answer_id": 333502,
"author": "PatrickvL",
"author_id": 12170,
"author_profile": "https:/... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30176/"
] |
332,952 | <p>I have been noticing some very strange usage of O(1) in discussion of algorithms involving hashing and types of search, often in the context of using a dictionary type provided by the language system, or using dictionary or hash-array types used using array-index notation.</p>
<p>Basically, O(1) means bounded by a ... | [
{
"answer_id": 333011,
"author": "coobird",
"author_id": 17172,
"author_profile": "https://Stackoverflow.com/users/17172",
"pm_score": 3,
"selected": false,
"text": "(key, value)"
},
{
"answer_id": 333106,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profil... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33810/"
] |
332,955 | <p>As part of our unit tests, we restore a blank database when the tests start . The unit tests then perform their tests by calling web services (hosted in the Visual Studio ASP.NET host). </p>
<p>This works fine for us the first time the unit tests are run, however if they are re-run without restarting the web servic... | [
{
"answer_id": 333290,
"author": "Joe",
"author_id": 13087,
"author_profile": "https://Stackoverflow.com/users/13087",
"pm_score": 3,
"selected": true,
"text": "static void Main(string[] args)\n{ \n DoDBStuff(); \n new Server(\"localhost\").KillAllProcesses(\"Test\");\n Sq... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10784/"
] |
332,972 | <p>I have Visual Studio 2008 with SP1 installed and it is crashing when I'm using lambda expressions in the Moq Framework.</p>
<p>At first I thought the problem was Resharper...but now that I have uninstalled it, VS 2008 still crashes. I'm able to replicate the issue every time.</p>
<p>I'm thinking perhaps it may be ... | [
{
"answer_id": 333514,
"author": "Arnout",
"author_id": 3496,
"author_profile": "https://Stackoverflow.com/users/3496",
"pm_score": 6,
"selected": true,
"text": "devenv.exe"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39532/"
] |
332,973 | <p>Any idea on how to check whether that list is a subset of another?</p>
<p>Specifically, I have</p>
<pre><code>List<double> t1 = new List<double> { 1, 3, 5 };
List<double> t2 = new List<double> { 1, 5 };
</code></pre>
<p>How to check that t2 is a subset of t1, using LINQ?</p>
| [
{
"answer_id": 332979,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": -1,
"selected": false,
"text": "static bool IsSubSet<A>(A[] set, A[] toCheck) {\n return set.Length == (toCheck.Intersect(set)).Count();\n}\n"
},
{... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
332,984 | <p>how do i get a list of user that have completed or not completed or not responded to a survey. </p>
<p>so i have a survey, lets say "survey A". in this survey i have a list of people or groups that must fill the survey. sharepoint already gives us a list of respondents, but i want to make a list of people that have... | [
{
"answer_id": 332979,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": -1,
"selected": false,
"text": "static bool IsSubSet<A>(A[] set, A[] toCheck) {\n return set.Length == (toCheck.Intersect(set)).Count();\n}\n"
},
{... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23491/"
] |
332,985 | <p>Trying to build a dashboard using Oracle's Brio. I have to access 6 different databases to grab the same type of data, aggregate it and display it. Except that when I do it, Brio grabs the data from the first source just fine. When I grab the data from the second data source, Brio replaces the original data with ... | [
{
"answer_id": 332979,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": -1,
"selected": false,
"text": "static bool IsSubSet<A>(A[] set, A[] toCheck) {\n return set.Length == (toCheck.Intersect(set)).Count();\n}\n"
},
{... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
332,988 | <p>By default, IIS6 does not serve .json (no wildcard <code>MIME</code> type).</p>
<p>Therefore a 404 not found is thrown. I then add a new MIME type <code>(.json, text/plain or application/x-javascript or application/json)</code> which works fine.</p>
<p>However, when you then add a new mapping <code>(Home Directory... | [
{
"answer_id": 1121114,
"author": "Evan Anderson",
"author_id": 40764,
"author_profile": "https://Stackoverflow.com/users/40764",
"pm_score": 7,
"selected": false,
"text": "open feature"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
332,992 | <p>I'm working on a site now that have to fetch users feeds. But how can I best optimize fetching if I have a database with, lets say, 300 feeds. I'm going to set up a cron-job to which fetches the feeds, but should I do it like 5 every second minute or something? </p>
<p>Any ideas on how to do this the best way in PH... | [
{
"answer_id": 333080,
"author": "puzz",
"author_id": 11148,
"author_profile": "https://Stackoverflow.com/users/11148",
"pm_score": 2,
"selected": false,
"text": " public function updateRefreshInterval() {\n $sql = 'select count(*) _count ' .\n 'from arti... | 2008/12/02 | [
"https://Stackoverflow.com/questions/332992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38254/"
] |
332,995 | <p>On Windows I can do <code>CreateProcess(..., CREATE_NEW_CONSOLE, ...)</code> and my child process (which is console app, not GUI) will be launched in a new window. What is the easiest way to emulate this on Mac OS?</p>
| [
{
"answer_id": 333167,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"author_profile": "https://Stackoverflow.com/users/2509",
"pm_score": 4,
"selected": true,
"text": "open -a Terminal.app $(which program)"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/332995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
333,029 | <p>I'll phrase this in the form of an example to make it more clear.</p>
<p>Say I have a vector of animals and I want to go through the array and see if the elements are either dogs or cats?</p>
<pre><code>class Dog: public Animal{/*...*/};
class Cat: public Animal{/*...*/};
int main()
{
vector<Animal*> stuff;... | [
{
"answer_id": 333036,
"author": "Jesse Beder",
"author_id": 112,
"author_profile": "https://Stackoverflow.com/users/112",
"pm_score": 2,
"selected": false,
"text": "dynamic_cast"
},
{
"answer_id": 333045,
"author": "coppro",
"author_id": 16855,
"author_profile": "htt... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39189/"
] |
333,033 | <p>I was thinking it would be nice to create a base class for NUnit test fixtures that opens a TransactionScope during the SetUp phase, then rolls back the transaction during tear down.
Something like this:</p>
<pre><code> public abstract class TestFixtureBase
{
private TransactionScope _transaction;
[Test... | [
{
"answer_id": 333048,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "[TestSetup]\npublic void Setup()\n{\n foreach (string table in new string[] { \"table1\", \"table2\" })\n {\n ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21966/"
] |
333,043 | <p>Can you tell me how can I use threads in C++ programs, and how can I compile it as it will be multithreaded? Can you tell me some good site where I can start from root?</p>
<p>Thanks</p>
| [
{
"answer_id": 333204,
"author": "caglarozdag",
"author_id": 39473,
"author_profile": "https://Stackoverflow.com/users/39473",
"pm_score": 1,
"selected": false,
"text": "void main() \n{\n CThread t1(ChildThread1, ACTIVE, NULL) ; \n . . . \n t1.WaitForThread() ; ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41522/"
] |
333,056 | <p>I have around 8-9 parameters to pass in a function which returns an array. I would like to know that its better to pass those parameters directly in the function or pass an array instead? Which will be a better way and why?</p>
| [
{
"answer_id": 333061,
"author": "Dave Markle",
"author_id": 24995,
"author_profile": "https://Stackoverflow.com/users/24995",
"pm_score": 3,
"selected": false,
"text": "Array FireEmployee(string first, string middle, string last, int id) {...}\n"
},
{
"answer_id": 333062,
"a... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29515/"
] |
333,072 | <h2>Backstory</h2>
<p>I'm on Rails 2.1 and need to freeze the Capistrano gem to my vendor folder (as my host has broken their cap gem dependencies and I want to make myself as independent as possible).</p>
<p>On my local windows machine I've put the following my environment.rb</p>
<pre><code>config.gem "capistrano",... | [
{
"answer_id": 333279,
"author": "Gordon Wilson",
"author_id": 23071,
"author_profile": "https://Stackoverflow.com/users/23071",
"pm_score": 3,
"selected": true,
"text": "cap"
},
{
"answer_id": 642292,
"author": "nitecoder",
"author_id": 60145,
"author_profile": "http... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16779/"
] |
333,086 | <p>I have a page which work like a navigation and a iframe in this page which show the content. </p>
<p>Now there are some situation when the inner page is directly shown in the browser.
eg: if somebody types the inner page's url in the browser address bar, the page is displayed in the window. </p>
<p>I want to prev... | [
{
"answer_id": 333115,
"author": "Ape-inago",
"author_id": 42082,
"author_profile": "https://Stackoverflow.com/users/42082",
"pm_score": 2,
"selected": false,
"text": "<script language=\"Javascript\"><!-- \nif (top.location == self.location) { \n top.location = \"index.html\" // must be... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41968/"
] |
333,089 | <p>I have a goal to build an application with UI that would run on both Windows Mobile and "normal" desktop Windows. The priority is for it to "look good" under Windows Mobile, and for desktop Windows it is OK if it distorted. Before I invest days trying, I would like to hear if that is possible to begin with. There ar... | [
{
"answer_id": 333101,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "<ItemGroup>\n <Compile Include=\"..\\protobuf-net\\**\\*.cs\" />\n</ItemGroup>\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2877/"
] |
333,130 | <p>So I have a client who's current host does not allow me to use tar via exec()/passthru()/ect and I need to backup the site periodicly and programmaticly so is there a solution?</p>
<p>This is a linux server.</p>
| [
{
"answer_id": 333140,
"author": "UnkwnTech",
"author_id": 115,
"author_profile": "https://Stackoverflow.com/users/115",
"pm_score": 4,
"selected": true,
"text": "<?php\nrequire 'Archive/Tar.php';\n$obj = new Archive_Tar('archive.tar');\n$path = '/path/to/folder/';\n$handle=opendir($path... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
333,141 | <p>I have a master page with a search box and button at the top. This search functionality is taking over the "enter" key for all my web forms that use this master page. That is, if I have a login page that uses this master page and the user enters in their username/password and hits "enter", instead of logging in th... | [
{
"answer_id": 333172,
"author": "Ramesh Soni",
"author_id": 191,
"author_profile": "https://Stackoverflow.com/users/191",
"pm_score": 2,
"selected": false,
"text": "<form defaultbutton=“button1” runat=“server”> \n <asp:button id=“button1” text=“Same Page” runat=“server”/> \n ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
333,146 | <p>I would like to know how to setup an SVN repository with LDAP authentication.
I do not want to use Apache DAV though.</p>
| [
{
"answer_id": 5899198,
"author": "Mark",
"author_id": 740094,
"author_profile": "https://Stackoverflow.com/users/740094",
"pm_score": 3,
"selected": false,
"text": "/opt/CollabNet_Subversion/bin/Configure-CollabNet-Subversion"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35392/"
] |
333,151 | <p>You can do it in .NET by using the keyword "ref". Is there any way to do so in Java?</p>
| [
{
"answer_id": 333166,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 3,
"selected": false,
"text": "class Counter\n{\n private int m_count = 0;\n public override string ToString()\n {\n return String.Format(\"Counter I... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36816/"
] |
333,159 | <p>I have a solution of mixed VB.NET and C++ projects. When using Visual Studio 2005 you can set the "Tools->Option->Projects and Solutions->VC++ Directories" to help the compiler find your include files. When building the same solution with MSBuild I don't see how to pass these settings. The C++ won't compile without ... | [
{
"answer_id": 333195,
"author": "Paulius",
"author_id": 1353085,
"author_profile": "https://Stackoverflow.com/users/1353085",
"pm_score": 5,
"selected": true,
"text": "set INCLUDE=C:\\Libraries\\LibA\\Include\nset LIB=C:\\Libraries\\LibA\\Lib\\x86\n"
},
{
"answer_id": 4193355,
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1363/"
] |
333,163 | <p>I get this error:</p>
<p>System.Reflection.TargetException: Object does not match target type.</p>
<p>when trying to bind a <code>List<IEvent></code> where an IEvent can be an appointment, a birthday, or a few other calendar related event types.</p>
| [
{
"answer_id": 333321,
"author": "Valentin V",
"author_id": 430254,
"author_profile": "https://Stackoverflow.com/users/430254",
"pm_score": 2,
"selected": false,
"text": " public class Event\n {\n public DateTime StartDate { get; set; }\n }\n publ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1220/"
] |
333,169 | <p>I am using CODBCRecordset (a class found on CodeProject) to find a single record in a table with 39 columns. If no record is found then the call to CRecordset::Open is fine. If a record matches the conditions then I get an Out of Memory exception when CRecordset::Open is called. I am selecting all the columns in the... | [
{
"answer_id": 333200,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 2,
"selected": false,
"text": "CDatabase db;\ndb.Open (NULL,FALSE,FALSE,\"ODBC;\",TRUE);\nCODBCRecordSet rs (&db);\nrs.Open (\"select blah, blah, blah ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42357/"
] |
333,171 | <p>I would like to be able to show a non-modal form in an already existing application. At the moment I can do something like:</p>
<pre><code>myform.ShowDialog(handleToApp);
</code></pre>
<p>but that will create a modal form parented to the application and what I'm really looking for something that isn't modal so wh... | [
{
"answer_id": 333210,
"author": "Rad",
"author_id": 1349,
"author_profile": "https://Stackoverflow.com/users/1349",
"pm_score": -1,
"selected": false,
"text": "myForm.Show()"
},
{
"answer_id": 339689,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https:... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
333,175 | <p>My program will take arbitrary strings from the internet and use them for file names. Is there a simple way to remove the bad characters from these strings or do I need to write a custom function for this?</p>
| [
{
"answer_id": 333268,
"author": "Jonathan Allen",
"author_id": 5274,
"author_profile": "https://Stackoverflow.com/users/5274",
"pm_score": 9,
"selected": true,
"text": "foreach (var c in Path.GetInvalidFileNameChars()) \n{ \n fileName = fileName.Replace(c, '-'); \n}\n"
},
{
"an... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13877/"
] |
333,181 | <p>I have 3 tables in database shown below. And I want to make a report just like shown link below. How can I do it with datagrid or datalist? Which one is the best chois? I have tried to do it for a week. </p>
<p><img src="https://i.stack.imgur.com/uZtmk.jpg" alt="http://img123.imageshack.us/my.php?image=61519307xx5.... | [
{
"answer_id": 333203,
"author": "BenAlabaster",
"author_id": 40650,
"author_profile": "https://Stackoverflow.com/users/40650",
"pm_score": 2,
"selected": false,
"text": "http://www.tsqltutorials.com/pivot.php\n"
},
{
"answer_id": 333208,
"author": "Samiksha",
"author_id"... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/439507/"
] |
333,185 | <p>I'm trying to figure out if Haskell uses dynamic or static scoping.
I realize that, for example, if you define:</p>
<pre><code>let x = 10
</code></pre>
<p>then define the function</p>
<pre><code>let square x = x*x
</code></pre>
<p>You have 2 different "x's", and does that mean it is dynamically scoped? If not, ... | [
{
"answer_id": 333189,
"author": "olliej",
"author_id": 784,
"author_profile": "https://Stackoverflow.com/users/784",
"pm_score": 4,
"selected": false,
"text": "x = 10\n"
},
{
"answer_id": 333219,
"author": "igorgue",
"author_id": 29253,
"author_profile": "https://Sta... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83819/"
] |
333,221 | <p>Is there a widely accepted class for dealing with URLs in PHP?</p>
<p>Things like: getting/changing parts of an existing URL (e.g. path, scheme, etc), resolving relative paths from a base URL. Kind of like a two-way <a href="http://php.net/parse_url" rel="nofollow noreferrer">parse_url()</a>, encapsulated with a b... | [
{
"answer_id": 333223,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "$url =& new URL('http://www.domain.com/path/file.php?query=blah');\necho $url->get_scheme(),\"\\n\"; // http\necho $url->get... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
333,242 | <p>I was thinking about making something like Linq for Lua, and I have a general idea how Linq works, but was wondering if there was a good article or if someone could explain how C# makes Linq possible</p>
<p>Note: I mean behind the scenes, like how it generates code bindings and all that, not end user syntax.</p>
| [
{
"answer_id": 333254,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "IEnumerable<T>"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
333,249 | <p>What is the XPath expression that I would use to get the string following 'HarryPotter:' for each book.</p>
<p>ie. Given this XML:</p>
<pre><code><bookstore>
<book>
HarryPotter:Chamber of Secrets
</book>
<book>
HarryPotter:Prisoners in Azkabahn
</book>
</bookstore>
</code>... | [
{
"answer_id": 333265,
"author": "BenAlabaster",
"author_id": 40650,
"author_profile": "https://Stackoverflow.com/users/40650",
"pm_score": 3,
"selected": false,
"text": " Dim xml = <bookstore>\n <book>HarryPotter:Chamber of Secrets</book>\n <book>Har... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
333,260 | <p>We have a PageRoles xml file which contains the page path and the user role that can access that page.</p>
<p>We are maintaining a Dictionary in a static class, which gets loaded int static constructor for the class.
The class has a method CheckIfRoleAllowed that takes in a page path and returns a bool.</p>
<p>Eac... | [
{
"answer_id": 333263,
"author": "Serge Wautier",
"author_id": 12379,
"author_profile": "https://Stackoverflow.com/users/12379",
"pm_score": 3,
"selected": true,
"text": "PageAccessChecker.CheckIfRoleAllowed(path);\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21586/"
] |
333,264 | <p>i want to get an ending html tag like <code></EM></code> only if somewhere before it i.e. before any previous tags or text there is no starting <code><EM></code> tag my sample string is </p>
<pre><code>ddd d<STRONG>dfdsdsd dsdsddd<EM>ss</EM>r and</EM>and strong</STRONG>
</c... | [
{
"answer_id": 333276,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "(?<!<EM>[^<]+)</EM>\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40570/"
] |
333,285 | <p>I'm writing a little arcade-like game in C++ (a multidirectional 2d space shooter) and I'm finishing up the collision detection part.</p>
<p>Here's how I organized it (I just made it up so it might be a shitty system):</p>
<p>Every ship is composed of circular components - the amount of components in each ship is ... | [
{
"answer_id": 333334,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "vector"
},
{
"answer_id": 335976,
"author": "Mr.Ree",
"author_id": 37946,
"author_profile": "http... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39189/"
] |
333,287 | <p>Tried something like this:</p>
<pre><code>HttpApplication app = s as HttpApplication; //s is sender of the OnBeginRequest event
System.Web.UI.Page p = (System.Web.UI.Page)app.Context.Handler;
System.Web.UI.WebControls.Label lbl = new System.Web.UI.WebControls.Label();
lbl.Text = "TEST TEST TEST";
p.Controls.Add(lbl... | [
{
"answer_id": 333439,
"author": "Rune Grimstad",
"author_id": 30366,
"author_profile": "https://Stackoverflow.com/users/30366",
"pm_score": 0,
"selected": false,
"text": "string requestPath = HttpContext.Current.Request.Url.AbsolutePath;\nstring extension = System.IO.Path.GetExtension(r... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42108/"
] |
333,291 | <p>I read <a href="https://stackoverflow.com/questions/218123/what-was-the-strangest-coding-standard-rule-that-you-were-forced-to-follow#220591">this answer</a> and its comments and I'm curious: Are there any reasons for not using <code>this</code> / <code>Self</code> / <code>Me</code> ?</p>
<p>BTW: I'm sorry if this ... | [
{
"answer_id": 333300,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 1,
"selected": false,
"text": "this."
},
{
"answer_id": 333310,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://S... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23368/"
] |
333,294 | <p>I'm in a basic programming class, and everything is done in pseudo code.</p>
<p>My question is this: How do you link two arrays? </p>
<p>I have a single-dimensional array that lists students names, and I have a two-dimensional array that lists the top eight scores of each student...this is all fine and dandy, but... | [
{
"answer_id": 333307,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 0,
"selected": false,
"text": "public class Record\n{\n public string Student;\n public int[] Scores;\n} \n"
},
{
"answer_id": 333368,... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42370/"
] |
333,315 | <p>Looking for a column formatting script, I have a feeling this could be a one line awk. Ideally, a small shell script is all I am after.</p>
<p>The data is tab separated, each cell in each row is of variable length, and of course, may have spaces in it.</p>
<p>So we have something like this</p>
<pre>
dasj dhsa... | [
{
"answer_id": 333345,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 1,
"selected": false,
"text": "#!/usr/bin/perl -w\n\nuse strict;\n\nmy (@data, @length);\nwhile (<>) {\n chomp;\n my @line = split(/\\t/);\n forea... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
333,317 | <p>My Java application is saving stuff in 'user.home' but on windows this does not seem to be the correct path to save application information (as a friend told me). An other option is using the preferences api but it's not possible to set up the hsqldb location using the preferences api. Also, I want all files to be a... | [
{
"answer_id": 333500,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 3,
"selected": true,
"text": "C:\\Documents and settings\\<username>"
},
{
"answer_id": 4026581,
"author": "orcus",
"author_id": 487945,
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42198/"
] |
333,328 | <p>I'm using caml query to select all documents which were modified or added by user. Query runs recursively on all subsites of specified site collection.</p>
<p>Now problem is I can't get rid of folders which are also part of result set. For now I'm filtering them from result datatable. But I'm wondering: Is it possi... | [
{
"answer_id": 333586,
"author": "Marian Polacek",
"author_id": 41545,
"author_profile": "https://Stackoverflow.com/users/41545",
"pm_score": 4,
"selected": false,
"text": "<Neq><FieldRef Name='ContentType' /><Value Type='Text'>Folder</Value></Neq>"
},
{
"answer_id": 1373910,
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41545/"
] |
333,329 | <p>I'm trying to make a pull down menu post a form when the user selects (releases the mouse) on one of the options from the menu. This code works fine in FF but Safari, for some reason, doesn't submit the form. I re-wrote the code using jquery to see if jquery's .submit() implementation handled the browser quirks be... | [
{
"answer_id": 333337,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "onchange"
},
{
"answer_id": 333347,
"author": "netadictos",
"author_id": 31791,
"author_profile": "https:... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27462/"
] |
333,340 | <p>Let's say I have a search page called Search.aspx that takes a search string as a url parameter ala Google (e.g. Search.aspx?q=This+is+my+search+string).</p>
<p>Currently, I have an asp:TextBox and an asp:Button on my page. I'm handling the button's OnClick event and redirecting in the codebehind file to Search.as... | [
{
"answer_id": 333642,
"author": "mapache",
"author_id": 41422,
"author_profile": "https://Stackoverflow.com/users/41422",
"pm_score": 0,
"selected": false,
"text": "Search <input type=\"text\" id=\"go\" size=\"4\" /><input type=\"button\" value=\"<%=Html.Encode(\">>\") %>\" onclick=\"ja... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
333,346 | <p>I have this code inside a class that is used by an application and by an applet.</p>
<pre><code>static
{
if (System.getProperty("os.name").startsWith("Windows"))
{
System.loadLibrary("extmapi");
}
}
</code></pre>
<p>Unfortunately, when the applet loads this code I get an error, because it can't... | [
{
"answer_id": 333642,
"author": "mapache",
"author_id": 41422,
"author_profile": "https://Stackoverflow.com/users/41422",
"pm_score": 0,
"selected": false,
"text": "Search <input type=\"text\" id=\"go\" size=\"4\" /><input type=\"button\" value=\"<%=Html.Encode(\">>\") %>\" onclick=\"ja... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15173/"
] |
333,363 | <p>I need to read a properties files that's buried in my package structure in <code>com.al.common.email.templates</code>.</p>
<p>I've tried everything and I can't figure it out.</p>
<p>In the end, my code will be running in a servlet container, but I don't want to depend on the container for anything. I write JUnit t... | [
{
"answer_id": 333385,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 9,
"selected": true,
"text": "com.al.common.email.templates"
},
{
"answer_id": 333389,
"author": "Chris Kimpton",
"author_id": 4831... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42375/"
] |
333,364 | <p>I have an interface method</p>
<pre><code> public void Execute(ICommand command);
</code></pre>
<p>which needs to pass known subtypes of <code>ICommand</code> to an apropriate <code>Handle(SpecificCommand command)</code> method implementation and do some generic handling of unknown types. I am looking for a unive... | [
{
"answer_id": 333377,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 3,
"selected": false,
"text": "Handle(command)"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3205/"
] |
333,391 | <p>I need to know how I can detect the current application pool I am running under, so I can do a Recycle on it programmatically.</p>
<p>Does anyone know how to do this for IIS6?</p>
<p>My current code for recycling the app-pool is:</p>
<pre><code> /// <summary>
/// Recycle an application pool
/// &... | [
{
"answer_id": 333475,
"author": "Wolf5",
"author_id": 37643,
"author_profile": "https://Stackoverflow.com/users/37643",
"pm_score": 4,
"selected": true,
"text": " public string GetAppPoolName() {\n\n string AppPath = Context.Request.ServerVariables[\"APPL_MD_PATH\"];\n\n ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37643/"
] |
333,400 | <p>In my application, there are 10-20 classes that are instantiated once[*]. Here's an example:</p>
<pre><code>class SomeOtherManager;
class SomeManagerClass {
public:
SomeManagerClass(SomeOtherManager*);
virtual void someMethod1();
virtual void someMethod2();
};
</code></pre>
<p>Instances of the classes... | [
{
"answer_id": 333442,
"author": "boutta",
"author_id": 15108,
"author_profile": "https://Stackoverflow.com/users/15108",
"pm_score": 1,
"selected": false,
"text": "class Manager { // aka Interface\n public: virtual void someMethod() = 0;\n};\n\nclass Manager1 : public Manager {\n ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33982/"
] |
333,431 | <p>How would you model these relationships in a db?</p>
<p>You have a Page entity that can contain PageElements.</p>
<p>A PageElement can for instance be an Article, or a Picture. An Article table obviously has other members / columns than a Picture. An article could have ie. "Title", "Lead", "Body" columns that are ... | [
{
"answer_id": 333444,
"author": "Vilx-",
"author_id": 41360,
"author_profile": "https://Stackoverflow.com/users/41360",
"pm_score": 0,
"selected": false,
"text": "PageElementType: ID, Name, [Mumbo Jumbo]\nPageElementTypeParameter: ID, PageElementTypeID, [Mumbo Jumbo]\nPage: ID, [Mumbo J... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13466/"
] |
333,435 | <p>I have an application where I open a log file for writing. At some point in time (while the application is running), I opened the file with Excel 2003, which said the file should be opened as read-only. That's OK with me.</p>
<p>But then my application threw this exception:</p>
<blockquote>
<p>System.IO.IOExcept... | [
{
"answer_id": 333569,
"author": "Ramesh Soni",
"author_id": 191,
"author_profile": "https://Stackoverflow.com/users/191",
"pm_score": 1,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing System.IO;\n\nnamespace Owf.Logger\n{\n pub... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41283/"
] |
333,441 | <p>I'm trying to add a label to my toolbar. Button works great, however when I add the label object, it crashes. Any ideas?</p>
<pre><code>UIBarButtonItem *setDateRangeButton = [[UIBarButtonItem alloc] initWithTitle:@"Set date range"
style:UIBarBut... | [
{
"answer_id": 333509,
"author": "adam",
"author_id": 33604,
"author_profile": "https://Stackoverflow.com/users/33604",
"pm_score": 8,
"selected": true,
"text": "[[UIBarButtonItem alloc] initWithCustomView:yourCustomView];\n"
},
{
"answer_id": 523003,
"author": "Alasdair Alla... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
333,443 | <p>I'm a C programmer trying to understand C++. Many tutorials demonstrate object instantiation using a snippet such as:</p>
<pre><code>Dog* sparky = new Dog();
</code></pre>
<p>which implies that later on you'll do:</p>
<pre><code>delete sparky;
</code></pre>
<p>which makes sense. Now, in the case when dynamic m... | [
{
"answer_id": 333541,
"author": "jalf",
"author_id": 33213,
"author_profile": "https://Stackoverflow.com/users/33213",
"pm_score": 8,
"selected": true,
"text": "std::unique_ptr"
},
{
"answer_id": 334752,
"author": "Mark Ransom",
"author_id": 5987,
"author_profile": "... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42387/"
] |
333,462 | <p>I'm struggling here with a problem:
I have a controller <em>questions</em> which has action <em>new</em>.
Whenever I need to create new question, I'm typing </p>
<pre><code>/questions/new
</code></pre>
<p>What changes to routes.rb should I make to change the URI to </p>
<pre><code>/questions/ask
</code></pre>
<h... | [
{
"answer_id": 333570,
"author": "Christian Lescuyer",
"author_id": 341,
"author_profile": "https://Stackoverflow.com/users/341",
"pm_score": 4,
"selected": true,
"text": "map.ask_question '/questions/ask', :controller => 'questions', :action => 'new'\n"
},
{
"answer_id": 50409... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/430254/"
] |
333,463 | <p>I know that XSLT does not work in procedural terms, but unfortunately I have been doing procedural languages for too long. Can anyone help me out by explaining in simple terms how things like apply-templates works and help a thicko like me to understand it.</p>
| [
{
"answer_id": 333480,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 3,
"selected": false,
"text": "xsl:for-each"
},
{
"answer_id": 333912,
"author": "Tomalak",
"author_id": 18771,
"author_profile": ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/274/"
] |
333,484 | <p>I have a GridView control on my page that I have defined a number of BoundFields for. Each row of the databound GridView has a CommandField (Select), for which I want to send the PostBack to a new page.</p>
<p>Of course I could easily send the NewSelectedIndex in a QueryString, but I'd rather keep that information... | [
{
"answer_id": 333862,
"author": "Sergiu Damian",
"author_id": 41345,
"author_profile": "https://Stackoverflow.com/users/41345",
"pm_score": 0,
"selected": false,
"text": "<asp:HyperLinkField AccessibleHeaderText=\"Edit\" DataNavigateUrlFields=\"ActivityId\" DataNavigateUrlFormatString=\... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15609/"
] |
333,487 | <p>I've made this decorator, which results in an infinite redirect loop.</p>
<p>The problem is this: </p>
<pre><code>args[0].redirect(users.create_login_url(args[0].request.path))
</code></pre>
<p>It appears to be a perfectly valid URL. So why wouldn't it properly redirect?</p>
<pre><code>def admin_only(handler, *a... | [
{
"answer_id": 333658,
"author": "taleinat",
"author_id": 40076,
"author_profile": "https://Stackoverflow.com/users/40076",
"pm_score": 3,
"selected": true,
"text": "def redirect_to_login(*args, **kwargs):\n return args[0].redirect(users.create_login_url(args[0].request.path))\n\ndef ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9106/"
] |
333,499 | <p>I'm just talking about JavaScript here, not CSS or implementation of the DOM.</p>
<p>I know getters and setters are now available in the latest release of all major browsers except IE. What other JavaScript features are available cross-browser if we have the latest versions of the other browsers and forget about IE... | [
{
"answer_id": 333631,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 2,
"selected": false,
"text": "canvas"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37196/"
] |
333,508 | <p>By default, when you <code>sudo gem install thegemname</code> it will install executables into <code>/usr/bin/</code></p>
<p>Is there a way to change this? For example, to install them into <code>/usr/local/rubygems/bin</code> (or any other path)?</p>
<p>The path doesn't seem to be hard-coded into the gemspec file... | [
{
"answer_id": 333519,
"author": "csl",
"author_id": 21028,
"author_profile": "https://Stackoverflow.com/users/21028",
"pm_score": 5,
"selected": true,
"text": "~/.gemrc"
},
{
"answer_id": 333639,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackover... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
333,517 | <p>I want to implement an application (scholar exercise) over the AdventureWorks database. I have downloaded the diagram. Is there a less formal description of the database?</p>
<p>Thanks,
Lucian</p>
| [
{
"answer_id": 333519,
"author": "csl",
"author_id": 21028,
"author_profile": "https://Stackoverflow.com/users/21028",
"pm_score": 5,
"selected": true,
"text": "~/.gemrc"
},
{
"answer_id": 333639,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackover... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11464/"
] |
333,518 | <p>In (Visual Basic, .NET):</p>
<pre><code> Dim result As Match = Regex.Match(aStr, aMatchStr)
If result.Success Then
Dim result0 As String = result.Groups(0).Value
Dim result1 As String = result.Groups(1).Value
End If
</code></pre>
<p>With: aStr equal to (whitespace is normal space and there are sev... | [
{
"answer_id": 333539,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "Does \"AMEVDIEERPK + 7 Oxidation (M)\" match \"\\s*(\\d*).*?Oxidation\\s+(M)\"? Yes.. stop matching.\n"
},
{
"answer... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
333,529 | <p>I would like to migrate from Oracle to MySQL, and one of the important steps is to replace the actual job built on an Oracle environment.</p>
<p>Basically, every day I receive some 'oracle' dump files from another Oracle environment (mainly CTL or Oracle table exports). Today my Oracle jobs loaded the received data... | [
{
"answer_id": 333539,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "Does \"AMEVDIEERPK + 7 Oxidation (M)\" match \"\\s*(\\d*).*?Oxidation\\s+(M)\"? Yes.. stop matching.\n"
},
{
"answer... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
333,532 | <p>I need to make an AJAX request from a website to a REST web service hosted in another domain.</p>
<p>Although this is works just fine in Internet Explorer, other browsers such as Mozilla and Google Chrome impose far stricter security restrictions, which prohibit cross-site AJAX requests.</p>
<p>The problem is that... | [
{
"answer_id": 333770,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 2,
"selected": false,
"text": "function ajaxWorkaroung() {\n var frm = gewtElementById(\"myIFrame\")\n frm.src = \"http://some_other_domain\"\n}\nfunc... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26396/"
] |
333,537 | <p>Is there any way to generate Excel/CSV through Javascript?
(It should be browser compaatible too)</p>
| [
{
"answer_id": 14846061,
"author": "digitaleagle",
"author_id": 920136,
"author_profile": "https://Stackoverflow.com/users/920136",
"pm_score": 5,
"selected": false,
"text": "var csv = \"\";\n$(\"table\").find(\"tr\").each(function () {\n var sep = \"\";\n $(this).find(\"input\").e... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21988/"
] |
333,557 | <p>If host my WCF services in IIS7 or WPAS, is it possible to load up two or more services into the same AppDomain so that they can share static variables?</p>
| [
{
"answer_id": 2706099,
"author": "Thomas",
"author_id": 198643,
"author_profile": "https://Stackoverflow.com/users/198643",
"pm_score": 2,
"selected": false,
"text": "namespace ServiceInterface\n{\n [ServiceContract]\n public interface IClass\n {\n [OperationContract]\n ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16387/"
] |
333,563 | <p>I can go to a specific line number by double clicking in the status bar in Visual Studio. Is there a keyboard shortcut that does the same thing?</p>
| [
{
"answer_id": 333567,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 4,
"selected": false,
"text": "Edit.GoTo"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1853/"
] |
333,571 | <p>I have an ASP.NET web application which does the following:</p>
<ol>
<li>Reads an Excel file.</li>
<li>The excel file will have an image URL located in it that points to somewhere on the internet.</li>
<li>The program reads each image URL and store it into a temporary folder in the web server.</li>
<li>The applicat... | [
{
"answer_id": 333592,
"author": "Vincent Van Den Berghe",
"author_id": 39259,
"author_profile": "https://Stackoverflow.com/users/39259",
"pm_score": 2,
"selected": false,
"text": "OK"
},
{
"answer_id": 339440,
"author": "MatthewMartin",
"author_id": 33264,
"author_pr... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] |
333,589 | <p>I've got some C# code that resizes images that I think is pretty typical:</p>
<pre><code>Bitmap bmp = new Bitmap(image, new Size(width, height));
Graphics graphics = Graphics.FromImage(bmp);
graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
graphics.CompositingQuality = CompositingQuality.HighQuali... | [
{
"answer_id": 333608,
"author": "martinlund",
"author_id": 1808,
"author_profile": "https://Stackoverflow.com/users/1808",
"pm_score": 0,
"selected": false,
"text": "ImageCodecInfo[] codecs=ImageCodecInfo.GetImageEncoders();\nImageCodecInfo codec = null;\nfor (int i = 0; i<codecs.Length... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3187/"
] |
333,593 | <p>If I would write:</p>
<pre>
int selectedChannels = selector.select();
Set selectedKeys = selector.selectedKeys();
if ( selectedChannels != selectedKeys.size() ) {
// Selector.select() returned because of a call to Selector.wakeup()
// so do synchronization.
}
// Continue with handling selected channels.
</p... | [
{
"answer_id": 333752,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 0,
"selected": false,
"text": "volatile"
},
{
"answer_id": 334717,
"author": "Greg Case",
"author_id": 462,
"author_profi... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
333,595 | <p>How to include COM components on a published .Net site?</p>
| [
{
"answer_id": 333878,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "<object/>"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29515/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.