qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
410,485 | <p>What is the <code>7n5lu</code> in the reddit URL </p>
<blockquote>
<p><a href="http://www.reddit.com/r/reddit.com/comments/7n5lu/man_can_fly_if_you_watch_one_video_in_2" rel="nofollow noreferrer">http://www.reddit.com/r/reddit.com/comments/7n5lu/man_can_fly_if_you_watch_one_video_in_2</a></p>
</blockquote>
<p>..... | [
{
"answer_id": 410504,
"author": "gak",
"author_id": 11125,
"author_profile": "https://Stackoverflow.com/users/11125",
"pm_score": 5,
"selected": false,
"text": "def to_base(q, alphabet):\n if q < 0: raise ValueError, \"must supply a positive integer\"\n l = len(alphabet)\n conv... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48557/"
] |
410,502 | <p>Does anyone know what culture settings Win32 uses when dealing with case-insensitive files names?</p>
<p>Is this something that varies based on the user's culture, or are the casing rules that Win32 uses culture invariant?</p>
| [
{
"answer_id": 410562,
"author": "Doug",
"author_id": 51305,
"author_profile": "https://Stackoverflow.com/users/51305",
"pm_score": 4,
"selected": true,
"text": "CharUpper"
},
{
"answer_id": 410598,
"author": "Steve Steiner",
"author_id": 3892,
"author_profile": "http... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1737192/"
] |
410,516 | <p>I have the following doubts on header files usage.</p>
<p><strong>1 - Include guards placing after comments</strong></p>
<pre><code>/* Copyright Note and licence information (multiple lines) */
#ifndef FOO_H
#define FOO_H
// Header file contents
#endif
</code></pre>
<p>Herb Sutter says in his "C++ coding standard... | [
{
"answer_id": 410523,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 4,
"selected": false,
"text": "using"
},
{
"answer_id": 410531,
"author": "Michael Burr",
"author_id": 12711,
"author_profile":... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50419/"
] |
410,532 | <p>I have inherited a project that has some huge switch statement blocks, with some containing up to 20 cases. What is a good way to rewrite these?</p>
| [
{
"answer_id": 410858,
"author": "Breton",
"author_id": 51101,
"author_profile": "https://Stackoverflow.com/users/51101",
"pm_score": 3,
"selected": false,
"text": "switch(x){\n case 1:\n makeitso(\"foo\");\n globalLog += \"foo\";\n case 2:\n makeitso(\"bar\");\n glob... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51325/"
] |
410,558 | <p>I understand that "Exceptions are for exceptional cases" [a], but besides just being repeated <a href="https://stackoverflow.com/questions/88541/business-objects-validation-and-exceptions#88917">over</a> and <a href="https://stackoverflow.com/questions/77127/when-to-throw-an-exception#77227">over</a> again, I've nev... | [
{
"answer_id": 484445,
"author": "ScottKoon",
"author_id": 1538,
"author_profile": "https://Stackoverflow.com/users/1538",
"pm_score": 1,
"selected": false,
"text": "public bool isValidDate(string date)\n{\n bool retVal = true;\n //check for 4 digit year\n throw new FourDigitYea... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14651/"
] |
410,576 | <p>It's the weirdest thing. When I ran the Rails WEBrick debugger yesterday I could do things like</p>
<pre><code>cookies[uid] = s.session_id
</code></pre>
<p>where 'uid' is a passed argument that has a user id in it, and then expect</p>
<pre><code>cookies[uid]
</code></pre>
<p>to give me back, say: </p>
<pre><cod... | [
{
"answer_id": 410727,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "cookies[:key]\n"
},
{
"answer_id": 474951,
"author": "Community",
"author_id": -1,
"author_profile": "http... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
410,579 | <p>I'm trying to create a custom control - a button - which will have multiple styles applied to it depending on the value of a property within the data context.</p>
<p>What I was thinking is using something similar to:</p>
<pre><code><Button Style="{Binding Path=ButtonStyleProperty, Converter={StaticResource styl... | [
{
"answer_id": 410599,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stackoverflow.com/users/1196",
"pm_score": 4,
"selected": false,
"text": "<Style x:Key=\"ButtonStyle\" TargetType=\"{x:Type Button}\">\n <Style.Triggers>\n <DataTrigger Binding=\"{Binding Path... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18434/"
] |
410,583 | <p>Is there any way to automatically launch an application on USB attach or CD insert on Mac OS X? it's easy on Windows, but I found that <code>AutoRun.Inf</code> does not work on the Mac at all.</p>
| [
{
"answer_id": 410590,
"author": "Sophie Alpert",
"author_id": 49485,
"author_profile": "https://Stackoverflow.com/users/49485",
"pm_score": 6,
"selected": true,
"text": ".dmg"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/410583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51306/"
] |
410,593 | <p>I would like to clarify the differences between by value and by reference.</p>
<p>I drew a picture:</p>
<p><img src="https://i.stack.imgur.com/fNEsL.jpg" alt="Enter image description here" /></p>
<p>So, for passing by value, a copy of an identical object is created with a different reference, and the local variable ... | [
{
"answer_id": 410604,
"author": "Flame",
"author_id": 5387,
"author_profile": "https://Stackoverflow.com/users/5387",
"pm_score": 3,
"selected": false,
"text": "void func(Object o);\n"
},
{
"answer_id": 410857,
"author": "Johannes Schaub - litb",
"author_id": 34509,
... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36064/"
] |
410,611 | <p>I have a type which I consider use it as struct.</p>
<ul>
<li>It represents single value</li>
<li>It is immutable</li>
</ul>
<p>But the problem is, it has 6 fields of int.</p>
<p>So which solution I should use for this type?</p>
<ol>
<li>keep using struct?</li>
<li>change to class?</li>
<li>or pack 6 integers in... | [
{
"answer_id": 410627,
"author": "Dmitri Nesteruk",
"author_id": 9476,
"author_profile": "https://Stackoverflow.com/users/9476",
"pm_score": 0,
"selected": false,
"text": "WriteOnce<int[]>"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/410611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2398110/"
] |
410,614 | <p>I have a Application A(by some company X). This application allows me to extend the functionality by allowing me to write my own functions.</p>
<p>I tell the Application A to call my user functions in the Applications A's configuration file (this is how it knows that Appl A must call user written Functions). The ap... | [
{
"answer_id": 410635,
"author": "Stefan",
"author_id": 48003,
"author_profile": "https://Stackoverflow.com/users/48003",
"pm_score": -1,
"selected": false,
"text": "try\n{\n // here goes your code\n}\ncatch ( ... )\n{\n // handle segfaults\n}\n"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/410614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50706/"
] |
410,616 | <p>I am programming a server and it seems like my number of connections is being limited since my bandwidth isn't being saturated even when I've set the number of connections to "unlimited".</p>
<p>How can I increase or eliminate a maximum number of connections that my Ubuntu Linux box can open at a time? Does the OS ... | [
{
"answer_id": 410643,
"author": "derobert",
"author_id": 27727,
"author_profile": "https://Stackoverflow.com/users/27727",
"pm_score": 6,
"selected": false,
"text": "ulimit -n"
},
{
"answer_id": 3923785,
"author": "mdk",
"author_id": 140598,
"author_profile": "https:... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
410,623 | <p>I have an array, and I want to make a hash so I can quickly ask "is X in the array?".</p>
<p>In perl, there is an easy (and fast) way to do this:</p>
<pre><code>my @array = qw( 1 2 3 );
my %hash;
@hash{@array} = undef;
</code></pre>
<p>This generates a hash that looks like:</p>
<pre><code>{
1 => undef,
... | [
{
"answer_id": 410648,
"author": "Zach Langley",
"author_id": 45230,
"author_profile": "https://Stackoverflow.com/users/45230",
"pm_score": 3,
"selected": false,
"text": "Array#include?"
},
{
"answer_id": 410659,
"author": "Sophie Alpert",
"author_id": 49485,
"author_... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27727/"
] |
410,628 | <p>I need your help to define a special case in XML schema:
A sequence that contains two elements: 'x' and 'y' whereas:</p>
<ul>
<li><p><code><x></code> element can appear 0 to unbound times in the sequence</p></li>
<li><p><code><y></code> element can appear 0 to 1 time in the sequence</p></li>
<li><p><cod... | [
{
"answer_id": 410656,
"author": "Yuval Adam",
"author_id": 24545,
"author_profile": "https://Stackoverflow.com/users/24545",
"pm_score": 0,
"selected": false,
"text": "<xs:element name=\"x\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n<xs:element name=\"y\" type=\"xs:s... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51338/"
] |
410,630 | <p>I have the following Hibernate Mapping, which has to be mapped using the Table per Concrete Class Hierarchy:</p>
<pre><code><hibernate-mapping package='dao'>
<meta attribute='class-description'></meta>
<class name='PropertyDAO'>
<id name='id' column='id_property'>
... | [
{
"answer_id": 410642,
"author": "Arthur Thomas",
"author_id": 14009,
"author_profile": "https://Stackoverflow.com/users/14009",
"pm_score": 1,
"selected": false,
"text": "<key column=\"id\"/>\n"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/410630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51336/"
] |
410,692 | <p>I am trying to do the following in a way or another:</p>
<pre><code>const char EscapeChar = '\\';
const string EscapeString = EscapeChar.ToString(); // or ("" + EscapeChar)
</code></pre>
<p>This does't compile. Is there another way to make it work?</p>
| [
{
"answer_id": 410695,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "const"
},
{
"answer_id": 410698,
"author": "Steven Robbins",
"author_id": 26507,
"author_profile": "... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41283/"
] |
410,704 | <p>I'm trying to encode Cyrillic UTF-8 array to JSON string using php's function json_encode. The sample code looks like this:</p>
<pre><code><?php
$arr = array(
'едно' => 'първи',
'две' => 'втори'
);
$str = json_encode($arr);
echo $str;
?>
</code></pre>
<p>It works fine but the result o... | [
{
"answer_id": 410712,
"author": "Beau Simensen",
"author_id": 50453,
"author_profile": "https://Stackoverflow.com/users/50453",
"pm_score": 2,
"selected": false,
"text": "json_encode"
},
{
"answer_id": 410772,
"author": "AquilaX",
"author_id": 17734,
"author_profile"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17734/"
] |
410,705 | <p>In the upcoming Java7, there is a <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#isSameFile(java.nio.file.Path,%20java.nio.file.Path)" rel="noreferrer">new API</a> to check if two file object are same file reference.</p>
<p>Are there similar API provided in the .NET framework?</p>
<p>I'... | [
{
"answer_id": 410746,
"author": "tuinstoel",
"author_id": 43901,
"author_profile": "https://Stackoverflow.com/users/43901",
"pm_score": 1,
"selected": false,
"text": " string fileName1 = @\"c:\\vobp.log\";\n string fileName2 = @\"c:\\vobp.log\".ToUpper();\n FileInfo fileInfo1 = new F... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40214/"
] |
410,717 | <p>F# has a bunch of standard sequence operators I have come to know and love from my experience with Mathematica. F# is getting lots of my attention now, and when it is in general release, I intend to use it frequently.</p>
<p>Right now, since F# isn't yet in general release, I can't really use it in production code... | [
{
"answer_id": 410759,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": false,
"text": "Aggregate"
},
{
"answer_id": 410807,
"author": "Codingday",
"author_id": 38242,
"author_profile":... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51345/"
] |
410,719 | <p>This really, really urks me, so I hope that someone can give me a reasonable justification for why things are as they are.</p>
<p><strong>NotImplementedException.</strong> You are pulling my leg, right?</p>
<p>No, I'm not going to take the cheap stab at this by saying, "hang on, the method is implemented - it thr... | [
{
"answer_id": 410737,
"author": "Scott Weinstein",
"author_id": 25201,
"author_profile": "https://Stackoverflow.com/users/25201",
"pm_score": 5,
"selected": false,
"text": "WashDishes()"
},
{
"answer_id": 410738,
"author": "Marc Gravell",
"author_id": 23354,
"author_... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43066/"
] |
410,723 | <p>Is there a difference between having a <code>private const</code> variable or a <code>private static readonly</code> variable in C# (other than having to assign the <code>const</code> a compile-time expression)?</p>
<p>Since they are both private, there is no linking with other libraries. So would it make any diffe... | [
{
"answer_id": 410748,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 6,
"selected": true,
"text": ".cctor"
},
{
"answer_id": 410782,
"author": "melculetz",
"author_id": 51336,
"author_profile": "ht... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41283/"
] |
410,749 | <p>I use svn for a project im working on with a couple of other developers. Svn works fine for source control however we are all ways getting conflicts when we commit the dlls.</p>
<p>When i do i resolve the conflict (which deletes my dlls as the diff program cant handle binary files) then have to rebuild to commit. H... | [
{
"answer_id": 410757,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": ".tar.gz"
},
{
"answer_id": 410767,
"author": "Stefan",
"author_id": 48003,
"author_profile": "https:/... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23339/"
] |
410,756 | <p>Is it possible to browse the source code of OpenJDK online, just like I can do with SourceForge's projects? I never used Mercury before, so I felt confused.</p>
<p>(Note: I don't want to download the source. I just want to browse it online, to see how some methods are implemented.)</p>
| [
{
"answer_id": 410780,
"author": "Rasmus Faber",
"author_id": 5542,
"author_profile": "https://Stackoverflow.com/users/5542",
"pm_score": 8,
"selected": true,
"text": "java.util.List"
},
{
"answer_id": 36079260,
"author": "Eric",
"author_id": 1568658,
"author_profile"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41283/"
] |
410,787 | <p>According to [MSDN: Array usage guidelines](<a href="http://msdn.microsoft.com/en-us/library/k2604h5s(VS.71).aspx)" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/k2604h5s(VS.71).aspx)</a>: </p>
<p>Array Valued Properties</p>
<blockquote>
<p>You should use collections to avoid code inefficienc... | [
{
"answer_id": 410790,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "var arr = obj.myObj; // var since I don't know the type!\nfor (int i = 0; i < arr.Length; i++) {\n DoSomething(arr[i]... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40164/"
] |
410,811 | <p>I need to set up some RewriteRules to redirect a URL which has a space in it. I've tried this:</p>
<pre><code>RewriteRule ^article/with%20spaces.html$ /article/without_spaces.html [R=301,L]
</code></pre>
<p>... but it doesn't work. Putting in a space instead of %20 causes a 500 Internal Server Error. How do I add ... | [
{
"answer_id": 410815,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 1,
"selected": false,
"text": "RewriteRule ^article/with\\sspaces.html$ ...\n"
},
{
"answer_id": 410816,
"author": "Beau Simensen",
"author_i... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
410,819 | <p>Even better would be if <code>autoResize</code> in latest branch would work as intended, but till then the question is simple: <strong>how to resize a dialog once it is created?</strong></p>
| [
{
"answer_id": 410871,
"author": "Soviut",
"author_id": 46914,
"author_profile": "https://Stackoverflow.com/users/46914",
"pm_score": 2,
"selected": false,
"text": "$(document).ready(function(){\n var d = $(\"#example\").dialog();\n d.data(\"width.dialog\", 700);\n});\n"
},
{
... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51357/"
] |
410,820 | <p>I've got a blogging site hosted on Windows Sever, ASP.Net 3.5, ASP.Net AJAX, SQL Server in background.</p>
<p>I want to give bloggers a button like 'digg-it' which they can put on their blogs for the readers to click to thumb-up the post if they like it.</p>
<p>I know I'll be using Javascript to do that. What can ... | [
{
"answer_id": 410828,
"author": "Beau Simensen",
"author_id": 50453,
"author_profile": "https://Stackoverflow.com/users/50453",
"pm_score": 3,
"selected": true,
"text": "function dynScript(url){\n var script=document.createElement('script');\n script.src=url;\n script.type=\"te... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33052/"
] |
410,823 | <p>I have the following code for "factory" design pattern implementation.</p>
<pre><code>class Pen{
public:
virtual void Draw() = 0;
};
class RedPen : public Pen{
public:
virtual void Draw(){
cout << "Drawing with red pen" << endl;
}
};
class BluePen : public Pen{
public:
vir... | [
{
"answer_id": 410856,
"author": "gnud",
"author_id": 27204,
"author_profile": "https://Stackoverflow.com/users/27204",
"pm_score": 3,
"selected": true,
"text": "class Pen {\npublic:\n Pen() : m_color(0,0,0,0) /* the default colour is black */\n { \n }\n\n Pen(cons... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50419/"
] |
410,841 | <p>This is a bit of a crazy idea, but would there be a way to bootstrap all the functions that php have without using a helper function to call the functions.</p>
<p>What I mean is actually calling some code or function before and after every basic function call.</p>
<p>Example:</p>
<pre><code><?php
echo "Hello";... | [
{
"answer_id": 418389,
"author": "Gabriel Sosa",
"author_id": 31039,
"author_profile": "https://Stackoverflow.com/users/31039",
"pm_score": 0,
"selected": false,
"text": "auto_prepend_file\nauto_append_file\n"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/410841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4985/"
] |
410,842 | <p>How do I hide a child in a accordion? Using visible doesn't seem to work and enabled isn't what I'm after.</p>
<pre><code><mx:Accordion>
<mx:VBox width="100%" height="100%" label="Foo" id="viewOverview" visible="false">
...
</mx:VBox>
...
</mx:Accordion>
</code></pre>
| [
{
"answer_id": 410863,
"author": "PEZ",
"author_id": 44639,
"author_profile": "https://Stackoverflow.com/users/44639",
"pm_score": 4,
"selected": true,
"text": "function hideFoo():void {\n this.theAccordion.removeChild(this.vboxFoo);\n}\n"
},
{
"answer_id": 1859540,
"autho... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40939/"
] |
410,844 | <p>I've created a SubVersion server on one of the machines in my workgroup. From my development box I'm able to access the repository and check in/out files without any problem.</p>
<p>I've just installed TortoiseSVN and no matter what I do it won't connect to the repository on the server. I get the infamous error "No... | [
{
"answer_id": 410848,
"author": "Mihai Limbășan",
"author_id": 14444,
"author_profile": "https://Stackoverflow.com/users/14444",
"pm_score": 0,
"selected": false,
"text": "file://"
},
{
"answer_id": 410855,
"author": "Stefan",
"author_id": 48003,
"author_profile": "h... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26095/"
] |
410,853 | <p>In my programs infinity usually arises when a value is divided by zero. I get indeterminate when I divide zero by zero. How do you check for infinite and indeterminate values in C++?</p>
<p>In C++, infinity is represented by 1.#INF. Indeterminate is represented by -1.#IND. The problem is how to test if a variable i... | [
{
"answer_id": 410864,
"author": "CB Bailey",
"author_id": 19563,
"author_profile": "https://Stackoverflow.com/users/19563",
"pm_score": 2,
"selected": false,
"text": "isfinite"
},
{
"answer_id": 410867,
"author": "dalle",
"author_id": 19100,
"author_profile": "https:... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51358/"
] |
410,865 | <p>I read about the <code>Conditional</code> attribute today. According to MSDN:</p>
<blockquote>
<p>Applying <code>ConditionalAttribute</code> to a method indicates to compilers that a call to the method should not be compiled into Microsoft intermediate language (MSIL) unless the conditional compilation symbol tha... | [
{
"answer_id": 410873,
"author": "R. Martinho Fernandes",
"author_id": 46642,
"author_profile": "https://Stackoverflow.com/users/46642",
"pm_score": 1,
"selected": false,
"text": "++a;\nf1(a);\n"
},
{
"answer_id": 410929,
"author": "Marc Gravell",
"author_id": 23354,
... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41283/"
] |
410,889 | <p>I'm not very good at C, and I always get stuck on simple string manipulation tasks (that's why I love Perl!).</p>
<p>I have a string that contains a file path like "/Volumes/Media/Music/Arcade Fire/Black Mirror.aac". I need to extract the drive name ("Media" or preferably "/Volumes/Media") from that path.</p>
<p>... | [
{
"answer_id": 410896,
"author": "CB Bailey",
"author_id": 19563,
"author_profile": "https://Stackoverflow.com/users/19563",
"pm_score": 1,
"selected": false,
"text": "strchr"
},
{
"answer_id": 410908,
"author": "Fernando Miguélez",
"author_id": 34880,
"author_profile... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13563/"
] |
410,890 | <p>If I get a NullPointerException in a call like this:</p>
<pre><code>someObject.getSomething().getSomethingElse().
getAnotherThing().getYetAnotherObject().getValue();
</code></pre>
<p>I get a rather useless exception text like:</p>
<pre><code>Exception in thread "main" java.lang.NullPointerException
at ... | [
{
"answer_id": 410923,
"author": "Ronald Blaschke",
"author_id": 49604,
"author_profile": "https://Stackoverflow.com/users/49604",
"pm_score": 4,
"selected": true,
"text": "null"
},
{
"answer_id": 410926,
"author": "ewalshe",
"author_id": 47429,
"author_profile": "htt... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39946/"
] |
410,898 | <p>I have some markup like this:</p>
<pre><code><p><a id="1" href="#">Link 1</a></p>
<p id="1show" class="starthidden">Hi! I get shown when link 1 is clicked</p>
<p><a id="2" href="#">Link 2</a></p>
<p id="2show" class="starthidden">Hi! I get shown whe... | [
{
"answer_id": 410910,
"author": "clawr",
"author_id": 46201,
"author_profile": "https://Stackoverflow.com/users/46201",
"pm_score": 2,
"selected": false,
"text": "$(show)"
},
{
"answer_id": 410911,
"author": "Cyril Gupta",
"author_id": 33052,
"author_profile": "https... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16511/"
] |
410,924 | <p>I'm trying to create an overridden operator function using both const parameters, but I can't figure out how to do it. Here is a simple example:</p>
<pre><code>class Number
{
Number()
{
value = 1;
};
inline Number operator + (const Number& n)
{
Number result;
result... | [
{
"answer_id": 410928,
"author": "cletus",
"author_id": 18393,
"author_profile": "https://Stackoverflow.com/users/18393",
"pm_score": 1,
"selected": false,
"text": "class Number\n{\n Number()\n {\n value = 1;\n };\n\n inline Number operator + (const Number& n) const\n ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18909/"
] |
410,943 | <p>What would be the most efficient method of reading a text file into a dynamic one-dimensional array? reallocing after every read char seems silly, reallocing after every read line doesn't seem much better. I would like to read the entire file into the array. How would you do it?</p>
| [
{
"answer_id": 410952,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 6,
"selected": true,
"text": "FILE *f = fopen(\"text.txt\", \"rb\");\nfseek(f, 0, SEEK_END);\nlong pos = ftell(f);\nfseek(f, 0, SEEK_SET);... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41839/"
] |
410,951 | <p>I needed to change the SID of an Oracle XE database (not the Service Name) to match a production database.</p>
<p>When I tried searching online, most of the pages were describing changing or adding a service name through tnsnames.ora; that's not what I needed to do.</p>
| [
{
"answer_id": 3424544,
"author": "Johannes Brodwall",
"author_id": 27658,
"author_profile": "https://Stackoverflow.com/users/27658",
"pm_score": 5,
"selected": true,
"text": "C:\\oraclexe\\app\\oracle\\product\\10.2.0\\server"
},
{
"answer_id": 13724865,
"author": "nMoncho",... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25544/"
] |
410,954 | <p>How do I parse XML from a Google App Engine app? Any examples?</p>
| [
{
"answer_id": 410971,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 3,
"selected": false,
"text": "from cStringIO import StringIO\nfrom xml.etree import cElementTree as etree\n\nxml = \"<a>aaa<b>bbb</b></a>\"\n\nfor event, ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
410,966 | <p>When an object has various formats (XML,CSV) it can be represented in, where should one store knowledge of those formats.</p>
<p>Should the object have knowledge of how it's represented in XML (i.e. letting the object convert itself through some method on the object such as <code>GetXML()</code>). Is this too much ... | [
{
"answer_id": 411104,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": 4,
"selected": true,
"text": "public String GetShortXml(){ ... }\npublic String GetFullXml(){ ... }\npublic String GetCsv(){ ... }\npublic String Get... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34991/"
] |
410,967 | <p>I'm searching for a possibility to get a list of installed printers. I'm using JDK 1.6 with a Windows operating system. Does anyone know a solution? </p>
<p>Thank you in advance.</p>
| [
{
"answer_id": 410972,
"author": "Ronald Blaschke",
"author_id": 49604,
"author_profile": "https://Stackoverflow.com/users/49604",
"pm_score": 2,
"selected": false,
"text": "javax.print.PrintServiceLookup"
},
{
"answer_id": 410991,
"author": "Pedro Henriques",
"author_id"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42659/"
] |
410,980 | <p>Is there a way to include an entire text file as a string in a C program at compile-time?</p>
<p>something like:</p>
<ul>
<li><p>file.txt:</p>
<pre><code>This is
a little
text file
</code></pre></li>
<li><p>main.c:</p>
<pre><code>#include <stdio.h>
int main(void) {
#blackmagicinclude("file.txt", content... | [
{
"answer_id": 410988,
"author": "Dominik Grabiec",
"author_id": 3719,
"author_profile": "https://Stackoverflow.com/users/3719",
"pm_score": 0,
"selected": false,
"text": "int main()\n{\n const char* text = \"\n#include \"file.txt\"\n\";\n printf(\"%s\", text);\n return 0;\n}\n"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
410,982 | <p>Or to reformulate the question: is there a performance penalty in using unsigned values?</p>
<p>And in general: what is the most performant type (16bit signed?, 32bit signed? etc.) on the IPhone ARM processor?</p>
| [
{
"answer_id": 411015,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "stdint.h"
},
{
"answer_id": 411034,
"author": "Nils Pipenbrinck",
"author_id": 15955,
"author_profile": "h... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50335/"
] |
410,986 | <p>Microsoft's live service has an amazing contact details form in their "Account" > "Registered information" page. You are first asked for your country and the rest of the contact form changes accordingly. For example, if you select "United States", the form fields will change to:
Address 1, Address 2, City, State (dr... | [
{
"answer_id": 411015,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "stdint.h"
},
{
"answer_id": 411034,
"author": "Nils Pipenbrinck",
"author_id": 15955,
"author_profile": "h... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45735/"
] |
410,995 | <p>I am currently working at a client were they have locked down the network, except for ports 80 and 443. I need to connect to our server using SSH, but the same server also runs our website. We do not want to invest in a new server or place a second network card.</p>
<p>I have been searching the internet for away to... | [
{
"answer_id": 411185,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 0,
"selected": false,
"text": "ServerName webmin.myserver.co.uk\nSSLProxyEngine On\n\nProxyRequests Off\nProxyPass / https://myserver.co.uk:10000/\nProx... | 2009/01/04 | [
"https://Stackoverflow.com/questions/410995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,012 | <p>I just finished reading <a href="https://stackoverflow.com/questions/410558/why-are-exceptions-said-to-be-so-bad-for-input-validation">this article</a> on the advantages and disadvantages of exceptions and I agree with the sentiment that Try-Catch blocks should not be used for "normal" control-flow management (don't... | [
{
"answer_id": 411047,
"author": "jalf",
"author_id": 33213,
"author_profile": "https://Stackoverflow.com/users/33213",
"pm_score": 1,
"selected": false,
"text": "using"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15592/"
] |
411,048 | <p>What is the difference between using Private Properties instead of Private Fields</p>
<pre><code>private String MyValue { get; set; }
// instead of
private String _myValue;
public void DoSomething()
{
MyValue = "Test";
// Instead of
_myValue = "Test";
}
</code></pre>
<p>Is there any performance issue... | [
{
"answer_id": 411082,
"author": "JoshBerke",
"author_id": 26160,
"author_profile": "https://Stackoverflow.com/users/26160",
"pm_score": 3,
"selected": false,
"text": "public class Item\n{\n private Item _parent;\n private List<Item> _children;\n\n public void Add(Item child)\n ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50974/"
] |
411,054 | <p>I'm try to figure out how to handle the following scenario. In general, i have a bunch of records in a table. All of these have ID and ParentID fields to form a tree. </p>
<pre><code>Page1
- Page2
- Page3
Page4
- Page5
-- Page6
</code></pre>
<p>Now, i want my routes for Page3 and Page6 to be like <code>/Page1/... | [
{
"answer_id": 411062,
"author": "Yoann. B",
"author_id": 50974,
"author_profile": "https://Stackoverflow.com/users/50974",
"pm_score": -1,
"selected": false,
"text": "routes.MapRoute(\"Page6\", \"Page3/Page5/Page6\", new { controller = \"Page6\", action = \"Index\" });\n"
},
{
"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19610/"
] |
411,057 | <p>Is there a way to generate a class constraint with CodeDom.</p>
<p>Because when I use something like</p>
<pre><code>var method = new CodeMemberMethod();
var genericParam = new CodeTypeParameter("InterfaceType");
genericParam.Constraints.Add("class");
method.TypeParameters.Add(genericParam);
</code></pre>
<p>the g... | [
{
"answer_id": 976071,
"author": "Max Galkin",
"author_id": 2351099,
"author_profile": "https://Stackoverflow.com/users/2351099",
"pm_score": 4,
"selected": true,
"text": "HasConstructorConstraint"
},
{
"answer_id": 10865747,
"author": "IS4",
"author_id": 1424244,
"au... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21566/"
] |
411,058 | <p>I'm experiencing something really strange!</p>
<p>I have a div that I'm hiding with JS (jQuery).
Like this:</p>
<pre><code>$('#myDiv').hide();
</code></pre>
<p>Then when I make a fadeIn like this:</p>
<pre><code>$("#myDiv").fadeIn('slow');
</code></pre>
<p>then the text loses ClearType in IE but not in FF. If I... | [
{
"answer_id": 411067,
"author": "Aron Rotteveel",
"author_id": 11568,
"author_profile": "https://Stackoverflow.com/users/11568",
"pm_score": 6,
"selected": true,
"text": "$('#myDiv').fadeIn('slow', function() {\n this.style.removeAttribute('filter');\n});\n"
},
{
"answer_id": ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50896/"
] |
411,092 | <p>I have this bash script running my backup to an external hard drive... only if that drive is mounted (OS X):</p>
<pre><code>DIR=/Volumes/External;
if [ -e $DIR ];
then rsync -av ~/dir_to_backup $DIR;
else echo "$DIR does not exist";
fi
</code></pre>
<p>This works, but I sense I am misreading the rsync man page... | [
{
"answer_id": 411097,
"author": "Ray Booysen",
"author_id": 42124,
"author_profile": "https://Stackoverflow.com/users/42124",
"pm_score": 2,
"selected": false,
"text": "--existing, --ignore-non-existing\n"
},
{
"answer_id": 411101,
"author": "mjy",
"author_id": 2128202,
... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26848/"
] |
411,103 | <p>I have a function with the same name, but with different signature in a base and derived classes. When I am trying to use the base class's function in another class that inherits from the derived, I receive an error. See the following code:</p>
<pre><code>class A
{
public:
void foo(string s){};
};
class B ... | [
{
"answer_id": 411112,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 7,
"selected": false,
"text": "class A\n{\n public:\n void foo(string s){};\n};\n\nclass B : public A\n{\n public:\n int foo(i... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44673/"
] |
411,114 | <p>I'm used to thinking of member functions as just being a special case of normal functions, where member functions have an extra parameter at the beginning of their parameter list for the 'this' pointer, that is, the object on which the member function is supposed to act. I've used boost::function this way in the pas... | [
{
"answer_id": 411125,
"author": "jalf",
"author_id": 33213,
"author_profile": "https://Stackoverflow.com/users/33213",
"pm_score": 4,
"selected": true,
"text": "this"
},
{
"answer_id": 411128,
"author": "CB Bailey",
"author_id": 19563,
"author_profile": "https://Stac... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50385/"
] |
411,118 | <p>I have drawn an icon in <a href="http://inkscape.org/" rel="nofollow noreferrer">Inkscape</a>, but would now like to programmatically alter it (change the colours slightly for different icon states) and convert it to a tiled PNG format file containing multiple icons with different colours. I know about Inkscape's <e... | [
{
"answer_id": 1295008,
"author": "Bruce Alderson",
"author_id": 99003,
"author_profile": "https://Stackoverflow.com/users/99003",
"pm_score": 0,
"selected": false,
"text": "find -name \"*svg\" -exec inkscape -z --file={} \\ \n --export-png=$OUTPUT{}.png --export-width=640 --vacuum-de... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42974/"
] |
411,121 | <p>There are plenty of script/tools for counting line of code, and some to count functions size in terms of line of code.
But here I'm looking to a way to measure function size in terms of bytes of generated code.</p>
<p>Does anyone know a way/tools to extract this information from a .lib or a .dll? </p>
<p>For examp... | [
{
"answer_id": 1295008,
"author": "Bruce Alderson",
"author_id": 99003,
"author_profile": "https://Stackoverflow.com/users/99003",
"pm_score": 0,
"selected": false,
"text": "find -name \"*svg\" -exec inkscape -z --file={} \\ \n --export-png=$OUTPUT{}.png --export-width=640 --vacuum-de... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51386/"
] |
411,134 | <p>Rails gurus: I've just discovered <code>named_scope</code> thanks to another SO user. :)</p>
<p>I'd like to get the count of a set of rows - i.e. a <code>SELECT COUNT(*)</code>. Additionally, I want to still be able to chain named scopes in the call. </p>
<p>Is this a legitimate (albeit weird) usage of named scope... | [
{
"answer_id": 411252,
"author": "Allan L.",
"author_id": 19527,
"author_profile": "https://Stackoverflow.com/users/19527",
"pm_score": 2,
"selected": false,
"text": "@foobar_size = Foobar.all.size #returns integer equal to total rows of Foobar\n"
},
{
"answer_id": 411322,
"a... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42914/"
] |
411,142 | <p>In Visual Studio (C++), is there a way to easily find duplicate headers that are defined in .cpp files?</p>
<p>I'm also trying to find ways to detect this situation:</p>
<ul>
<li>A includes B includes C</li>
<li>A includes C</li>
<li>=> A doesn't need to include C</li>
</ul>
| [
{
"answer_id": 411156,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 4,
"selected": true,
"text": "#if A_H\n#error \"Duplicate include\"\n#else\n#define A_H\n#endif\n"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
411,143 | <p>Is it possible to make the text in a TextBox unselectable without disabling the TextBox?
It's a RichTextBox and I need it's formatting and selection features.
I can't disable it because I want to handle MouseMove and MouseDown events.</p>
<p>So far I've thought about disabling the Text box and putting a panel on to... | [
{
"answer_id": 411198,
"author": "lc.",
"author_id": 44853,
"author_profile": "https://Stackoverflow.com/users/44853",
"pm_score": 0,
"selected": false,
"text": "ReadOnly"
},
{
"answer_id": 3333311,
"author": "Human",
"author_id": 283411,
"author_profile": "https://St... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19956/"
] |
411,145 | <p>Could anyone explain me why:</p>
<pre><code>function doAjax() {
var xmlHttpReq = false;
try { // Firefox, Opera 8.0+ and Safari
xmlHttpReq = new XMLHttpRequest();
}
catch (e) { // Internet Explorer
try {
xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
}
... | [
{
"answer_id": 411158,
"author": "Aron Rotteveel",
"author_id": 11568,
"author_profile": "https://Stackoverflow.com/users/11568",
"pm_score": 3,
"selected": false,
"text": "/*global getElementByAttribute, breakCycles, hanoi */\n"
},
{
"answer_id": 411224,
"author": "AnthonyWJ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45974/"
] |
411,167 | <p>I'm using URL rewrite on my site to get URLs like:<br>
<em><a href="http://mysite.com/users/john" rel="nofollow noreferrer">http://mysite.com/users/john</a></em><br>
instead of<br>
<em><a href="http://mysite.com/index.aspx?user=john" rel="nofollow noreferrer">http://mysite.com/index.aspx?user=john</a></em></p>
<p>T... | [
{
"answer_id": 411183,
"author": "Shawn",
"author_id": 26,
"author_profile": "https://Stackoverflow.com/users/26",
"pm_score": 1,
"selected": false,
"text": "<form runat=\"server\">"
},
{
"answer_id": 2666727,
"author": "Toma",
"author_id": 320233,
"author_profile": "... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39636/"
] |
411,218 | <p>Has anyone used <a href="http://hudson.dev.java.net/" rel="noreferrer">Hudson</a> as a Continuous-Integration server for a C++ project using <a href="http://unittest-cpp.sourceforge.net/" rel="noreferrer">UnitTest++</a> as a testing library?</p>
<p>How exactly did you set it up?</p>
<p>I know there have been sever... | [
{
"answer_id": 413316,
"author": "Patrick Johnmeyer",
"author_id": 363,
"author_profile": "https://Stackoverflow.com/users/363",
"pm_score": 5,
"selected": true,
"text": "main()"
},
{
"answer_id": 701194,
"author": "Community",
"author_id": -1,
"author_profile": "http... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11515/"
] |
411,221 | <p>Can someone please explain why <code>int (0.4 * 10.0)</code> is <code>4</code> yet <code>int ((2.4 - 2.0) * 10.0)</code> is <code>3</code>?</p>
<p>And then also please explain how to get <code>4</code>. i.e. Do I really have to do <code>int (System.Math.Round((2.4 - 2.0) * 10.0))</code>?</p>
<p>It's just so ugly ... | [
{
"answer_id": 413212,
"author": "Alexey Romanov",
"author_id": 9204,
"author_profile": "https://Stackoverflow.com/users/9204",
"pm_score": 3,
"selected": false,
"text": "let round x = int System.Math.Round(x)\n"
},
{
"answer_id": 413229,
"author": "Alexey Romanov",
"auth... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40783/"
] |
411,222 | <p>I am looking to make a website and in the future desktop apps as well and i know nothing about db design so what tutorials or books (online preferably) are there? thanks </p>
| [
{
"answer_id": 413212,
"author": "Alexey Romanov",
"author_id": 9204,
"author_profile": "https://Stackoverflow.com/users/9204",
"pm_score": 3,
"selected": false,
"text": "let round x = int System.Math.Round(x)\n"
},
{
"answer_id": 413229,
"author": "Alexey Romanov",
"auth... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44411/"
] |
411,228 | <p><em>I removed the footer for the time being, site had to go online. So the link is gone as well.</em></p>
<p>As you can see (in FF2 as well as in IE7) the footer is at the bottom of the SCREEN, but not at the bottom of the page (content).</p>
<p>I have this in my code:</p>
<pre><code><div id="wrap">
<... | [
{
"answer_id": 411265,
"author": "James Anderson",
"author_id": 27632,
"author_profile": "https://Stackoverflow.com/users/27632",
"pm_score": 0,
"selected": false,
"text": " <style type=\"text/css\">\nhtml {\n height: 100%;\n margin: 0;\n padding: 0;\n}\nbody {\n height: 1... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42389/"
] |
411,232 | <p>If i have a complex object, what is the best practice pattern to write code to compare 2 instances to see if they are the same</p>
| [
{
"answer_id": 411260,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "if their references are equal (includes both null)\n return true\nelse if one object is null\n return false\nelse\n... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
411,237 | <p>I have a problem.</p>
<p>I have wrote an upload form on my html page. Then created an upload php file. I added both to my webserver 1 and 1. when clicking on the script on the live webpage - it starts uploading, however the domain name/upload.php file sits there with nothing there (blank) when i check the destina... | [
{
"answer_id": 411370,
"author": "ceejayoz",
"author_id": 1902010,
"author_profile": "https://Stackoverflow.com/users/1902010",
"pm_score": 2,
"selected": false,
"text": "<form>"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,247 | <p>How can I run a CMD or .bat file in silent mode? I'm looking to prevent the CMD interface from being shown to the user.</p>
| [
{
"answer_id": 411269,
"author": "Frederick The Fool",
"author_id": 32688,
"author_profile": "https://Stackoverflow.com/users/32688",
"pm_score": 6,
"selected": false,
"text": "@echo off\n"
},
{
"answer_id": 411270,
"author": "VonC",
"author_id": 6309,
"author_profile... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2140183/"
] |
411,249 | <p>I'm working for a company that has strict coding style guidelines but no automatic tool to validate them. I've looked around and the only tools I could find were lint like tools that seem to be aimed at verifying what the code does, and preventing bugs and not at making sure the coding style is correct.</p>
<p>What... | [
{
"answer_id": 411293,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 2,
"selected": false,
"text": "cb"
},
{
"answer_id": 411698,
"author": "bortzmeyer",
"author_id": 15625,
"author_profile": "... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15109/"
] |
411,254 | <p>What are the main differences between PHP and Java that someone proficient in PHP but learning Java should know about?</p>
<p><strong>Edit:</strong> I mean differences in the syntax of the languages, i.e their data types, how they handle arrays & reference variables, and so forth :)</p>
| [
{
"answer_id": 411650,
"author": "Alan Storm",
"author_id": 4668,
"author_profile": "https://Stackoverflow.com/users/4668",
"pm_score": 7,
"selected": true,
"text": "int foo = 36;\nchar bar = 'b';\ndouble baz = 3.14;\nString speech = \"We hold these truths ...\";\nMyWidget widget... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49153/"
] |
411,295 | <p>i'm using this example implementation found at <a href="http://tangentsoft.net/wskfaq/examples/basics/select-server.html" rel="nofollow noreferrer">http://tangentsoft.net/wskfaq/examples/basics/select-server.html</a></p>
<p>This is doing most of what I need, handles connections without blocking and does all work in... | [
{
"answer_id": 411321,
"author": "Daniel Sloof",
"author_id": 51133,
"author_profile": "https://Stackoverflow.com/users/51133",
"pm_score": 2,
"selected": false,
"text": " if ((gConnections.size() + 1) > 64) {\n // For the background on this check, see\n... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49710/"
] |
411,296 | <p>I have a List (Foo) and I want to see if it's equal to another List (foo). What is the fastest way ?</p>
| [
{
"answer_id": 411313,
"author": "M4N",
"author_id": 19635,
"author_profile": "https://Stackoverflow.com/users/19635",
"pm_score": 1,
"selected": false,
"text": "public static bool CompareLists(List<int> l1, List<int> l2)\n{\n if (l1 == l2) return true;\n if (l1.Count != l2.Count) ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
411,302 | <p>does anyone know why this is a bad request?</p>
<pre><code>http://chart.apis.google.com/chart?cht=lxy&
chd=t:0,0.7,1.4,2.2,2.9,3.6,4.3,5,5.8,6.5,7.2,7.9,8.6,9.4,10.1,10.8,11.5,12.2,12.9,13.7,14.4,15.1,15.8,16.5,17.3,18,18.7,19.4,20.1,20.9,21.6,22.3,23,23.7,24.5,25.2,25.9,26.6,27.3,28.1,28.8,29.5,30.2,30.9,31.7,... | [
{
"answer_id": 10834547,
"author": "DespairTyre",
"author_id": 585243,
"author_profile": "https://Stackoverflow.com/users/585243",
"pm_score": 0,
"selected": false,
"text": "<form id='graphform' name='graphform' action='https://chart.googleapis.com/chart' method='POST' target='graph_targ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,304 | <p>Hi i'v look through the WMI class... but none can help me in getting the partition table information... now i'm having a project which is to display the USB thumbdrive's .MBR how should i go about it? really puzzle... Any help and guide will be very much appreciated!</p>
<p>p.s. the code can only be written in C#</... | [
{
"answer_id": 411446,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 3,
"selected": true,
"text": "\"\\\\.\\PHYSICALDRIVE0\""
},
{
"answer_id": 5936389,
"author": "Mert Gülsoy",
"author_id": 745049,
... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,306 | <p>I have some XML code that looks like this</p>
<pre><code><SEARCHRESULTS>
<FUNCTION name="BarGraph">
<PARAMETER name="numList"></PARAMETER>
<PARAMETER name="maxValue"></PARAMETER>
<CODE>Some code</CODE>
</FUNCTION>
</SEARCHRESULTS>
</code></... | [
{
"answer_id": 411323,
"author": "Dirk Vollmar",
"author_id": 40347,
"author_profile": "https://Stackoverflow.com/users/40347",
"pm_score": 3,
"selected": true,
"text": "<xsl:template match=\"/\">\n<xsl:for-each select=\"SEARCHRESULTS/FUNCTION\">\n <ROW>\n <COL>\n <DATA>\n ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6106/"
] |
411,312 | <p>At the company I work for, I have created a Error Logging class to handle errors in my ASP.net application. It is a custom class because we are not allowed to install additional software on our servers (nLog, log4net, etc).</p>
<p>I currently use it in two of my projects and have seen some good results from it. R... | [
{
"answer_id": 412076,
"author": "Cohen",
"author_id": 34474,
"author_profile": "https://Stackoverflow.com/users/34474",
"pm_score": 2,
"selected": false,
"text": "\nprotected void Application_Error(object sender, EventArgs e)\n{\n Server.Transfer(\"~/Support/ServerErrorSupport.aspx\"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31474/"
] |
411,316 | <p>I've made a C# usercontrol with one textbox and one richtextbox.</p>
<p>How can I access the properties of the richtextbox from outside the usercontrol.</p>
<p>For example.. if i put it in a form, how can i use the Text propertie of the richtextbox???</p>
<p>thanks</p>
| [
{
"answer_id": 411332,
"author": "M4N",
"author_id": 19635,
"author_profile": "https://Stackoverflow.com/users/19635",
"pm_score": 6,
"selected": true,
"text": "class MyUserControl\n{\n // expose the Text of the richtext control (read-only)\n public string TextOfRichTextBox\n {\n g... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50069/"
] |
411,330 | <p>Which one of the following do you do:</p>
<pre><code>var = true;
if (...) var = false;
</code></pre>
<p>Or</p>
<pre><code>if (...) var = false;
else var = true;
</code></pre>
<p>Is there a reason you pick on or the other?</p>
<p>I'm working on the premise that nothing else is happening to var. The next line of ... | [
{
"answer_id": 411350,
"author": "krosenvold",
"author_id": 23691,
"author_profile": "https://Stackoverflow.com/users/23691",
"pm_score": 4,
"selected": true,
"text": "var = { ... }"
},
{
"answer_id": 411357,
"author": "ForYourOwnGood",
"author_id": 48728,
"author_pro... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
411,331 | <p>I found several other questions on SO regarding the JavaMail API and sending mail through an SMTP server, but none of them discussed using TLS security. I'm trying to use JavaMail to send status updates to myself through my work SMTP mail server, but it requires TLS, and I can't find any examples online of how to us... | [
{
"answer_id": 411362,
"author": "Sarat",
"author_id": 18937,
"author_profile": "https://Stackoverflow.com/users/18937",
"pm_score": 7,
"selected": true,
"text": "Properties props = new Properties();\nprops.put(\"mail.smtp.starttls.enable\",\"true\");\nprops.put(\"mail.smtp.auth\", \"tru... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42891/"
] |
411,352 | <p>I have now seen 2 methods for determining if an argument has been passed to a JavaScript function. I'm wondering if one method is better than the other or if one is just bad to use?</p>
<pre><code> function Test(argument1, argument2) {
if (Test.arguments.length == 1) argument2 = 'blah';
alert(argument2... | [
{
"answer_id": 411372,
"author": "Christoph",
"author_id": 48015,
"author_profile": "https://Stackoverflow.com/users/48015",
"pm_score": 9,
"selected": true,
"text": "arguments.length"
},
{
"answer_id": 411388,
"author": "dkretz",
"author_id": 31641,
"author_profile":... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
411,396 | <p>Hi I've got a DIV section that has only its title visible initially. What I would like to achieve is that when the visitor clicks anywhere on the area of <code>toggle_section</code> the <code>toggle_stuff</code> div toggles between visible/hidden.</p>
<pre><code><div id="toggle_section"
onclick="javascript... | [
{
"answer_id": 411458,
"author": "andyk",
"author_id": 26721,
"author_profile": "https://Stackoverflow.com/users/26721",
"pm_score": 0,
"selected": false,
"text": "z-index"
},
{
"answer_id": 411488,
"author": "Aron Rotteveel",
"author_id": 11568,
"author_profile": "ht... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47193/"
] |
411,407 | <p>Well, my question is simple. </p>
<p>Does the ID affect the position of a webpage on Google ?
I have links like this
<code>http://example.com/news/title-slug/15/</code>
and people say to me that I should remove the ID from the URL. </p>
<p>And I belive that is not true. By my logic, you can't depend on the titl... | [
{
"answer_id": 411423,
"author": "Gareth",
"author_id": 31582,
"author_profile": "https://Stackoverflow.com/users/31582",
"pm_score": 4,
"selected": false,
"text": "http://example.com/news/wrong-title-slug/15/"
},
{
"answer_id": 411480,
"author": "andyk",
"author_id": 267... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51414/"
] |
411,410 | <p>What's the best practice for setting up a subversion repository on a linux development machine. External users need to be able to access a specific repository, but nothing else on the machine. I know one answer is to set up a dedicated repository, but I'm looking for a single machine solution: location of reposito... | [
{
"answer_id": 411433,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 3,
"selected": false,
"text": "mod_auth_sspi"
},
{
"answer_id": 412521,
"author": "jtimberman",
"author_id": 7672,
"author_profil... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14167/"
] |
411,422 | <p>I'm reading some code in the <a href="http://www.ogre3d.org" rel="nofollow noreferrer">Ogre3D</a> implementation and I can't understand what a <code>void *</code> type variable means. What does a pointer to <code>void</code> mean in C++?</p>
| [
{
"answer_id": 411429,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 6,
"selected": true,
"text": "void*"
},
{
"answer_id": 411683,
"author": "Mr.Ree",
"author_id": 37946,
"author_profile... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25418/"
] |
411,436 | <p>My app uses NSTimer and it appears that NSTimer doesn't fire when the iPhone goes into the stand-by mode (either by pressing the hardware button or by the idle timer).</p>
<p>When I activate the iPhone again, my app is still in the foreground. What happens to third party apps when the iPhone is the stand-by mode?</... | [
{
"answer_id": 411542,
"author": "zoul",
"author_id": 17279,
"author_profile": "https://Stackoverflow.com/users/17279",
"pm_score": 4,
"selected": false,
"text": "applicationWillResignActive"
},
{
"answer_id": 846333,
"author": "Amber Star",
"author_id": 104338,
"auth... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44091/"
] |
411,447 | <p>After posting <a href="https://stackoverflow.com/questions/410890/how-to-trace-a-nullpointerexception-in-a-chain-of-getters" title="How to trace a NullPointerException in a chain of getters?">this question</a> and reading <a href="https://stackoverflow.com/questions/271526/How-to-avoid-null-statements-in-java" title... | [
{
"answer_id": 411467,
"author": "Apocalisp",
"author_id": 3434,
"author_profile": "https://Stackoverflow.com/users/3434",
"pm_score": 3,
"selected": false,
"text": "Option"
},
{
"answer_id": 411477,
"author": "Ronald Blaschke",
"author_id": 49604,
"author_profile": "... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39946/"
] |
411,457 | <p>I'm binding a domain objects property to the Text property of a System.Windows.Forms.Label using the <code>DataBindings</code>:</p>
<pre><code>Label l = new Label();
l.DataBindings.Add(new Binding("Text",myDomainObject,"MyProperty"));
</code></pre>
<p>However, when I change the domain object, the Label does not re... | [
{
"answer_id": 5096143,
"author": "John Alexiou",
"author_id": 380384,
"author_profile": "https://Stackoverflow.com/users/380384",
"pm_score": 3,
"selected": false,
"text": "INotifyPropertyChanged"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50697/"
] |
411,462 | <p>I am working on a small client server program to collect orders. I want to do this in a "REST(ful) way".</p>
<p>What I want to do is:</p>
<p>Collect all orderlines (product and quantity) and send the complete order to the server</p>
<p>At the moment I see two options to do this:</p>
<ol>
<li>Send each orderline ... | [
{
"answer_id": 411622,
"author": "Milan Novota",
"author_id": 26123,
"author_profile": "https://Stackoverflow.com/users/26123",
"pm_score": 3,
"selected": false,
"text": "POST /orders\n"
},
{
"answer_id": 33768160,
"author": "miguelcobain",
"author_id": 1137735,
"auth... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,464 | <p>I see many, many sites that have URLs for individual pages such as </p>
<p><a href="http://www.mysite.com/articles/this-is-article-1" rel="nofollow noreferrer">http://www.mysite.com/articles/this-is-article-1</a>
<a href="http://www.mysite.com/galleries/575" rel="nofollow noreferrer">http://www.mysite.com/galleries... | [
{
"answer_id": 411581,
"author": "Chris Nava",
"author_id": 45163,
"author_profile": "https://Stackoverflow.com/users/45163",
"pm_score": 0,
"selected": false,
"text": "http://www.example.com/articles/12345 (where \"articles\" is a CGI script)\n ^CGI^ ^^^^^^PATH_I... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42979/"
] |
411,476 | <p>I have a controller with two actions:</p>
<pre><code>[AcceptVerbs("GET")]
public ActionResult Add()
{
PrepareViewDataForAddAction();
return View();
}
[AcceptVerbs("POST")]
public ActionResult Add([GigBinderAttribute]Gig gig, FormCollection formCollection)
{
if (ViewData... | [
{
"answer_id": 416654,
"author": "Dominic Betts",
"author_id": 50911,
"author_profile": "https://Stackoverflow.com/users/50911",
"pm_score": 1,
"selected": false,
"text": "if (!ViewData.ModelState.IsValid)\n {\n ViewData[\"StartDate.Hour\"] = \"Error\";\n }\n"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46616/"
] |
411,478 | <p>This method returns some strange results, and was wondering if someone could explain why this is happening, and possibly a solution to get my desired results.</p>
<p>Results:</p>
<p>FileName = what I'd expect</p>
<p>FileSize = what I'd expect</p>
<p>Buffer = all bytes = 0</p>
<p>BytesRead = 0</p>
<p>BlobString... | [
{
"answer_id": 411490,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 0,
"selected": false,
"text": "Reader.GetFieldType(2)"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,495 | <p>In bash one can escape arguments that contain whitespace.</p>
<pre><code>foo "a string"
</code></pre>
<p>This also works for arguments to a command or function:</p>
<pre><code>bar() {
foo "$@"
}
bar "a string"
</code></pre>
<p>So far so good, but what if I want to manipulate the arguments before calling <co... | [
{
"answer_id": 411999,
"author": "tarsius",
"author_id": 51019,
"author_profile": "https://Stackoverflow.com/users/51019",
"pm_score": 6,
"selected": true,
"text": "\"${array[@]}\""
},
{
"answer_id": 416781,
"author": "jpalecek",
"author_id": 51831,
"author_profile": ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51019/"
] |
411,499 | <p>Please take a look on the following pseudo-code:</p>
<pre><code>boolean blocked[2];
int turn;
void P(int id) {
while(true) {
blocked[id] = true;
while(turn != id) {
while(blocked[1-id])
/* do nothing */;
turn = id;
... | [
{
"answer_id": 411587,
"author": "derobert",
"author_id": 27727,
"author_profile": "https://Stackoverflow.com/users/27727",
"pm_score": -1,
"selected": false,
"text": "get blocked[0] -> false // cpu 0\nset blocked[0] = true // cpu 1 (stored in CPU 1's L1 cache)\nget blocked[0] -> f... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43960/"
] |
411,500 | <p>When I implement objects that I want to compare using the <a href="https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1?view=netstandard-2.0" rel="nofollow noreferrer"><code>IEquatable<T></code> interface</a>:</p>
<ol>
<li>Why do I have to override <code>Equals(object)</code> method if I already i... | [
{
"answer_id": 411508,
"author": "Ray Booysen",
"author_id": 42124,
"author_profile": "https://Stackoverflow.com/users/42124",
"pm_score": 7,
"selected": true,
"text": "IEquatable<T>"
},
{
"answer_id": 411536,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
411,515 | <p>Is there an automatic way to add base classes to Linq2Sql entities?</p>
<p>I know I can define a partial and implement that but there has to be an automated way, right?</p>
| [
{
"answer_id": 411903,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "Base Class"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25300/"
] |
411,517 | <p>I'm working on a java SE 1.5+ swing application, in conjunction with others. I'm wondering what the best way of managing string resources is. I understand the principles behind resource bundles etc. I'd like to avoid having one property file for every class that needs a string, as this seems a bit of overkill. Espec... | [
{
"answer_id": 411523,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "ResourceBundle.getBundle()"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3898/"
] |
411,533 | <p>How do I add adsense or other ads in a asp.net ajax/ajax based application ?
(ex. <a href="http://ra-ajax.org/samples/Viewport-Calendar-Starter-Kit.aspx" rel="noreferrer">ra-ajax samples page</a>) or <a href="http://gwt-ext.com/demo/" rel="noreferrer">GWT</a></p>
<p>Is creating an iframe a viable solution?</p>
<... | [
{
"answer_id": 2785732,
"author": "noah",
"author_id": 12034,
"author_profile": "https://Stackoverflow.com/users/12034",
"pm_score": 0,
"selected": false,
"text": "document.write"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46795/"
] |
411,544 | <p>I am attempting to port one of my hobby project to linux. Preferrably to Mono since it is written in C#. But I am looking into Python as well.</p>
<p>One of the feature of the application is that it needs to associate with a custom protocol so the application is invoked when the user clicks links like this on the a... | [
{
"answer_id": 411568,
"author": "Cheery",
"author_id": 21711,
"author_profile": "https://Stackoverflow.com/users/21711",
"pm_score": 2,
"selected": false,
"text": "open firefox\ntype in about:config to location bar\nadd new string\nname: network.protocol-handler.app.myapp\nvalue: /path... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3055/"
] |
411,553 | <p>What are the various parts to an email message?</p>
<p>I'm working with these 3rd party components, and so far from what I understand are:</p>
<ol>
<li><p>emails have unique messageID's (per server I would presume)</p></li>
<li><p>emails have headers</p></li>
<li><p>emails have body text that can be either html or... | [
{
"answer_id": 411569,
"author": "shoosh",
"author_id": 9611,
"author_profile": "https://Stackoverflow.com/users/9611",
"pm_score": 0,
"selected": false,
"text": "winmail.dat"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50700/"
] |
411,571 | <p>I've created </p>
<pre><code> DataTable dt = new DataTable();
dt.Columns.Add("Type");
dt.Columns.Add("Address1");
dt.Columns.Add("Address2");
dt.Columns.Add("PostalCode");
dt.Columns.Add("Country");
DataRow drow = dt.NewRow();
drow["Type"] = ddlAddre... | [
{
"answer_id": 449254,
"author": "CRice",
"author_id": 55693,
"author_profile": "https://Stackoverflow.com/users/55693",
"pm_score": 1,
"selected": false,
"text": "<asp:GridView ID=\"AddressGridView\" runat=\"server\" AutoGenerateColumns=\"false\">\n<Columns>\n <asp:BoundField HeaderT... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.