qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
72,209 | <p>Is there a performance hit if we use a loop instead of recursion or vice versa in algorithms where both can serve the same purpose? Eg: Check if the given string is a palindrome.
I have seen many programmers using recursion as a means to show off when a simple iteration algorithm can fit the bill.
Does the compiler ... | [
{
"answer_id": 72803,
"author": "noah",
"author_id": 12034,
"author_profile": "https://Stackoverflow.com/users/12034",
"pm_score": 1,
"selected": false,
"text": "int count(int i) {\n return i >= 100000000 ? i : count(i+1);\n}\n"
},
{
"answer_id": 278563,
"author": "Brad Gilb... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11193/"
] |
72,220 | <p>I'm a Java-developer toying with Ruby, and loving it. I have understood that because of Ruby's metaprogramming facilities my unit-tests become much cleaner and I don't need nasty mocking frameworks. I have a class which needs the <code>File</code> class's services and in my test I don't want to touch my real filesys... | [
{
"answer_id": 72248,
"author": "Brian Phillips",
"author_id": 7230,
"author_profile": "https://Stackoverflow.com/users/7230",
"pm_score": 4,
"selected": false,
"text": "\nrequire 'mocha'\n\nmock_file_obj = mock(\"My Mock File\") do\n stubs(:some_instance_method).returns(\"foo\")\nend\n... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4110/"
] |
72,237 | <p>I recently came across an issue with Windows 2003 (apparently it also exists in other versions too), where if an SSL/TLS server is requesting client certificate authentication and it has more than 16KB of trusted certificate DNs, Internet Explorer (or any other app that uses schannel.dll) is unable to complete the S... | [
{
"answer_id": 189109,
"author": "Seth",
"author_id": 20503,
"author_profile": "https://Stackoverflow.com/users/20503",
"pm_score": 0,
"selected": false,
"text": " 0:d=0 hl=4 l= 621 cons: SEQUENCE\n 4:d=1 hl=4 l= 470 cons: SEQUENCE\n 8:d=2 hl=2 l= 3 cons: cont [ 0 ]\n ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12204/"
] |
72,242 | <p>The page <em><a href="http://www.codinghorror.com/blog/archives/001167.html" rel="noreferrer">Protecting Your Cookies: HttpOnly</a></em> explains why making HttpOnly cookies is a good idea.</p>
<p>How do I set this property in Ruby on Rails?</p>
| [
{
"answer_id": 4470104,
"author": "jim",
"author_id": 468629,
"author_profile": "https://Stackoverflow.com/users/468629",
"pm_score": 4,
"selected": false,
"text": ":http_only :httponly :http_only"
},
{
"answer_id": 40474742,
"author": "ilgam",
"author_id": 3834822,
"... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7473/"
] |
72,264 | <p>I have a Windows C# program that uses a C++ dll for data i/o. My goal is to deploy the application as a single EXE. </p>
<p>What are the steps to create such an executable?</p>
| [
{
"answer_id": 72296,
"author": "Nick",
"author_id": 1490,
"author_profile": "https://Stackoverflow.com/users/1490",
"pm_score": 5,
"selected": true,
"text": "namespace MyLib\n{\n public class MyClass\n {\n static MyClass()\n {\n ResourceExtractor.ExtractRe... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12113/"
] |
72,271 | <p>What is the reason for the following warning in some C++ compilers?</p>
<blockquote>
<p>No newline at end of file</p>
</blockquote>
<p>Why should I have an empty line at the end of a source/header file?</p>
| [
{
"answer_id": 72391,
"author": "moonshadow",
"author_id": 11834,
"author_profile": "https://Stackoverflow.com/users/11834",
"pm_score": 3,
"selected": false,
"text": "#include #include"
},
{
"answer_id": 72409,
"author": "TJ Seabrooks",
"author_id": 3022,
"author_pro... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
72,275 | <p>Can anyone provide a good explanation of the volatile keyword in C#? Which problems does it solve and which it doesn't? In which cases will it save me the use of locking?</p>
| [
{
"answer_id": 72328,
"author": "Joseph Daigle",
"author_id": 507,
"author_profile": "https://Stackoverflow.com/users/507",
"pm_score": 4,
"selected": false,
"text": "volatile"
},
{
"answer_id": 73076,
"author": "Skizz",
"author_id": 1898,
"author_profile": "https://S... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3389/"
] |
72,281 | <p>Receiving the following error when attempting to run a CLR stored proc. Any help is much appreciated.</p>
<pre><code>Msg 10314, Level 16, State 11, Line 1
An error occurred in the Microsoft .NET Framework while trying to load assembly id 65752. The server may be running out of resources, or the assembly may not be ... | [
{
"answer_id": 72463,
"author": "homeskillet",
"author_id": 3400,
"author_profile": "https://Stackoverflow.com/users/3400",
"pm_score": 6,
"selected": false,
"text": "USE database_name\nGO\n\nEXEC sp_changedbowner 'sa'\nALTER DATABASE database_name SET TRUSTWORTHY ON \n"
},
{
"an... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3400/"
] |
72,298 | <p>Visual Studio solutions contain two types of hidden user files. One is the solution <code>.suo</code> file which is a binary file. The other is the project <code>.user</code> file which is a text file. Exactly what data do these files contain?</p>
<p>I've also been wondering whether I should add these files to sour... | [
{
"answer_id": 84115,
"author": "JXG",
"author_id": 15456,
"author_profile": "https://Stackoverflow.com/users/15456",
"pm_score": 6,
"selected": false,
"text": "*.suo *.user svn:ignore"
},
{
"answer_id": 51533299,
"author": "adheen",
"author_id": 1320144,
"author_prof... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/203/"
] |
72,304 | <p>I'd like to add the <code>HttpOnly</code> flag to <code>JSF/richfaces</code> cookies, especially the session cookie, to up the level of security on my web app. Any ideas? </p>
| [
{
"answer_id": 72371,
"author": "Mo.",
"author_id": 1870,
"author_profile": "https://Stackoverflow.com/users/1870",
"pm_score": 0,
"selected": false,
"text": "response.setHeader(\"Set-Cookie\", \"yourcookiename=yourcookievalue; HTTPOnly\");\n"
},
{
"answer_id": 75371,
"author... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4893/"
] |
72,312 | <p>PERL? Perl? perl? What's good style?</p>
<p>I know the answer—I just wanted to make sure the question was out there and questioners were aware that there is a correct form.</p>
| [
{
"answer_id": 736455,
"author": "Peter Krumins",
"author_id": 80237,
"author_profile": "https://Stackoverflow.com/users/80237",
"pm_score": 1,
"selected": false,
"text": "perl"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/72312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/423836/"
] |
72,358 | <p>I am using Tomcat as a server and Internet Explorer 6 as a browser. A web page in our app has about 75 images. We are using SSL. It seems to be very slow at loading all the content. How can I configure Tomcat so that IE caches the images?</p>
| [
{
"answer_id": 83182,
"author": "Dave Cheney",
"author_id": 6449,
"author_profile": "https://Stackoverflow.com/users/6449",
"pm_score": 4,
"selected": true,
"text": "<Location /images>\n FileEtag none\n ExpiresActive on\n ExpiresDefault \"access plus 1 month\"\n</Location>\n SetEnv... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2959/"
] |
72,360 | <p>here is what a I'm doing: </p>
<pre><code>object ReturnMatch(System.Type type)
{
foreach(object obj in myObjects)
{
if (obj == type)
{
return obj;
}
}
}
</code></pre>
<p>However, if obj is a subclass of <code>type</code>, it will not match. But I w... | [
{
"answer_id": 72384,
"author": "Thunder3",
"author_id": 2832,
"author_profile": "https://Stackoverflow.com/users/2832",
"pm_score": 2,
"selected": false,
"text": "type.IsAssignableFrom(obj.GetType())\n"
},
{
"answer_id": 72407,
"author": "TK.",
"author_id": 1816,
"au... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10833/"
] |
72,381 | <p>I'm trying to use the following code but it's returning the wrong day of month.</p>
<pre><code>Calendar cal = Calendar.getInstance();
cal.setTime(sampleDay.getTime());
cal.set(Calendar.MONTH, sampleDay.get(Calendar.MONTH)+1);
cal.set(Calendar.DAY_OF_MONTH, 0);
return cal.getTime();
</code></pre>
| [
{
"answer_id": 72438,
"author": "Argelbargel",
"author_id": 2992,
"author_profile": "https://Stackoverflow.com/users/2992",
"pm_score": 5,
"selected": true,
"text": "\nCalendar cal = Calendar.getInstance();\ncal.setTime(sampleDay.getTime());\nint noOfLastDay = cal.getActualMaximum(Calend... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
72,393 | <p>A tutorial I have on Regex in python explains how to use the re module in python, I wanted to grab the URL out of an A tag so knowing Regex I wrote the correct expression and tested it in my regex testing app of choice and ensured it worked. When placed into python it failed:</p>
<pre><code>result = re.match("a... | [
{
"answer_id": 72449,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "re.match() re.search() re.match() ^ re.search() ^"
},
{
"answer_id": 72501,
"author": "Aaron Maenpaa",
"author_... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
72,410 | <p>How should I store (and present) the text on a website intended for worldwide use, with several languages? The content is mostly in the form of 500+ word articles, although I will need to translate tiny snippets of text on each page too (such as "print this article" or "back to menu").</p>
<p>I know there are sever... | [
{
"answer_id": 120364,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 4,
"selected": true,
"text": "<%$ Resources: LanguageProvider, Path/To/Localisation %>\n <globalization resourceProviderFactoryType=\"FactoryClassName, Assembl... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11461/"
] |
72,442 | <p>I have a nullable property, and I want to return a null value. How do I do that in VB.NET ?</p>
<p>Currently I use this solution, but I think there might be a better way.</p>
<pre><code> Public Shared ReadOnly Property rubrique_id() As Nullable(Of Integer)
Get
If Current.Request.QueryString(... | [
{
"answer_id": 78272,
"author": "gregmac",
"author_id": 7913,
"author_profile": "https://Stackoverflow.com/users/7913",
"pm_score": 1,
"selected": false,
"text": "Public Shared ReadOnly Property rubrique_id() As Nullable(Of Integer)\n Get\n If Current.Request.QueryString(\"rid\... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6776/"
] |
72,458 | <p><strong>Problem</strong></p>
<p>I need to redirect some short convenience URLs to longer actual URLs. The site in question uses a set of subdomains to identify a set of development or live versions.</p>
<p>I would like the URL to which certain requests are redirected to include the HTTP_HOST such that I don't have... | [
{
"answer_id": 72530,
"author": "Nicholas",
"author_id": 8054,
"author_profile": "https://Stackoverflow.com/users/8054",
"pm_score": -1,
"selected": false,
"text": "RewriteCond %{HTTP_HOST} ^www\\.domain\\.com$ [NC]\nRewriteRule ^(.*)$ http://www.domain2.com/$1\n"
},
{
"answer_id... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5343/"
] |
72,479 | <p>Can anyone tell me what exactly does this Java code do?</p>
<pre><code>SecureRandom random = SecureRandom.getInstance("SHA1PRNG");
byte[] bytes = new byte[20];
synchronized (random)
{
random.nextBytes(bytes);
}
return Base64.encode(bytes);
</code></pre>
<hr>
<p>Step by step explanation will be useful so that... | [
{
"answer_id": 72588,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 1,
"selected": false,
"text": "SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\");\nbyte[] bytes = new byte[20];\nsynchronized (random) { ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12178/"
] |
72,482 | <p>Is it possible in a large GWT project, load some portion of JavaScript lazy, on the fly?
Like overlays. </p>
<p>PS: Iframes is not a solution.</p>
| [
{
"answer_id": 76295,
"author": "Grant Wagner",
"author_id": 9254,
"author_profile": "https://Stackoverflow.com/users/9254",
"pm_score": 0,
"selected": false,
"text": "<body onload=\"onloadHandler();\">\n<script type=\"text/javascript\">\nfunction onloadHandler() {\n if (document.crea... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12259/"
] |
72,515 | <p>I have a Windows application that uses a .NET PropertyGrid control. Is it possible to change the type of control that is used for the value field of a property?</p>
<p>I would like to be able to use a RichTextBox to allow better formatting of the input value.
Can this be done without creating a custom editor class... | [
{
"answer_id": 72651,
"author": "Phil Wright",
"author_id": 6276,
"author_profile": "https://Stackoverflow.com/users/6276",
"pm_score": 3,
"selected": true,
"text": "[Editor(typeof(MultilineStringEditor), typeof(UITypeEditor))]\npublic override string Text\n{\n get { return _string; }... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2533/"
] |
72,528 | <p>How would you create a database in Microsoft Access that is searchable only by certain fields and controlled by only a few (necessary) text boxes and check boxes on a form so it is easy to use - no difficult queries?</p>
<p>Example:
You have several text boxes and several corresponding check boxes on a form, and w... | [
{
"answer_id": 72798,
"author": "Philippe Grondier",
"author_id": 11436,
"author_profile": "https://Stackoverflow.com/users/11436",
"pm_score": 1,
"selected": false,
"text": "*cable* *cable*"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/72528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
72,537 | <p>In a SharePoint list I want an auto number column that as I add to the list gets incremented. How best can I go about this?</p>
| [
{
"answer_id": 73422,
"author": "dariom",
"author_id": 12389,
"author_profile": "https://Stackoverflow.com/users/12389",
"pm_score": 3,
"selected": false,
"text": "<FieldType> <FieldType> =\"CUST\" & [ID]"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/72537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12318/"
] |
72,552 | <p>What does the <code>volatile</code> keyword do? In C++ what problem does it solve?</p>
<p>In my case, I have never knowingly needed it.</p>
| [
{
"answer_id": 72576,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 7,
"selected": false,
"text": "volatile volatile"
},
{
"answer_id": 72617,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "htt... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2167252/"
] |
72,556 | <p>I am playing with Microsoft's TreeView control and I am trying to force a data update of some sorts while editing a node's label, similar to UpdateData for a grid.</p>
<p>Basically, in my editor, I have a Save button and this TreeView control: what I want is when I am editing a node's label in the TreeView, if I cl... | [
{
"answer_id": 72576,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 7,
"selected": false,
"text": "volatile volatile"
},
{
"answer_id": 72617,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "htt... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12333/"
] |
72,562 | <p>Is there a good way to find out which exceptions a procedure/function can raise in Delphi (including it's called procedures/functions)? </p>
<p>In Java you always have to declare which exceptions that can be thrown, but this is not the case in Delphi, which could lead to unhandled exceptions. </p>
<p>Are there any... | [
{
"answer_id": 72709,
"author": "Lars Fosdal",
"author_id": 10002,
"author_profile": "https://Stackoverflow.com/users/10002",
"pm_score": 2,
"selected": false,
"text": "try\n ThisFunctionMayFail;\nexcept\n // but it sure won't crash the application\n on e:exception\n do begin\n //... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11300/"
] |
72,564 | <p>I'm kind of interested in getting some feedback about this technique I picked up from somewhere.</p>
<p>I use this when a function can either succeed or fail, but you'd like to get more information about why it failed. A standard way to do this same thing would be with exception handling, but I often find it a bit ... | [
{
"answer_id": 72661,
"author": "Argelbargel",
"author_id": 2992,
"author_profile": "https://Stackoverflow.com/users/2992",
"pm_score": -1,
"selected": false,
"text": "class Result\n{\n var $_result;\n var $_errormsg;\n\n function Result($res, $error)\n {\n $this->_resu... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
72,568 | <p>What's the best and/or fastest method of doing multijoin queries in Django using the ORM and QuerySet API? </p>
| [
{
"answer_id": 73349,
"author": "Aaron",
"author_id": 11176,
"author_profile": "https://Stackoverflow.com/users/11176",
"pm_score": 2,
"selected": false,
"text": "class Foo(models.Model):\n name = models.CharField(max_length=255)\n\nclass FizzBuzz(models.Model):\n bleh = models.Cha... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
72,573 | <p>Can you use CMFCVisualManager with a dialog based application to change the applications appearance? If so how is it done?</p>
<p>The idea is to change the shape, colour etc. of controls such as push buttons using the MFC Feature Pack released with MSVC 2008.</p>
| [
{
"answer_id": 93554,
"author": "djeidot",
"author_id": 4880,
"author_profile": "https://Stackoverflow.com/users/4880",
"pm_score": 0,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestV... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12346/"
] |
72,580 | <p>I have an app that I've written in C#/WinForms (<a href="http://www.thekbase.com" rel="nofollow noreferrer" title="TheKBase">my little app</a>). To make it cross-platform, I'm thinking of redoing it in Adobe AIR. Are there any arguments in favor of WinForms as a cross-platform app? Is there a cross-platform future f... | [
{
"answer_id": 72632,
"author": "Paul van Brenk",
"author_id": 1837197,
"author_profile": "https://Stackoverflow.com/users/1837197",
"pm_score": 0,
"selected": false,
"text": "</speculation>\n"
},
{
"answer_id": 72633,
"author": "chakrit",
"author_id": 3055,
"author_p... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8047/"
] |
72,616 | <p>I've got a C++ program that uses SQLite. I want to store the SQL queries in a separate file -- a plain-text file, <em>not</em> a source code file -- but embed that file in the executable file like a resource.</p>
<p>(This has to run on Linux, so I can't store it as an actual resource as far as I know, though that w... | [
{
"answer_id": 72692,
"author": "vava",
"author_id": 6258,
"author_profile": "https://Stackoverflow.com/users/6258",
"pm_score": 2,
"selected": false,
"text": "//queries.incl - SQL queries\nQ(SELECT * FROM Users)\nQ(INSERT [a] INTO Accounts)\n\n\n//source.cpp\n#define Q(query) #query,\nc... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12193/"
] |
72,671 | <p>I need to create a batch file which starts multiple console applications in a Windows .cmd file. This can be done using the start command.</p>
<p>However, the command has a path in it. I also need to pass paramaters which have spaces as well. How to do this?</p>
<p>E.g. batch file</p>
<pre><code>start "c:\path... | [
{
"answer_id": 72758,
"author": "Steffen",
"author_id": 6919,
"author_profile": "https://Stackoverflow.com/users/6919",
"pm_score": 4,
"selected": false,
"text": "start \"Dummy Title\" \"c:\\path with spaces\\app.exe\" param1 \"param with spaces\"\n"
},
{
"answer_id": 72796,
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
72,672 | <p>Has anyone written an 'UnFormat' routine for Delphi?</p>
<p>What I'm imagining is the <em>inverse</em> of <em>SysUtils.Format</em> and looks something like this </p>
<p>UnFormat('a number %n and another %n',[float1, float2]); </p>
<p>So you could unpack a string into a series of variables using format strings.<... | [
{
"answer_id": 72713,
"author": "PatrickvL",
"author_id": 12170,
"author_profile": "https://Stackoverflow.com/users/12170",
"pm_score": 5,
"selected": true,
"text": "function ScanFormat(const Input, Format: string; Args: array of Pointer): Integer;\nvar\n InputOffset: Integer;\n Format... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12376/"
] |
72,677 | <p>Imagine I have String in C#: "I Don’t see ya.."</p>
<p>I want to remove (replace to nothing or etc.) these "’" symbols. </p>
<p>How do I do this?</p>
| [
{
"answer_id": 72759,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "\"I Don’t see ya..\".Replace( \"’\", string.Empty);\n"
},
{
"answer_id": 72770,
"author": "Phil Wrigh... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5369/"
] |
72,682 | <p>Let me start by saying that I do not advocate this approach, but I saw it recently and I was wondering if there was a name for it I could use to point the guilty party to. So here goes.</p>
<p>Now you have a method, and you want to return a value. You <em>also</em> want to return an error code. Of course, except... | [
{
"answer_id": 72846,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "FunctionResult Nullable Nullable NumberType.TryParse out"
},
{
"answer_id": 73016,
"author": "Paul van Bre... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3043/"
] |
72,696 | <p>I have some code like this:</p>
<pre><code>If key.Equals("search", StringComparison.OrdinalIgnoreCase) Then
DoSomething()
End If
</code></pre>
<p>I don't care about the case. Should I use <code>OrdinalIgnoreCase</code>, <code>InvariantCultureIgnoreCase</code>, or <code>CurrentCultureIgnoreCase</code>?</p>
| [
{
"answer_id": 72766,
"author": "Robert Taylor",
"author_id": 6375,
"author_profile": "https://Stackoverflow.com/users/6375",
"pm_score": 9,
"selected": true,
"text": "InvariantCulture String StringComparison.Ordinal StringComparison.OrdinalIgnoreCase StringComparison strcmp"
},
{
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7072/"
] |
72,699 | <p>For example which is better:</p>
<pre><code>select * from t1, t2 where t1.country='US' and t2.country=t1.country and t1.id=t2.id
</code></pre>
<p>or</p>
<pre><code>select * from t1, t2 where t1.country'US' and t2.country='US' and t1.id=t2.id
</code></pre>
<p>better as in less work for the database, faster result... | [
{
"answer_id": 73890,
"author": "Jeremiah Peschka",
"author_id": 11780,
"author_profile": "https://Stackoverflow.com/users/11780",
"pm_score": 0,
"selected": false,
"text": "SELECT *\n FROM t1\n JOIN t2 ON t1.id = t2.id AND t1.country = t2.country\n WHERE t1.country = 'US'\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/72699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12386/"
] |
72,723 | <p>I have a svn repository, R, that depends on a library, l, in another repository.</p>
<p>The goal is that when someone checks out R, they also check out l. We want l to still be in its own repository so that l can be updated without dependence on R.</p>
<p>I don't know much about external svn links, but I believe t... | [
{
"answer_id": 72925,
"author": "jtimberman",
"author_id": 7672,
"author_profile": "https://Stackoverflow.com/users/7672",
"pm_score": 2,
"selected": false,
"text": "#!/bin/sh\nsvn co path://server/R svn-R\ngit clone path://server/l git-l\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/72723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
72,768 | <p>I'm trying to figure out how to detect the type of credit card based purely on its number. Does anyone know of a definitive, reliable way to find this?</p>
| [
{
"answer_id": 72801,
"author": "senfo",
"author_id": 10792,
"author_profile": "https://Stackoverflow.com/users/10792",
"pm_score": 11,
"selected": true,
"text": "^4[0-9]{6,}$ ^5[1-5][0-9]{5,}|222[1-9][0-9]{3,}|22[3-9][0-9]{4,}|2[3-6][0-9]{5,}|27[01][0-9]{4,}|2720[0-9]{3,}$ ^3[47][0-9]{5... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12382/"
] |
72,769 | <p>Problem (simplified to make things clearer):</p>
<ul>
1. there is one statically-linked static.lib that has a function that increments:
<pre><code>
extern int CallCount = 0;
int TheFunction()
{
void *p = &CallCount;
printf("Function called");
return CallCount++;
}
</code></p... | [
{
"answer_id": 157738,
"author": "Lou Franco",
"author_id": 3937,
"author_profile": "https://Stackoverflow.com/users/3937",
"pm_score": 0,
"selected": false,
"text": "class CallCountHolder {\n public:\n CallCountHolder(int i) : count(i) {}\n int count;\n};\n\nstatic CallCountHo... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2341/"
] |
72,789 | <p>I'd like to use a different icon for the demo version of my game, and I'm building the demo with a different build config than I do for the full verison, using a preprocessor define to lockout some content, use different graphics, etc. Is there a way that I can make Visual Studio use a different icon for the app Ic... | [
{
"answer_id": 72877,
"author": "Serge",
"author_id": 1007,
"author_profile": "https://Stackoverflow.com/users/1007",
"pm_score": 4,
"selected": true,
"text": "#ifdef _DEMO_VERSION_\nIDR_MAINFRAME ICON \"demo.ico\"\n#else\nIDR_MAINFRAME ICON \"full.ico\"\n#endif\n"
},
{
"answer_i... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12117/"
] |
72,829 | <p>Can anyone recommend a good (preferably open source) tool for creating WSDL files for some soap web services?</p>
<p>I've tried playing around with some of the eclipse plug ins available and was less than impressed with what I found.</p>
| [
{
"answer_id": 73251,
"author": "Michael Sharek",
"author_id": 1958,
"author_profile": "https://Stackoverflow.com/users/1958",
"pm_score": 3,
"selected": false,
"text": "http://localhost/axis/{yourservice}?WSDL"
},
{
"answer_id": 570900,
"author": "John Greeley",
"author_... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2246765/"
] |
72,831 | <p>Is there an easy way to capitalize the first letter of a string and lower the rest of it? Is there a built in method or do I need to make my own?</p>
| [
{
"answer_id": 72862,
"author": "ageektrapped",
"author_id": 631,
"author_profile": "https://Stackoverflow.com/users/631",
"pm_score": 9,
"selected": true,
"text": "TextInfo.ToTitleCase() ToLower() string s = \"JOHN DOE\";\ns = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(s.ToLower())... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9938/"
] |
72,852 | <p>Imagine this directory structure:</p>
<pre><code>app/
__init__.py
sub1/
__init__.py
mod1.py
sub2/
__init__.py
mod2.py
</code></pre>
<p>I'm coding <code>mod1</code>, and I need to import something from <code>mod2</code>. How should I do it? </p>
<p>I tried <code>from ..sub2 import... | [
{
"answer_id": 465129,
"author": "nosklo",
"author_id": 17160,
"author_profile": "https://Stackoverflow.com/users/17160",
"pm_score": 7,
"selected": false,
"text": "main.py\nsetup.py\napp/ ->\n __init__.py\n package_a/ ->\n __init__.py\n module_a.py\n package_b/ ->\n... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3497/"
] |
72,899 | <p>How do I sort a list of dictionaries by a specific key's value? Given:</p>
<pre><code>[{'name': 'Homer', 'age': 39}, {'name': 'Bart', 'age': 10}]
</code></pre>
<p>When sorted by <code>name</code>, it should become:</p>
<pre><code>[{'name': 'Bart', 'age': 10}, {'name': 'Homer', 'age': 39}]
</code></pre>
| [
{
"answer_id": 73019,
"author": "Bartosz Radaczyński",
"author_id": 985,
"author_profile": "https://Stackoverflow.com/users/985",
"pm_score": 5,
"selected": false,
"text": "[{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]\n sorted(l,cmp=lambda x,y: cmp(x['name'],y['name']))\n"
}... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12398/"
] |
72,913 | <p>If I have an IEnumerator variable is it possible to have a lambda function that takes it, advances it with MoveNext() and returns the Current value every single time its called?</p>
| [
{
"answer_id": 72963,
"author": "Abe Heidebrecht",
"author_id": 9268,
"author_profile": "https://Stackoverflow.com/users/9268",
"pm_score": 1,
"selected": false,
"text": "Func<IEnumerator, object> f = ie => { ie.MoveNext(); return ie.Current; };\n"
},
{
"answer_id": 73007,
"a... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
72,921 | <p>I am just starting to learn javascript, so I don't have the skills to figure out what I assume is a trivial problem.</p>
<p>I'm working with a Wordpress blog that serves as a FAQ for our community and I am trying to pull together some tools to make managing the comments easier. <a href="https://stackoverflow.com/u... | [
{
"answer_id": 73031,
"author": "jtimberman",
"author_id": 7672,
"author_profile": "https://Stackoverflow.com/users/7672",
"pm_score": 1,
"selected": false,
"text": "/\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b/\n/^([1-9][0-9]{0,2})+\\.([1-9][0-9]{0,2})+\\.([1-9][0-9]{0,2})+\\.([1-9]... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12419/"
] |
72,931 | <p>C++ just sucks too much of my time by making me micro-manage my own memory, making me type far too much (hello <code>std::vector<Thingy>::const_iterator it = lotsOfThingys.begin()</code>), and boring me with long compile times. What's the single best alternative for serious real-time graphics programming? Ga... | [
{
"answer_id": 75555,
"author": "Dima",
"author_id": 13313,
"author_profile": "https://Stackoverflow.com/users/13313",
"pm_score": 4,
"selected": false,
"text": "std::vector::const_iterator it = lotsOfThingys.begin()) \nusing namespace std;\ntypedef vector::const_iterator ThingyConstIter... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9631/"
] |
72,945 | <p>Using Django's built in models, how would one create a triple-join between three models.</p>
<p>For example:</p>
<ul>
<li>Users, Roles, and Events are the models.</li>
<li>Users have many Roles, and Roles many Users. (ManyToMany)</li>
<li>Events have many Users, and Users many Events. (ManyToMany)</li>
<li>But fo... | [
{
"answer_id": 73153,
"author": "Eli Courtwright",
"author_id": 1694,
"author_profile": "https://Stackoverflow.com/users/1694",
"pm_score": 2,
"selected": false,
"text": "class Assignment(Model):\n user = ForeignKey(User)\n role = ForeignKey(Role)\n event = ForeignKey(Event)\n u... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8507/"
] |
72,958 | <p>I am trying to program a small server+client in Javascript on Firefox, using XPCOM.</p>
<p>To get the HTTP message in Javascript, I am using the nsIScriptableInputStream interface.
This f**ing component through the read() method randomly cut the message and I cannot make it reliable.</p>
<p>Is anybody know a solut... | [
{
"answer_id": 73939,
"author": "Chouser",
"author_id": 7624,
"author_profile": "https://Stackoverflow.com/users/7624",
"pm_score": 0,
"selected": false,
"text": "receiveMsg({type:\"text\", content:\"this is my message\"});\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/72958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
72,961 | <p>So our SQL Server 2000 is giving me the error, "The log file for database is full. Back up the transaction log for the database to free up some log space."</p>
<p>How do I go about fixing this without deleting the log like some other sites have mentioned?</p>
<p>Additional Info: Enable AutoGrowth is enabled growi... | [
{
"answer_id": 73074,
"author": "TrevorD",
"author_id": 12492,
"author_profile": "https://Stackoverflow.com/users/12492",
"pm_score": 4,
"selected": false,
"text": "backup log <dbname> with truncate_only \n backup log <dbname> to disk='c:\\somefile.bak'\n"
},
{
"answer_id": 7313... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2863/"
] |
72,994 | <p>I want to simulate a 'Web 2.0' Lightbox style UI technique in a <a href="http://en.wikipedia.org/wiki/Windows_Forms" rel="noreferrer">Windows Forms</a> application. That is, to draw attention to some foreground control by 'dimming' all other content in the client area of a window. </p>
<p>The obvious solution is to... | [
{
"answer_id": 73062,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 1,
"selected": false,
"text": "Opacity"
},
{
"answer_id": 73065,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https:... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6199/"
] |
72,996 | <p>I am creating an installer in IzPack. It is quite large, and I have broken up my XML files appropriately using <xinclude> and <xfragment> tags. Unfortunately, IzPack does not combine them together when you build your installer. This requires you to package the files with the installer, which just won't w... | [
{
"answer_id": 73306,
"author": "Paul de Vrieze",
"author_id": 4100,
"author_profile": "https://Stackoverflow.com/users/4100",
"pm_score": 0,
"selected": false,
"text": "<xinclude ....> <xi:xinclude xmlns:xi=\"http://www.w3.org/2001/XInclude\" href=\"example/File2.xml\" />\n"
},
{
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/72996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
73,000 | <p>I have to write an applet that brings up a password dialog. The problem is that dialog is set to be always on top but when user clicks on IE window dialog gets hidden behind IE window nevertheless. And since dialog is modal and holds <strong>all</strong> IE threads IE pane does not refresh and dialog window is still... | [
{
"answer_id": 73214,
"author": "noah",
"author_id": 12034,
"author_profile": "https://Stackoverflow.com/users/12034",
"pm_score": 0,
"selected": false,
"text": "function getPassword() {\n return prompt(\"Enter Password\");\n}\n password = jso.call(\"getPassword\", new String[0]);\n"
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7918/"
] |
73,022 | <p>What is the difference between <strong>CodeFile</strong>="file.ascx.cs" and <strong>CodeBehind</strong>="file.ascx.cs" in the declaration of a ASP.NET user control?</p>
<p>Is one newer or recommended? Or do they have specific usage?</p>
| [
{
"answer_id": 17006133,
"author": "DavidHyogo",
"author_id": 341180,
"author_profile": "https://Stackoverflow.com/users/341180",
"pm_score": 3,
"selected": false,
"text": "CodeFile=login.aspx.cs\n CodeBehind=login.aspx.cs\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/73022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3420/"
] |
73,024 | <p>This is from an example accompanying the agsXMPP .Net assembly. I've read up on delegates, but am not sure how that fits in with this line of code (which waits for the logon to occur, and then sends a message. I guess what I'm looking for is an understanding of why <code>delegate(0)</code> accomplishes this, in th... | [
{
"answer_id": 73066,
"author": "André Chalella",
"author_id": 4850,
"author_profile": "https://Stackoverflow.com/users/4850",
"pm_score": 0,
"selected": false,
"text": "onLogin"
},
{
"answer_id": 73069,
"author": "juan",
"author_id": 1782,
"author_profile": "https://... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7574/"
] |
73,029 | <p>I try to use the Forms-Based authentication within an embedded Jetty 6.1.7 project.</p>
<p>That's why I need to serve servlets and html (login.html) under the same context
to make authentication work. I don't want to secure the hole application since
different context should need different roles. The jetty javadoc ... | [
{
"answer_id": 91072,
"author": "Eduard Wirch",
"author_id": 17428,
"author_profile": "https://Stackoverflow.com/users/17428",
"pm_score": 1,
"selected": false,
"text": "<login-config>\n <auth-method>BASIC</auth-method>\n</login-config>\n<security-role>\n <role-name>MySiteRole</rol... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11450/"
] |
73,032 | <p>I'd really like to handle this without monkey-patching but I haven't been able to find another option yet.</p>
<p>I have an array (in Ruby) that I need to sort by multiple conditions. I know how to use the sort method and I've used the trick on sorting using an array of options to sort by multiple conditions. How... | [
{
"answer_id": 73090,
"author": "Brian Phillips",
"author_id": 7230,
"author_profile": "https://Stackoverflow.com/users/7230",
"pm_score": 6,
"selected": true,
"text": "\nordered_list = [[1, \"b\"], [1, \"a\"], [2, \"a\"]]\nordered_list.sort! do |a,b|\n [a[0],b[1]] <=> [b[0], a[1]]\nend... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3230/"
] |
73,037 | <p>This is a 3 part question regarding embedded RegEx into SQL statements. </p>
<ol>
<li><p>How do you embed a RegEx expression into an Oracle PL/SQL
select statement that will parse out
the “DELINQUENT” string in the text
string shown below?</p></li>
<li><p>What is the performance impact if used within a
mission crit... | [
{
"answer_id": 78318,
"author": "Sergey Stadnik",
"author_id": 10557,
"author_profile": "https://Stackoverflow.com/users/10557",
"pm_score": 2,
"selected": true,
"text": "SELECT emp_id, text\n FROM employee_comment\n WHERE REGEXP_LIKE(text,'...-....');\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/73037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3048/"
] |
73,039 | <p>In my web application there is a process that queries data from all over the web, filters it, and saves it to the database. As you can imagine this process takes some time. My current solution is to increase the page timeout and give an AJAX progress bar to the user while it loads. This is a problem for two reasons ... | [
{
"answer_id": 73428,
"author": "Dave Ward",
"author_id": 60,
"author_profile": "https://Stackoverflow.com/users/60",
"pm_score": 4,
"selected": true,
"text": "document.location = \"LongRunningProcess.aspx?taskID=2\". \n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/73039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12442/"
] |
73,045 | <p>I'm not talking about how to indent here. I'm looking for suggestions about the best way of organizing the chunks of code in a source file.</p>
<p>Do you arrange methods alphabetically? In the order you wrote them? Thematically? In some kind of 'didactic' order?</p>
<p>What organizing principles do you follow? Why... | [
{
"answer_id": 73089,
"author": "Fire Lancer",
"author_id": 6266,
"author_profile": "https://Stackoverflow.com/users/6266",
"pm_score": 0,
"selected": false,
"text": "//====(DE)CONSTRUCTOR====\n...\n//====LOAD FUNCTIONS====\n...\n//====SAVE FUNCTIONS====\n...\n//====RESOURCE MANGEMENT FU... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/423836/"
] |
73,051 | <p>I need to run a stored procedure from a C# application.</p>
<p>I use the following code to do so:</p>
<pre><code>Process sqlcmdCall = new Process();
sqlcmdCall.StartInfo.FileName = "sqlcmd.exe";
sqlcmdCall.StartInfo.Arguments = "-S localhost\\SQLEXPRESS -d some_db -Q \":EXIT(sp_test)\""
sqlcmdCall.Start();
sqlcmdC... | [
{
"answer_id": 73108,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": true,
"text": "SqlConnection SqlCommand System.Data.SqlClient SqlCommand"
},
{
"answer_id": 73193,
"author": "Ron Savage",
"aut... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12525/"
] |
73,063 | <p>In Visual Studio 2005-2015 it is possible to find all lines containing certain references and display them in a "Find Results" window.</p>
<p>Now that these result lines are displayed, is there any keyboard shortcut that would allow adding debug breakpoints to all of them?</p>
| [
{
"answer_id": 249501,
"author": "Jeff Hillman",
"author_id": 3950,
"author_profile": "https://Stackoverflow.com/users/3950",
"pm_score": 5,
"selected": true,
"text": "Imports System\nImports System.IO\nImports System.Text.RegularExpressions\nImports EnvDTE\nImports EnvDTE80\nImports Env... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12113/"
] |
73,078 | <p>I'm convinced from <a href="http://www.masukomi.org/talks/unit_testing_talk_2/index.xul?data=slide_data.txt#page2" rel="nofollow noreferrer">this presentation</a> and other commentary here on the site that I need to learn to Unit Test. I also realize that there have been many questions about what unit testing is he... | [
{
"answer_id": 73156,
"author": "Gilligan",
"author_id": 12356,
"author_profile": "https://Stackoverflow.com/users/12356",
"pm_score": 2,
"selected": false,
"text": "private bool fired;\n\nprivate void HandlesEvent(object sender, EventArgs e)\n{\n fired = true;\n } \n\npublic void Tes... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/525/"
] |
73,086 | <p>I've been trying to come up with a way to create a 3 column web design where the center column has a constant width and is always centered. The columns to the left and right are variable. This is trivial in tables, but not correct semantically. </p>
<p>I haven't been able to get this working properly in all curr... | [
{
"answer_id": 73145,
"author": "David Cumps",
"author_id": 4329,
"author_profile": "https://Stackoverflow.com/users/4329",
"pm_score": 1,
"selected": false,
"text": "#maincenter {\n width: 200px;\n float: left;\n background: #fff;\n padding-bottom: 10px;\n}\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/73086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12529/"
] |
73,087 | <p>Is there a standard X / Gnome program that will display the X,Y width and depth in pixels of a window that I select? Something similar to the way an xterm shows you the width and depth of the window (in lines) as you resize it.</p>
<p>I'm running on Red Hat Enterprise Linux 4.4.</p>
<p>Thanks!</p>
| [
{
"answer_id": 73221,
"author": "Linulin",
"author_id": 12481,
"author_profile": "https://Stackoverflow.com/users/12481",
"pm_score": 3,
"selected": false,
"text": "$ xwininfo \n\nxwininfo: Please select the window about which you\n would like information by clicking the\n ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9648/"
] |
73,109 | <p>I'm working with a fairly simple database, from a Java application. We're trying to insert about 200k of text at a time, using the standard JDBC mysql adapter. We intermittently get a <code>com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column error.</code></p>
<p>The column type is <code>l... | [
{
"answer_id": 73232,
"author": "Aaron",
"author_id": 11176,
"author_profile": "https://Stackoverflow.com/users/11176",
"pm_score": 2,
"selected": false,
"text": "foo.status = 'inactive'\n foo.state = 'inactive'\n"
},
{
"answer_id": 12914251,
"author": "grigson",
"author_... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
73,110 | <p>For a System.Windows.Forms.TextBox with Multiline=True, I'd like to only show the scrollbars when the text doesn't fit.</p>
<p>This is a readonly textbox used only for display. It's a TextBox so that users can copy the text out. Is there anything built-in to support auto show of scrollbars? If not, should I be usi... | [
{
"answer_id": 73173,
"author": "André Chalella",
"author_id": 4850,
"author_profile": "https://Stackoverflow.com/users/4850",
"pm_score": 3,
"selected": false,
"text": "WordWrap == false"
},
{
"answer_id": 89428,
"author": "Hans Passant",
"author_id": 17034,
"author_... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1042/"
] |
73,117 | <p>I wanted to "emulate" a popular flash game, Chrontron, in C++ and needed some help getting started. (NOTE: Not for release, just practicing for myself)</p>
<pre>
Basics:
Player has a time machine. On each iteration of using the time machine, a parallel state
is created, co-existing with a previous state. One of the... | [
{
"answer_id": 73537,
"author": "Andreas Magnusson",
"author_id": 5811,
"author_profile": "https://Stackoverflow.com/users/5811",
"pm_score": 4,
"selected": true,
"text": "std::list<std::list<std::pair<unsigned long, Action> > > state;\n state.back().push_back(std::make_pair(currentFrame... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6128/"
] |
73,123 | <p>Is it possible to use .htaccess to process all six digit URLs by sending them to a script, but handle every other invalid URL as an error 404?</p>
<p>For example:</p>
<pre><code>http://mywebsite.com/132483
</code></pre>
<p>would be sent to:</p>
<pre><code>http://mywebsite.com/scriptname.php?no=132483
</code></pr... | [
{
"answer_id": 73184,
"author": "Adam Hopkinson",
"author_id": 12280,
"author_profile": "https://Stackoverflow.com/users/12280",
"pm_score": 4,
"selected": false,
"text": "RewriteEngine On\nRewriteRule ^([0-9]{6})$ /scriptname.php?no=$1 [L]\n"
},
{
"answer_id": 73315,
"author... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12513/"
] |
73,134 | <p>I have been working on some legacy C++ code that uses variable length structures (TAPI), where the structure size will depend on variable length strings. The structures are allocated by casting array <code>new</code> thus:</p>
<pre class="lang-cpp prettyprint-override"><code>STRUCT* pStruct = (STRUCT*)new BYTE[size... | [
{
"answer_id": 73157,
"author": "Fire Lancer",
"author_id": 6266,
"author_profile": "https://Stackoverflow.com/users/6266",
"pm_score": 0,
"selected": false,
"text": "STRUCT* pStruct = new STRUCT;\n...\ndelete pStruct;\n"
},
{
"answer_id": 73163,
"author": "Rob Walker",
"... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
73,162 | <p>Is there an API call in .NET or a native DLL that I can use to create similar behaviour as Windows Live Messenger when a response comes from someone I chat with?</p>
| [
{
"answer_id": 73208,
"author": "nathaniel",
"author_id": 11947,
"author_profile": "https://Stackoverflow.com/users/11947",
"pm_score": 2,
"selected": false,
"text": "HWND hHandle = FindWindow(NULL,\"YourApplicationName\");\nFLASHWINFO pf;\npf.cbSize = sizeof(FLASHWINFO);\npf.hwnd = hHan... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6896/"
] |
73,168 | <p>I am trying to scrape an html table and save its data in a database. What strategies/solutions have you found to be helpful in approaching this program.</p>
<p>I'm most comfortable with Java and PHP but really a solution in any language would be helpful.</p>
<p>EDIT: For more detail, the UTA (Salt Lake's Bus syste... | [
{
"answer_id": 73321,
"author": "pianohacker",
"author_id": 10956,
"author_profile": "https://Stackoverflow.com/users/10956",
"pm_score": 1,
"selected": false,
"text": "\n # cpan HTML::Parser\n"
},
{
"answer_id": 279752,
"author": "Thorvaldur",
"author_id": 35781,
"au... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3274/"
] |
73,198 | <p>When using Linq to SQL and stored procedures, the class generated to describe the proc's result set uses char properties to represent char(1) columns in the SQL proc. I'd rather these be strings - is there any easy way to make this happen?</p>
| [
{
"answer_id": 73812,
"author": "Grant Wagner",
"author_id": 9254,
"author_profile": "https://Stackoverflow.com/users/9254",
"pm_score": 0,
"selected": false,
"text": "var whatever =\n from x in something\n select new { yourString = Char.ToString(x.theChar); }\n"
},
{
"answ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12260/"
] |
73,227 | <p>I get asked this question a lot and I thought I'd solicit some input on how to best describe the difference.</p>
| [
{
"answer_id": 73271,
"author": "Gilligan",
"author_id": 12356,
"author_profile": "https://Stackoverflow.com/users/12356",
"pm_score": 2,
"selected": false,
"text": "Delegate delegate = x => \"hi!\";\nDelegate delegate = delegate(object x) { return \"hi\";};\n"
},
{
"answer_id": ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1538/"
] |
73,230 | <p>If a user saves the password on the login form, ff3 is putting the saved password in the change password dialoge on the profile page, even though its <strong>not the same input name</strong> as the login. how can I prevent this?</p>
| [
{
"answer_id": 73283,
"author": "Toby Mills",
"author_id": 12377,
"author_profile": "https://Stackoverflow.com/users/12377",
"pm_score": 3,
"selected": true,
"text": "print(\"<input type=\"text\" name=\"cc\" autocomplete=\"off\" />\");"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/73230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
73,261 | <p>Many of the parameters for interacting with the Office Object model in VSTO require object parameters that are passed by reference, even when the notional type of the parameter is an int or string.</p>
<ol>
<li>I suppose that this mechanism is used so that code can modify the parameter, although I can't figure out ... | [
{
"answer_id": 73310,
"author": "KTamas",
"author_id": 6541,
"author_profile": "https://Stackoverflow.com/users/6541",
"pm_score": 0,
"selected": false,
"text": "object oFalse = false, oTrue = true, oOne = 1;\n"
},
{
"answer_id": 165598,
"author": "rasx",
"author_id": 229... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8151/"
] |
73,286 | <p>I created a C++ console app and just want to capture the cout/cerr statements in the Output Window within the Visual Studio 2005 IDE. I'm sure this is just a setting that I'm missing. Can anyone point me in the right direction?</p>
| [
{
"answer_id": 74542,
"author": "ben",
"author_id": 4607,
"author_profile": "https://Stackoverflow.com/users/4607",
"pm_score": 3,
"selected": false,
"text": "std::streambuf* old_rdbuf = std::cout.rdbuf();\nstd::stringbuf new_rdbuf;\n// replace default output buffer with string buffer\ns... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1265473/"
] |
73,308 | <p>I am trying to implement a request to an unreliable server. The request is a nice to have, but not 100% required for my perl script to successfully complete. The problem is that the server will occasionally deadlock (we're trying to figure out why) and the request will never succeed. Since the server thinks it is... | [
{
"answer_id": 76379,
"author": "jkramer",
"author_id": 12523,
"author_profile": "https://Stackoverflow.com/users/12523",
"pm_score": 1,
"selected": false,
"text": "use LWP::UserAgent;\nuse IO::Pipe;\n\nmy $agent = new LWP::UserAgent;\n\nmy $finished = 0;\nmy $timeout = 5;\n\n$SIG{CHLD} ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12628/"
] |
73,319 | <p>How do I duplicate a whole line in <strong>Vim</strong> in a similar way to <kbd>Ctrl</kbd>+<kbd>D</kbd> in IntelliJ IDEA/ Resharper or <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>↑</kbd>/<kbd>↓</kbd> in <strong>Eclipse</strong>?</p>
| [
{
"answer_id": 73330,
"author": "pjz",
"author_id": 8002,
"author_profile": "https://Stackoverflow.com/users/8002",
"pm_score": 6,
"selected": false,
"text": "put"
},
{
"answer_id": 73362,
"author": "Linulin",
"author_id": 12481,
"author_profile": "https://Stackoverfl... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11439/"
] |
73,320 | <p>How do I set the column which has the header sort glyph, and its direction, in a .NET 2.0 WinForms ListView?</p>
<h2>Bump</h2>
<p>The listview is .net is not a managed control, it is a very thin wrapper around the Win32 ListView common control. It's not even a very good wrapper - it doesn't expose all the features... | [
{
"answer_id": 36332488,
"author": "Adam",
"author_id": 5250659,
"author_profile": "https://Stackoverflow.com/users/5250659",
"pm_score": 2,
"selected": false,
"text": "public static class ListViewExtensions\n{\n public static void DrawSortArrow(this ListView listView, SortOrder sortO... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
73,366 | <p>What tools/websites do you use to read JavaDocs? </p>
<p>I currently use Firefox with 20+ tabs open when working on a J2EE project to have all the documentation available which is not very usable, is eating too much memory and is not searchable.</p>
<p>What I would expect from such a tool/website:</p>
<ul>
<li>Ag... | [
{
"answer_id": 14937310,
"author": "gavenkoa",
"author_id": 173149,
"author_profile": "https://Stackoverflow.com/users/173149",
"pm_score": 1,
"selected": false,
"text": "~/.m2"
},
{
"answer_id": 24620136,
"author": "Max",
"author_id": 2416526,
"author_profile": "http... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7647/"
] |
73,385 | <p>Is there an easy way to convert a string from csv format into a string[] or list? </p>
<p>I can guarantee that there are no commas in the data.</p>
| [
{
"answer_id": 73390,
"author": "DevelopingChris",
"author_id": 1220,
"author_profile": "https://Stackoverflow.com/users/1220",
"pm_score": 0,
"selected": false,
"text": "CsvString.split(',');\n"
},
{
"answer_id": 73404,
"author": "John Sheehan",
"author_id": 1786,
"a... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12653/"
] |
73,447 | <p>What's the most efficient way to convert the output of this function from a varbinary() to a a varchar()?</p>
| [
{
"answer_id": 73503,
"author": "Eric Z Beard",
"author_id": 1219,
"author_profile": "https://Stackoverflow.com/users/1219",
"pm_score": 4,
"selected": true,
"text": "master.sys.fn_varbintohexstr(@binvalue)\n"
},
{
"answer_id": 7979858,
"author": "Cheburek",
"author_id": ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/366182/"
] |
73,456 | <p>I have a weird problem with a dropdownbox selectedIndex always being set to 0 upon postback. I'm not accidentally rebinding it in my code. In fact I've placed a breakpoint at the very first line of the page_load event and the value is already set to zero. The dropdown is in the master page of my project, I don't kno... | [
{
"answer_id": 74783,
"author": "Gilligan",
"author_id": 12356,
"author_profile": "https://Stackoverflow.com/users/12356",
"pm_score": -1,
"selected": false,
"text": " If Page.IsPostBack Then\n GetUIValues()\n Else\n If NOT Page.IsPostBack Then\n GetUIValues... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/288/"
] |
73,467 | <p>I've got a custom handler applied to a class (using the Policy Injection Application Block in entlib 4) and I would like to know whether the input method is a property when Invoke is called. Following is what my handler looks like.</p>
<pre><code>[ConfigurationElementType(typeof(MyCustomHandlerData))]
public class... | [
{
"answer_id": 73908,
"author": "ShuggyCoUk",
"author_id": 12748,
"author_profile": "https://Stackoverflow.com/users/12748",
"pm_score": 3,
"selected": true,
"text": ".method public hidebysig specialname static int32 get_ExitCode() cil managed\n.method public hidebysig specialname static... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6542/"
] |
73,468 | <p>I'm coding the shutdown of a multithreaded server.If everything goes as it should all the threads exit by their own, but there's a small chance that a thread gets stuck.In this case it would be convenient to have a non-blocking join so I could do.</p>
<p><strong>Is there a way of doing a non-blocking pthread_join?
... | [
{
"answer_id": 81050,
"author": "shodanex",
"author_id": 11589,
"author_profile": "https://Stackoverflow.com/users/11589",
"pm_score": 1,
"selected": false,
"text": "pthread_join pthread_cond_timed_wait pthread_cond_wait"
},
{
"answer_id": 83788,
"author": "Frosty",
"auth... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12661/"
] |
73,471 | <p>I have an editable DataGridView with SelectionMode set to FullRowSelect (so the whole row is highlighted when the user clicks on any cell). However I would like the cell that currently has focus to be highlighted with a different back color (so the user can clearly see what cell they are about to edit). How can I do... | [
{
"answer_id": 74256,
"author": "Phillip Wells",
"author_id": 3012,
"author_profile": "https://Stackoverflow.com/users/3012",
"pm_score": 4,
"selected": true,
"text": "Private Sub uxContacts_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormatting... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3012/"
] |
73,474 | <p>I am having a frequent problems with my web hosting (its shared)</p>
<p>I am not able to delete or change permission for a particular directory. The response is,</p>
<pre><code>Cannot delete. Directory may not be empty
</code></pre>
<p>I checked the permissions and it looks OK. There are 100's of files in this fo... | [
{
"answer_id": 73549,
"author": "Jon Ericson",
"author_id": 1438,
"author_profile": "https://Stackoverflow.com/users/1438",
"pm_score": 3,
"selected": true,
"text": "$ rm -rf old_directory\n $ chmod -R +w old_directory\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/73474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12178/"
] |
73,476 | <p>We use SAX to parse XML because it does not require the entire XML document to be read into memory in order to parse a single value. I read many articles that insisted SAX can only be used to parse/decode XML and not create it. Is this true?</p>
| [
{
"answer_id": 73483,
"author": "Grant Wagner",
"author_id": 9254,
"author_profile": "https://Stackoverflow.com/users/9254",
"pm_score": 3,
"selected": true,
"text": "char[] ch;\nAttributesImpl atts = new AttributesImpl();\nWriter writer = new StringWriter();\nStreamResult streamResult =... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9254/"
] |
73,484 | <p>Basically I would like to find a way to ddo something like:</p>
<pre><code><asp:Label ID="lID" runat="server" AssociatedControlID="txtId" Text="<%# MyProperty %>"></asp:Label>
</code></pre>
<p>I know I could set it from code behind (writing lId.Text = MyProperty), but I'd prefer doing it in the m... | [
{
"answer_id": 73558,
"author": "Serhat Ozgel",
"author_id": 31505,
"author_profile": "https://Stackoverflow.com/users/31505",
"pm_score": 2,
"selected": false,
"text": "<asp:Label id=\"lID\" runat=\"server\"><%= MyProperty %></asp:Label>\n"
},
{
"answer_id": 73585,
"author":... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1613872/"
] |
73,491 | <p>I'm trying to use maven2 to build an axis2 project. My project is configured as a parent project with AAR, WAR, and EAR modules. When I run the parent project's package goal, the console shows a successful build and all of the files are created. However the AAR file generated by AAR project is not included in the... | [
{
"answer_id": 89868,
"author": "user11087",
"author_id": 11087,
"author_profile": "https://Stackoverflow.com/users/11087",
"pm_score": 0,
"selected": false,
"text": "<dependency>\n <groupId>group-a</groupId>\n <artifactId>artifact-b</artifactId>\n <version>1.0</version>\n <type>aar<... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5313/"
] |
73,498 | <p>When I'm initializing a dialog, I'd like to select one of the radio buttons on the form. I don't see a way to associate a Control variable using the Class Wizard, like you would typically do with CButtons, CComboBoxes, etc...</p>
<p>Further, it doesn't like a CRadioButton class even exists.</p>
<p>How can I selec... | [
{
"answer_id": 73531,
"author": "moswald",
"author_id": 8368,
"author_profile": "https://Stackoverflow.com/users/8368",
"pm_score": 4,
"selected": true,
"text": "CButton GetCheck SetCheck"
},
{
"answer_id": 73559,
"author": "Chris Karcher",
"author_id": 2773,
"author_... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2773/"
] |
73,515 | <p>I am getting some errors thrown in my code when I open a Windows Forms form in Visual Studio's designer. I would like to branch in my code and perform a different initialization if the form is being opened by designer than if it is being run for real. </p>
<p>How can I determine at run-time if the code is being exe... | [
{
"answer_id": 73533,
"author": "Bob King",
"author_id": 6897,
"author_profile": "https://Stackoverflow.com/users/6897",
"pm_score": 2,
"selected": false,
"text": "System.Diagnostics.Debugger.IsAttached\n"
},
{
"answer_id": 73541,
"author": "Adrian Anttila",
"author_id": ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12717/"
] |
73,519 | <p>Linux/Gcc/LD - Toolchain.</p>
<p>I would like to remove STL/Boost debug symbols from libraries and executable, for two reasons:</p>
<ol>
<li>Linking gets very slow for big programs</li>
<li>Debugging jumps into stl/boost code, which is annoying</li>
</ol>
<p>For 1. incremental linking would be a big improvement, ... | [
{
"answer_id": 42669612,
"author": "gospes",
"author_id": 2250406,
"author_profile": "https://Stackoverflow.com/users/2250406",
"pm_score": 1,
"selected": false,
"text": "> nm --debug-syms <objectfile>\n resize > nm --debug-syms --demangle <objectfile>\n > strip --wildcard \... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11344/"
] |
73,524 | <p>I have a list of addresses from a Database for which I'd like to put markers on a Yahoo Map. The <a href="http://developer.yahoo.com/maps/ajax/V3.8/index.html#YMap" rel="nofollow noreferrer"><code>addMarker()</code> method</a> on YMap takes a YGeoPoint, which requires a latitude and longitude. However, Yahoo Maps mu... | [
{
"answer_id": 81551,
"author": "David Bick",
"author_id": 4914,
"author_profile": "https://Stackoverflow.com/users/4914",
"pm_score": 2,
"selected": true,
"text": "<script type=\"text/javascript\"> \nvar map = new YMap(document.getElementById('map'));\nmap.drawZoomAndCenter(\"Algeria\",... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5346/"
] |
73,527 | <p>There are several plugin options for building a search engine into your Ruby on Rails application. Which of these is the best?</p>
<ul>
<li><a href="http://ts.freelancing-gods.com/" rel="noreferrer">Thinking Sphinx</a></li>
<li><a href="http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/README.html" rel=... | [
{
"answer_id": 73618,
"author": "squadette",
"author_id": 7754,
"author_profile": "https://Stackoverflow.com/users/7754",
"pm_score": 5,
"selected": true,
"text": "require"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/73527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9594/"
] |
73,542 | <p>I have an List and I'd like to wrap it into an IQueryable.</p>
<p>Is this possible?</p>
| [
{
"answer_id": 73563,
"author": "Paul van Brenk",
"author_id": 1837197,
"author_profile": "https://Stackoverflow.com/users/1837197",
"pm_score": 8,
"selected": true,
"text": "List<int> list = new List<int>() { 1, 2, 3, 4, };\nIQueryable<int> query = list.AsQueryable();\n AsQueryable() Sy... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11835/"
] |
73,544 | <p>Anyone know of a good, hopefully free FTP class for use in .NET that can actually work behind an HTTP proxy or FTP gateway? The FtpWebRequest stuff in .NET is horrible at best, and I really don't want to roll my own here.</p>
| [
{
"answer_id": 2327985,
"author": "Martin Vobr",
"author_id": 16132,
"author_profile": "https://Stackoverflow.com/users/16132",
"pm_score": 2,
"selected": false,
"text": "// initialize FTP client \nFtp client = new Ftp();\n\n// setup proxy details \nclient.Proxy.ProxyType = FtpProxyType... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91911/"
] |
73,580 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/46663/how-do-you-send-email-from-a-java-app-using-gmail">How do you send email from a Java app using Gmail?</a> </p>
</blockquote>
<p>How do I send an SMTP Message from Java?</p>
| [
{
"answer_id": 73649,
"author": "tovare",
"author_id": 12677,
"author_profile": "https://Stackoverflow.com/users/12677",
"pm_score": 6,
"selected": true,
"text": "import java.io.*;\nimport java.net.InetAddress;\nimport java.util.Properties;\nimport java.util.Date;\n\nimport javax.mail.*;... | 2008/09/16 | [
"https://Stackoverflow.com/questions/73580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.