qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
365,868 | <p>I have a fairly standard rails app and would like to be able to access the basic CRUD (Create, Update, Delete) operations as well as queries I have added, from an iPhone app. Rails provides the REST API for these operations more or less out of the box. </p>
<p>What is the best approach to deal with the REST/XML par... | [
{
"answer_id": 365928,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "https://Stackoverflow.com/users/582",
"pm_score": 2,
"selected": false,
"text": "initWithMethod:delegate:params:"
},
{
"answer_id": 367974,
"author": "diclophis",
"author_id": 32678,
... | 2008/12/13 | [
"https://Stackoverflow.com/questions/365868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42404/"
] |
365,887 | <p>I know how they are different syntactically, and that C++ uses new, and C uses malloc. But how do they work, in a high-level explanation?</p>
<p>See <a href="https://stackoverflow.com/questions/240212/what-is-the-difference-between-newdelete-and-mallocfree#240308">What is the difference between new/delete and mall... | [
{
"answer_id": 365891,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "new (a, b, c) TypeId;\n\n// the function called by the compiler has to have the following signature:\noperat... | 2008/12/13 | [
"https://Stackoverflow.com/questions/365887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25632/"
] |
365,888 | <p>Now, I realise the initial response to this is likely to be "you can't" or "use analytics", but I'll continue in the hope that someone has more insight than that.</p>
<p>Google adwords with "autotagging" appends a "gclid" (presumably "google click id") to link that sends you to the advertised site. It appears in th... | [
{
"answer_id": 5887955,
"author": "Jeff Wu",
"author_id": 538336,
"author_profile": "https://Stackoverflow.com/users/538336",
"pm_score": 2,
"selected": false,
"text": ".*[?&]gclid=([^$&]*)\n"
},
{
"answer_id": 20616153,
"author": "andre",
"author_id": 3108126,
"autho... | 2008/12/13 | [
"https://Stackoverflow.com/questions/365888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26334/"
] |
365,892 | <p>Duplicate Of : <a href="https://stackoverflow.com/questions/2527/c-treeview-context-menus">Find node clicked under context menu</a></p>
<p>I've got a context menu on a Treeview, when the user right clicks it supposed to change based on the currently right clicked node's tag object.</p>
<p>Currently I'm updating th... | [
{
"answer_id": 5887955,
"author": "Jeff Wu",
"author_id": 538336,
"author_profile": "https://Stackoverflow.com/users/538336",
"pm_score": 2,
"selected": false,
"text": ".*[?&]gclid=([^$&]*)\n"
},
{
"answer_id": 20616153,
"author": "andre",
"author_id": 3108126,
"autho... | 2008/12/13 | [
"https://Stackoverflow.com/questions/365892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40322/"
] |
365,898 | <p>I'm familiar with .NET and with SQL. Now I'm looking at the new LINQ and it looks to me just like a cursor. I understand the ease of use, etc., but if I do a LINQ-to-SQL query with a foreach loop, am I just using a DB cursor? Or is there some sort of magic behind the scenes where LINQ collects all the data at onc... | [
{
"answer_id": 365916,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "IDataReader"
}
] | 2008/12/13 | [
"https://Stackoverflow.com/questions/365898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12897/"
] |
365,935 | <p>All of my methods are failing me in various ways.
different lighting can mess it all up too.</p>
<p>has anyone every trying to return a name given a rgb value? "red" "green" "blue" would be enough to satisfy my needs for today.</p>
<p>i have unsafe byte processing of images from my web cam.</p>
<p><a href="https:... | [
{
"answer_id": 365942,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "IsNamedColor"
},
{
"answer_id": 365949,
"author": "Brian",
"author_id": 19299,
"author_profile": ... | 2008/12/13 | [
"https://Stackoverflow.com/questions/365935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/146637/"
] |
365,968 | <p>I am looking to add the capability for users to write plugins to the program I have developed in Delphi. The program is a single executable with no DLLs used. </p>
<p>This would allow the user community to write extensions to my program to access the internal data and add capabilities that they may find useful. </p... | [
{
"answer_id": 366007,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 3,
"selected": false,
"text": "LoadLibrary"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/365968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30176/"
] |
365,975 | <p>Namely, how does the following code:</p>
<pre><code>var sup = new Array(5);
sup[0] = 'z3ero';
sup[1] = 'o3ne';
sup[4] = 'f3our';
document.write(sup.length + "<br />");
</code></pre>
<p>output '5' for the length, when all you've done is set various elements?</p>
<p>My 'problem' with this code is that ... | [
{
"answer_id": 365992,
"author": "finpingvin",
"author_id": 46054,
"author_profile": "https://Stackoverflow.com/users/46054",
"pm_score": 2,
"selected": false,
"text": "sup['look'] = 4;"
},
{
"answer_id": 365995,
"author": "tvanfosson",
"author_id": 12950,
"author_pro... | 2008/12/14 | [
"https://Stackoverflow.com/questions/365975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
366,017 | <p>I'm creating a set of enum values, but I need each enum value to be 64 bits wide. If I recall correctly, an enum is generally the same size as an int; but I thought I read somewhere that (at least in GCC) the compiler can make the enum any width they need to be to hold their values. So, is it possible to have an enu... | [
{
"answer_id": 366026,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 8,
"selected": true,
"text": "enum"
},
{
"answer_id": 24067364,
"author": "Kevin Cox",
"author_id": 1166181,
"author_profile": ... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28804/"
] |
366,031 | <p>Is there any way to create an array-like object in JavaScript, without using the built-in array? I'm specifically concerned with behavior like this:</p>
<pre><code>var sup = new Array(5);
//sup.length here is 0
sup[0] = 'z3ero';
//sup.length here is 1
sup[1] = 'o3ne';
//sup.length here is 2
sup[4] = 'f3our'; ... | [
{
"answer_id": 366044,
"author": "finpingvin",
"author_id": 46054,
"author_profile": "https://Stackoverflow.com/users/46054",
"pm_score": 1,
"selected": false,
"text": "var sup = []; //Shorthand for an empty array\n//sup.length is 0\nsup.push(1); //Adds an item to the array (You don't ne... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
366,047 | <p>Looking at the <a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array" rel="noreferrer">mozilla documentation</a>, looking at the regular expression example (headed "Creating an array using the result of a match"), we have statements like:</p>
<blockquote>
<p>input: A ... | [
{
"answer_id": 366082,
"author": "Ryan Doherty",
"author_id": 956,
"author_profile": "https://Stackoverflow.com/users/956",
"pm_score": 3,
"selected": false,
"text": "YAHOO.myProject.myModule = function () {\n\n//\"private\" variables:\nvar myPrivateVar = \"I can be accessed only from wi... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
366,054 | <p>i have a string that looks like</p>
<pre><code>"<input id=a/>"<input id=b/>"<input id=c/>etc.
</code></pre>
<p>I need to change it to</p>
<pre><code>"<input id='a'/>"<input id='b'/>"<input id='c'/>etc,
</code></pre>
<p>any ideas how? </p>
| [
{
"answer_id": 366090,
"author": "foxdonut",
"author_id": 26353,
"author_profile": "https://Stackoverflow.com/users/26353",
"pm_score": 1,
"selected": false,
"text": "%s/\"<input id=\\(.\\)\\/>/\"<input id='\\1'\\/>/g\n"
},
{
"answer_id": 366099,
"author": "Renaud Bompuis",
... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,088 | <p>If you create a pure ActionScript project in Flex Builder 3 and want to do unit testing using flexunit, what is the best option?</p>
<p>The built-in Flex builder will refuse to build the mxml file containing the TestRunnerBase component as it is a pure ActionScript project (no Flex allowed). It is impossible to add... | [
{
"answer_id": 367871,
"author": "Richard Szalay",
"author_id": 3603,
"author_profile": "https://Stackoverflow.com/users/3603",
"pm_score": 1,
"selected": false,
"text": "// import mx.core.Application;\n// import flexunit.framework.*;\n\n// class AutomatedTestHarness extends Application ... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45084/"
] |
366,093 | <p>If I check out a tagged version of my source code without creating a branch, Git indicates that I'm not associated with any branch at all. It's happy to let me make changes and check them in though. Where do those changes go? If I switch back to 'master' they disappear (overwritten by what was in master) and I can't... | [
{
"answer_id": 366103,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": 3,
"selected": false,
"text": "git checkout -b my-branch-name\n"
},
{
"answer_id": 366147,
"author": "Paul",
"author_id": 23356,
"auth... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/826/"
] |
366,104 | <p>Make a <strong>new AS3 Document</strong> in Flash, <strong>paste</strong> in the following code and <strong>run it:</strong></p>
<pre><code>var a:Number=0;
trace(a) // 0
a+=0.3;
trace(a) // 0.3
a+=0.3;
trace(a) // 0.6
a+=0.3;
trace(a) // 0.8999999999999999
a+=0.3;
trace(a) // 1.2
a+=0.3;
trace(a) // 1.... | [
{
"answer_id": 366108,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 4,
"selected": true,
"text": "trace (round (a, 1))\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41021/"
] |
366,109 | <p>I have a VB6 legacy program which I need to change. I am unable to run the program from the IDE. When I activate one of the forms in the IDE I get an error which refers me to an error log file. The log file has the following in it</p>
<p>"Cannot load control SSPanel; license not found"</p>
<p>The SSPanel is part t... | [
{
"answer_id": 22933989,
"author": "Bob Tway",
"author_id": 271907,
"author_profile": "https://Stackoverflow.com/users/271907",
"pm_score": 2,
"selected": false,
"text": "regtlibv12.exe"
},
{
"answer_id": 38057467,
"author": "Julian",
"author_id": 5202466,
"author_pro... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
366,115 | <p>I found the following code to create a tinyurl.com url:</p>
<pre><code>http://tinyurl.com/api-create.php?url=http://myurl.com
</code></pre>
<p>This will automatically create a tinyurl url. Is there a way to do this using code, specifically C# in ASP.NET?</p>
| [
{
"answer_id": 366135,
"author": "mattruma",
"author_id": 1768,
"author_profile": "https://Stackoverflow.com/users/1768",
"pm_score": 4,
"selected": false,
"text": " public static string MakeTinyUrl(string url)\n {\n try\n {\n if (url.Length <= 30)\n ... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
366,124 | <p>I'm building an application where I should capture several values and build a text with them: <code>Name</code>, <code>Age</code>, etc.</p>
<p>The output will be a plain text into a <code>TextBox</code>.</p>
<p>I am trying to make those information appear in kind of <code>columns</code>, therefore I am trying to sep... | [
{
"answer_id": 366126,
"author": "DShook",
"author_id": 370,
"author_profile": "https://Stackoverflow.com/users/370",
"pm_score": 10,
"selected": true,
"text": "\\t"
},
{
"answer_id": 366131,
"author": "Dan R",
"author_id": 24222,
"author_profile": "https://Stackoverf... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19159/"
] |
366,137 | <pre><code><?php
function data_info($data)
{
if ($data) {
while (!feof($data)) {
$buffer = fgets($data);
if (file_exists($buffer)) {
$bufferArray[$buffer]['Exists'] = (file_exists($buffer));
$bufferArray[$buffer]['Readable'] = (is_readable($buffer));
... | [
{
"answer_id": 366150,
"author": "Athena",
"author_id": 17846,
"author_profile": "https://Stackoverflow.com/users/17846",
"pm_score": 3,
"selected": true,
"text": "$buffer"
},
{
"answer_id": 366157,
"author": "matta",
"author_id": 46071,
"author_profile": "https://Sta... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46071/"
] |
366,145 | <p>I'm trying to write a greasemonkey script, and it would be preferable for it to be able to work with images (specifically, find the darkest pixel in an image). Is there a way to do this or must I embed flash?</p>
| [
{
"answer_id": 366165,
"author": "Matthew Crumley",
"author_id": 2214,
"author_profile": "https://Stackoverflow.com/users/2214",
"pm_score": 4,
"selected": true,
"text": "// Create the canvas element\nvar canvas = document.createElement(\"canvas\");\ncanvas.width = image.width;\ncanvas.h... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29595/"
] |
366,160 | <p>First, let me explain what I am doing. I need to take an order, which is split up into different databases, and print out this very large order. What I need from the orders is about 100 or so columns from different databases. The way I was doing in was querying with a join and assigning all of the column values to a... | [
{
"answer_id": 366177,
"author": "Stephen Wrighton",
"author_id": 7516,
"author_profile": "https://Stackoverflow.com/users/7516",
"pm_score": 1,
"selected": false,
"text": "Method New Order(orderId) {\n Get Database 1 Details\n Load Details into appropriate Variables\n Get Database... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45429/"
] |
366,183 | <p>I've got a website (currently in development for a third party, I'm sorry I can't show) that requires users to confirm their contact information by, clicking on a link sent to their email address, upon registration for the website.</p>
<p>It's a pretty standard practice, not very technical or unique, which is why I... | [
{
"answer_id": 368380,
"author": "Riho",
"author_id": 44715,
"author_profile": "https://Stackoverflow.com/users/44715",
"pm_score": 0,
"selected": false,
"text": " $headers = \"MIME-Version: 1.0\\r\\n\";\n $headers .= \"Content-type: text/plain; charset=iso-8859-1\\r\\n\";\n $headers .=... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1198507/"
] |
366,186 | <p>I've got a column in a table (eg. UserName) which I want to make sure is unique. So I create a unique key for that column and call it IX_Users_UserName.</p>
<p>Now, if I do lots of searching for users based on their username I want to make sure there is an index for that field.</p>
<p>Do I need to create a separat... | [
{
"answer_id": 366200,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 6,
"selected": true,
"text": "IX_"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
366,187 | <p>I'm looking for help getting started working programmatically with audio.</p>
<p>Specifically, the platform I'm working with exposes APIs to extract audio data from a resource (like an MP3), or to play back arbitrary data as audio. In both cases the actual data is byte arrays of 32bit floats representing 44.1 KHz s... | [
{
"answer_id": 366246,
"author": "coobird",
"author_id": 17172,
"author_profile": "https://Stackoverflow.com/users/17172",
"pm_score": 8,
"selected": true,
"text": "float"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10651/"
] |
366,189 | <p>i've got a commenting system in our database. Just like stackoverflow -> each post has a list of comments. kewl.</p>
<p>Anonymous people can add a comment or registered users also.</p>
<p>In my table, i'm thinking of having the following:</p>
<ul>
<li>Userid int NULLABLE</li>
<li>AnonymousNickname varchar(100) NU... | [
{
"answer_id": 366199,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "(Userid is not null and AnonymousNickname is null and AnonymousEmail is null)\nor (Userid is null and AnonymousNickname ... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
366,202 | <p>I'm new to regular expressions and would appreciate your help. I'm trying to put together an expression that will split the example string using all spaces that are not surrounded by single or double quotes. My last attempt looks like this: <code>(?!")</code> and isn't quite working. It's splitting on the space bef... | [
{
"answer_id": 366216,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 1,
"selected": false,
"text": "\"will be\""
},
{
"answer_id": 366222,
"author": "Zach Scrivena",
"author_id": 20029,
"autho... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46077/"
] |
366,211 | <p><strong>Problem:</strong> EmacsW32 is a version of Emacs that allows the user to make Emacs treat the "Windows" key as the "Meta" key (instead of treating the Alt key as the "Meta" key). Although this works as advertised, the question is what happens when you want to create an Emacs keybinding for the "Alt" key?</p>... | [
{
"answer_id": 366394,
"author": "Svante",
"author_id": 31615,
"author_profile": "https://Stackoverflow.com/users/31615",
"pm_score": 1,
"selected": false,
"text": "Meta"
},
{
"answer_id": 366636,
"author": "ShreevatsaR",
"author_id": 4958,
"author_profile": "https://... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42223/"
] |
366,228 | <p>I am not understanding the point of using .def files with DLLs.</p>
<p>It seems that it replaces the need to use explicit exports within your DLL code (ie. explicit __declspec(dllexport)) however I am unable to generate a lib file when not using these which then creates linker issues later when using the DLL. </p>
... | [
{
"answer_id": 376784,
"author": "cweston",
"author_id": 37966,
"author_profile": "https://Stackoverflow.com/users/37966",
"pm_score": 4,
"selected": false,
"text": "lib /machine:i386 /def:sqlite3.def\n"
},
{
"answer_id": 597573,
"author": "Community",
"author_id": -1,
... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37966/"
] |
366,232 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/517915/when-to-use-strictfp-keyword-in-java">When to use “strictfp” keyword in java?</a> </p>
</blockquote>
<p>What is the use of Strictfp method in java?</p>
| [
{
"answer_id": 366269,
"author": "SCdF",
"author_id": 1666,
"author_profile": "https://Stackoverflow.com/users/1666",
"pm_score": 4,
"selected": true,
"text": "strictfp"
},
{
"answer_id": 366270,
"author": "Max Stewart",
"author_id": 18338,
"author_profile": "https://... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40945/"
] |
366,237 | <p>Here's an example:</p>
<pre><code>Double d = (1/3);
System.out.println(d);
</code></pre>
<p>This returns 0, not 0.33333... as it should.</p>
<p>Does anyone know?</p>
| [
{
"answer_id": 366240,
"author": "Firas Assaad",
"author_id": 23153,
"author_profile": "https://Stackoverflow.com/users/23153",
"pm_score": 6,
"selected": true,
"text": "1"
},
{
"answer_id": 366253,
"author": "coobird",
"author_id": 17172,
"author_profile": "https://S... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46084/"
] |
366,245 | <p>I'd like to make a simple html form where a person can upvote or downvote an item. However I don't like the default look of a <code><input type="submit"></code> . What other options do I have to send a POST request than a bulky, default button?</p>
| [
{
"answer_id": 366252,
"author": "Maxime Rouiller",
"author_id": 24975,
"author_profile": "https://Stackoverflow.com/users/24975",
"pm_score": 3,
"selected": false,
"text": "document.myform.submit();\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25680/"
] |
366,251 | <p>I'm trying to use prototype and scriptaculous to hide and display a div element but the function (below) to take advantage of the prototype setStyle property isn't working and I'm not sure what the problem is.</p>
<pre><code><script type="text/javascript" language="javascript">
function bodyOnload() {
... | [
{
"answer_id": 366297,
"author": "maxnk",
"author_id": 45862,
"author_profile": "https://Stackoverflow.com/users/45862",
"pm_score": 1,
"selected": false,
"text": "window.onload = bodyOnload;\n"
},
{
"answer_id": 366304,
"author": "Jonathan Lonowski",
"author_id": 15031,
... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40376/"
] |
366,255 | <p>MSIE v7 does not (in my hands) open a Modeless Dialog or trigger an onLoad event if there is a Javascript alert in the target page. The following fails in MSIE v7 but is OK in v6 (zip file of full source available if required). </p>
<p>Would appreciate others confirming this and discussing why this should be so.</p... | [
{
"answer_id": 372300,
"author": "w4g3n3r",
"author_id": 36745,
"author_profile": "https://Stackoverflow.com/users/36745",
"pm_score": 0,
"selected": false,
"text": "<html>\n <head>\n <title>Index</title>\n <script type=\"text/javascript\" language=\"JavaScript\">\n\n function openDi... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46085/"
] |
366,262 | <p>I need to know how I can search an array for some literal text and have it used as a condition whether to continue.</p>
<p>Here's why:
Each time I execute a function I am pushing the ID of the property it acts upon into an array. I need my function to check if that ID is in the array already and if it is, remove it... | [
{
"answer_id": 366271,
"author": "Supernovah",
"author_id": 36076,
"author_profile": "https://Stackoverflow.com/users/36076",
"pm_score": 1,
"selected": false,
"text": "function arraytest(){\n var myArray = new Array(); \n myArray.push([\"test1\"]); \n myArray.push([\"test2\"]... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36076/"
] |
366,273 | <p>Can anyone send me a c code to divide 2 64bit numbers. My compiler only supports 32/32 division.</p>
<p>Thanx & Regards</p>
<p>Mani</p>
| [
{
"answer_id": 366300,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 4,
"selected": false,
"text": "#include <stdint.h>\n#include <stdio.h>\nint main(void)\n{\n int64_t numerator = 123;\n int64_t denominator = 10;\n i... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,311 | <p>I'm pretty happy with <a href="http://whatcodecraves.com/posts/2008/12/13/rails-flash-with-ajax.html" rel="noreferrer">the solution</a> that I came up with. Basically, I have a helper method that reloads the flash inline, and then I have an after_filter that clear out the flash if the request is xhr. Does anyone h... | [
{
"answer_id": 405290,
"author": "nakajima",
"author_id": 39589,
"author_profile": "https://Stackoverflow.com/users/39589",
"pm_score": 3,
"selected": false,
"text": "flash.now[:notice]"
},
{
"answer_id": 423957,
"author": "Silviu Postavaru",
"author_id": 3718,
"autho... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25024/"
] |
366,324 | <p>Just for the sake of experimentation, I've been trying to determine different ways to non-destructively chain <code>window.onload</code> functions in a web browser. This is the idea of what I have so far:</p>
<pre><code>var load = window.onload;
var newFunction = function(){
alert("ha!");
}
window.onload = func... | [
{
"answer_id": 366335,
"author": "Kit Sunde",
"author_id": 29347,
"author_profile": "https://Stackoverflow.com/users/29347",
"pm_score": 0,
"selected": false,
"text": "var addEvent = function( obj, type, fn ) {\n if (obj.addEventListener)\n obj.addEventListener(type... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1370/"
] |
366,326 | <p>We all know and love Process.WaitForExit().</p>
<p>Given a pid of a process on a remote machine (created by WMI/psexec), how do I wait for it to end?</p>
| [
{
"answer_id": 366385,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 1,
"selected": true,
"text": "Process.GetProcessById(processId, machineName).WaitForExit();\n"
},
{
"answer_id": 366472,
"author": "rippe... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11236/"
] |
366,329 | <p>Why can't Delphi variants hold objects? More importantly, what's the reason behind this limitation? </p>
| [
{
"answer_id": 366363,
"author": "gabr",
"author_id": 4997,
"author_profile": "https://Stackoverflow.com/users/4997",
"pm_score": 5,
"selected": false,
"text": "obj := TObject.Create;\nv := NativeUInt(obj);\nobj := TSomeObject(NativeUInt(v));\n"
},
{
"answer_id": 366615,
"aut... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14716/"
] |
366,332 | <pre><code>public class Address
{
public string ZipCode {get; set;}
}
public class Customer
{
public Address Address {get; set;}
}
</code></pre>
<p>how can I access eitther "ZipCode" or "Address.ZipCode" with reflection? For example: </p>
<pre><code>Typeof(Customer).GetProperty("ZipCode")?
</code></pre>
| [
{
"answer_id": 366337,
"author": "maxnk",
"author_id": 45862,
"author_profile": "https://Stackoverflow.com/users/45862",
"pm_score": 2,
"selected": false,
"text": "typeof (Customer).GetProperty(\"Address\").PropertyType.GetProperty(\"ZipCode\")\n"
},
{
"answer_id": 366339,
"a... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31624/"
] |
366,345 | <p>I have an external DLL whose source code is C#. From the documentation for the DLL, I determined that it writes its debug messages to the console using <code>Console.WriteLine</code>.</p>
<p>I'd like to use this DLL within a WinForms application. However, what I have discovered is that I cannot see the debug messag... | [
{
"answer_id": 366434,
"author": "user46119",
"author_id": 46119,
"author_profile": "https://Stackoverflow.com/users/46119",
"pm_score": 2,
"selected": false,
"text": " Debug.Listeners.Add(new ConsoleTraceListener())\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33030/"
] |
366,364 | <p>I just got a weird idea about how to configure environment-dependent parameters. Sort of like parameters you can find in Rails' config/database.yml</p>
<p>In my current project I use PHP and Litespeed Web Server (though the same technique applies to PHP + Apache), and I thought... 'why not use mod_rewrite for this?... | [
{
"answer_id": 384187,
"author": "ejunker",
"author_id": 796,
"author_profile": "https://Stackoverflow.com/users/796",
"pm_score": 0,
"selected": false,
"text": "php_value ENV \"development\"\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45652/"
] |
366,375 | <p>Can someone explain to or link to an article that explains how the parameters passed into the action of a controller are populated? I understand the basic mapping when you have the Controller/Action/ID and the ID is passed in as a variable, if it doesn't convert to the type that you are asking for then it won't be p... | [
{
"answer_id": 366695,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 2,
"selected": false,
"text": "http://localhost/Task/Index/?task=mytask&todolist=a,b,c,d\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26081/"
] |
366,379 | <p>I want to show first element that is hidden by jquery. my html code is:</p>
<pre><code><ol>
<li>1</li>
<li style="display:none">2</li>
<li style="display:none">3</li>
<li style="display:none">4</li>
<li style="display:none">5</li>... | [
{
"answer_id": 366395,
"author": "user38526",
"author_id": 38526,
"author_profile": "https://Stackoverflow.com/users/38526",
"pm_score": 2,
"selected": false,
"text": "$(\"a.add\").click(function(){\n $(\":hidden:first\").show();\n});\n"
},
{
"answer_id": 366400,
"author":... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46110/"
] |
366,380 | <p>I write this tiny C++ example in Eclipse 3.4.1 (CDT 5.0.1):</p>
<pre><code>#include <iostream>
#include <vector>
#include <boost/foreach.hpp>
int foo()
{
std::vector<int> numbers;
BOOST_FOREACH(int n, numbers)
{
std::cout << n << std::endl;
}
std::cout << num... | [
{
"answer_id": 9135228,
"author": "Pescuma",
"author_id": 802685,
"author_profile": "https://Stackoverflow.com/users/802685",
"pm_score": 2,
"selected": false,
"text": "#ifdef __CDT_PARSER__\n #undef BOOST_FOREACH\n #define BOOST_FOREACH(a, b) for(a; ; )\n#endif\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20444/"
] |
366,422 | <p>Sometimes it seems natural to have a default parameter which is an empty list. Yet <a href="https://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument">Python produces unexpected behavior in these situations</a>.</p>
<p>If for example, I have a function:</p>
<pre><code>def my_fun... | [
{
"answer_id": 366430,
"author": "HenryR",
"author_id": 2827,
"author_profile": "https://Stackoverflow.com/users/2827",
"pm_score": 9,
"selected": true,
"text": "def my_func(working_list=None):\n if working_list is None: \n working_list = []\n\n # alternative:\n # working... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2242/"
] |
366,432 | <p>I need to use lists for my program and needed to decide if I use std::vector or std::list.
The problem with vector is that there is no remove method and with list that there is no operator []. So I decided to write my own class extending std::list and overloading the [] operator.</p>
<p>My code looks like this:</p>... | [
{
"answer_id": 366465,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 4,
"selected": false,
"text": "std::list"
},
{
"answer_id": 366605,
"author": "Nemanja Trifunovic",
"author_id": 8899,
"author_profile":... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2450/"
] |
366,485 | <p>I am very interested in streaming data for web-applications. I have tried out some javascript libraries, but the hacks and browser-incompatibilities drive me crazy ! HTML5 will hopefully standardize streaming data, but until then, hopefully I can resort to Flash to make this work in all browsers. Unfortunately, I'm ... | [
{
"answer_id": 373690,
"author": "aaaidan",
"author_id": 26331,
"author_profile": "https://Stackoverflow.com/users/26331",
"pm_score": 0,
"selected": false,
"text": "URLStream"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6388/"
] |
366,507 | <p>A lot of times in code on the internet or code from my co-workers I see them creating an Object with just one method which only gets used once in the whole application. Like this:</p>
<pre><code> class iOnlyHaveOneMethod{
public function theOneMethod(){
//loads and loads of code, say 100's of lines
// ... | [
{
"answer_id": 366546,
"author": "Dan Vinton",
"author_id": 21849,
"author_profile": "https://Stackoverflow.com/users/21849",
"pm_score": 2,
"selected": false,
"text": "// let's instead assume that $bar was set earlier using a setter\nif($foo){ \n $bar = getMyBar();\n $bar->theOneM... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35197/"
] |
366,533 | <p>How to run the first process from a list of processes stored in a file and immediately delete the first line as if the file was a queue and I called "pop"?</p>
<p>I'd like to call the first command listed in a simple text file with \n as the separator in a pop-like fashion:</p>
<p><em>Figure 1:</em></p>
<pre><cod... | [
{
"answer_id": 366553,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 3,
"selected": true,
"text": "#!/usr/bin/env python\nimport os, shlex, sys\nfrom subprocess import call\nfilename = sys.argv[1]\nlines = open(filename).readlin... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4085/"
] |
366,541 | <p>I want to serialize a Dictionary that has a custom <code>IEqualityComparer</code>.</p>
<p>I've tried using <code>DataContractSerializer</code> but I can't get the <code>Comparer</code> to be serialized.</p>
<p>I can't use <code>BinaryFormatter</code> because of <a href="https://connect.microsoft.com/VisualStudio/f... | [
{
"answer_id": 366553,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 3,
"selected": true,
"text": "#!/usr/bin/env python\nimport os, shlex, sys\nfrom subprocess import call\nfilename = sys.argv[1]\nlines = open(filename).readlin... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19956/"
] |
366,550 | <p>I am currently reading "Beginning CakePHP:From Novice to Professional" by David Golding. At one point I have to use the CLI-command "cake bake", I get the welcome-screen but when I try to bake e.g. a Controller I get the following error messages:</p>
<pre><code>Warning: mysql_connect(): Can't connect to local MySQL... | [
{
"answer_id": 373504,
"author": "user42801",
"author_id": 42801,
"author_profile": "https://Stackoverflow.com/users/42801",
"pm_score": 1,
"selected": false,
"text": "my-macbook:~ chris$ php -i | grep mysql.default_socket\nmysql.default_socket => no value => no value\nmy-macbook:~ chris... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24218/"
] |
366,586 | <p>I use codeigniter as my main install on the main domain. I have created a subdomain and a folder called live e.g. live.domain.com maps to public/live . However in public I use codeigniter.</p>
<p>I now have the dynamic codeigniter url: </p>
<pre>http://domain.com/api/</pre>
<p>which I want to map to my subdomain:... | [
{
"answer_id": 5423470,
"author": "Muhammad Hamizi Jaminan",
"author_id": 1045240,
"author_profile": "https://Stackoverflow.com/users/1045240",
"pm_score": 2,
"selected": false,
"text": "RewriteEngine On\nRewriteCond %{HTTP_HOST} ^live\\.domain\\.com$ [NC]\nRewriteRule (.+)$ \"https://do... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,588 | <p>I am a hobbyist programmer (started with VBA to make excel quicker) and have been working with VB.NET / C#.NET and am trying to learn ADO.NET.</p>
<p>A facet of programming that has always frustrated me is what does 'good' look like? I am not a professional so have little to compare against. What makes a better pro... | [
{
"answer_id": 367150,
"author": "Filip Ekberg",
"author_id": 39106,
"author_profile": "https://Stackoverflow.com/users/39106",
"pm_score": 1,
"selected": false,
"text": "Communication issues when adapting outsourcing"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/235442/"
] |
366,595 | <p>I'm trying to use <a href="http://www.appelsiini.net/projects/jeditable" rel="nofollow noreferrer">Jeditable</a> as an inline editing solution.</p>
<p>The default behavior (click on the element to edit it) works quite well, but I would like to activate an element by clicking on another element.</p>
<p>For example ... | [
{
"answer_id": 366704,
"author": "Ata",
"author_id": 46110,
"author_profile": "https://Stackoverflow.com/users/46110",
"pm_score": 2,
"selected": false,
"text": "<a class=\"clickme\">Click me to edit</a>\n<div class=\"edit\">Edit Me!</div>\n"
},
{
"answer_id": 367054,
"author... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1011/"
] |
366,601 | <p>I'm having issues getting Firefox to update a webpage when its class is changed dynamically.</p>
<p>I'm using an HTML <code>table</code> element. When the user clicks a cell in the table header, my script toggles the class back and forth between <code>sorted_asc</code> and <code>sorted_des</code>. I have pseudo ele... | [
{
"answer_id": 366646,
"author": "I.devries",
"author_id": 6388,
"author_profile": "https://Stackoverflow.com/users/6388",
"pm_score": 3,
"selected": true,
"text": "document.body.style.display = 'none';\ndocument.body.style.display = 'block';\n"
},
{
"answer_id": 366954,
"aut... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4939/"
] |
366,602 | <p>In my C++ program (on Windows), I'm allocating a block of memory and can make sure it stays locked (unswapped and contiguous) in physical memory (i.e. using VirtualAllocEx(), MapUserPhysicalPages() etc). </p>
<p>In the context of my process, I can get the VIRTUAL memory address of that block,
<b> but I need to fin... | [
{
"answer_id": 366725,
"author": "Christopher",
"author_id": 3186,
"author_profile": "https://Stackoverflow.com/users/3186",
"pm_score": 3,
"selected": false,
"text": "MmGetPhysicalAddress"
},
{
"answer_id": 366858,
"author": "bk1e",
"author_id": 8090,
"author_profile... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,603 | <p>Having a table with a column like: <code>mydate DATETIME</code> ...</p>
<p>I have a query such as:</p>
<pre><code>SELECT SUM(foo), mydate FROM a_table GROUP BY a_table.mydate;
</code></pre>
<p>This will group by the full <code>datetime</code>, including hours and minutes. I wish to make the group by, only by the dat... | [
{
"answer_id": 366610,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 9,
"selected": true,
"text": "SELECT SUM(foo), DATE(mydate) FROM a_table GROUP BY DATE(a_table.mydate);\n"
},
{
"answer_id": 366645,
"author"... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26004/"
] |
366,629 | <p>This is the code I wrote:</p>
<pre><code> MailMessage mail = new MailMessage("test@gmail.com", "me@myurl.com");
mail.Subject = "This is a test!!";
mail.Body = "testing...";
SmtpPermission connectAccess = new SmtpPermission(SmtpAccess.Connect);
System.Console.WriteLine("Acces... | [
{
"answer_id": 366690,
"author": "adeena",
"author_id": 44004,
"author_profile": "https://Stackoverflow.com/users/44004",
"pm_score": 3,
"selected": false,
"text": " client.Credentials = new System.Net.NetworkCredential(\"myloginat+myurl.com\", \"mypassword\");\n"
},
{
"answer_id... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44004/"
] |
366,631 | <p>I am working on a ASP.NET app and i have a need to post back to the server after a file is chosen in a FileUpload control without having to have the user explicitly click a 'submit' button. Is this possible? and if so, how?</p>
| [
{
"answer_id": 366644,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 6,
"selected": true,
"text": "change"
},
{
"answer_id": 367138,
"author": "Abram Simon",
"author_id": 46204,
"author_profile": "https... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18811/"
] |
366,658 | <p>Does Java 6 consume more memory than you expect for largish applications?</p>
<p>I have an application I have been developing for years, which has, until now taken about 30-40 MB in my particular test configuration; now with Java 6u10 and 11 it is taking several hundred while active. It bounces around a lot, anywh... | [
{
"answer_id": 367933,
"author": "Michael Borgwardt",
"author_id": 16883,
"author_profile": "https://Stackoverflow.com/users/16883",
"pm_score": 4,
"selected": false,
"text": "public class FreeTest\n{\n public static void main(String[] args) throws Exception\n {\n byte[][] b... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8946/"
] |
366,682 | <p>There is a socket related function call in my code, that function is from another module thus out of my control, the problem is that it blocks for hours occasionally, which is totally unacceptable, How can I limit the function execution time from my code? I guess the solution must utilize another thread.</p>
| [
{
"answer_id": 366763,
"author": "rik.the.vik",
"author_id": 45570,
"author_profile": "https://Stackoverflow.com/users/45570",
"pm_score": 7,
"selected": true,
"text": "import signal\n\ndef signal_handler(signum, frame):\n raise Exception(\"Timed out!\")\n\nsignal.signal(signal.SIGALR... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1925263/"
] |
366,696 | <p>Im trying to do a dialog box with jquery. In this dialog box Im going to have terms and conditions. The problem is that the dialog box is only displayed for the FIRST TIME.</p>
<p>This is the code.</p>
<p>JavaScript:</p>
<pre><code>function showTOC()
{
$("#TOC").dialog({
modal: true,
overlay... | [
{
"answer_id": 366730,
"author": "carlsz",
"author_id": 46077,
"author_profile": "https://Stackoverflow.com/users/46077",
"pm_score": 6,
"selected": true,
"text": "$(document).ready({\n $('a.TOClink').click(function(){\n showTOC();\n });\n});\n\nfunction showTOC() {\n $('... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
366,697 | <p>I have the following code which adapts linq entities to my Domain objects:</p>
<pre><code>return from g in DBContext.Gigs
select new DO.Gig
{
ID = g.ID,
Name = g.Name,
Description = g.Description,
StartDate ... | [
{
"answer_id": 366721,
"author": "Mike Two",
"author_id": 23659,
"author_profile": "https://Stackoverflow.com/users/23659",
"pm_score": 1,
"selected": false,
"text": "return from g in DBContext.Gigs \n join venue in DBContext.Venues on g.VenueID equals venue.ID \n select new DO.Gig... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,706 | <p>This is a follow-up to <a href="https://stackoverflow.com/questions/365522/what-is-the-best-way-to-add-two-numbers-without-using-the-operator">my question yesterday</a>:</p>
<p>CMS kindly provided this example of using bitwise operators to add two numbers in C:</p>
<pre><code>#include<stdio.h>
int add(int x... | [
{
"answer_id": 366735,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 3,
"selected": false,
"text": ">>> 1 << 100\n1267650600228229401496703205376L\n"
},
{
"answer_id": 3487601,
"author": "nithin",
"au... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23126/"
] |
366,718 | <p>So I am sold on the concept of attempting to collect data automatically from a program - i.e., popping up a dialog box that asks the user to send the report when something goes wrong.</p>
<p>I'm working in MS Visual Studio C#.</p>
<p>From an implementation point of view, does it make sense to put a try/catch loop ... | [
{
"answer_id": 366731,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 3,
"selected": false,
"text": "[STAThread]\nstatic void Main() \n{\n System.Windows.Forms.Application.ThreadException += new ThreadExceptionEventHandler(... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44004/"
] |
366,719 | <h1>Premise</h1>
<p>I believe that there is a way to objectively define "Good" and "Bad" Object-Oriented design techniques and that, as a community we can determine what these are. This is an academic exercise. If done with seriousness and resolve, I believe it can be of great benefit to the commu... | [
{
"answer_id": 366791,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 2,
"selected": true,
"text": "class Foo : private boost::noncopyable { ... };\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10862/"
] |
366,720 | <p>Currently my code is organized in the following tree structure:</p>
<pre><code>src/
module1.py
module2.py
test_module1.py
test_module2.py
subpackage1/
__init__.py
moduleA.py
moduleB.py
test_moduleA.py
test_moduleB.py
</code></pre>
<p>Where the <code>modul... | [
{
"answer_id": 366770,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 2,
"selected": false,
"text": "setup.py"
},
{
"answer_id": 366819,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stack... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36131/"
] |
366,758 | <p>I would like to access the contacts field on an email message (Email options) in outlook. Normally this field ties an email to a contact. Since it is a freeform text field available from the options dialog box, I am trying to use it to store a "next action" for my email message. I would like to set the next action b... | [
{
"answer_id": 380413,
"author": "Oliver Giesen",
"author_id": 9784,
"author_profile": "https://Stackoverflow.com/users/9784",
"pm_score": 0,
"selected": false,
"text": "UserProperties"
},
{
"answer_id": 453860,
"author": "Geoff",
"author_id": 55487,
"author_profile":... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,768 | <p>Can I convert a bitmap to PNG in memory (i.e. without writing to a file) using only the Platform SDK? (i.e. no libpng, etc.).</p>
<p>I also want to be able to define a transparent color (not alpha channel) for this image.</p>
<p><strong>The GdiPlus solution seems to be limited to images of width divisible by 4</st... | [
{
"answer_id": 366785,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": false,
"text": "Save"
},
{
"answer_id": 538497,
"author": "Aardvark",
"author_id": 3655,
"author_profil... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11208/"
] |
366,772 | <p>I'm using windbg to examine some crash dumps sent in by an app. There seems to be some correlation between a crash I'm seeing and having a certain 3rd party DLL loaded into the process (a flaky Winsock LSP, I suspect). To make this sort of analysis easier in the future, is there a windbg script that would just sho... | [
{
"answer_id": 573827,
"author": "AaronBa",
"author_id": 69370,
"author_profile": "https://Stackoverflow.com/users/69370",
"pm_score": 0,
"selected": false,
"text": ".load clr10\\sos\n!sam c:\\temp\\modules\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23524/"
] |
366,775 | <p>Im trying to add a connection to a database in SQL Server 2008 using Visual Studio 2008. When testing the connection, it says that it is successful. However, once I said okay, it complains and say: "Cannot add data connection. Object reference not set to an instance of an object."</p>
<p>How do I go about adding a ... | [
{
"answer_id": 366811,
"author": "JamesSugrue",
"author_id": 1075,
"author_profile": "https://Stackoverflow.com/users/1075",
"pm_score": 1,
"selected": false,
"text": "var conn = new SqlConnection([connectionString]);\nconn.Open();\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,794 | <pre><code><?php
$string = 'The quick brown fox jumped over the lazy dog.';
$patterns[0] = '/quick/';
$patterns[1] = '/brown/';
$patterns[2] = '/fox/';
$replacements[0] = 'slow';
$replacements[1] = 'black';
$replacements[2] = 'bear';
echo preg_replace($patterns, $replacements, $string);
?>
</code></pre>
<p>Ok gu... | [
{
"answer_id": 366797,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 3,
"selected": true,
"text": "$patterns[0] = '/quick|lazy|dog/';\n"
},
{
"answer_id": 366884,
"author": "TravisO",
"author_id":... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,805 | <p>How can I change <code>CSS</code> from <code>javascript</code>. </p>
<p>I'm using <code>jQuery-ui Dialog</code> and I want to change the style of a <code>DIV</code> from javascript.</p>
<p>Thanks</p>
| [
{
"answer_id": 366809,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 4,
"selected": true,
"text": "css"
},
{
"answer_id": 366818,
"author": "Tuminoid",
"author_id": 40657,
"author_profile": "ht... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
366,822 | <p>I have always written regexes like this</p>
<pre><code><A HREF="([^"]*)" TARGET="_blank">([^<]*)</A>
</code></pre>
<p>but I just learned about this <a href="http://www.regular-expressions.info/examples.html" rel="nofollow noreferrer">lazy thing</a> and that I can write it like this</p>
<pre><code>&... | [
{
"answer_id": 366868,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 3,
"selected": false,
"text": "img"
},
{
"answer_id": 366907,
"author": "ysth",
"author_id": 17389,
"author_profile": "https://St... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8047/"
] |
366,834 | <p>Does anyone have any suggestions as to how I can clean the body of incoming emails? I want to strip out disclaimers, images and maybe any previous email text that may be also be present so that I am left with just the body text content. My guess is it isn't going to be possible in any reliable way, but has anyone tr... | [
{
"answer_id": 59001867,
"author": "Paul Mendoza",
"author_id": 29277,
"author_profile": "https://Stackoverflow.com/users/29277",
"pm_score": 0,
"selected": false,
"text": "var parser = new SigParser.EmailParsing.EmailParser();\nvar result = await parser.GetCleanedBodyAsync(new SigParser... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27805/"
] |
366,838 | <p>Hey, i am currently working on a django app for my studies, and came to the point of l18n. Localizing the site itself was very easy, but now i have to allow users, to translate the dynamic content of the application.
Users can save "products" in the database and give them names and descriptions, but since the whole ... | [
{
"answer_id": 12482331,
"author": "Kostyantyn",
"author_id": 1176671,
"author_profile": "https://Stackoverflow.com/users/1176671",
"pm_score": 1,
"selected": false,
"text": "class Product(models.Model):\n name=models.CharField(max_length=100)\n name_ar=models.CharField(max_length=... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46172/"
] |
366,849 | <p>Lets say my alphabet contains X letters and my language supports only Y letter words (Y < X ofcourse). I need to generate all the words possible in random order.</p>
<p>E.g.
Alphabet=a,b,c,d,e,f,g
Y=3</p>
<p>So the words would be:
aaa
aab
aac
aba
..
bbb
ccc
..
(the above should be generated in random order)</p>... | [
{
"answer_id": 366870,
"author": "Jennifer",
"author_id": 22360,
"author_profile": "https://Stackoverflow.com/users/22360",
"pm_score": 0,
"selected": false,
"text": " char[] alphabet = {'a', 'b', 'c', 'd'};\n int wordLength = 3;\n\n Random rand = new Random();\n\n ... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13820/"
] |
366,852 | <p>I'm writing a financial application in C# where performance (i.e. speed) is critical. Because it's a financial app I have to use the Decimal datatype intensively. </p>
<p>I've optimized the code as much as I could with the help of a profiler. Before using Decimal, everything was done with the Double datatype and th... | [
{
"answer_id": 1221409,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "#include <emmintrin.h>\n#include <tmmintrin.h>\n\nextern \"C\" DllExport __int32* sse2_add(__int32* arr1, __int32* arr2);\n\n... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46178/"
] |
366,854 | <p>I have a problem with the <a href="https://jqueryui.com/dialog/" rel="nofollow noreferrer"><code>jquery-ui dialog box</code></a>. </p>
<p><strong>The problem is that when I close the dialog box and then I click on the link that triggers it, it does not pop-up again unless I refresh the page.</strong> </p>
<p>How c... | [
{
"answer_id": 366893,
"author": "Darko",
"author_id": 32943,
"author_profile": "https://Stackoverflow.com/users/32943",
"pm_score": 4,
"selected": false,
"text": "$(this).remove()"
},
{
"answer_id": 366898,
"author": "David Bonnici",
"author_id": 44973,
"author_profi... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
366,856 | <p>I'm about to put my head thru this sliding glass door. I can't figure out how to execute the following code in VB.NET to save my life. </p>
<pre><code>private static void InitStructureMap()
{
ObjectFactory.Initialize(x =>
{
... | [
{
"answer_id": 366894,
"author": "Kyle West",
"author_id": 34133,
"author_profile": "https://Stackoverflow.com/users/34133",
"pm_score": 0,
"selected": false,
"text": "Private Shared Sub InitStructureMap()\nObjectFactory.Initialize(Function (ByVal x As IInitializationExpression) \n x.... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34133/"
] |
366,857 | <p>Remember the little div that shows up at the top of the page to notify us of things (like new badges)?</p>
<p>I would like to implement something like that as well and am looking for some best practices or patterns.</p>
<p>My site is an ASP.NET MVC app as well. Ideally the answers would include specifics like "put... | [
{
"answer_id": 366864,
"author": "Tom",
"author_id": 20,
"author_profile": "https://Stackoverflow.com/users/20",
"pm_score": 2,
"selected": false,
"text": "onclick"
},
{
"answer_id": 878056,
"author": "itsadok",
"author_id": 7581,
"author_profile": "https://Stackoverf... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2595/"
] |
366,860 | <p>From the man page on git-merge, there are a number of merge strategies you can use. </p>
<ul>
<li><p><em>resolve</em> -
This can only resolve two heads (i.e. the current branch and another branch you pulled from) using 3-way merge algorithm. It tries to carefully detect criss-cross merge ambiguities and is consid... | [
{
"answer_id": 366940,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": 9,
"selected": true,
"text": "commit ae632e99ba0ccd0e9e06d09e8647659220d043b9\nMerge: f51262e... c9ce629... aa0f25d...\n"
},
{
"answer_id": 106364... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9594/"
] |
366,861 | <p>Pretty straightforward stuff, here -- I'm just not good enough with mysql to understand what it wants from me.</p>
<p>I've got a short java test-case that opens a connection on mysql on my dev system but, when I try to put it to my server, it fails.</p>
<p>Any help in tracking this down would be most appreciated.<... | [
{
"answer_id": 366869,
"author": "Milhous",
"author_id": 17712,
"author_profile": "https://Stackoverflow.com/users/17712",
"pm_score": 0,
"selected": false,
"text": "properties.setProperty(\"socket\", \"/Applications/MAMP/tmp/mysql/mysql.sock\");\n"
},
{
"answer_id": 367455,
... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34820/"
] |
366,883 | <p>Is there a way to avoid row deletion on an specific table using constrains?</p>
<p>I'd like to (for example) deny row deletion if the id is 0,1 or 2</p>
<p>This is in order to avoid users deleting master accounts for an application, and I'd like to avoid it even if someone tries it (by mistake) using sql directly.... | [
{
"answer_id": 366918,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 5,
"selected": true,
"text": "CREATE TABLE NoKillI (\n id INT NOT NULL, FOREIGN KEY (id) REFERENCES Accounts(id) ON DELETE RESTRICT\n);\nINSERT INTO... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7595/"
] |
366,887 | <p>On Stackers' recommendation, I have been reading Crockford's excellent <em>Javascript: The Good Parts</em>.</p>
<p>It's a great book, but since so much of it is devoted to describing the best way to use Javascript's basic functionality, I'm not sure how I can put his advice into practice without duplicating the eff... | [
{
"answer_id": 367112,
"author": "pottedmeat",
"author_id": 2120,
"author_profile": "https://Stackoverflow.com/users/2120",
"pm_score": 1,
"selected": false,
"text": "dojo.delegate"
},
{
"answer_id": 11798237,
"author": "feklee",
"author_id": 282729,
"author_profile":... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25068/"
] |
366,889 | <p>Does the SDK provide any way to change the brightness of the backlight, or turn it off temporarily? </p>
| [
{
"answer_id": 467029,
"author": "Rhubarb",
"author_id": 20479,
"author_profile": "https://Stackoverflow.com/users/20479",
"pm_score": 3,
"selected": false,
"text": "GSEventSetBacklightLevel();\n"
},
{
"answer_id": 6938088,
"author": "Raj",
"author_id": 596503,
"autho... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13009/"
] |
366,896 | <p>I've got a custom TObjectList descendant in Delphi 2009, and I'd like to play with its enumerator a bit and add some filtering functionality to the MoveNext method, to cause it to skip certain objects. MoveNext is called by DoMoveNext, which is a virtual method, so this shouldn't be difficult to override... except ... | [
{
"answer_id": 366935,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 3,
"selected": false,
"text": "type\n TMasonEnumerator = class(TObjectList.TEnumerator)\n protected\n function DoMoveNext: Boolean; override;\n ... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32914/"
] |
366,897 | <p>I've got a big file on which I'm opening a FileInputStream. This file contains some files each having an offset from the beginning and a size. Furthermore, I've got a parser that should evaluate such a contained file.</p>
<pre><code>File file = ...; // the big file
long offset = 1734; // a contained file's offset
l... | [
{
"answer_id": 366903,
"author": "krosenvold",
"author_id": 23691,
"author_profile": "https://Stackoverflow.com/users/23691",
"pm_score": 2,
"selected": false,
"text": "List<InputStream> getStreams(File inputFile)\n"
},
{
"answer_id": 366914,
"author": "Esko",
"author_id"... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12463/"
] |
366,913 | <p>I'm learning Rails and it's going well so far. My biggest question at the moment is: how do I go about manually inserting a row into my database? I've got the scaffolding in place for creating rows of DataTypeOne, but I want a row for DataTypeTwo to be created when the form for DataTypeOne is submitted (and have it ... | [
{
"answer_id": 366921,
"author": "TonyLa",
"author_id": 1295,
"author_profile": "https://Stackoverflow.com/users/1295",
"pm_score": 4,
"selected": true,
"text": "new_record = DataTypeTwo.new\nnew_record.save!\n"
},
{
"answer_id": 366930,
"author": "Yaser Sulaiman",
"autho... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34795/"
] |
366,915 | <p>I have an articles table and a categories table. I want to fetch 7 articles for each category. Currently I have this but it's terrible slow on large tables so it's not really a solution:</p>
<pre><code>SELECT id,
title,
categories_id,
body,
DATE_FORMAT(pubdate, "%d/%m/%y %H:%i") as p... | [
{
"answer_id": 366939,
"author": "Jennifer",
"author_id": 22360,
"author_profile": "https://Stackoverflow.com/users/22360",
"pm_score": 0,
"selected": false,
"text": "SELECT categories_id FROM Categories\n"
},
{
"answer_id": 366950,
"author": "Turnkey",
"author_id": 13144... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46183/"
] |
366,928 | <p>I'm heavily using Cygwin (with <a href="http://en.wikipedia.org/wiki/PuTTY" rel="noreferrer">PuTTY </a> shell). But, it's quite tricky to invoke <code>cl.exe</code> (that is, the Visual C++ compiler toolchain) in the Cygwin Bash shell. Running <code>vcvars*.bat</code> in the Bash shell doesn't work obviously. I trie... | [
{
"answer_id": 366934,
"author": "Diomidis Spinellis",
"author_id": 20520,
"author_profile": "https://Stackoverflow.com/users/20520",
"pm_score": 4,
"selected": false,
"text": "sh-3.2$ cl\nMicrosoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86\nCopyright (C) Micr... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46185/"
] |
366,938 | <p>I have an NSView subclass which has property which I want to be bindable. I've implemented the following in the subclass:</p>
<p>myView.h:</p>
<pre><code>@property (readwrite, retain) NSArray *representedObjects;
</code></pre>
<p>myView.m:</p>
<pre><code>@synthesize representedObjects;
+(void)initialize
{
[self... | [
{
"answer_id": 423175,
"author": "Rob Keniger",
"author_id": 50122,
"author_profile": "https://Stackoverflow.com/users/50122",
"pm_score": 0,
"selected": false,
"text": "-bind:toObject:withKeyPath:options:"
},
{
"answer_id": 7394273,
"author": "paulmelnikow",
"author_id":... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,955 | <p>how do I bind a <code>std::ostream</code> to either <code>std::cout</code> or to an <code>std::ofstream</code> object, depending on a certain program condition? Although this invalid for many reasons, I would like to achieve something that is semantically equivalent to the following:</p>
<pre><code>std::ostream out... | [
{
"answer_id": 366967,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 5,
"selected": false,
"text": "void process(std::ostream &os);\n\nint main(int argc, char *argv[]) {\n std::ostream* fp = &cout;\n std::ofstream fout;\... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1170277/"
] |
366,968 | <p>I have been searching for a way to insert linebreaks in my code for when I view my source. I am not looking for <code><br /></code></p>
<p>Something like the PHP equiv to <code>\n</code></p>
<p>Any ideas on how to do this in ASP? I will be placing this inside a string.</p>
| [
{
"answer_id": 366979,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 6,
"selected": true,
"text": "Response.Write \"hello\" & vbCrLf & \"world\"\n"
},
{
"answer_id": 367023,
"author": "Taptronic",
"autho... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
366,980 | <p>What are the main differences among them? And in which typical scenarios is it better to use each language?</p>
| [
{
"answer_id": 367014,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 10,
"selected": true,
"text": "sed"
},
{
"answer_id": 367082,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "htt... | 2008/12/14 | [
"https://Stackoverflow.com/questions/366980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44100/"
] |
366,998 | <p><em>Javascript: The Good Parts</em> is a great book. Often I find myself reading passages like the following from the perspective of a language designer:</p>
<blockquote>
<p><code>undefined</code> and <code>NaN</code> are not constants. They are global variables, and you can change their values. This should not b... | [
{
"answer_id": 367472,
"author": "Brad Gilbert",
"author_id": 1337,
"author_profile": "https://Stackoverflow.com/users/1337",
"pm_score": 1,
"selected": false,
"text": "Perl6"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/366998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25068/"
] |
367,007 | <p>On the page <a href="http://tesselaar.com/gallery/" rel="nofollow noreferrer">http://tesselaar.com/gallery/</a> I have a heading (level 1) at the top of the page "Photo Gallery" that doesn't display in IE7 and I can't work out why.</p>
<p>It follows the same CSS and page-structure as the rest of the site, the only ... | [
{
"answer_id": 367790,
"author": "annakata",
"author_id": 13018,
"author_profile": "https://Stackoverflow.com/users/13018",
"pm_score": 2,
"selected": true,
"text": "text-align: right;"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/367007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14979/"
] |
367,020 | <p>What's the best way to animate a background image sliding to the left, and looping it? Say I've got a progress bar with a background I want to animate when it's active (like in Gnome or OS X).</p>
<p>I've been playing with the <code>$(...).animate()</code> function and trying to modify the relevant CSS property, bu... | [
{
"answer_id": 367028,
"author": "Wilco",
"author_id": 5291,
"author_profile": "https://Stackoverflow.com/users/5291",
"pm_score": 5,
"selected": true,
"text": "function animateBar(self) {\n // Setup\n var bar = self.element.find('.ui-progress-bar');\n\n bar.css('background-posi... | 2008/12/14 | [
"https://Stackoverflow.com/questions/367020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
367,029 | <p>Most of the time, the errors you get from your model properties will happen when you're saving data. For instance, if you try saving a string as an IntegerProperty, that will result in an error.</p>
<p>The one exception (no pun intended) is ReferenceProperty. If you have lots of references and you're not completely... | [
{
"answer_id": 2152183,
"author": "Mehmet",
"author_id": 565109,
"author_profile": "https://Stackoverflow.com/users/565109",
"pm_score": 0,
"selected": false,
"text": "obj1 = db.get(obj2.reference)\n\nif not obj1:\n # Referenced entity was deleted.\n"
}
] | 2008/12/14 | [
"https://Stackoverflow.com/questions/367029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9106/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.