qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
346,169 | <p>How do you decide between passing arguments to a method versus simply declaring them as object instance variables that are visible to all of the object's methods?</p>
<p>I prefer keeping instance variables in a list at the end of the Class, but this list gets longer as my program grows. I figure if a variable is pas... | [
{
"answer_id": 346184,
"author": "ng.mangine",
"author_id": 37784,
"author_profile": "https://Stackoverflow.com/users/37784",
"pm_score": 5,
"selected": false,
"text": "myCircle = myDrawing.drawCircle(center, radius);\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
346,175 | <p>In 64 bit versions of windows, 32 bit software is installed in "c:\program files (x86)". This means you cannot use $(programfiles) to get the path to (32 bit) software. So I need a $(ProgramFiles32) to overcome this in my MSBuild project. I don't want to change the project depending on the os it is running on.</p>
... | [
{
"answer_id": 346176,
"author": "wimh",
"author_id": 33499,
"author_profile": "https://Stackoverflow.com/users/33499",
"pm_score": 4,
"selected": false,
"text": "<PropertyGroup>\n <ProgramFiles32 Condition=\"Exists('$(PROGRAMFILES) (x86)')\">$(PROGRAMFILES) (x86)</ProgramFiles32>\n <P... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33499/"
] |
346,189 | <p>I want to use the built-in preference system for my xulrunner (Firefox) application. But I can't figure out how to easily drive the user interface based on preferences.</p>
<p>The user can specify a list of home pages, and each home page will show up in a different tab. Because the tabs are in the presentation la... | [
{
"answer_id": 931647,
"author": "vava",
"author_id": 6258,
"author_profile": "https://Stackoverflow.com/users/6258",
"pm_score": 0,
"selected": false,
"text": "\nXML.prototype.function::domNode = function domNode() {\n function addPrefix(prefix, name) {\n if (typeof(prefix) ==... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37784/"
] |
346,226 | <p>I am totally new to XSLT and can't work out where I am going wrong with the following code.</p>
<pre><code><xsl:variable name="var" select="boolean('false')"/>
<xsl:if test="$var'">variable is true</xsl:if>
</code></pre>
<p>It is always returning true when it is meant to be false. Why?</p>
| [
{
"answer_id": 346227,
"author": "Yuval Adam",
"author_id": 24545,
"author_profile": "https://Stackoverflow.com/users/24545",
"pm_score": 4,
"selected": false,
"text": "<xsl:variable name=\"var_false\" select=\"false()\"/>\n<xsl:variable name=\"var_true\" select=\"true()\"/>\n"
},
{
... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5838/"
] |
346,230 | <p>I'm using <code>urllib2</code> to read in a page. I need to do a quick regex on the source and pull out a few variables but <code>urllib2</code> presents as a file object rather than a string.</p>
<p>I'm new to python so I'm struggling to see how I use a file object to do this. Is there a quick way to convert this ... | [
{
"answer_id": 346237,
"author": "stesch",
"author_id": 41860,
"author_profile": "https://Stackoverflow.com/users/41860",
"pm_score": 7,
"selected": true,
"text": "f"
},
{
"answer_id": 346260,
"author": "t3rse",
"author_id": 64,
"author_profile": "https://Stackoverflo... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12870/"
] |
346,243 | <p>If i have the following directory structure:</p>
<p>Project1/bin/debug<br>
Project2/xml/file.xml</p>
<p>I am trying to refer to file.xml from Project1/bin/debug directory</p>
<p>I am essentially trying to do the following:</p>
<pre><code>string path = Environment.CurrentDirectory + @"..\..\Project2\xml\File.xml"... | [
{
"answer_id": 346248,
"author": "lubos hasko",
"author_id": 275,
"author_profile": "https://Stackoverflow.com/users/275",
"pm_score": 2,
"selected": false,
"text": "System.IO.Path.GetFullPath(@\"..\\..\\Project2\\xml\\File.xml\")\n"
},
{
"answer_id": 346249,
"author": "Blair... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
346,267 | <p>I have a string like this that I need to parse into a 2D array:</p>
<pre><code> str = "'813702104[813702106]','813702141[813702143]','813702172[813702174]'"
</code></pre>
<p>the array equiv would be:</p>
<pre><code>arr[0][0] = 813702104
arr[0][1] = 813702106
arr[1][0] = 813702141
arr[1][1] = 813702143
#...... | [
{
"answer_id": 346276,
"author": "stesch",
"author_id": 41860,
"author_profile": "https://Stackoverflow.com/users/41860",
"pm_score": 4,
"selected": true,
"text": "findall"
},
{
"answer_id": 346281,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stac... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12870/"
] |
346,268 | <p>I have data that needs to be executed on a certain background thread. I have code coming from all other threads that need to call into this. does anyone have a good tutorial or best practice on having a queue for synchronization to support this threading requirement</p>
| [
{
"answer_id": 346312,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 1,
"selected": false,
"text": "producer/consumer"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
346,297 | <p>Hi all I've just started a new project using Visual Web Developer 2008 Express and all my code behinds are not in any namespace. How can I set the default namespace for the project?</p>
<p>In VisualStudioPro it used to be in project properties, the website properties in Visual Web Developer 2008 Express seem very ... | [
{
"answer_id": 346493,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 3,
"selected": true,
"text": "namespace MyDefaultNamespace {\n // original code\n}\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12148/"
] |
346,306 | <p>I have used a static global variable and a static volatile variable in file scope,
<p> both are updated by an ISR and a main loop and main loop checks the value of the variable. <p>here during optimization neither the global variable nor the volatile variable are optimized. So instead of using a volatile variable a ... | [
{
"answer_id": 346318,
"author": "friol",
"author_id": 23034,
"author_profile": "https://Stackoverflow.com/users/23034",
"pm_score": 4,
"selected": false,
"text": "#define MYPORT 0xDEADB33F\n\nvolatile char *portptr = (char*)MYPORT;\n*portptr = 'A';\n*portptr = 'B';\n"
},
{
"answ... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31116/"
] |
346,313 | <p>I'm trying to do a JOIN in Linq using lambda expressions ... and running into some problems. </p>
<p>I have two entities, Comments and CommentSources. CommentSources are associated to Comments. I have the following code, which does work:</p>
<pre><code>01 IQueryable<Data.Comment> query = ctx.DataContext.C... | [
{
"answer_id": 346346,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "query = query.Join(ctx.DataContext.CommentSource,\n comment => comment.CommentSourceId,\n ... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
346,323 | <p>I'm starting to code up my own window manager, and was wondering how to use the xorg api to get from raw image data ( such as the data given by libpng ), into an Xorg Pixmap or something drawable by Xorg?</p>
| [
{
"answer_id": 6772012,
"author": "Dave",
"author_id": 852548,
"author_profile": "https://Stackoverflow.com/users/852548",
"pm_score": 0,
"selected": false,
"text": "struct Image img = get_pixels_and_geometry_from_libpng(\"filename.png\");\nXImage *img = XCreateImage(/*5000 paremeters*/)... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25893/"
] |
346,345 | <p>I have been hearing that with unit testing we can catch most of the bugs in the code and I really believe that this is true. But my question is in large projects where each class is dependent on many other classes how do you go about unit testing the class ? Stubbing out every other class doesn't make much sense bec... | [
{
"answer_id": 346483,
"author": "Jeffrey Fredrick",
"author_id": 35894,
"author_profile": "https://Stackoverflow.com/users/35894",
"pm_score": 0,
"selected": false,
"text": "public int foo(A a, B b) {\n C c = a.getC();\n D d = b.getD();\n\n Bar bar = calculateBar(c, d);\n\n return c... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39742/"
] |
346,349 | <p>I want to create a program that requests from the user 10 grades and then filters them to pass and fail, then prints the number of passes and fails. I did the program but the output is wrong.</p>
<pre><code>int pass,fail,grade,studentcounter;
pass=0;
fail=0;
grade=0;
studentcounter=10;
while (studentcounter!=0)
{... | [
{
"answer_id": 346357,
"author": "John T",
"author_id": 36457,
"author_profile": "https://Stackoverflow.com/users/36457",
"pm_score": 3,
"selected": true,
"text": "studentcounter=0;\n\nwhile (studentcounter!=0) {\n\nprintf(\"enter the next grade\\n\");\n\nscanf(\"%d\",grade);\n\nstudent-... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,352 | <p>Can somebody give some clear explanation of the meaning of the SIZE and RSS values we get from prstat in Solaris?</p>
<p>I wrote a testing C++ application that allocates memory with <code>new[]</code>, fills it and frees it with <code>delete[]</code>.</p>
<p>As I understood, the SIZE value should be related to how... | [
{
"answer_id": 2023651,
"author": "jlliagre",
"author_id": 211665,
"author_profile": "https://Stackoverflow.com/users/211665",
"pm_score": 4,
"selected": true,
"text": "export LD_PRELOAD=libumem.so\nexport UMEM_OPTIONS=backend=mmap\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41789/"
] |
346,361 | <p>I'm developing a experimental <strong>Linux Kernel module</strong>, so...</p>
<p>How to <strong>UDP Broadcast</strong> from Linux Kernel?</p>
| [
{
"answer_id": 346727,
"author": "Evan Anderson",
"author_id": 40764,
"author_profile": "https://Stackoverflow.com/users/40764",
"pm_score": 2,
"selected": false,
"text": "lock_sock(sock->sk);\nsock->sk->broadcast = 1;\nrelease_sock(sock->sk);\n"
},
{
"answer_id": 346731,
"au... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1100/"
] |
346,362 | <p>I have several templates that match various nodes in an xml document. If I do just an<br>
<xsl:apply-templates/>
it somehow recursively outputs the text of all the nodes beneath. I just want it to recursively match any template I have defined. How do I do that ? </p>
| [
{
"answer_id": 346396,
"author": "Dirk Vollmar",
"author_id": 40347,
"author_profile": "https://Stackoverflow.com/users/40347",
"pm_score": 2,
"selected": false,
"text": "<xsl:template match=\"* | /\" >\n <xsl:apply-templates mode=\"myMode\" />\n</xsl:template>\n\n<xsl:template match=... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43940/"
] |
346,365 | <p>The following is okay:</p>
<pre><code>try
{
Console.WriteLine("Before");
yield return 1;
Console.WriteLine("After");
}
finally
{
Console.WriteLine("Done");
}
</code></pre>
<p>The <code>finally</code> block runs when the whole thing has finished executing (<code>IEnumer... | [
{
"answer_id": 346434,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 3,
"selected": false,
"text": "yield"
},
{
"answer_id": 346772,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27423/"
] |
346,372 | <p>I know how I use these terms, but I'm wondering if there are accepted definitions for <strong>faking</strong>, <strong>mocking</strong>, and <strong>stubbing</strong> for unit tests? How do you define these for your tests? Describe situations where you might use each.</p>
<p>Here is how I use them:</p>
<p><stron... | [
{
"answer_id": 33333064,
"author": "Marjan Venema",
"author_id": 11225,
"author_profile": "https://Stackoverflow.com/users/11225",
"pm_score": 7,
"selected": false,
"text": "const pleaseReturn5 = 5;\nvar fake = new FakeX(pleaseReturn5);\nvar cut = new ClassUnderTest(fake);\n\ncut.SquareI... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12950/"
] |
346,380 | <p>In Ruby you can reference variables inside strings and they are interpolated at runtime. </p>
<p>For example if you declare a variable <code>foo</code> equals <code>"Ted"</code> and you declare a string <code>"Hello, #{foo}"</code> it interpolates to <code>"Hello, Ted"</code>. </p>
<p>I've not been able to figur... | [
{
"answer_id": 346413,
"author": "stesch",
"author_id": 41860,
"author_profile": "https://Stackoverflow.com/users/41860",
"pm_score": 5,
"selected": true,
"text": "erb"
},
{
"answer_id": 346432,
"author": "Daniel Lucraft",
"author_id": 11951,
"author_profile": "https:... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4061/"
] |
346,426 | <p>I am having problems using <a href="http://code.google.com/p/django-tagging/" rel="nofollow noreferrer">django-tagging</a>. I try to follow the <a href="http://code.google.com/p/django-tagging/source/browse/trunk/docs/overview.txt" rel="nofollow noreferrer">documentation</a> but it fails at the second step</p>
<blo... | [
{
"answer_id": 346441,
"author": "ayaz",
"author_id": 23191,
"author_profile": "https://Stackoverflow.com/users/23191",
"pm_score": 0,
"selected": false,
"text": "In [1]: import tagging; tagging.VERSION\nOut[1]: (0, 3, 'pre')\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24946/"
] |
346,445 | <p>I've been banging my head against for wall for a while with this one.</p>
<p>I want to SSH into a set of machines and check whether they are available (accepting connections and not being used). I have created a small script, tssh, which does just that:</p>
<pre><code>#!/bin/bash
host=$1
timeout=${2:-1}
ssh -qo ... | [
{
"answer_id": 346455,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 3,
"selected": true,
"text": "for nu in `ruby -e '(0..20).each { |i| puts i}'`; do\n tssh \"MYBOXES$nu\" \ndone\n"
},
{
"answer_id": 346473,
... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,446 | <p>I've inherited a database that has a structure with a table of products, a table consisting of some product attributes and another table to build the relationship between these attributes and a given product.</p>
<p>A user can filter the products by a combination of these attributes, meaning that if more than one a... | [
{
"answer_id": 346527,
"author": "ʞɔıu",
"author_id": 41613,
"author_profile": "https://Stackoverflow.com/users/41613",
"pm_score": 1,
"selected": false,
"text": "SELECT ... FROM products AS p \nINNER JOIN attributes a1 ON p.product_id=a1.property_id AND a1.attribute_id=1\nINNER JOIN att... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29538/"
] |
346,449 | <p>I'm looking for a free templating engine to generate simple reports. I want some basic features such as :</p>
<ul>
<li>Ability to Write Loops (with any IEnumerable)</li>
<li>Passing Variables</li>
<li>Passing Templates Files (main template, footer, header)</li>
</ul>
<p>I'll use this to generate reports in HTML an... | [
{
"answer_id": 346520,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 3,
"selected": true,
"text": "<html>\n <head>\n <title>My Report</title>\n </head>\n <body>\n <% foreach (ReportRow r in ReportData... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40322/"
] |
346,467 | <p>I'm trying to format numbers. Examples:</p>
<pre><code>1 => 1
12 => 12
123 => 123
1234 => 1,234
12345 => 12,345
</code></pre>
<p>It strikes as a fairly common thing to do but I can't figure out which filter I'm supposed to use.</p>
<p>Edit: If you've a generic Python way to do this, I'm h... | [
{
"answer_id": 346476,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 2,
"selected": false,
"text": "def format_price(self):\n import locale\n locale.setlocale(locale.LC_ALL, '')\n return locale.format('%d', self.price... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12870/"
] |
346,499 | <p>I want to store a string in memory and read it later:</p>
<pre><code>$$->desc.constant->base.id = (char*)malloc(200);
sprintf($$->desc.constant->base.id, "%f", $1);
printf("->%s\n", $$->desc.constant->base.id); //LINE A
printf("->%i\n", $$->desc.constant); //LINE B
//SOME OTHER CODE
//... | [
{
"answer_id": 346507,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "printf(\"->%i\\n\", $$->desc.constant); //LINE B\n"
},
{
"answer_id": 346560,
"author": "1800 IN... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43960/"
] |
346,506 | <p>We use a modified version of the IE engine (the COM version in a C# wrapper) to display a lot of the formatted content in our application. The problem, however, is you don't have a lot of control of any printout of such documents. For example, you can't force a color printout without accessing the registry or dire... | [
{
"answer_id": 346521,
"author": "mackenir",
"author_id": 25457,
"author_profile": "https://Stackoverflow.com/users/25457",
"pm_score": 1,
"selected": false,
"text": "ActiveXHost"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7357/"
] |
346,512 | <p>On AS400 in interactive SQL in a 5250 session,</p>
<pre><code>select * from myfile
</code></pre>
<p>returns rows from one member only when myfile has more than one member.</p>
<p>How can I get rows from a specific member?</p>
<p>Important: in the end I'd like to do this over JDBC with jt400 so really I want a so... | [
{
"answer_id": 435704,
"author": "Ryan Guill",
"author_id": 7186,
"author_profile": "https://Stackoverflow.com/users/7186",
"pm_score": 5,
"selected": false,
"text": "CREATE ALIAS myLibrary/myAlias FOR memberLibrary/memberFile(memberName)\n"
},
{
"answer_id": 17396146,
"autho... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29574/"
] |
346,516 | <p>I am trying to add a link into the pop-up text bubble of a marker in Google Maps through the API. I have successfully run the below code:</p>
<pre><code>echo '<marker lat="43.91892" lng="-78.89231" html="Albertus Magnus College&lt;br&gt;Link to Admissions" label="Albertus Magnus College" />';
</code>... | [
{
"answer_id": 346564,
"author": "benlumley",
"author_id": 39161,
"author_profile": "https://Stackoverflow.com/users/39161",
"pm_score": 0,
"selected": false,
"text": "echo '<marker lat=\"43.91892\" lng=\"-78.89231\" html=\"Albertus Magnus College<br><a href=\\'http://www.albert... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33194/"
] |
346,523 | <p>I have an expression tree I have created by parsing an Xml using the expression class in C#. <a href="https://stackoverflow.com/questions/344741/how-do-i-create-an-expression-tree-by-parsing-xml-in-c">See this question</a>.</p>
<p>I only have Add, Subtract, Divide, Multiply, Parameters, And and Or in my Expression ... | [
{
"answer_id": 346532,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": false,
"text": "var lambda = Expression.Lambda<Func<float,int>>(body, param);\nFunc<float,int> method = lambda.Compile();\nint v = me... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21586/"
] |
346,531 | <p>I'm migrating my WordPress blog and phpBB Forum into a new hosting server. I am using phpMyAdmin to import the SQL script from the database in the previous site. </p>
<p>When I open the .sql script with Kate, it says it uses UTF8 as encoding. When I import the sql in the new server, I have the option in phpMyAdmin ... | [
{
"answer_id": 346552,
"author": "markus",
"author_id": 11995,
"author_profile": "https://Stackoverflow.com/users/11995",
"pm_score": 4,
"selected": true,
"text": "SET NAMES 'utf8';\n"
},
{
"answer_id": 346715,
"author": "Fernando Briano",
"author_id": 1492,
"author_p... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1492/"
] |
346,536 | <p>Is there any good example to give the difference between a <code>struct</code> and a <code>union</code>?
Basically I know that <code>struct</code> uses all the memory of its member and <code>union</code> uses the largest members memory space. Is there any other OS level difference? </p>
| [
{
"answer_id": 346541,
"author": "Kyle Cronin",
"author_id": 658,
"author_profile": "https://Stackoverflow.com/users/658",
"pm_score": 11,
"selected": true,
"text": "union foo {\n int a; // can't use both a and b at once\n char b;\n} foo;\n\nstruct bar {\n int a; // can use both a... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35416/"
] |
346,542 | <p>Thanks for reading this</p>
<p>I thought I could use find(), but couldn't make it work. I know I can add IDs or classnames, but would like to know how with the current markup.</p>
<p>Thanks</p>
<p>Here is the HTML</p>
<pre><code><input name="keywordCheckbox" type="checkbox" value="S" />
<input name="key... | [
{
"answer_id": 346556,
"author": "Pim Jager",
"author_id": 35197,
"author_profile": "https://Stackoverflow.com/users/35197",
"pm_score": 3,
"selected": false,
"text": "$(\"input[name='keywordCheckbox']\").filter(\"input[value='A']\")\n"
},
{
"answer_id": 346558,
"author": "tv... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
346,544 | <p>I have a remote JS that must appear in the head of the document. If the server is slow to respond or inaccessible, obviously this slows or prevents the page from loading. I have been searching for a simple way to set a limit of say 3 seconds (probably less) for it to give up and simply not load the functionality.<... | [
{
"answer_id": 346561,
"author": "Pim Jager",
"author_id": 35197,
"author_profile": "https://Stackoverflow.com/users/35197",
"pm_score": 2,
"selected": false,
"text": "<script type='text/javascript'>\nwindow.onload = function(){\n document.write(\"<script type='text/javascript' src='http... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43962/"
] |
346,546 | <p>Not sure exactly how to word this question ... so edits are welcomed! Anyway ... here goes.</p>
<p>I am currently use Crystal Reports to generated Pdfs and just stream the output to the user. My code looks like the following:</p>
<pre><code>System.IO.MemoryStream stream = new System.IO.MemoryStream();
stream = ... | [
{
"answer_id": 346550,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "Content-Disposition: inline; filename=foo.pdf\n"
},
{
"answer_id": 346554,
"author": "mmx",
"author_id... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
346,567 | <p>Given a document written with normal quotes, e.g.</p>
<pre><code>Ben said "buttons, dear sir".
I replied "Did you say 'buttons'?" to him.
</code></pre>
<p>What ways can one turn these sort of things into LaTeX quotes, with the appropriate semantics. i.e.</p>
<pre><code>Ben said ``buttons, dear sir''.
I replied ``... | [
{
"answer_id": 346606,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"author_profile": "https://Stackoverflow.com/users/2509",
"pm_score": 4,
"selected": true,
"text": "\"'\""
},
{
"answer_id": 346607,
"author": "John D. Cook",
"author_id": 25188,
"au... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19212/"
] |
346,568 | <p>On my blog, I want to display the all the posts from the last month. But if that is less than 10 posts, I want to show the ten most recent posts (in other words, there should never be less than 10 posts on the front page). I am wondering if there is a way to do this in a single query?</p>
<p>Currently, I first ru... | [
{
"answer_id": 346584,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": false,
"text": "(SELECT * FROM posts\nWHERE `timestamp` >= NOW() - INTERVAL 30 DAY)\nUNION\n(SELECT * FROM posts\nORDER BY `timestamp`... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18511/"
] |
346,572 | <p>We are developing a port of the GNU Assembler for a client architecture.
Now the problem being faced is that:</p>
<p>If an immediate operand to an instruction is an expression involving more than one relocatable symbols, how is it handled in output file in elf format. What will be the relocation information produce... | [
{
"answer_id": 346652,
"author": "BCS",
"author_id": 1343,
"author_profile": "https://Stackoverflow.com/users/1343",
"pm_score": 0,
"selected": false,
"text": "j"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35416/"
] |
346,581 | <p>How can I create a empty .mdb file? I'm using ADO.NET and C#. Thanks!</p>
| [
{
"answer_id": 346614,
"author": "MatthewMartin",
"author_id": 33264,
"author_profile": "https://Stackoverflow.com/users/33264",
"pm_score": 4,
"selected": true,
"text": "COPY model.mdb newdb.mdb"
},
{
"answer_id": 346640,
"author": "Tomalak",
"author_id": 18771,
"aut... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12243/"
] |
346,589 | <p>I am writing an application in C# which is going to do extensive calculations. Everything is going around basic struct - Value. It is basically double with some additional parameters (accuracy etc.)
It has to be a struct, because there will be too many of them created to afford heap allocation.
Now, I need to make s... | [
{
"answer_id": 346608,
"author": "Aaron",
"author_id": 31304,
"author_profile": "https://Stackoverflow.com/users/31304",
"pm_score": 0,
"selected": false,
"text": "new Value()"
},
{
"answer_id": 346618,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "ht... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38325/"
] |
346,594 | <p>I have a client application that once in while notifies about its progress a service.
The method call to the service is marked with IsOneWay=true, because the notification doesn't need any return value and I don't want to delay.</p>
<p>The client may notify about errors to the service, and afterward it terminates.... | [
{
"answer_id": 8995014,
"author": "Artur A",
"author_id": 304371,
"author_profile": "https://Stackoverflow.com/users/304371",
"pm_score": 3,
"selected": false,
"text": " [ServiceContract]\n public interface IService1\n {\n [OperationContract]\n void ThrowException(... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,613 | <p>How can you prematurely exit from a function without returning a value if it is a void function? I have a void method that needs to not execute its code if a certain condition is true. I really don't want to have to change the method to actually return a value.</p>
| [
{
"answer_id": 346616,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 9,
"selected": true,
"text": "return;\n"
},
{
"answer_id": 346619,
"author": "jwfearn",
"author_id": 10559,
"author_profile": "https://St... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43875/"
] |
346,622 | <p>I'm curious about conventions for type-punning pointers/arrays in C++. Here's the use case I have at the moment:</p>
<blockquote>
Compute a simple 32-bit checksum over a binary blob of data by treating it as an array of 32-bit integers (we know its total length is a multiple of 4), and then summing up all values a... | [
{
"answer_id": 346764,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 5,
"selected": true,
"text": "const char *data"
},
{
"answer_id": 347585,
"author": "Steve Jessop",
"author_id": 13005,
"author... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40620/"
] |
346,644 | <p>The following code will generate a link to the page I want to get to.</p>
<pre><code><%= Html.ActionLink(image.Title, image.Id.ToString(), "Image") %>
</code></pre>
<p>The following code will cause the correct url to be rendered on the page.</p>
<pre><code><%= Url.Action("Index", "Image", new { id = imag... | [
{
"answer_id": 346771,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 0,
"selected": false,
"text": "<%= Url.Action(\"Image\", \"Home\", new { id = image.Id })%>\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18107/"
] |
346,649 | <p>I have two constructor :</p>
<pre><code>function clsUsagerEmailUserName($nickName, $email)
{
$this->nickName = $nickName;
$this->email = $email;
}
function clsUsagerEmailUserName($email)
{
$this->email = $email;
}
</code></pre>
<p>But this is not work... | [
{
"answer_id": 346651,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 3,
"selected": true,
"text": "function __construct ($var1, $var2 = null)\n{\n if (isset($var2))\n {\n //Do one thing\n }\n else\n... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21386/"
] |
346,659 | <p>All of us who work with relational databases have learned (or are learning) that SQL is different. Eliciting the desired results, and doing so efficiently, involves a tedious process partly characterized by learning unfamiliar paradigms, and finding out that some of our most familiar programming patterns don't wor... | [
{
"answer_id": 346679,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 7,
"selected": false,
"text": "SELECT *\nInsert Into blah SELECT *\n"
},
{
"answer_id": 346687,
"author": "Tony Andrews",
"author_id": 18747,... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31641/"
] |
346,692 | <p>I have written a very simple bash script to help me migrate from dev to staging. What it does is it deletes all files in staging, copies the files over from dev to stage.</p>
<p>However, the config.inc.php file needs to have the first instance of "dev" to be changed to "stage", and no other instance changed.</p>
... | [
{
"answer_id": 346699,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "sed"
},
{
"answer_id": 346704,
"author": "friol",
"author_id": 23034,
"author_profile": "https://... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43980/"
] |
346,702 | <p>I'm using the urlrewriter.net as recommended in several questions in here.
I'm having difficulties with displaying images and with the stylesheet.</p>
<p>I read ScottGu's Blog (again as recommended in here) and in the end he does reffer to this problem and states to use ~/ for server controls etc. ("Handling CSS an... | [
{
"answer_id": 348010,
"author": "Jamie",
"author_id": 24559,
"author_profile": "https://Stackoverflow.com/users/24559",
"pm_score": 0,
"selected": false,
"text": "<base href=\"http://www.w3schools.com/images/\" />\n"
},
{
"answer_id": 371786,
"author": "user46702",
"auth... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,703 | <p>Is there a compelling reason to not use <a href="http://us2.php.net/debug_backtrace" rel="noreferrer"><code>debug_backtrace</code></a> for the sole purpose of determining the calling method's class, name, and parameter list? Not for debugging purposes. It has the word "debug" in the function name, which makes me fe... | [
{
"answer_id": 2962151,
"author": "Jauzsika",
"author_id": 253377,
"author_profile": "https://Stackoverflow.com/users/253377",
"pm_score": 0,
"selected": false,
"text": "/*Called from /var/www/micimacko.php at line 28*/ SELECT count(*) FROM rofibeka;\n"
},
{
"answer_id": 34075506... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43496/"
] |
346,708 | <p>I'm trying to do project Euler number <a href="http://projecteuler.net/index.php?section=problems&id=219" rel="nofollow noreferrer">219</a> but am failing to get a grasp of it. I'm trying to use Python which according to project Euler should be able to do it within a minute! This leads me to think that they can'... | [
{
"answer_id": 346758,
"author": "mattiast",
"author_id": 8272,
"author_profile": "https://Stackoverflow.com/users/8272",
"pm_score": 0,
"selected": false,
"text": "Cost(n) = min {Cost(k)+Cost(n-k)+k+4*(n-k) | 0 < k < n}"
},
{
"answer_id": 346945,
"author": "Community",
"... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,718 | <p>I am trying to make a combined image of all images added to a modell in django with inline editing and a ForeignKey. Ive got these models (simplified):</p>
<pre><code>class Modell(models.Model):
title = models.CharField('beskrivelse', max_length=200)
slug = models.SlugField()
is_public = models.BooleanF... | [
{
"answer_id": 346763,
"author": "Daniel Naab",
"author_id": 32638,
"author_profile": "https://Stackoverflow.com/users/32638",
"pm_score": 1,
"selected": false,
"text": "Modell"
},
{
"answer_id": 346862,
"author": "muhuk",
"author_id": 42188,
"author_profile": "https:... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42546/"
] |
346,721 | <p>Would a LINQ for java be a useful tool? I have been working on a tool that will allow a Java object to map to a row in a database. </p>
<ol>
<li>Would this be useful for Java
programmers? </li>
<li>What features would be
useful?</li>
</ol>
| [
{
"answer_id": 1713619,
"author": "Stephen",
"author_id": 37193,
"author_profile": "https://Stackoverflow.com/users/37193",
"pm_score": 4,
"selected": false,
"text": "List(\"Paris\",\"Berlin\",\"London\",\"Tokyo\")\n .filter(c => c.endsWith(\"n\"))\n .map(c => c.length) \n// result wou... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17712/"
] |
346,723 | <p>Say I only needed to use findall() from the re module, is it more efficient to do:</p>
<pre><code>from re import findall
</code></pre>
<p>or </p>
<pre><code>import re
</code></pre>
<p>Is there actually any difference in speed/memory usage etc?</p>
| [
{
"answer_id": 346753,
"author": "Kozyarchuk",
"author_id": 52490,
"author_profile": "https://Stackoverflow.com/users/52490",
"pm_score": 5,
"selected": true,
"text": "re.findall() \n"
},
{
"answer_id": 346967,
"author": "Noah",
"author_id": 28035,
"author_profile": "... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32933/"
] |
346,730 | <p>I want to change member of structure under double pointer. Do you know how?</p>
<p>Example code</p>
<pre><code>typedef struct {
int member;
} Ttype;
void changeMember(Ttype **foo) {
//I don`t know how to do it
//maybe
*foo->member = 1;
}
</code></pre>
| [
{
"answer_id": 346739,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 6,
"selected": true,
"text": "(*foo)->member = 1;\n"
},
{
"answer_id": 346740,
"author": "Konrad Rudolph",
"author_id": 1968,
"autho... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43975/"
] |
346,750 | <p>I'm creating a plugin to a software that skins the form I created. However, the button are not skin based on them and a standard gray button is shown. Asking on the software forum pointed me that .NET forms control are owner-draw and therefor my button won't redraw with the correct style instead of creating a non ow... | [
{
"answer_id": 349596,
"author": "P Daddy",
"author_id": 36388,
"author_profile": "https://Stackoverflow.com/users/36388",
"pm_score": 1,
"selected": false,
"text": "FlatStyle"
},
{
"answer_id": 350155,
"author": "Pondidum",
"author_id": 1500,
"author_profile": "https... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,757 | <p>I need to implement a spell checker in C. Basically, I need all the standard operations... I need to be able to spell check a block of text, make word suggestions and dynamically add new words to the index.</p>
<p>I'd kind of like to write this myself, tho I really don't know where to begin.</p>
| [
{
"answer_id": 346818,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 5,
"selected": false,
"text": "*"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3886/"
] |
346,760 | <p>I want to find (not generate) 2 text strings such that, after removing all non letters and ucasing, one string can be translated to the other by simple substitution.</p>
<p>The motivation for this comes from a project I known of that is testing methods for attacking cyphers via probability distributions. I'd like t... | [
{
"answer_id": 348462,
"author": "Darius Bacon",
"author_id": 27024,
"author_profile": "https://Stackoverflow.com/users/27024",
"pm_score": 2,
"selected": true,
"text": ">>> math.log(factorial(26), 2)\n88.381953327016262\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
346,762 | <p>In the constructor of my class, I map the current object (<em>this</em>), along with its key (a string entered as a parameter in the constructor) into a static LinkedHashMap so I can reference the object by the string anywhere I might need it later.</p>
<p>Here's the code (if it helps):</p>
<pre><code>public class... | [
{
"answer_id": 346872,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 4,
"selected": true,
"text": "public static DataEntry getEntry(String name) {\n return _INTERNAL_LIST.get(name);\n}\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19825/"
] |
346,770 | <p>Some issues with timezones in PHP have been in the back of my mind for a while now, and I was wondering if there are better ways to handle it than what I'm currently doing.</p>
<p>All of the issues revolve around reformating database stored dates:</p>
<p>When dealing with a site that has to support multiple timezo... | [
{
"answer_id": 346791,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "SET time_zone"
},
{
"answer_id": 14595648,
"author": "John Conde",
"author_id": 250259,
"author_profile": ... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10585/"
] |
346,777 | <p>how can I check at runtime home many parameters a method or a function have in PHP.</p>
<p>example</p>
<pre>
class foo {
function bar ( arg1, arg2 ){
.....
}
}
</pre>
<p>I will need to know if there is a way to run something like</p>
<pre>
get_func_arg_number ( "foo", "bar" )
</pre>
<p>and the result... | [
{
"answer_id": 346789,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 5,
"selected": false,
"text": "$method = new ReflectionMethod('foo', 'bar');\n$num = $method->getNumberOfParameters();\n"
},
{
"answer_id": 346943,
... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43991/"
] |
346,793 | <p>The people on this website seem to know everything so I figured I would ask this just in case:</p>
<p>Is there a method/function in prototype that converts a JSON object to a string that you can store in a cookie?</p>
<p>If not,..i'll just use another external library.</p>
<p>Thanks,
Andrww</p>
| [
{
"answer_id": 346821,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 4,
"selected": true,
"text": "var data = {name: 'Violet', occupation: 'character', age: 25 };\nvar myString = Object.toJSON(data);\n// myString = '{\"name\"... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,811 | <p>I am making a game in JAVA where I want to come up with a list of files in a certain directory in my jar so I can make sure to have a list of those classes to be used in the game.</p>
<p>For example say in my jar I have a directory </p>
<pre><code>mtd/entity/creep/
</code></pre>
<p>I want to get a list of all the... | [
{
"answer_id": 346853,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": true,
"text": "private static List getClassesFromJARFile(String jar, String packageName) throws Error\n{\n final List classes = new ArrayLis... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43994/"
] |
346,823 | <p>I am trying to figure out the following problem.
I am building Yet another math function grapher, The function is drawn on its predefined x,y range, that's all good.</p>
<p>Now I am working on the background and the ticking of X, Y axes (if any axes are shown).</p>
<p>I worked out the following.
I have a fixed wid... | [
{
"answer_id": 347271,
"author": "mweerden",
"author_id": 4285,
"author_profile": "https://Stackoverflow.com/users/4285",
"pm_score": 3,
"selected": true,
"text": "delta = maximum - minimum\nfactor = 10**math.ceil(math.log(delta,10)) # smallest power of 10 greater than delta\nnormalised... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32032/"
] |
346,834 | <p>Does anyone have any best practices, tips & tricks, or recommendations for how to create modal Alert Views with Cocoa Touch?</p>
<p>I like to think there is a way to make this difficult task trivial or at least easier.</p>
| [
{
"answer_id": 347769,
"author": "Geraud.ch",
"author_id": 43954,
"author_profile": "https://Stackoverflow.com/users/43954",
"pm_score": 5,
"selected": true,
"text": "void AlertWithMessage(NSString *message)\n{\n/* open an alert with an OK button */\nUIAlertView *alert = [[UIAlertView al... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23294/"
] |
346,837 | <p>I was curious what the differences are between the debug and release modes of the .NET compiler and came across these questions about <a href="https://stackoverflow.com/questions/90871/debug-vs-release-in-net">debug vs release in .NET</a> and <a href="https://stackoverflow.com/questions/312312/what-are-some-reasons-... | [
{
"answer_id": 347429,
"author": "Robert Rossney",
"author_id": 19403,
"author_profile": "https://Stackoverflow.com/users/19403",
"pm_score": 1,
"selected": false,
"text": "ConditionalAttribute"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2035722/"
] |
346,842 | <p>Well I have a videos website and a few of its tables are:</p>
<p><strong>tags</strong></p>
<pre><code>id ~ int(11), auto-increment [PRIMARY KEY]
tag_name ~ varchar(255)
</code></pre>
<p><strong>videotags</strong></p>
<pre><code>tag_id ~ int(11) [PRIMARY KEY]
video_id ~ int(11) [PRIMARY KEY]
</code></pre>
<p><st... | [
{
"answer_id": 346866,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "EXPLAIN"
},
{
"answer_id": 346869,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https:... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/428190/"
] |
346,855 | <p>The following loop takes about 700 seconds to run in octave and 22 seconds to run in matlab when the DJI matrix has 21000 rows. How can I increase the efficiency of this?</p>
<pre>
for i=1:length(DJI)
DJI2(i,1)=datenum(char(DJI(i,2)),'yyyy-mm-dd');
end
</pre>
| [
{
"answer_id": 346866,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "EXPLAIN"
},
{
"answer_id": 346869,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https:... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14744/"
] |
346,858 | <p>I'm trying to parse a simple string in C++. I know the string contains some text with a colon, followed immediately by a space, then a number. I'd like to extract just the number part of the string. I can't just tokenize on the space (using sstream and <<) because the text in front of the colon may or may n... | [
{
"answer_id": 346867,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 5,
"selected": true,
"text": "std::string strInput = \"Total disk space: 9852465\";\nstd::string strNumber = \"0\";\nsize_t iIndex = strInput.rfind(... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
346,885 | <p>I would like to keep a list of a certain class of objects in my application. But I still want the object to be garbage collected. Can you create <strong>weak references</strong> in .NET?</p>
<p>For reference:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/346762">Garbage Collecting objects which keep tr... | [
{
"answer_id": 346893,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "WeakReference r = new WeakReference(obj);\n"
},
{
"answer_id": 346895,
"author": "Andrew Rollings",
"... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
346,913 | <p>I'm currently developing a little hobby project to display health information in a game on my G15 keyboard through VB.NET.</p>
<p>When I use ReadProcessMemory via an API call, it keeps returning zero. The MSDN documentation referred me to use the Marshal.GetLastWin32Error() call to find out what is wrong and it ret... | [
{
"answer_id": 346935,
"author": "arul",
"author_id": 15409,
"author_profile": "https://Stackoverflow.com/users/15409",
"pm_score": 3,
"selected": true,
"text": "<DllImport(\"kernel32.dll\", SetLastError=true)> _\nPublic Shared Function ReadProcessMemory( _\nByVal hProcess As IntPtr, _\n... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20900/"
] |
346,914 | <p>I'm new to ASP.NET MVC and I'm trying to get the full url to a action when working in a view. I need this to submit to a third party API as a callback. For example what I need is</p>
<blockquote>
<p><a href="http://myserver.com/controller/action" rel="noreferrer">http://myserver.com/controller/action</a></p>
</bl... | [
{
"answer_id": 346921,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 2,
"selected": false,
"text": "http://<%=Request.Url.Host %><%=Url.Action(\"action\", \"controller\")%>\n"
},
{
"answer_id": 347566,
"auth... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42278/"
] |
346,926 | <p>I have a website with a form that uses TinyMCE; independently, I use jQuery. When I load the form from staging server on Firefox 3 (MacOS X, Linux), TinyMCE doesn't finish loading. There is an error in Firefox console, saying that <code>t.getBody()</code> returned <code>null</code>. <code>t.getBody()</code>, as f... | [
{
"answer_id": 347174,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 3,
"selected": false,
"text": "tinyMCE.init(...)"
},
{
"answer_id": 2297055,
"author": "user146498",
"author_id": 146498,
"... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16390/"
] |
346,929 | <p>I am doing some calculations that require a large array to be initialized. The maximum size of the array determines the maximum size of the problem I can solve. </p>
<p>Is there a way to programmatically determine how much memory is available for say, the biggest array of bytes possible?</p>
<p>Thanks </p>
| [
{
"answer_id": 1637306,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "\nUsing pc As New System.Diagnostics.PerformanceCounter(\"Memory\", \"Available Bytes\")\n FreeBytes = pc.NextValue();\nEnd ... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21197/"
] |
346,940 | <p>I have two tables on a page that I want to display side by side, and then center them within the page (actually within another div, but this is the simplest I could come up with):</p>
<pre><code><style>
#outer { text-align: center; }
#inner { text-align: left; margin: 0 auto; }
.t { float: left; }
tab... | [
{
"answer_id": 346956,
"author": "Andrew G. Johnson",
"author_id": 428190,
"author_profile": "https://Stackoverflow.com/users/428190",
"pm_score": 2,
"selected": false,
"text": "<style>\n#outer { text-align: center; }\n#inner { text-align: left; margin: 0 auto; }\n.t { float: left; }\nta... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18625/"
] |
346,954 | <p>I saw a link to find out if AD was running, but am not too sure if the same applies to AD/AM.
One caveat is that I should be able to check about any AD/AM instance (any domain) assuming I have permissions.</p>
| [
{
"answer_id": 513873,
"author": "Dscoduc",
"author_id": 51949,
"author_profile": "https://Stackoverflow.com/users/51949",
"pm_score": 1,
"selected": true,
"text": "LDAP://ADAMServer:50000/DC=domain,DC=local\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43999/"
] |
346,957 | <p>I want to write Html format, but I can not even get a simple MSDN example of it to work.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/tbfb3z56.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/tbfb3z56.aspx</a></p>
<p>Does this console app, a clipboard round tripper, work for anyon... | [
{
"answer_id": 346969,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "var text2 = Clipboard.GetText();"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14841/"
] |
346,960 | <p>i am trying to use an ASP conditional here:</p>
<pre><code>if (Request.Cookies("username")) and
(Request.Cookies("password")) <> ""
Then
</code></pre>
<p>And i keep getting this error:</p>
<blockquote>
<p>Type mismatch: '[string: ""]'</p>
</blockquote>
<p>Any ideas what I am getting that?</p>
| [
{
"answer_id": 346965,
"author": "hmcclungiii",
"author_id": 24333,
"author_profile": "https://Stackoverflow.com/users/24333",
"pm_score": 3,
"selected": true,
"text": "if (Request.Cookies(\"username\") <> \"\") and (Request.Cookies(\"password\") <> \"\") Then\n"
},
{
"answer_id"... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,973 | <p>Is there a simple way to tell what triggered Click event of a Button apart from setting multiple flags in Mouse/Key Up/Down event handlers? I'm currently only interested in distinguishing mouse from everything else, but it would be nice to handle Stylus and other input types if possible. Do I have to create my own b... | [
{
"answer_id": 353140,
"author": "Nir",
"author_id": 3509,
"author_profile": "https://Stackoverflow.com/users/3509",
"pm_score": 4,
"selected": true,
"text": "if (InputManager.Current.MostRecentInputDevice is KeyboardDevice)\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10757/"
] |
347,010 | <p>I currently am trying to write a Python program using scheme semantics so I can later translate it into Scheme without relying on a lot of Pythonic stuff.</p>
<p>I'm trying solve the sliding puzzle problem (where you have 9 slots and 8 tiles arranged in a square) using a*, depth first, and breadth first search algo... | [
{
"answer_id": 347059,
"author": "Kyle Cronin",
"author_id": 658,
"author_profile": "https://Stackoverflow.com/users/658",
"pm_score": 2,
"selected": false,
"text": "; getval\n;\n; This function takes a position (r . c) where and returns the corresponding\n; number in the 8-puzzle state.... | 2008/12/06 | [
"https://Stackoverflow.com/questions/347010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
347,056 | <p>While there appears to some documentation on how to expose JMX through various firewall and tunneling schemes, I sort of want the opposite. I want to ensure that JMX is only accessible to local machine. Unfortunately it appears that the "out of the box" management options do not allow restricting the ports to a lo... | [
{
"answer_id": 660426,
"author": "Fredrik",
"author_id": 59572,
"author_profile": "https://Stackoverflow.com/users/59572",
"pm_score": 2,
"selected": false,
"text": "import java.io.IOException;\nimport java.lang.management.ManagementFactory;\nimport java.net.*;\nimport java.rmi.registry.... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
347,078 | <p>I am just learning about Unit Testing. I am using NUnit to build tests for a VB.NET project.</p>
<p>The project I'm working on is part of a framework which will be used by people who build ASP.NET websites. It includes a base class (which inherits <code>System.Web.HttpApplication</code>) that users of my framewor... | [
{
"answer_id": 347104,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 0,
"selected": false,
"text": "[Test] \npublic void TestExample() \n{ \n // First, instantiate \"Tester\" objects: \n LabelTester label = new Lab... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/475/"
] |
347,085 | <p>I have a desktop app that needs to send data to a MySQL Server. The app will be for internal company use, but the MySQL is on a server at a hosting company.</p>
<p>The data will need to be massaged a bit before being inserted and standard simple insert, delete and update.</p>
<p>Which should I use PHP or Perl?</p>... | [
{
"answer_id": 22475574,
"author": "vogomatix",
"author_id": 1421665,
"author_profile": "https://Stackoverflow.com/users/1421665",
"pm_score": 0,
"selected": false,
"text": "mysql_"
}
] | 2008/12/07 | [
"https://Stackoverflow.com/questions/347085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
347,088 | <p>In a PHP project I'm developing I have a couple of requests that can be either POST or GET. Currently, I'm using the $_SERVER[REQUEST_METHOD] value to determine, which request array to use. I know that $_REQUEST values can be manipulated with cookies, is the $_SERVER superglobal vulnerable to attacks? </p>
| [
{
"answer_id": 347130,
"author": "thenickdude",
"author_id": 14431,
"author_profile": "https://Stackoverflow.com/users/14431",
"pm_score": 0,
"selected": false,
"text": "post' priority over"
}
] | 2008/12/07 | [
"https://Stackoverflow.com/questions/347088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
347,092 | <p>I am trying to have a tooltip on multiple lines. how do i do this?</p>
| [
{
"answer_id": 347112,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 6,
"selected": true,
"text": "Environment.NewLine"
},
{
"answer_id": 65444419,
"author": "flodis",
"author_id": 4299943,
"author_pro... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
347,093 | <p>I have been programming in Perl, off and on, for years now, although only sporadically is it my primary language. Because I often go months without writing any perl, I rely heavily on my dog-eared Camel Book to remind me how to do things. However, when I copy recipes verbatim with no understanding, this bothers me. ... | [
{
"answer_id": 347117,
"author": "D.Shawley",
"author_id": 41747,
"author_profile": "https://Stackoverflow.com/users/41747",
"pm_score": 6,
"selected": true,
"text": "($lotr=$hobbit) =~ s/Bilbo/Frodo/g"
},
{
"answer_id": 347138,
"author": "ysth",
"author_id": 17389,
"... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41194/"
] |
347,096 | <p>Consider the following code:</p>
<pre><code>template <int dim>
struct vec
{
vec normalize();
};
template <>
struct vec<3>
{
vec cross_product(const vec& second);
vec normalize();
};
template <int dim>
vec<dim> vec<dim>::normalize()
{
// code to normalize ve... | [
{
"answer_id": 347103,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 1,
"selected": false,
"text": "template <int dim>\nstruct vec\n{\n};\n\nnamespace impl {\n template <int dim>\n vec<dim> normalize(const vec<dim>... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2222/"
] |
347,109 | <p>I'm implementing unit tests for a family of functions that all share a number of invariants. For example, calling the function with two matrices produce a matrix of known shape.</p>
<p>I would like to write unit tests to test the entire family of functions for this property, without having to write an individual te... | [
{
"answer_id": 347175,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": 4,
"selected": true,
"text": "import unittest\n\nclass UnderTest(object):\n\n def f1(self, i):\n return i + 1\n\n def f2(self, i):\n r... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37984/"
] |
347,111 | <p>In a CF8 form, I'm using a tag such as the following:</p>
<pre><code><cfinput
type = "Text"
name = "Num"
value = "0"
validate = "range,integer"
range = "0,1000"
validateAt="onBlur,onSubmit"
required = "yes"
message = "Invalid Value"
>
</code></pre>
<p>When the field l... | [
{
"answer_id": 347409,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": true,
"text": "if (!has_value && !in_range || !is_integer) show_error()\n"
},
{
"answer_id": 347548,
"author": "Ben Doom",
... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26428/"
] |
347,132 | <p>How would you append an integer to a <code>char*</code> in c++?</p>
| [
{
"answer_id": 347140,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 6,
"selected": true,
"text": "char*"
},
{
"answer_id": 347143,
"author": "Sydius",
"author_id": 43496,
"author_profile": "https://Sta... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37875/"
] |
347,142 | <p>Is it common practice to keep project files (i.e. files other that source code files) in the version control repository?</p>
<p>Also, are these files checked in/out on a regular basis?</p>
<p>I always envisioned a SCC repository as 'clean' with only source code files.</p>
<p>How do you manage the non-source code ... | [
{
"answer_id": 347151,
"author": "Hudson",
"author_id": 14105,
"author_profile": "https://Stackoverflow.com/users/14105",
"pm_score": 0,
"selected": false,
"text": "cvs add -kb filenames\n"
}
] | 2008/12/07 | [
"https://Stackoverflow.com/questions/347142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21826/"
] |
347,156 | <p>Do you put unit tests in the same project for convenience or do you put them in a separate assembly?</p>
<p>If you put them in a separate assembly like we do, we end up with a number of extra projects in the solution. It's great for unit testing while coding but how do you release the application without all of th... | [
{
"answer_id": 25076422,
"author": "Andrej Adamenko",
"author_id": 3421814,
"author_profile": "https://Stackoverflow.com/users/3421814",
"pm_score": 4,
"selected": false,
"text": "public static class Ext\n{\n [TestCase(1.1, Result = 1)]\n [TestCase(0.9, Result = 1)]\n public ... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
347,160 | <p>In a brand new program where space isn't really that big a deal, is it better to delete a row or to disable a row by let's say a boolean "Disabled" and have the program just ignore it?</p>
<p>For example, if I wanted to remove a user from a program.</p>
| [
{
"answer_id": 348970,
"author": "Piskvor left the building",
"author_id": 19746,
"author_profile": "https://Stackoverflow.com/users/19746",
"pm_score": 2,
"selected": false,
"text": "users"
}
] | 2008/12/07 | [
"https://Stackoverflow.com/questions/347160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
347,196 | <p>I have only this in my mxml source code:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:comp="components.*"
width="770" height="330">
<mx:Label x="185.5" y="150"
text="Placeholder for Future UI." fontSize="... | [
{
"answer_id": 2245923,
"author": "pablo",
"author_id": 271205,
"author_profile": "https://Stackoverflow.com/users/271205",
"pm_score": 0,
"selected": false,
"text": "<?xml..."
}
] | 2008/12/07 | [
"https://Stackoverflow.com/questions/347196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20165/"
] |
347,210 | <p>How do you execute a JavaScript function without <code>onclick</code> like "Grippie" in a new post on SOF, like the <code><div class="grippie" style="margin-right: 59px;"/</code>> on Stack Overflow when you post a question or answer? I get a nice CSS cursor which lets me know of t... | [
{
"answer_id": 352929,
"author": "Supernovah",
"author_id": 36076,
"author_profile": "https://Stackoverflow.com/users/36076",
"pm_score": 2,
"selected": false,
"text": "document.getElementById('ID').addEventListener('click',function();,false); \n//Problems: Has to be terminated and fals... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36076/"
] |
347,219 | <p>I'm using an NSTimer to do some rendering in an OpenGL based iPhone app. I have a modal dialog box that pops up and requests user input. While the user is providing input I'd like to "pause" i.e. something like this:</p>
<pre><code>[myNSTimer pause];
</code></pre>
<p>I'm using this syntax because I've been doing... | [
{
"answer_id": 3777774,
"author": "kapesoftware",
"author_id": 456090,
"author_profile": "https://Stackoverflow.com/users/456090",
"pm_score": 4,
"selected": false,
"text": "pauseStart = [[NSDate dateWithTimeIntervalSinceNow:0] retain];\npreviousFiringDate = [timer firingDate];\n[timer s... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
347,226 | <p>I've created a table in Microsoft Sql CE that I'm using to hold some data. I've generated an ORM via SqlMetal and I've pulled the datasource into my WPF project.</p>
<p>I want to create a simple WPF form that can be used to edit a record in the table via the ORM-generated classes. I want this form to support typi... | [
{
"answer_id": 347230,
"author": "Greg D",
"author_id": 6932,
"author_profile": "https://Stackoverflow.com/users/6932",
"pm_score": 1,
"selected": false,
"text": "var existingRow = GetExistingRow(someConditionOrWhatever);\ndetailWindow.DataContext = existingRow;\nif(!detailWindow.ShowDia... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6932/"
] |
347,235 | <p>I have string which is base64 encoded. How can I search this string to check if this string contains specific sub string which is not encoded? I don't want to decode that string and then search it. </p>
<p>Can I just encode that specific sub string, and search the encoded string by using the encoded sub string?</p>... | [
{
"answer_id": 67880688,
"author": "recvfrom",
"author_id": 9457431,
"author_profile": "https://Stackoverflow.com/users/9457431",
"pm_score": 0,
"selected": false,
"text": "MZ"
}
] | 2008/12/07 | [
"https://Stackoverflow.com/questions/347235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
347,238 | <p>There seems to be three common approaches for mapping an application end user to a database user. </p>
<ol>
<li><strong>One to One Mapping:</strong> Each Application user (bob, nancy and fred) also get a corresponding database user account (bob nancy and fred).</li>
<li><strong>N to M mapping:</strong> Each appl... | [
{
"answer_id": 347438,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "USER_NAME()"
}
] | 2008/12/07 | [
"https://Stackoverflow.com/questions/347238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/700/"
] |
347,242 | <p>by default is a class:</p>
<ol>
<li>private ?</li>
<li>internal ? </li>
<li>sealed ?</li>
</ol>
| [
{
"answer_id": 347395,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": false,
"text": "public string Foo { get; private set; }\n"
}
] | 2008/12/07 | [
"https://Stackoverflow.com/questions/347242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
347,248 | <p>Can I do it with reflection or something like that?</p>
| [
{
"answer_id": 347323,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 5,
"selected": false,
"text": "ServiceLoader"
},
{
"answer_id": 30446248,
"author": "Ahmad Abdelghany",
"author_id": 1998422,
"author_... | 2008/12/07 | [
"https://Stackoverflow.com/questions/347248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1356709/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.