qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
401,771 | <p>I'm working with a MySQL database that has some data imported from <a href="http://en.wikipedia.org/wiki/Microsoft_Excel" rel="noreferrer">Excel</a>. The data contains non-<a href="http://en.wikipedia.org/wiki/ASCII" rel="noreferrer">ASCII</a> characters (em dashes, etc.) as well as hidden carriage returns or line f... | [
{
"answer_id": 401819,
"author": "Chad Birch",
"author_id": 41665,
"author_profile": "https://Stackoverflow.com/users/41665",
"pm_score": 7,
"selected": true,
"text": "SELECT * FROM tableName WHERE columnToCheck NOT REGEXP '[A-Za-z0-9]';\n"
},
{
"answer_id": 639295,
"author":... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47166/"
] |
401,783 | <p>Given the following Java code for generating a binary file:</p>
<pre><code>DataOutputStream out = new DataOutputStream(new FileOutputStream("foo.dat"));
out.writeInt(1234);
out.writeShort(30000);
out.writeFloat(256.384f);
</code></pre>
<p>I'm using the following Objective-C code and manage to parse the int and the... | [
{
"answer_id": 401846,
"author": "Derek Ledbetter",
"author_id": 25653,
"author_profile": "https://Stackoverflow.com/users/25653",
"pm_score": 4,
"selected": true,
"text": "<Foundation/Foundation.h>"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50335/"
] |
401,787 | <p>How to scale the y-axis with <a href="http://matplotlib.sourceforge.net/" rel="nofollow noreferrer">Matplotlib</a>? I don't want to change the y-limit, I just want to extend the physical space.</p>
<pre><code>^ ^
| |
| |
+----> |
Before +---->
After
</code></pre>
| [
{
"answer_id": 401823,
"author": "Autoplectic",
"author_id": 49994,
"author_profile": "https://Stackoverflow.com/users/49994",
"pm_score": 4,
"selected": true,
"text": "from pylab import *\nx = linspace(0, 10*pi, 2**10)\ny = sin(x)\nfigure(figsize=(5, 10))\nplot(x, y)\nshow()\n"
},
{... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2007483/"
] |
401,812 | <p>What is the proper way to cast from an 'OLE_HANDLE' to an 'HICON' for an x64 target build?</p>
<p>In particular with a normal C-Style cast, I get this warning when compiling with an x64 config:</p>
<p>warning C4312: 'type cast' : conversion from 'OLE_HANDLE' to 'HICON' of greater size</p>
<p>Here is the offending... | [
{
"answer_id": 401857,
"author": "chaos",
"author_id": 47529,
"author_profile": "https://Stackoverflow.com/users/47529",
"pm_score": 0,
"selected": false,
"text": "HICON hSomeIcon = (HICON) hSomeOLEHandle;\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
401,816 | <p>How can I make a Click-once deployed app run a startup?</p>
<p>The best option I found by searching was to set the Publisher on the app to Startup, so the Start menu shortcut would be placed in the Startup folder, but that seems like a huge hack and I would like there to be a Start menu icon people can find.</p>
<... | [
{
"answer_id": 8695121,
"author": "Don Scott",
"author_id": 1086521,
"author_profile": "https://Stackoverflow.com/users/1086521",
"pm_score": 6,
"selected": true,
"text": "// The path to the key where Windows looks for startup applications\nRegistryKey rkApp = Registry.CurrentUser.OpenSu... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100/"
] |
401,820 | <p>Is it possible not to use web service for ASP.net ajax instead call code-behind function to fetch data?</p>
<p>any example or link is much appericate.</p>
| [
{
"answer_id": 8695121,
"author": "Don Scott",
"author_id": 1086521,
"author_profile": "https://Stackoverflow.com/users/1086521",
"pm_score": 6,
"selected": true,
"text": "// The path to the key where Windows looks for startup applications\nRegistryKey rkApp = Registry.CurrentUser.OpenSu... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
401,834 | <p>Arising out of <a href="https://stackoverflow.com/questions/401467/how-to-reduce-the-size-of-an-sqlite3-database-for-iphone">this</a> question, I'm looking for an elegant (ruby) way to compute the word signature suggested in <a href="https://stackoverflow.com/questions/401467/how-to-reduce-the-size-of-an-sqlite3-dat... | [
{
"answer_id": 401848,
"author": "Robert Simmons",
"author_id": 18951,
"author_profile": "https://Stackoverflow.com/users/18951",
"pm_score": 4,
"selected": true,
"text": "s = \"mississippi\"\ns.split('').sort.join.gsub(/(.)\\1{2,}/) { |s| s.length.to_s + s[0,1] } \n"
},
{
"answe... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42404/"
] |
401,847 | <p>How can I tell whether a circle and a rectangle intersect in 2D Euclidean space? (i.e. classic 2D geometry)</p>
| [
{
"answer_id": 401859,
"author": "ForYourOwnGood",
"author_id": 48728,
"author_profile": "https://Stackoverflow.com/users/48728",
"pm_score": -1,
"selected": false,
"text": "if sqrt((rectangleRight.x - circleCenter.x)^2 +\n (rectangleBottom.y - circleCenter.y)^2) < radius\n// then... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1088/"
] |
401,851 | <p>I'm working with a group of other programmers on an open source project built using C++ and Qt.</p>
<p>Now, we need a naming convention for widgets (and other variables generally) to use it as a standard in all of our code so that, the code gets better readability and we get better coordination between programmers.... | [
{
"answer_id": 404244,
"author": "Michael Bishop",
"author_id": 45114,
"author_profile": "https://Stackoverflow.com/users/45114",
"pm_score": 5,
"selected": true,
"text": "QTextEdit * userNameEdit = new QTextEdit(this);\n"
},
{
"answer_id": 1160492,
"author": "Marc Mutz - mmu... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49217/"
] |
401,856 | <p>It's generally accepted that copy and paste programming is a bad idea, but what is the best way to handle a situation where you have two functions or blocks of code that really <strong>do</strong> need to be different in just a few ways make generalizing them extremely messy? </p>
<p>What if the code is substantia... | [
{
"answer_id": 401873,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 1,
"selected": false,
"text": "#define RETPOS(E) do { if ((E) > 0) then return; } while(0)\n"
},
{
"answer_id": 401880,
"author": "Loga... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23903/"
] |
401,905 | <p>I'm trying to capture the id of an element that will be randomly generated. I can successfully capture the value of my element id like this...</p>
<pre><code>| storeAttribute | //div[1]@id | variableName |
</code></pre>
<p>Now my variable will be something like...</p>
<pre><code>divElement-12345
</code></pre>
<p... | [
{
"answer_id": 615573,
"author": "s_hewitt",
"author_id": 74309,
"author_profile": "https://Stackoverflow.com/users/74309",
"pm_score": 3,
"selected": true,
"text": "storeAttribute | //div[1]@id | divID\nstoreEval | '${divID}'.replace(\"div... | 2008/12/31 | [
"https://Stackoverflow.com/questions/401905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48523/"
] |
401,908 | <p>I've run into an odd problem and I'm not sure how to fix it. I have several classes that are all PHP implementations of JSON objects. Here' an illustration of the issue</p>
<pre><code>class A
{
protected $a;
public function __construct()
{
$this->a = array( new B, new B );
}
publi... | [
{
"answer_id": 402051,
"author": "pablasso",
"author_id": 19329,
"author_profile": "https://Stackoverflow.com/users/19329",
"pm_score": 0,
"selected": false,
"text": "[{\"b\":{\"foo\":\"bar\"}},{\"b\":{\"foo\":\"bar\"}}]\n"
},
{
"answer_id": 402468,
"author": "null",
"aut... | 2008/12/31 | [
"https://Stackoverflow.com/questions/401908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8815/"
] |
401,910 | <p>Im a little confused over how to use the .NET Trace and Debug classes.</p>
<p>Why would you bother using Trace instead of Debug?</p>
<pre><code>Trace.TraceError()
Trace.TraceInformation()
Trace.Assert()
Debug.WriteLine()
Debug.Assert()
</code></pre>
<p>Also, I understand that Debug statements are ignored when yo... | [
{
"answer_id": 402706,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "Debug.WriteLine"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/401910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17211/"
] |
401,915 | <p>What is the best way to find all the system fonts a user has available so they can be displayed in a dropdown selection box? </p>
<p>I would also like to distinguish between Unicode and non-Unicode fonts.</p>
<p>I am using Delphi 2009 which is fully Unicode enabled, and would like a Delphi solution.</p>
| [
{
"answer_id": 401975,
"author": "Tim Jarvis",
"author_id": 10387,
"author_profile": "https://Stackoverflow.com/users/10387",
"pm_score": 3,
"selected": false,
"text": "Listbox1.Items.AddStrings(Screen.Fonts);\n"
},
{
"answer_id": 412265,
"author": "Rob Kennedy",
"author_... | 2008/12/31 | [
"https://Stackoverflow.com/questions/401915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30176/"
] |
401,919 | <p>The code base I'm currently working on is littered with hard-coded values.</p>
<p>I view all hard coded values as a code smell and I try to eliminate them where possible...however there are some cases that I am unsure about.</p>
<p>Here are two examples that I can think of that make me wonder what the best practic... | [
{
"answer_id": 401926,
"author": "Colen",
"author_id": 13500,
"author_profile": "https://Stackoverflow.com/users/13500",
"pm_score": 2,
"selected": false,
"text": "double getpercentage(double myValue)\n{\n return(myValue / 100);\n}\n"
},
{
"answer_id": 401988,
"author": "Di... | 2008/12/31 | [
"https://Stackoverflow.com/questions/401919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39532/"
] |
401,928 | <p>In Visual Studio & other IDEs, you can easily auto format your code with a keyboard shortcut, through the menu, or automatically as you type.</p>
<p>I was wondering if there is yet a way to enable this standard feature in SQL Server Management Studio?</p>
<p>I'm working with some large-ish stored procs that ar... | [
{
"answer_id": 7197517,
"author": "Tao",
"author_id": 74296,
"author_profile": "https://Stackoverflow.com/users/74296",
"pm_score": 8,
"selected": false,
"text": "MERGE"
},
{
"answer_id": 73336865,
"author": "S Nash",
"author_id": 2387085,
"author_profile": "https://S... | 2008/12/31 | [
"https://Stackoverflow.com/questions/401928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/493/"
] |
401,935 | <p>I have IQueryable list of objects of type T which I want to transform into objects of type K</p>
<pre><code>List<K> tranformedList = originalList.Select(x => transform(x)).ToList();
</code></pre>
<p>the transform function returns null if it cannot tranform the objects.If I want to filter out null elements... | [
{
"answer_id": 401957,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 8,
"selected": true,
"text": "List<K> tranformedList = originalList.Select(x => tranform(x))\n .Where(y => y != null) //Ch... | 2008/12/31 | [
"https://Stackoverflow.com/questions/401935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28034/"
] |
401,941 | <p>What is the worst SQL query you've ever seen? What made it bad?</p>
| [
{
"answer_id": 401946,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 5,
"selected": false,
"text": "WHERE name = ROBERT'); DROP TABLE students;--\n"
},
{
"answer_id": 401949,
"author": "Sean Bright",
"author_... | 2008/12/31 | [
"https://Stackoverflow.com/questions/401941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50276/"
] |
401,945 | <p>I am a .NET dev learning Java. As a result, I understand all the fundamentals of programming like loops, variables, functions, etc. My biggest bottleneck is that I don't know my way around Java's packages like I do with .NET's.</p>
<p>This is the reason for this thread - where do I find the following functionality ... | [
{
"answer_id": 401954,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 0,
"selected": false,
"text": "import java.util.loggin.Logger;\n\n...\n\nLogger logger = Logger.getLogger( this.getClass().getName() );\n\nlogger.fine( ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/401945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32484/"
] |
401,971 | <p>I'm using a mac and looking to batch convert a large amount of eps files and create jpg previews of each. I'm looking for preferably a command-line utility, or some type of workflow to easily batch a large number of files. </p>
<p>Thanks for any ideas or input</p>
| [
{
"answer_id": 402007,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 3,
"selected": false,
"text": "convert"
},
{
"answer_id": 402012,
"author": "codelogic",
"author_id": 43427,
"author_profile": ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/401971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49684/"
] |
401,996 | <p>Thanks for reading this.</p>
<p>I have markup similar to what is below. Using the line-height works when there is only one line of text, but the comments data will frequently be multi-line. What is the best way to get the label and the data vertically centered?</p>
<pre><code><html>
<head>
<style&... | [
{
"answer_id": 402000,
"author": "Sophie Alpert",
"author_id": 49485,
"author_profile": "https://Stackoverflow.com/users/49485",
"pm_score": 1,
"selected": false,
"text": "<table>"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/401996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
402,022 | <p>I'm working on an application that runs on Windows Mobile 6 that needs to be able to retrieve all items from an item table that contain a given string (provided by the end user) within the item's description field. The problem is that there are approximately 170,000 items in the table. Since I need to return all ite... | [
{
"answer_id": 402033,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 3,
"selected": false,
"text": "CREATE TABLE WordItemOccurance\n(\n [Word] varchar(50) not null,\n\n ItemId int not null\n constraint FK_... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9732/"
] |
402,065 | <p>it seems I have run into a problem with Internet Explorer 7.
I have an html page that has links to files on another server. The server I am linking to checks the referrer of the request and if the referrer is valid, it allows access to the resource. It works fine in firefox 2 and 3 (as the server my html page is lo... | [
{
"answer_id": 402108,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 4,
"selected": false,
"text": "e.g. document.location.href = 'myNewPage.html'; //FAILS to pass referer in IE\n"
},
{
"answer_id": 934129,
"au... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50369/"
] |
402,077 | <p>A coworker asked me to look at indexing on some tables because his query was running very long. Over an hour.</p>
<pre><code>select count(1)
from databaseA.dbo.table1
inner join databaseA.dbo.table2 on (table1.key = table2.key)
inner join databaseB.dbo.table3 on (table1.key = table3.key)
</code></pre>
<p>Note the... | [
{
"answer_id": 465645,
"author": "edosoft",
"author_id": 6399,
"author_profile": "https://Stackoverflow.com/users/6399",
"pm_score": 1,
"selected": false,
"text": "EXEC master.dbo.sp_serveroption \n @server=N'databaseA', \n @optname=N'collation compatible', \n @optvalue=N'true'\... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12424/"
] |
402,086 | <p>I'm new to LaTeX and I must say that I am really struggling with it. I discovered the \newcommand command that is kind of like a function/method in regular programming languages. You can give it arguments and everything.</p>
<p>I was wondering though, can I somehow iterate in LaTeX? Basically, what I would like to ... | [
{
"answer_id": 402102,
"author": "Chuah",
"author_id": 50370,
"author_profile": "https://Stackoverflow.com/users/50370",
"pm_score": 2,
"selected": false,
"text": "\\loop"
},
{
"answer_id": 402202,
"author": "jason",
"author_id": 45914,
"author_profile": "https://Stac... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48648/"
] |
402,094 | <p>I have a DropDownList and a TextBox on a Page. When the user chooses the "other" option in the DropDownList I want to display a TextBox just to the right of it. I do not want to use the traditional PostBack technique. I want this interaction to be client side.</p>
<p>I am aware that I can get a get a reference to t... | [
{
"answer_id": 402104,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "other"
},
{
"answer_id": 402612,
"author": "Dan",
"author_id": 50442,
"author_profile": "https://Sta... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30887/"
] |
402,119 | <p>When running a query like "insert into table " how do we handle the commit size? I.e. are all records from anotherTable inserted in a single transaction OR is there a way to set a commit size?</p>
<p><s> Thanks very much ~Sri</s>
<s> PS: I am a first timer here, and this site looks very good! </s></p>
| [
{
"answer_id": 402165,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 0,
"selected": false,
"text": "TOP"
},
{
"answer_id": 436911,
"author": "Lurker Indeed",
"author_id": 16951,
"author_profile": "h... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,159 | <p>I messed up on my SVN repository and now need to revert the entire repository from revision 28 to 24 and don't want to deal with diffs or conflicts. Is there a quick and simple way to do this? I've been able to revert back single files before fine with the merge command - but in this instance it wants to add all of ... | [
{
"answer_id": 402172,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 2,
"selected": false,
"text": "svn co path/to/my/repo -r 24\n"
},
{
"answer_id": 402228,
"author": "Kent Fredric",
"author_id": 15614,
"a... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,200 | <p>Supposing I'm setting a background image for a web page in CSS like this:</p>
<pre><code>body {
font-size: 62.5%; /* Resets 1em to 10px */
font-family: Verdana, Arial, Sans-Serif;
background-color: #9D5922;
color: #000;
margin-left: auto;
margin-right: auto;
margin: 0;
padding: 0;
background: url(images/desk.gi... | [
{
"answer_id": 402293,
"author": "Andy Ford",
"author_id": 17252,
"author_profile": "https://Stackoverflow.com/users/17252",
"pm_score": 0,
"selected": false,
"text": "html {\nbackground: url(images/whatever.gif);\n}\n"
},
{
"answer_id": 411705,
"author": "scronide",
"aut... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,215 | <p>In using PHP's DOM classes (DOMNode, DOMEElement, etc) I have noticed that they possess truly readonly properties. For example, I can read the $nodeName property of a DOMNode, but I cannot write to it (if I do PHP throws a fatal error).</p>
<p>How can I create readonly properties of my own in PHP?</p>
| [
{
"answer_id": 402227,
"author": "too much php",
"author_id": 28835,
"author_profile": "https://Stackoverflow.com/users/28835",
"pm_score": 7,
"selected": true,
"text": "class Example {\n private $__readOnly = 'hello world';\n function __get($name) {\n if($name === 'readOnly... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42523/"
] |
402,217 | <p>I need to store some data in a Django model. These data are not equal to all instances of the model.</p>
<p>At first I thought about subclassing the model, but I’m trying to keep the application flexible. If I use subclasses, I’ll need to create a whole class each time I need a new kind of object, and that’s no goo... | [
{
"answer_id": 402248,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 4,
"selected": false,
"text": "repr"
},
{
"answer_id": 402452,
"author": "cdleary",
"author_id": 3594,
"author_profile": "http... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34479/"
] |
402,231 | <p>which is best for a string type global variable in one aspx page?</p>
| [
{
"answer_id": 402256,
"author": "Abram Simon",
"author_id": 46204,
"author_profile": "https://Stackoverflow.com/users/46204",
"pm_score": 1,
"selected": false,
"text": "String.IsNullOrEmpty()"
},
{
"answer_id": 402715,
"author": "Marc Gravell",
"author_id": 23354,
"a... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50383/"
] |
402,247 | <p>I have been programming in Java since 2004, mostly enterprise and web applications. But I have never used <em>short</em> or <em>byte</em>, other than a toy program just to know how these types work. Even in a <em>for loop</em> of 100 times, we usually go with <em>int</em>. And I don't remember if I have ever came ac... | [
{
"answer_id": 402381,
"author": "Alan Moore",
"author_id": 20938,
"author_profile": "https://Stackoverflow.com/users/20938",
"pm_score": 2,
"selected": false,
"text": "byte"
},
{
"answer_id": 402542,
"author": "asalamon74",
"author_id": 21348,
"author_profile": "http... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42769/"
] |
402,250 | <p>I'm using an iframe to display content that has links. When the user clicks around in the iFrame and hits "back," it goes back in the iFrame. This behavior is OK. However, once they're back to the first page of the iFrame and they hit "back" again, the entire window is taken back to the previous page. This is un... | [
{
"answer_id": 10593070,
"author": "Bryan",
"author_id": 55124,
"author_profile": "https://Stackoverflow.com/users/55124",
"pm_score": 2,
"selected": false,
"text": "document.location.href = document.referrer;\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43005/"
] |
402,283 | <p>I am not able to understand the differences between <code>std::string</code> and <code>std::wstring</code>. I know <code>wstring</code> supports wide characters such as Unicode characters. I have got the following questions:</p>
<ol>
<li>When should I use <code>std::wstring</code> over <code>std::string</code>?</li... | [
{
"answer_id": 402813,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": false,
"text": "wide"
},
{
"answer_id": 402918,
"author": "paercebal",
"author_id": 14089,
"author_prof... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,299 | <p>I'm relatively new to ASP.NET and was wondering if anyone could shed some light on when I should use relative references (e.g. ../images/banner_tinga.jpg) versus the tilde (e.g. ~/images/banner_tinga.jpg). Depending on the situation you can accomplish the same goal using either. What are the pros and cons of each me... | [
{
"answer_id": 402491,
"author": "Cyril Gupta",
"author_id": 33052,
"author_profile": "https://Stackoverflow.com/users/33052",
"pm_score": 3,
"selected": true,
"text": "<img src=\"~/images/myimage.png\" runat=\"server\">\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21410/"
] |
402,302 | <p>Here's the .jsp code:</p>
<pre><code><table>
<s:iterator value="allAgents">
<tr>
<td><s:property value="firstName" /></td>
<td><s:property value="middleName" /></td>
<td><s:property val... | [
{
"answer_id": 495743,
"author": "kazanaki",
"author_id": 60593,
"author_profile": "https://Stackoverflow.com/users/60593",
"pm_score": 0,
"selected": false,
"text": "s:checkbox"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15187/"
] |
402,307 | <p>I was wondering what the best way to model a relationship where an object is associated with exactly n objects of another class. I want to extend the has_one relationship to a specific value of n. </p>
<p>For example, a TopFiveMoviesList would belong to user and have exactly five movies. I would imagine that the un... | [
{
"answer_id": 404279,
"author": "cpm",
"author_id": 3674,
"author_profile": "https://Stackoverflow.com/users/3674",
"pm_score": 2,
"selected": true,
"text": "User.movie[1-5]_id"
},
{
"answer_id": 405533,
"author": "nakajima",
"author_id": 39589,
"author_profile": "ht... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1227001/"
] |
402,313 | <p>I recently upgraded a Web Application Project (as well as some dependent projects) from .net 2.0 to .net 3.5 using the built in conversion tool. Everything works well such as using MS AJAX 3.5 vs. the external MS AJAX libraries in 2.0.</p>
<p>My problem occurs when I tried using the new Lambda Expression syntax. Th... | [
{
"answer_id": 402400,
"author": "justin.m.chase",
"author_id": 12958,
"author_profile": "https://Stackoverflow.com/users/12958",
"pm_score": 0,
"selected": false,
"text": "ObjectFactory.Initialize((Action<T>)(x => // where T is the typeof x\n{\n // ...\n}));\n"
},
{
"answer_i... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22264/"
] |
402,314 | <p>In a way following on from <a href="https://stackoverflow.com/questions/158534/reading-a-windows-dmp-file">reading a windows *.dmp file</a></p>
<p>Having received a dump file from random customer, running the debug session to see the crash, you often find it is in a MS or other third party library. The next issue ... | [
{
"answer_id": 403511,
"author": "MSN",
"author_id": 6210,
"author_profile": "https://Stackoverflow.com/users/6210",
"pm_score": 1,
"selected": true,
"text": "_NT_SYMBOL_PATH"
},
{
"answer_id": 414972,
"author": "bk1e",
"author_id": 8090,
"author_profile": "https://St... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37558/"
] |
402,330 | <pre><code>java -classpath ../classes;../jar;. parserTester
</code></pre>
<p>How can i get the functionality in the above command programmatically? Like, is it possible to run as:</p>
<pre><code>java parserTester
</code></pre>
<p>and get the same result? I tried using URLClassLoader but it modifies the classpath and... | [
{
"answer_id": 402335,
"author": "Milhous",
"author_id": 17712,
"author_profile": "https://Stackoverflow.com/users/17712",
"pm_score": 0,
"selected": false,
"text": "java -cp *.jar:. myClass\n"
},
{
"answer_id": 402402,
"author": "OscarRyz",
"author_id": 20654,
"autho... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,337 | <p>Has anyone been able to succesfully use the IE CSS hack #IEroot? I stumbled upon it from <a href="http://www.positioniseverything.net/articles/cc-plus.html" rel="nofollow noreferrer">this article</a> but it doesn't seem to work for me.</p>
<p>I'm trying to fix/hack the inline styling bug to produce li inline blocks... | [
{
"answer_id": 402360,
"author": "Wouter van Nifterick",
"author_id": 38813,
"author_profile": "https://Stackoverflow.com/users/38813",
"pm_score": -1,
"selected": false,
"text": "/* >>>>>>> BUTT-UGLY BROWSER HACK! FIX ME!!!!! <<<<<<<< */\n#IEroot #featured li {\n display:inline;\n}\n... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48266/"
] |
402,339 | <p>How do I get justified text with UTTextField. It does have an textAlignment property. But the UITextAlignment constant only has left, right, and center justification.</p>
<p>What I am seeking is the Justified text common in word processing app with text flush with both left and right edges. This is a read only tex... | [
{
"answer_id": 402360,
"author": "Wouter van Nifterick",
"author_id": 38813,
"author_profile": "https://Stackoverflow.com/users/38813",
"pm_score": -1,
"selected": false,
"text": "/* >>>>>>> BUTT-UGLY BROWSER HACK! FIX ME!!!!! <<<<<<<< */\n#IEroot #featured li {\n display:inline;\n}\n... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,341 | <p>I'd like to write a function in Javascript along the lines of:</p>
<pre><code>in_subnet(ip, network, slash) {
...
}
in_subnet('1.2.3.4', '1.2.0.0', 16) # True, since it's in 1.2.0.0/16
in_subnet('1.2.3.4', '1.2.0.0', 24) # False, since it's not in 1.2.0.0/24
</code></pre>
<p>Should I write it from scratch, or... | [
{
"answer_id": 402363,
"author": "Artelius",
"author_id": 31945,
"author_profile": "https://Stackoverflow.com/users/31945",
"pm_score": 2,
"selected": false,
"text": "addr_one = ip_addr_to_integer(ip);\naddr_two = ip_addr_to_integer(network);\nmask = ((1 << (32-slash)) - 1) ^ 0xFFFFFFFF;... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,348 | <p>I need to set/get the cookies stored at <code>first.example</code> while browsing <code>second.example</code>, I have full access of <code>first.example</code> but I only have JavaScript access (can manipulate the DOM as I want) on <code>second.example</code>.</p>
<p>My first approach was to create an iframe on <cod... | [
{
"answer_id": 402354,
"author": "Ryan Doherty",
"author_id": 956,
"author_profile": "https://Stackoverflow.com/users/956",
"pm_score": 4,
"selected": true,
"text": " <script type=\"text/javascript\">\n var newfile=document.createElement('script');\n newfile.setAttribute(\"type\",\"t... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50394/"
] |
402,355 | <p>I am trying to connect to a remote MySQL database using Visual C# 2008 Express Edition. Is there a way to connect using the editor, or do I have to code the connection manually? The editor has a clear and easy-to-follow wizard for connecting to Microsoft SQL Server and Access databases, but I don't see an easy way t... | [
{
"answer_id": 671882,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing MySql.Data.MySqlClient;\nnames... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23249/"
] |
402,359 | <p>Can you simply delete the directory from your python installation, or are there any lingering files that you must delete?</p>
| [
{
"answer_id": 402444,
"author": "cdleary",
"author_id": 3594,
"author_profile": "https://Stackoverflow.com/users/3594",
"pm_score": 7,
"selected": true,
"text": "install"
},
{
"answer_id": 928621,
"author": "offby1",
"author_id": 20146,
"author_profile": "https://Sta... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16584/"
] |
402,364 | <p>My idea of program:</p>
<p>I have a dictionary:</p>
<pre><code>options = { 'string' : select_fun(function pointer),
'float' : select_fun(function pointer),
'double' : select_fun(function pointer)
}
</code></pre>
<p>whatever type comes single function <code>select_fun(function pointer)</code> gets called.
Inside <... | [
{
"answer_id": 402369,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 4,
"selected": false,
"text": "def plus_1(x):\n return x + 1\n\ndef minus_1(x):\n return x - 1\n\nfunc_map = {'+' : plus_1, '-' : minus_1}\n\... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46646/"
] |
402,375 | <p>What is the best way to delete a table referenced by a foreign keys?</p>
| [
{
"answer_id": 402394,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 1,
"selected": false,
"text": "ALTER TABLE <table_name> DROP FOREIGN KEY <foreignkey_name>\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47957/"
] |
402,377 | <p>I wish to have long and short forms of command line options invoked using my shell script.</p>
<p>I know that <code>getopts</code> can be used, but like in Perl, I have not been able to do the same with shell.</p>
<p>Any ideas on how this can be done, so that I can use options like:</p>
<pre><code>./shell.sh --co... | [
{
"answer_id": 402410,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 9,
"selected": true,
"text": "getopts"
},
{
"answer_id": 402412,
"author": "Nietzche-jou",
"author_id": 39892,
"author_profile": ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35416/"
] |
402,391 | <p>I need to be able to write a function that shows repeated words from a string and return a list of strings in order of its occurrence and ignore non-letters</p>
<p>e.g at hugs prompt</p>
<pre><code>repetitions :: String -> [String]
repetitions > "My bag is is action packed packed."
output> ["is","packed"... | [
{
"answer_id": 402409,
"author": "Apocalisp",
"author_id": 3434,
"author_profile": "https://Stackoverflow.com/users/3434",
"pm_score": 4,
"selected": true,
"text": "words"
},
{
"answer_id": 402426,
"author": "Alexander Prokofyev",
"author_id": 11256,
"author_profile":... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50409/"
] |
402,403 | <p>I'm trying to develop a firefox extension that inserts additional HTTP header fields into outgoing HTTP requests (to interface with an apache extension i'm concurrently developing).</p>
<p>While I understand the individual components of an extension and understand the basic tutorials that are presented on the web, ... | [
{
"answer_id": 445414,
"author": "Nickolay",
"author_id": 1026,
"author_profile": "https://Stackoverflow.com/users/1026",
"pm_score": 0,
"selected": false,
"text": "components/<some name>.js"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42050/"
] |
402,432 | <p>I am trying to return an array Data Member from one smaller 2D Array Object, and trying to insert the array into a larger 2D array object. But when attempting this, I came into two problems.</p>
<p>First problem is that I want to return the name of the 2D array, but I do not know how to properly syntax to return 2D... | [
{
"answer_id": 402456,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 3,
"selected": true,
"text": "// Piece::returnPiece is a function taking no arguments and returning a pointer to a\n// 4x4 array of integers\nint (... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,448 | <p>I have a Div Tag which contains 4 child Div Tags</p>
<pre>
<code>
<Div id="Parent">
<div id="childOne">ChildOne </div>
<div id="childOne">ChildTwo </div>
<div id="childOne">ChildThree </div>
<div id="childOne">ChildFour </div>
</Div>
</code>
</pre>
<p>Now I would ... | [
{
"answer_id": 402655,
"author": "meouw",
"author_id": 12161,
"author_profile": "https://Stackoverflow.com/users/12161",
"pm_score": 3,
"selected": false,
"text": "<style>div.active{ background: red }</style>\n\n<input type=\"text\" id=\"tb\">\n\n<div id=\"Parent\">\n <div id=\"child... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,455 | <p>I need to find basic WYSIWYG HTML editor component for C++Builder 5 to let users to create some simple text that I will paste into existing HTML page template.
Just a simple support to create links, add images, use headers/bold/italic.</p>
| [
{
"answer_id": 402482,
"author": "Wouter van Nifterick",
"author_id": 38813,
"author_profile": "https://Stackoverflow.com/users/38813",
"pm_score": 4,
"selected": true,
"text": "// Delphi code..\n(WebBrowser1.Document as IHTMLDocument2).designMode := 'on';\n"
},
{
"answer_id": 26... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44715/"
] |
402,474 | <p>I'm a student of web development (and college), so my apologies if this comes off sounding naive and offensive, I certainly don't mean it that way. My experience has been with PHP and with a smallish project on the horizon (a glorified shift calendar) I hoped to learn one of the higher level frameworks to ease the ... | [
{
"answer_id": 402494,
"author": "kender",
"author_id": 4172,
"author_profile": "https://Stackoverflow.com/users/4172",
"pm_score": 4,
"selected": true,
"text": "mod_rewrite"
},
{
"answer_id": 402497,
"author": "Sophie Alpert",
"author_id": 49485,
"author_profile": "h... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13257/"
] |
402,481 | <p>I have a web page where it will input an excel/CSV file from the user and read the data from it and import to DB.While inserting each record.I just want to show the details about the record being inserted to the user.(Ex : Client Details of A is adding...)</p>
| [
{
"answer_id": 402501,
"author": "Michael Bray",
"author_id": 50356,
"author_profile": "https://Stackoverflow.com/users/50356",
"pm_score": 3,
"selected": true,
"text": "<%@ Page Language=\"C#\" AutoEventWireup=\"true\" CodeBehind=\"Default.aspx.cs\" Inherits=\"WebApplication1._Default\"... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40521/"
] |
402,483 | <p>I currently have a unittest.TestCase that looks like..</p>
<pre><code>class test_appletrailer(unittest.TestCase):
def setup(self):
self.all_trailers = Trailers(res = "720", verbose = True)
def test_has_trailers(self):
self.failUnless(len(self.all_trailers) > 1)
# ..more tests..
</co... | [
{
"answer_id": 402492,
"author": "cdleary",
"author_id": 3594,
"author_profile": "https://Stackoverflow.com/users/3594",
"pm_score": 5,
"selected": true,
"text": "class test_appletrailer(unittest.TestCase):\n\n all_trailers = None\n\n def setup(self):\n # Only initialize all... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
402,503 | <p>I have developed code with Ajax and jQuery. I have got a response from my.php, and I have
tried to extract the values of the response. Here the code (HTML):</p>
<h3>My.php</h3>
<pre><code>?php
echo '<div id="title">My Title </div>';
echo '<div id="message"> My message &l... | [
{
"answer_id": 402509,
"author": "Michael Bray",
"author_id": 50356,
"author_profile": "https://Stackoverflow.com/users/50356",
"pm_score": -1,
"selected": false,
"text": "var oneval = $(\"#response #title\").text();\nvar subval = $(\"#response #message\").text();\n"
},
{
"answer... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44984/"
] |
402,504 | <p>How do I see the type of a variable? (e.g. unsigned 32 bit)</p>
| [
{
"answer_id": 402507,
"author": "Srikanth",
"author_id": 7205,
"author_profile": "https://Stackoverflow.com/users/7205",
"pm_score": 9,
"selected": false,
"text": "type()"
},
{
"answer_id": 402508,
"author": "Redwood",
"author_id": 1512,
"author_profile": "https://St... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46646/"
] |
402,514 | <p>I was reading some Java recently and came across something (an idiom?) new to me: in the program, classes with multiple constructors would also always include a blank constructor. For example: </p>
<pre><code>public class Genotype {
private boolean bits[];
private int rating;
private int length;
private Ran... | [
{
"answer_id": 402716,
"author": "alepuzio",
"author_id": 45745,
"author_profile": "https://Stackoverflow.com/users/45745",
"pm_score": 0,
"selected": false,
"text": "MyObejct myObject=null\ntry{...\n}catch(Exception e){\n log.error(myObject);//maybe print null. information?\n}\n"
}... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
402,517 | <p>Double.TryParse returns a value, and I don't need a value. I need to be able to tell if a string is numeric and just return a bool.</p>
<p>is there a way to do this? </p>
| [
{
"answer_id": 402525,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 3,
"selected": false,
"text": "Microsoft.VisualBasic"
},
{
"answer_id": 402533,
"author": "Michael Bray",
"author_id": 50356,
"au... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4140/"
] |
402,522 | <p>I use SVN as the source control system, and I wonder how to compare directories while ignoring any metadata differences. Is there a way to tell <code>svn diff</code> to compare only the actual content and ignore any metadata? </p>
<p>I mean metadata like SVN properties, etc. that don't affect the file content. Assu... | [
{
"answer_id": 515031,
"author": "Joe Watkins",
"author_id": 11928,
"author_profile": "https://Stackoverflow.com/users/11928",
"pm_score": 4,
"selected": false,
"text": "--summarize"
},
{
"answer_id": 565966,
"author": "Community",
"author_id": -1,
"author_profile": "... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50430/"
] |
402,536 | <p>I'm in the process of porting some ANSI C++ code to C#... and this is killing me right now.</p>
<p>Both tests have <code>value = 6844268</code>.</p>
<p>Test code:</p>
<pre><code>value >> 12
value & 0x00000FFF
</code></pre>
<p>C++ returns 18273 and 29497, whereas C# returns 1670 and 3948. I've tried eve... | [
{
"answer_id": 402545,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 4,
"selected": true,
"text": ">>"
},
{
"answer_id": 402549,
"author": "hb.",
"author_id": 40164,
"author_profile": "https://Stac... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40164/"
] |
402,538 | <p>I see a lot of code like this:</p>
<pre><code>function Base() {}
function Sub() {}
Sub.prototype = new Base();
</code></pre>
<p>However, if you do:</p>
<pre><code>s = new Sub();
print(s.constructor == Sub);
</code></pre>
<p>This is false. This seems confusing to me, since s's constructor is, indeed, Sub. Is it c... | [
{
"answer_id": 402768,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https://Stackoverflow.com/users/17516",
"pm_score": 2,
"selected": false,
"text": "instanceof"
},
{
"answer_id": 402919,
"author": "bobince",
"author_id": 18936,
"author_profile":... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
402,541 | <p>How can I have that functionality in my game through which the players can change their hairstyle, look, style of clothes, etc., and so whenever they wear a different item of clothing their avatar is updated with it.</p>
<p>Should I:</p>
<ul>
<li><p>Have my designer create all possible combinations of armor, hairs... | [
{
"answer_id": 402554,
"author": "mstrobl",
"author_id": 25965,
"author_profile": "https://Stackoverflow.com/users/25965",
"pm_score": 2,
"selected": true,
"text": "// \n// @param dependant_textures is a vector of textures where \n// texture n+1 depends on texture n. \n// @param combimed... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49153/"
] |
402,598 | <p>I am working on project in Linux which involves
1) Static Lib in C++
2) GUI developed in C++/QT which uses static lib.</p>
<p>Now both the lib and gui are build from command prompt using makefiles.</p>
<p>I am trying to debug both like when I hit one button, call should go from GUI to lib.</p>
<p>Is it possible t... | [
{
"answer_id": 402613,
"author": "CB Bailey",
"author_id": 19563,
"author_profile": "https://Stackoverflow.com/users/19563",
"pm_score": 1,
"selected": false,
"text": "-g"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33411/"
] |
402,605 | <p>In an ASP.NET MVC view I'd like to include a link of the form:</p>
<pre><code><a href="blah">Link text <span>with further descriptive text</span></a>
</code></pre>
<p>Trying to include the <code><span></code> element in the <code>linkText</code> field of a call to <code>Html.ActionLin... | [
{
"answer_id": 402782,
"author": "Casper",
"author_id": 18729,
"author_profile": "https://Stackoverflow.com/users/18729",
"pm_score": 7,
"selected": true,
"text": "<a href=\"<% =Url.Action(\"Action\", \"Controller\")%>\">link text <span>with further blablah</span></a>\n"
},
{
"an... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50136/"
] |
402,615 | <p>This is a idea for a security. Our employees shall have access to some commands on a linux server but not all. They shall e.g. have the possibility to access a log file (<code>less logfile</code>) or start different commands (<code>shutdown.sh</code> / <code>run.sh</code>).</p>
<p>Background information:</p>
<p>Al... | [
{
"answer_id": 12993743,
"author": "Kaz",
"author_id": 1250772,
"author_profile": "https://Stackoverflow.com/users/1250772",
"pm_score": 5,
"selected": false,
"text": "ssh"
},
{
"answer_id": 43793768,
"author": "Yeti",
"author_id": 1009901,
"author_profile": "https://... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2554/"
] |
402,616 | <p>Given this field:</p>
<pre><code>char lookup_ext[8192] = {0}; // Gets filled later
</code></pre>
<p>And this statement:</p>
<pre><code>unsigned short *slt = (unsigned short*) lookup_ext;
</code></pre>
<p>What happens behind the scenes?</p>
<p>lookup_ext[1669] returns 67 = 0100 0011 (C), lookup_ext[1670] returns... | [
{
"answer_id": 402623,
"author": "CB Bailey",
"author_id": 19563,
"author_profile": "https://Stackoverflow.com/users/19563",
"pm_score": 4,
"selected": true,
"text": "slt"
},
{
"answer_id": 402635,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profil... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40164/"
] |
402,630 | <p>Is it possible to implement batching of multiple stored procedure calls (doing updates/deletes) in ADO.NET without resorting to DataAdapters?</p>
| [
{
"answer_id": 402634,
"author": "Michael Bray",
"author_id": 50356,
"author_profile": "https://Stackoverflow.com/users/50356",
"pm_score": 1,
"selected": false,
"text": "UPDATE dbo.QuotePricedLineItem\nSET fkQuoteVendorLineSet = NULL\nFROM dbo.QuotePricedLineItem qpli\nINNER JOIN dbo.Qu... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,648 | <p>I actually have two questions regarding the same problem but I think it is better to separate them since I don't think they are related.</p>
<p>Background:
I am writing a Windows Mobile software in VB.NET which among its tasks needs to connect to a mail-server for sending and retrieving e-mails. As a result, I als... | [
{
"answer_id": 402661,
"author": "Michael Bray",
"author_id": 50356,
"author_profile": "https://Stackoverflow.com/users/50356",
"pm_score": 4,
"selected": true,
"text": "...GetString(b, 0, b.Length);\n"
},
{
"answer_id": 403205,
"author": "moster67",
"author_id": 45402,
... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45402/"
] |
402,658 | <p>I have a table with each cell containing a label and a text field. Problem is that when i go to edit the last row, keyboard hides the lower portion of the table, and i can't see what is being typed. How can i move my interface above the keyboard so i see what is being typed?</p>
<p>Thanks,
Mustafa</p>
| [
{
"answer_id": 403164,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 4,
"selected": true,
"text": "UIKeyboardDidShowNotification"
},
{
"answer_id": 404718,
"author": "Mustafa",
"author_id": 49739,
"a... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49739/"
] |
402,674 | <p>I'm trying to generate random permutations of an 80-character fixed string in C. Much to my dismay, the system I'm working on lacks strfry(). What's the best way for me to generate a random permutation of this string? Since this will be looped over approx. 100,000 times, performance is an issue.</p>
| [
{
"answer_id": 402676,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": true,
"text": "char *\nstrfry (char *string)\n{\n static int init;\n static struct random_data rdata;\n size_t len, i;\n\n if (!i... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50023/"
] |
402,679 | <p>I’ve run into a limitation in the cURL bindings for PHP. It appears there is no easy way to send the same multiple values for the same key for postfields. Most of the workarounds I have come across for this have involved creating the URL encoded post fields by hand tag=foo&tag=bar&tag=baz) instead of using t... | [
{
"answer_id": 402743,
"author": "Paul Dixon",
"author_id": 6521,
"author_profile": "https://Stackoverflow.com/users/6521",
"pm_score": 2,
"selected": false,
"text": "tag[]"
},
{
"answer_id": 402815,
"author": "lImbus",
"author_id": 32490,
"author_profile": "https://S... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50453/"
] |
402,683 | <p>I get a jar file url at runtime as:</p>
<pre><code>jar:file:///C:/proj/parser/jar/parser.jar!/test.xml
</code></pre>
<p>How can this be converted to a valid path as:</p>
<pre><code>C:/proj/parser/jar/parser.jar.
</code></pre>
<p>I have already tried using <code>File(URI)</code>, <code>getPath()</code>, <code>get... | [
{
"answer_id": 402753,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 2,
"selected": false,
"text": "import static org.junit.Assert.assertEquals;\n\nimport java.net.URL;\n\nimport org.junit.Test;\n\npublic class UrlTest {\n\n... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,685 | <p>I am building a website, one section of which will display public notices from a
different website. (The notices are public, no copyright violation) What I need to do is to automatically update my site whenever there is a new notice on the target site. I am using Joomla as my CMS. Any ideas?</p>
<p>Update - Unfort... | [
{
"answer_id": 559203,
"author": "privateace",
"author_id": 66572,
"author_profile": "https://Stackoverflow.com/users/66572",
"pm_score": 0,
"selected": false,
"text": "<?php\n$handle = fopen(\"http://www.example.com/\", \"r\");\n?>\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,736 | <p>I see that Button object has a IsMouseOVer property.</p>
<p>But how do create an effect for the mouse over of a grid or other
element that does not have IsMouseOver??</p>
<p>Thanks
Malcolm</p>
<p>Edit: i figured it out. I was using the wrong method for setting the trigger.</p>
| [
{
"answer_id": 5395241,
"author": "Frinavale",
"author_id": 140420,
"author_profile": "https://Stackoverflow.com/users/140420",
"pm_score": 6,
"selected": false,
"text": "<Grid>\n <Grid.ColumnDefinitions>\n <ColumnDefinition Width=\"25\" />\n <ColumnDefinition />\n </Grid.ColumnD... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40568/"
] |
402,763 | <p>Advance New Year Wishes to All.</p>
<p>I have an error log file with the contents in a pattern parameter, result and stderr (stderr can be in multiple lines).</p>
<pre><code>$cat error_log
<parameter>:test_tot_count
<result>:1
<stderr>:Expected "test_tot_count=2" and the actual value is 3
test_t... | [
{
"answer_id": 402794,
"author": "PEZ",
"author_id": 44639,
"author_profile": "https://Stackoverflow.com/users/44639",
"pm_score": 1,
"selected": false,
"text": "if (/^<parameter>:/)\n"
},
{
"answer_id": 402902,
"author": "genehack",
"author_id": 39933,
"author_profil... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18657/"
] |
402,785 | <p>we've got a list of search-result mappings, e.g. a simple url mapping might look like</p>
<p>"stackoverflow" -> "www.stackoverflow.com"
"joel" -> "www.joelonsoftware.com"</p>
<p>so searching for the exact phrases is working fine. </p>
<p>Now we're looking for an incremental search / typeahead, e.g. "stackover" wo... | [
{
"answer_id": 402806,
"author": "martinus",
"author_id": 48181,
"author_profile": "https://Stackoverflow.com/users/48181",
"pm_score": 3,
"selected": false,
"text": "List<String> urls = Arrays.asList(\"this\", \"is\", \"a\", \"test\");\n\n// search for \"is\"\nList<String> reduced = new... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,792 | <p>is there an easy away to combine fields in awk? Specifically, I have lines like this:</p>
<pre><code>1,2,some text
3,4,some text, but it has commas in it, annoyingly
</code></pre>
<p>I want to extract the two numbers as the first two fields, but then I want all of the text (commas and all) to be the third field. I... | [
{
"answer_id": 402829,
"author": "PolyThinker",
"author_id": 47707,
"author_profile": "https://Stackoverflow.com/users/47707",
"pm_score": 0,
"selected": false,
"text": "cat file.txt | sed 's/\\(.?*\\),\\(.?*\\),/\\1|\\2|/'\n"
},
{
"answer_id": 402850,
"author": "PEZ",
"a... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11522/"
] |
402,810 | <p>Has anyone had any luck getting the <a href="http://camellia.sourceforge.net/" rel="nofollow noreferrer">Camellia</a> computer vision library to install on OS X? I've been banging my head against a wall trying to get it to install. There is <a href="http://po-ru.com/diary/camellia-and-ruby-on-mac-os-x/" rel="nofollo... | [
{
"answer_id": 644618,
"author": "Javier",
"author_id": 61427,
"author_profile": "https://Stackoverflow.com/users/61427",
"pm_score": 2,
"selected": false,
"text": "which gcc"
},
{
"answer_id": 679926,
"author": "Aupajo",
"author_id": 10407,
"author_profile": "https:/... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46364/"
] |
402,817 | <p>I have two HTML tables which would ideally be placed side by side on the screen. Widescreen monitors will cope with this fine, but the tables are too wide to be side by side on most old-fashioned monitors. So I want to use css (or even just HTML, if possible) to place the tables side by side only if the resolution i... | [
{
"answer_id": 402831,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 2,
"selected": false,
"text": "table {\n width: 500px; /* important */\n float: left;\n}\n"
},
{
"answer_id": 402858,
"author": "Schwartser"... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11522/"
] |
402,824 | <p>Is there any Visual Studio add-on (or windows/unix stand-alone program) that creates stub implementations in the cpp file for the functions (including class member functions) that are defined in the header file?</p>
| [
{
"answer_id": 403245,
"author": "Patrick Johnmeyer",
"author_id": 363,
"author_profile": "https://Stackoverflow.com/users/363",
"pm_score": 2,
"selected": false,
"text": "void Foo(int bar){}"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44673/"
] |
402,832 | <p>I occasionally need to process a large amount of data from one package off the network, which takes sufficiently long that when the user tries to interact with the application windows adds the "(Not Responding)" string to the window title. I am aware this is because the processing is being done within a call to hand... | [
{
"answer_id": 402871,
"author": "SmacL",
"author_id": 22564,
"author_profile": "https://Stackoverflow.com/users/22564",
"pm_score": 4,
"selected": false,
"text": "int Refresh()\n{\n MSG msg;\n if (PeekMessage (&msg, NULL, 0, 0,PM_NOREMOVE))\n if ((msg.message == WM_QU... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17493/"
] |
402,833 | <p>Even something very rudimentary is fine. Like entering and evaluating something like x+1, where x is a variable I get to specify.</p>
<p>I was thinking of writing my own using Strings for each formula, regex for parsing them, etc., but let's assume my goal is to be as lazy as I can possibly get away with, and that... | [
{
"answer_id": 405741,
"author": "Thomas Morgner",
"author_id": 48665,
"author_profile": "https://Stackoverflow.com/users/48665",
"pm_score": 1,
"selected": false,
"text": "=[x]+1\n"
},
{
"answer_id": 6128889,
"author": "fasseg",
"author_id": 234922,
"author_profile":... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19825/"
] |
402,841 | <p>I have set up a <a href="http://en.wikipedia.org/wiki/Django_%28web_framework%29" rel="noreferrer">Django</a> application that uses images. I think I have set up the media settings MEDIA_ROOT and MEDIA_URL correctly. However the images don't show up. Do you know what can be the problem?</p>
<p>Let consider this exa... | [
{
"answer_id": 403618,
"author": "Peter Rowell",
"author_id": 17017,
"author_profile": "https://Stackoverflow.com/users/17017",
"pm_score": 1,
"selected": false,
"text": "<Location \"/\">\n SetHandler python-program\n PythonAutoReload Off\n PythonDebug Off\n PythonPath \"['/v... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1692070/"
] |
402,846 | <p>In a particular page i have a ascx control which contains a table.</p>
<p>Now I want to set this control visible/invisible but the visible method is not detected by the intellisense.</p>
<p>The only methods are 1)Equals and 2) ReferenceEquals</p>
<p>Main Page</p>
<pre><code><VPM:VotingPolls Runat="server">... | [
{
"answer_id": 402873,
"author": "David Bonnici",
"author_id": 44973,
"author_profile": "https://Stackoverflow.com/users/44973",
"pm_score": 4,
"selected": true,
"text": "<VPM:VotingPolls ID=\"VPS\" Runat=\"server\"></VPM:VotingPolls>\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
402,881 | <p>On a web <strong><em>contact form</em></strong>, is the reset button really required? Is it really used by anyone? If I don't put it in a page, is there an usability fail? </p>
<p>10x!</p>
| [
{
"answer_id": 405034,
"author": "twils",
"author_id": 48162,
"author_profile": "https://Stackoverflow.com/users/48162",
"pm_score": 1,
"selected": false,
"text": " Select any one option for any Item(s): \n Option 'A' Option 'B' Option 'C'\nItem 1 o ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23810/"
] |
402,909 | <p>I'm using asp.net mvc and I'm trying to create a new Employee, in my form I use the Html.DropDown(...) to display a list of Departments to select from. </p>
<p>Ideally I would like MVC to just figure out which Department was selected (Id property is the value in dropdown), fetch it and set it in the incoming Employ... | [
{
"answer_id": 637378,
"author": "jhappoldt",
"author_id": 52307,
"author_profile": "https://Stackoverflow.com/users/52307",
"pm_score": 1,
"selected": false,
"text": "[ActiveRecord(\"Employees\")]\n[ModelBinder(EmployeeBinder]\npublic class Employee : ActiveRecordBase<Employee>\n{\n ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36465/"
] |
402,911 | <p>I am downloading a JPEG image from a server and assigning it to an image object in my iPhone app using an NSURLConnection.</p>
<p>All works fine when I'm on a Wifi connection, but as soon as I switch to 3G, the quality of the JPEG downloaded reduces dramatically.</p>
<p>Has anyone else experienced this?</p>
<p>Do... | [
{
"answer_id": 15223378,
"author": "George Green",
"author_id": 1175289,
"author_profile": "https://Stackoverflow.com/users/1175289",
"pm_score": 1,
"selected": false,
"text": "NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:theURL];\n// Add headers to avoid mobile net... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1221378/"
] |
402,917 | <p>I'd like to map the following sql in NHibernate.
Will I need to make a separate entity object i.e RoomTypeVO mapped to tb_tags to do this?
Any help much appreciated.</p>
<p>SELECT
dbo.tb_rooms.id,
dbo.tb_rooms.name,
dbo.tb_tags.name AS 'roomType'
FROM
dbo.tb_rooms
INNER JOIN dbo.tb_tags ON (dbo.tb_rooms... | [
{
"answer_id": 403442,
"author": "Arthur Thomas",
"author_id": 14009,
"author_profile": "https://Stackoverflow.com/users/14009",
"pm_score": 2,
"selected": true,
"text": "FROM RoomType \n"
},
{
"answer_id": 404661,
"author": "user17510",
"author_id": 17510,
"author_pr... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17510/"
] |
402,923 | <p>I find increasingly now when I am building a large project, I get the following error. </p>
<blockquote>
<p>fatal error C1083: Cannot open
compiler intermediate file:
'C:\Temp\SYS\a03132ex': Permission
denied</p>
</blockquote>
<p>It occurs in Visual Studio 2003 and VC6, and I have investigated the potenti... | [
{
"answer_id": 402945,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 1,
"selected": false,
"text": "c:\\temp"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22564/"
] |
402,955 | <p>i am looking into the possibilities of doing some work for a client on Flex with a Rails backend. </p>
<p>It ain't rocket science however i was wondering if anyone out there had some experiences with these two AWESOME technologies?</p>
<p>Thanks in advance....</p>
| [
{
"answer_id": 1180371,
"author": "camwest",
"author_id": 107385,
"author_profile": "https://Stackoverflow.com/users/107385",
"pm_score": 0,
"selected": false,
"text": "<script language=\"Javascript\">\n function getAuthKey() { return \"<%= form_authenticity_token %>\"; }\n</script>\n... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50477/"
] |
402,964 | <p>Is there a good tool to generate change reports from Subversion logs. </p>
<p>We have big team and many commits every day. I'm looking for some tool to show changes in all files. We are using Subversion, so I'm looking some tool that can read Subversion logs.</p>
| [
{
"answer_id": 403523,
"author": "Stefan",
"author_id": 48003,
"author_profile": "https://Stackoverflow.com/users/48003",
"pm_score": 4,
"selected": false,
"text": "svn log --xml -v > log.xml\nxsltproc.exe --nowrite --nomkdir --nonet -o changelog.html svn2html.xsl log.xml\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/402964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
402,980 | <p>I'd like to use a single SQL query (in MySQL) to find the record which comes after one that I specify.</p>
<p>I.e., if the table has:</p>
<pre><code>id, fruit
-- -----
1 apples
2 pears
3 oranges
</code></pre>
<p>I'd like to be able to do a query like:</p>
<pre><code>SELECT * FROM table where previous_reco... | [
{
"answer_id": 402985,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 6,
"selected": true,
"text": "SELECT id FROM table WHERE fruit > 'apples' ORDER BY fruit LIMIT 1\n"
},
{
"answer_id": 402988,
"author":... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11522/"
] |
402,984 | <p>I was once asked in an interview 'What are the 3 main concepts of OOP?'.
I answered by saying that in my opinion there were 4 which are as follows:</p>
<ul>
<li>Inheritance</li>
<li>Encapsulation</li>
<li>Abstraction</li>
<li>Polymorphism</li>
</ul>
<p>Was I correct?</p>
| [
{
"answer_id": 403028,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "String<Char> cstr = \"This is a test\";\nString<Dna, Packed<> > dstr = \"GATTACA\";\n\ncout << \"length(\" << cstr <<... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47036/"
] |
402,992 | <p>i want to do this simple piece of code work.</p>
<pre><code>#include <iostream>
#include <windows.h>
void printSome (int i)
{
std::cout << i << std::endl;
}
void spawnThread (void (*threadName)(int i))
{
CreateThread
(
0, ... | [
{
"answer_id": 403007,
"author": "Filip Ekberg",
"author_id": 39106,
"author_profile": "https://Stackoverflow.com/users/39106",
"pm_score": 1,
"selected": false,
"text": "//------------------------------------------------------------------------------------\n// 2.6 How to Pass a Function... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28954/"
] |
402,996 | <p>I am having trouble deserializing my JSON string. I have a class of type <code>person</code> with public properties for sequence number of type int, first name, and last name. I want to pass an array of these objects in JSON format and have them deserialized as a list so I can loop through them on the server, but ... | [
{
"answer_id": 403377,
"author": "Darin Dimitrov",
"author_id": 29407,
"author_profile": "https://Stackoverflow.com/users/29407",
"pm_score": 5,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Web.Script.Serialization;\n\nnamespace Test\n{\n ... | 2008/12/31 | [
"https://Stackoverflow.com/questions/402996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16891/"
] |
403,031 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/1501577/change-css-dynamically">Change CSS Dynamically</a> </p>
</blockquote>
<p>I need to change the height of a div container(CSS Property Height) from ASP.NET code (VB).</p>
<p>How can I do that?</p>
| [
{
"answer_id": 403036,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "https://Stackoverflow.com/users/8435",
"pm_score": 6,
"selected": true,
"text": "<div runat=\"server\" id=\"divControl\">...</div>\n"
},
{
"answer_id": 403055,
"author": "Peanut",
"author... | 2008/12/31 | [
"https://Stackoverflow.com/questions/403031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.