qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
393,204 | <p>I have 2 classes, main and extended. I need to use main vars in extended class.</p>
<pre><code><?php
class Main {
public $vars = array();
}
$main = new Main;
$main->vars['key'] = 'value';
class Extended extends Main { }
$other = new Extended;
var_dump($other->vars);
?>
</code></pre>
<p>Who I ca... | [
{
"answer_id": 393207,
"author": "OIS",
"author_id": 36175,
"author_profile": "https://Stackoverflow.com/users/36175",
"pm_score": 3,
"selected": true,
"text": "<?php\nclass Config {\n protected $_vars = array();\n\n protected static $_instance;\n\n private function __construct(... | 2008/12/25 | [
"https://Stackoverflow.com/questions/393204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49114/"
] |
393,208 | <p>When I'm writing C - code I solely use an editor and gcc. I was wondering if anyone could suggest a good and simple tool that will find unused variables, function declarations and possibly make some optimisations.</p>
<p>Does anybody know a good tool?</p>
| [
{
"answer_id": 393330,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 6,
"selected": true,
"text": "--combine"
}
] | 2008/12/25 | [
"https://Stackoverflow.com/questions/393208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43960/"
] |
393,212 | <p>It would seem natural to me that HTML would support this:</p>
<pre><code><div id="comment1">
<div id="helpText">...</div>
</div>
<div id="comment2">
<div id="helpText">...</div>
</div>
<div id="comment3">
<div id="helpText">...</div>
&l... | [
{
"answer_id": 393218,
"author": "strager",
"author_id": 39992,
"author_profile": "https://Stackoverflow.com/users/39992",
"pm_score": 5,
"selected": true,
"text": "class"
},
{
"answer_id": 393219,
"author": "okoman",
"author_id": 35903,
"author_profile": "https://Sta... | 2008/12/25 | [
"https://Stackoverflow.com/questions/393212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
393,234 | <p>Does anybody have a good Ruby script for finding books (or other products) on Amazon using their API?</p>
| [
{
"answer_id": 393246,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "response = r.keyword_search\n('ruby programming', 'books')\n"
},
{
"answer_id": 394396,
"author": "Thibaut Barrère"... | 2008/12/25 | [
"https://Stackoverflow.com/questions/393234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6805/"
] |
393,241 | <p>I am continue to build two simple processes throwing class objects one to another (see my previous post) through simple (anonymous) pipes. Now I revealed for myself boost::serialization (thanks answered people) and have tried to make some class be serialized through ::WriteFile::ReadFile. So - what I am doing wrong?... | [
{
"answer_id": 428422,
"author": "Tony",
"author_id": 34101,
"author_profile": "https://Stackoverflow.com/users/34101",
"pm_score": 0,
"selected": false,
"text": "std::ofstream ofs(\"filename\");\n{\n boost:archive::binary_oarchive oa(ofs);\n oa << tc;\n}\n\n// Set up your pipe and... | 2008/12/25 | [
"https://Stackoverflow.com/questions/393241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7003/"
] |
393,248 | <p>How could I go about keeping track of the number of times a word appears in a textfile? I would like to do this for every word.</p>
<p>For example, if the input is something like:</p>
<p>"the man said hi to the boy."</p>
<p>Each of "man said hi to boy" would have an occurrence of 1.</p>
<p>"the" would have an oc... | [
{
"answer_id": 393266,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "#include <stdio.h>\n\nstruct LLNode\n{\n LLNode* Next; \n char* Word;\n int Count;\n};\n\nvoid PushWord(LLNo... | 2008/12/25 | [
"https://Stackoverflow.com/questions/393248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45620/"
] |
393,252 | <p>Here's what I've been trying to do, in a nutshell:</p>
<pre><code>class example <T extends Number>
{
private int function(T number)
{
int x = (int) number;
...
}
...
}
</code></pre>
<p>Basically, I'm trying to make it so that T is a number so I can convert it to an int inside ... | [
{
"answer_id": 393257,
"author": "Lawrence Dol",
"author_id": 8946,
"author_profile": "https://Stackoverflow.com/users/8946",
"pm_score": 1,
"selected": false,
"text": "x=number.intValue();\n"
},
{
"answer_id": 393258,
"author": "VonC",
"author_id": 6309,
"author_prof... | 2008/12/25 | [
"https://Stackoverflow.com/questions/393252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,276 | <p>I'm trying to implement a socket with a recv timeout of 1 Second: </p>
<pre><code>int sockfd;
struct sockaddr_in self;
struct sockaddr_in client_addr;
int addrlen=sizeof(client_addr);
ssize_t nBytes;
sockfd = socket(AF_INET, SOCK_STREAM, 0);
self.sin_family = AF_INET;
self.sin_port = htons(PORT);
self.sin_addr.s_... | [
{
"answer_id": 393287,
"author": "Jeff",
"author_id": 15797,
"author_profile": "https://Stackoverflow.com/users/15797",
"pm_score": 2,
"selected": false,
"text": "select"
},
{
"answer_id": 393301,
"author": "Roddy",
"author_id": 1737,
"author_profile": "https://Stacko... | 2008/12/25 | [
"https://Stackoverflow.com/questions/393276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,286 | <p>This is what I'm trying to do:</p>
<pre><code>import java.lang.reflect.*;
class exampleOuter <T extends Number>
{
private exampleInner<T>[] elements;
public exampleOuter(Class<T> type, int size)
{
elements = (exampleInner<T>[]) Array.newInstance(type, size);
}
}
</c... | [
{
"answer_id": 393292,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 0,
"selected": false,
"text": "T"
},
{
"answer_id": 393303,
"author": "Community",
"author_id": -1,
"author_profile": "ht... | 2008/12/25 | [
"https://Stackoverflow.com/questions/393286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,306 | <p>I am just getting started with NHibernate (for the 15th time it would seem) and am having the following problem.</p>
<p>The following table:</p>
<pre><code>Table Facility
Column FACILITY_ID integer
Column NAME varchar2(50)
Column MONTH varchar2(5)
</code></pre>
<p>For whatever reason, month is a string instead of... | [
{
"answer_id": 404488,
"author": "Matt Hinze",
"author_id": 2676,
"author_profile": "https://Stackoverflow.com/users/2676",
"pm_score": 0,
"selected": false,
"text": "IUserType"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
393,316 | <p>Good evening; I am writing a bit of code that solves the following equation. </p>
<p>X is size of device
Y is quantity of device
A is the denominator
Z is the total diversified value</p>
<p>(X * Y)/A = Z</p>
<p>Here is the part I don't know how to accomplish. The value of A is found by the amount of Y. If Y is be... | [
{
"answer_id": 393320,
"author": "Jules",
"author_id": 40078,
"author_profile": "https://Stackoverflow.com/users/40078",
"pm_score": 1,
"selected": false,
"text": "if(Y <= 3.0) A = ...; \nelse if(Y <= 6.0) A = 0.7; \nelse if(Y <= 9.0) A = 0.6;\n...\n"
},
{
"answer_id": 39333... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45151/"
] |
393,322 | <p>I do most of programming work on the Windows terminals in my university. However, my computer is a Mac and, for some reason, the javac command throws up an error when I use UserInput methods. Is there anything to install or an alternative command to use to make this compile properly?</p>
| [
{
"answer_id": 393320,
"author": "Jules",
"author_id": 40078,
"author_profile": "https://Stackoverflow.com/users/40078",
"pm_score": 1,
"selected": false,
"text": "if(Y <= 3.0) A = ...; \nelse if(Y <= 6.0) A = 0.7; \nelse if(Y <= 9.0) A = 0.6;\n...\n"
},
{
"answer_id": 39333... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49128/"
] |
393,346 | <p>In the Fibonacci sequence, I have seen conventional implementations which recursively call the same method twice:</p>
<pre><code>public void fibonacci(int i)
{
fibonacci(1) + fibonacci(2);
}
</code></pre>
<p>Now this method is not the exact copy of what I have seen or the right way of solving the problem, but I've... | [
{
"answer_id": 393350,
"author": "biozinc",
"author_id": 30698,
"author_profile": "https://Stackoverflow.com/users/30698",
"pm_score": 0,
"selected": false,
"text": "fibonacci(1)"
},
{
"answer_id": 393377,
"author": "Charlie Martin",
"author_id": 35092,
"author_profil... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32484/"
] |
393,363 | <p>I have some text with the following structure:</p>
<pre><code>Round 1
some multiline text ...
Round 2
some multiline text ...
...
Round N
some multiline text ...
</code></pre>
<p>I'd like to match rounds with their multiline text.</p>
<p>None of the expressions produces correct result:</p>
<p>(Round\s\d+)(... | [
{
"answer_id": 393369,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 1,
"selected": false,
"text": "."
},
{
"answer_id": 393456,
"author": "Alan Moore",
"author_id": 20938,
"author_profile": "https://St... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,366 | <p>I created a Linked List, with insert, search and remove functions. I also created a iterator for it. Now, suppose I do this:</p>
<pre><code>myList<Integer> test = new myList();
test.insert(30);
test.insert(20);
test.insert(10);
myList.iterator it = test.search(20);
if(it.hasNext())
System.out.println(it.n... | [
{
"answer_id": 393374,
"author": "cletus",
"author_id": 18393,
"author_profile": "https://Stackoverflow.com/users/18393",
"pm_score": 3,
"selected": true,
"text": ".equals()"
},
{
"answer_id": 393383,
"author": "Ari Ronen",
"author_id": 34957,
"author_profile": "https... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,376 | <p>Okay so I've read the documentation, and I'm not quite sure what the arguments being passed are. I'm looking at the the listed example request:</p>
<p><code>$facebook->api_client->profile_setFBML(NULL, 128009, 'profile', NULL, 'mobile_profile', 'profile_main');</code></p>
<p>and thinking, where are they getting th... | [
{
"answer_id": 393382,
"author": "Toby Hede",
"author_id": 14971,
"author_profile": "https://Stackoverflow.com/users/14971",
"pm_score": 3,
"selected": true,
"text": "$facebook->api_client->profile_setFBML(session_key, uid, 'profile', 'profile_action', 'mobile_profile', 'profile_main');\... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36545/"
] |
393,378 | <p>I have a servlet S which handles callbacks from a 3rd party site. </p>
<p>The callback invocations happen in a specific order. Thus, I need to queue them. </p>
<p>I propose to use an in-memory queue like </p>
<pre><code>java.util.ConcurrentLinkedQueue
</code></pre>
<p>So the logic looks like this:</p>
<ul>
<li>... | [
{
"answer_id": 393389,
"author": "cletus",
"author_id": 18393,
"author_profile": "https://Stackoverflow.com/users/18393",
"pm_score": 4,
"selected": true,
"text": "init()"
},
{
"answer_id": 55790154,
"author": "Archimedes Trajano",
"author_id": 242042,
"author_profile... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24457/"
] |
393,381 | <p>I'm upsizing an existing MS Access backend to SQL Server 2008 and, because we want to use <a href="http://msdn.microsoft.com/en-us/library/ms151329.aspx" rel="nofollow noreferrer">SQL Server Merge replication</a>, I'll have to change all current primary keys (currently standard autoincrement integers) to GUID.</p>
... | [
{
"answer_id": 393522,
"author": "Philippe Grondier",
"author_id": 11436,
"author_profile": "https://Stackoverflow.com/users/11436",
"pm_score": 3,
"selected": true,
"text": "rowguid"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3811/"
] |
393,395 | <p>I've pretty much tried everything, but it seems impossible to use
expire_fragment from models? I know you're not supposed to and it's
non-MVC, but surely there much be some way to do it. </p>
<p>I created a module in lib/cache_helper.rb with all my expire helpers,
within each are just a bunch of expire_fragment... | [
{
"answer_id": 393425,
"author": "maurycy",
"author_id": 48541,
"author_profile": "https://Stackoverflow.com/users/48541",
"pm_score": 3,
"selected": false,
"text": " require 'action_controller/test_process'\n\n sweepers = [ApartmentSweeper]\n\n ActiveRecord::Base.observers = sweepers... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1609611/"
] |
393,406 | <p>What other caching frameworks are available for .NET besides the project codenamed Velocity. What are the ALT.NET options? </p>
| [
{
"answer_id": 393425,
"author": "maurycy",
"author_id": 48541,
"author_profile": "https://Stackoverflow.com/users/48541",
"pm_score": 3,
"selected": false,
"text": " require 'action_controller/test_process'\n\n sweepers = [ApartmentSweeper]\n\n ActiveRecord::Base.observers = sweepers... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36590/"
] |
393,438 | <p>Lots of websites in the wild seem to abuse their visitors by automatically starting flash based advertisements / trailers and the like. What are the defenses modern browsers offer, for example,</p>
<ol>
<li>Disallow automatic playing for a specific URL / site/ domain</li>
<li>Disallow speaker use [flash does not a... | [
{
"answer_id": 393710,
"author": "Rob Kam",
"author_id": 25093,
"author_profile": "https://Stackoverflow.com/users/25093",
"pm_score": 0,
"selected": false,
"text": "[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Internet Explorer\\ActiveX Compatibility\\{D27CDB6E-AE6D-11CF-96B8-444553540000}... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28413/"
] |
393,479 | <p>So I have an array of records retreived from a database. The array is in the format;</p>
<pre><code>$rows[0]['id']=1;
$rows[0]['title']='Abc';
$rows[0]['time_left']=200;
$rows[1]['id']=2;
$rows[1]['title']='XYZ';
$rows[1]['time_left']=300;
//And so on upto 10-20 rows
</code></pre>
<p>What's the best way of trans... | [
{
"answer_id": 393497,
"author": "barfoon",
"author_id": 1390354,
"author_profile": "https://Stackoverflow.com/users/1390354",
"pm_score": 6,
"selected": true,
"text": "json_encode($data);"
},
{
"answer_id": 393513,
"author": "barfoon",
"author_id": 1390354,
"author_p... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49153/"
] |
393,492 | <p>I'm interested in what tools and methods are used for diagnosing flaws in large scale functional programs. What tools are useful? My current understanding is that 'printf' debugging (e.g. add logging and redeploy) is what is typically used. </p>
<p>If you've done debugging of a functional system what was differe... | [
{
"answer_id": 393585,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 5,
"selected": true,
"text": "printf"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3892/"
] |
393,495 | <p>I need to convert the unicode characters to ansi characters</p>
<pre><code>byte[] encode = Encoding.Convert(Encoding.Unicode, Encoding.Default, report);
</code></pre>
<p>I use this piece of code. While I am viewing this I found that extra ? character is added
in the first part</p>
<p>?FF EE 20 12</p>
| [
{
"answer_id": 648325,
"author": "bzlm",
"author_id": 7724,
"author_profile": "https://Stackoverflow.com/users/7724",
"pm_score": 1,
"selected": false,
"text": "EncoderReplacementFallback"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22162/"
] |
393,509 | <p>When is it appropriate to use CoTaskMemAlloc? Can someone give an example?</p>
| [
{
"answer_id": 393753,
"author": "Jason S",
"author_id": 44330,
"author_profile": "https://Stackoverflow.com/users/44330",
"pm_score": 5,
"selected": true,
"text": "CoTaskMemAlloc"
},
{
"answer_id": 5007216,
"author": "Maurice Flanagan",
"author_id": 38791,
"author_pr... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36130/"
] |
393,529 | <p>When using Google Chrome, I receive the following error message:</p>
<p>Error:</p>
<pre><code>Uncaught SyntaxError: Unexpected token <
</code></pre>
<p>It occurs directly after my doctype declaration at the top of my HTML page</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "h... | [
{
"answer_id": 393573,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 1,
"selected": false,
"text": "text/html"
},
{
"answer_id": 2342234,
"author": "Matthew O'Riordan",
"author_id": 139607,
"author_profile... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,532 | <p>Using XAMPP 1.6.7 I installed the community version of Magento. But there seems to be a problem. I am getting the error message 'extension file "curl" is must be loaded'. In another computer, everything seems fine.</p>
<p>(the other computer)<br>
intel(R) Pentium(R) Dual CPU, E2140 @ 1.60Hz,<br>
1.60 GHz. 504 MB of... | [
{
"answer_id": 1021646,
"author": "pm.",
"author_id": 100382,
"author_profile": "https://Stackoverflow.com/users/100382",
"pm_score": 1,
"selected": false,
"text": ";extension=php_curl.dll\n"
},
{
"answer_id": 5945608,
"author": "Razibul Hassan",
"author_id": 745252,
... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,544 | <p>I am trying to write simple Visual Studio Add-In for code generation. In my solution explorer window there is a database connection an I want to get table names from this active connection.How can I do this?</p>
| [
{
"answer_id": 1021646,
"author": "pm.",
"author_id": 100382,
"author_profile": "https://Stackoverflow.com/users/100382",
"pm_score": 1,
"selected": false,
"text": ";extension=php_curl.dll\n"
},
{
"answer_id": 5945608,
"author": "Razibul Hassan",
"author_id": 745252,
... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36474/"
] |
393,554 | <p>I have a Python program that uses the "threading" module. Once every second, my program starts a new thread that fetches some data from the web, and stores this data to my hard drive. I would like to use sqlite3 to store these results, but I can't get it to work. The issue seems to be about the following line:</p>
... | [
{
"answer_id": 393737,
"author": "James Brady",
"author_id": 29903,
"author_profile": "https://Stackoverflow.com/users/29903",
"pm_score": 0,
"selected": false,
"text": "OperationalError"
},
{
"answer_id": 2578401,
"author": "Robert Krolik",
"author_id": 309201,
"auth... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38146/"
] |
393,556 | <p>I use a lot of lists and arrays but I have yet to come across a scenario in which the array list couldn't be used just as easily as, if not easier than, the linked list. I was hoping someone could give me some examples of when the linked list is notably better.</p>
| [
{
"answer_id": 37100403,
"author": "Emil Albert",
"author_id": 5992975,
"author_profile": "https://Stackoverflow.com/users/5992975",
"pm_score": 0,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\n\nnamespace ConsoleApplication1\n{\... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33911/"
] |
393,595 | <p>I have a query like this - select * from tbl where ... and colname in (2,3,4) </p>
<p>When I prepare the query (... ' colname in (?)' ) using a PreparedStatement in Java, what setter method should I call to set these integers ? The integers are available in an int array and the size varies. If it matters, the datab... | [
{
"answer_id": 393610,
"author": "Learning",
"author_id": 18275,
"author_profile": "https://Stackoverflow.com/users/18275",
"pm_score": 2,
"selected": false,
"text": "WHERE colname = ANY (?)\n"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27474/"
] |
393,603 | <p>How do I generate UML diagram based on existing classes in PHP?</p>
| [
{
"answer_id": 591527,
"author": "kguest",
"author_id": 71480,
"author_profile": "https://Stackoverflow.com/users/71480",
"pm_score": 5,
"selected": false,
"text": "$ pear install pear/php_uml"
},
{
"answer_id": 8501445,
"author": "Mikko Rantalainen",
"author_id": 334451,... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5742/"
] |
393,623 | <p>I'm using FCKEditor in that when "Browse Server" button is clicked the following error is thrown.</p>
<blockquote>
<p>The server didn't send back a proper
XML response. Please contact your
system administrator.</p>
<p>XML Request error: Not Found(404)</p>
<p>Requested URL:</p>
<p>/fckeditor/ed... | [
{
"answer_id": 395474,
"author": "Zhaph - Ben Duguid",
"author_id": 33051,
"author_profile": "https://Stackoverflow.com/users/33051",
"pm_score": 2,
"selected": false,
"text": "// The following value defines which File Browser connector and Quick Upload\n// \"uploader\" to use. It is val... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35700/"
] |
393,627 | <p>The following snippet of code is used to find the PID of a user's terminal, by using ptree and grabbing the <strong>third</strong> PID from the results it returns. All terminal PID's are stored in a hash with the user's login as the key.</p>
<pre><code> ## If process is a TEMINAL.
## The command ptree is used... | [
{
"answer_id": 393729,
"author": "JoelFan",
"author_id": 16012,
"author_profile": "https://Stackoverflow.com/users/16012",
"pm_score": 3,
"selected": false,
"text": "$terminals{$user} = $terminals{$user} . \" $1\";\n"
},
{
"answer_id": 393796,
"author": "John Siracusa",
"... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15884/"
] |
393,633 | <p>I want to flip an imageView (left/right), but I can not find a UIView (or UIImageView) method to do that? any idea?</p>
<p>thanks!</p>
| [
{
"answer_id": 393645,
"author": "diclophis",
"author_id": 32678,
"author_profile": "https://Stackoverflow.com/users/32678",
"pm_score": 0,
"selected": false,
"text": "- (void)loadFlipsideViewController {\n\n FlipsideViewController *viewController = [[FlipsideViewController alloc] ini... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47936/"
] |
393,635 | <p>I wish to pass many small PNG files as base64 encoded URIs within an XML response, but there seems to be no way to make flex present these images. I was thinking of the data uri scheme, but it appears not to be supported.</p>
<h2>Proposed solutions</h2>
<ol>
<li>Use Loader.LoadBytes</li>
</ol>
<p>Tried it and it ... | [
{
"answer_id": 408647,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": -1,
"selected": false,
"text": " <?xml version=\"1.0\" encoding=\"utf-8\"?>\n<mx:Application xmlns:mx=\"http://www.adobe.com/2006/mxml\" layout=\"vertical... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11208/"
] |
393,637 | <p>I'm running a Django application. Had it under Apache + mod_python before, and it was all OK. Switched to Lighttpd + FastCGI. Now I randomly get the following exception (neither the place nor the time where it appears seem to be predictable). Since it's random, and it appears only after switching to FastCGI, I assum... | [
{
"answer_id": 1691350,
"author": "slav0nic",
"author_id": 2201031,
"author_profile": "https://Stackoverflow.com/users/2201031",
"pm_score": 0,
"selected": false,
"text": "SESSION_ENGINE = \"django.contrib.sessions.backends.cache\"\n"
},
{
"answer_id": 2503925,
"author": "hca... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5475/"
] |
393,639 | <p>MySQL column > sdate, edate ( its 2 column).</p>
<p>sdate is start date for project starting and edate is end date for project ending.</p>
<p>so i need to make search between them..</p>
<pre><code><strong>Search</strong><br />
<form method="post" action="search.php">
Start Report Date : ... | [
{
"answer_id": 393650,
"author": "Assaf Lavie",
"author_id": 11208,
"author_profile": "https://Stackoverflow.com/users/11208",
"pm_score": 0,
"selected": false,
"text": "select sdate, name, edate \nfrom your_table \nwhere sdate >= '22 December 2008' and edate <= '30 December 2008'\n"
}... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,644 | <p>I've got a table of student information in MySQL that looks like this (simplified):</p>
<pre><code>| age : int | city : text | name : text |
-----------------------------------------------------
| | | |
</code></pre>
<p>I wish to select all student names an... | [
{
"answer_id": 393648,
"author": "Frans Bouma",
"author_id": 44991,
"author_profile": "https://Stackoverflow.com/users/44991",
"pm_score": 4,
"selected": true,
"text": "select \n t1.name, \n t1.age as a, \n count(t2.age) NumberSameAge\nfrom \n tbl_students t1 inner join tbl_st... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11208/"
] |
393,647 | <p>I need to send a CSV file in HTTP response. How can I set the output response as CSV format?</p>
<p>This is not working:</p>
<pre><code>Response.ContentType = "application/CSV";
</code></pre>
| [
{
"answer_id": 393651,
"author": "ibz",
"author_id": 5475,
"author_profile": "https://Stackoverflow.com/users/5475",
"pm_score": 6,
"selected": false,
"text": "text/csv"
},
{
"answer_id": 393696,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https:... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22162/"
] |
393,654 | <p>Consider that i have connected to multiple shares of a remote machine( \\machineA\share1, \\machineA\share2....) along with shares on other remote machines.</p>
<p>Now my question is how to find only those shares which are connected to a particular machine. For eg, only those shares which are connected to machineA.... | [
{
"answer_id": 394259,
"author": "tsilb",
"author_id": 11112,
"author_profile": "https://Stackoverflow.com/users/11112",
"pm_score": 0,
"selected": false,
"text": "foreach (string systemName in systemNames)\n System.IO.Directory.GetDirectories(\"\\\\\"+systemName+\"\\\");\n"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41518/"
] |
393,661 | <p>.NET XSLT engine allows passing objects to the XSLT processing engine through the AddExtensionObject method.</p>
<p>Can someone comment on the performance of using this to retrieve localized strings to be used in the XSLT?</p>
| [
{
"answer_id": 393702,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "XslCompiledTransform"
},
{
"answer_id": 394277,
"author": "Dimitre Novatchev",
"author_id": 36305,
... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40498/"
] |
393,662 | <p>This question has spawned out of this <a href="https://stackoverflow.com/questions/393151/whats-the-easiest-way-to-create-an-array-of-structs">one.</a> Working with lists of structs in cocoa is not simple. Either use NSArray and encode/decode, or use a C type array and lose the commodities of NSArray. Structs are su... | [
{
"answer_id": 414033,
"author": "wisequark",
"author_id": 33159,
"author_profile": "https://Stackoverflow.com/users/33159",
"pm_score": 1,
"selected": false,
"text": "NSPoint"
},
{
"answer_id": 449843,
"author": "robottobor",
"author_id": 10184,
"author_profile": "ht... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36182/"
] |
393,669 | <p>Is there a way to disable or override the excel and pdf export function in SQL Server Reporting Services. I want to my own custom excel export.</p>
| [
{
"answer_id": 8472053,
"author": "vishal parate",
"author_id": 1093392,
"author_profile": "https://Stackoverflow.com/users/1093392",
"pm_score": 0,
"selected": false,
"text": "RSReportDesigner.config"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688440/"
] |
393,675 | <p>When I am making methods with return values, I usually try and set things up so that there is never a case when the method is called in such a way that it would have to return some default value. When I started I would often write methods that did something, and would either return what they did or, if they failed t... | [
{
"answer_id": 393692,
"author": "Jules",
"author_id": 40078,
"author_profile": "https://Stackoverflow.com/users/40078",
"pm_score": 0,
"selected": false,
"text": "tree color: green;\n decor: gaudy;\n practical: false.\n"
},
{
"answer_id": 393693,
"author": "mstrobl",... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
393,678 | <p>I'm storing a simple java.util.date in an Oracle XE database via hibernate.</p>
<p>When testing with JUnit if I can retrieve the correct value, I get an error like this:</p>
<pre><code>junit.framework.AssertionFailedError:
expected:<Sun Dec 28 11:20:27 CET 2008>
but was:<2008-12-28 11:20:27.0>
</... | [
{
"answer_id": 394089,
"author": "davetron5000",
"author_id": 3029,
"author_profile": "https://Stackoverflow.com/users/3029",
"pm_score": 0,
"selected": false,
"text": "java.util.Date"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25320/"
] |
393,679 | <pre><code> MERGE INTO PAGEEDITCONTROL A
USING (SELECT
'1585' AS PAGEID
,'admin' AS EDITUSER
,sysdate AS EDITDATE
FROM DUAL) B
ON (A.PAGEID = B.PAGEID)
WHEN MATCHED THEN
UPDATE SET
A.EDITUSER = B.EDITUSER
,A.EDITDATE = B.EDITDATE
WHEN NOT... | [
{
"answer_id": 394992,
"author": "Henning",
"author_id": 7034,
"author_profile": "https://Stackoverflow.com/users/7034",
"pm_score": 1,
"selected": false,
"text": "INSERT ... ON DUPLICATE KEY UPDATE"
},
{
"answer_id": 15875387,
"author": "laksys",
"author_id": 978136,
... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,681 | <p>I have a situation where i need to debug a Windows CE application in both Vs.NET 2008 as well as VS.NET 2005.</p>
<p>After I switch between the emulators in these 2 environments a few times, i get the error:</p>
<blockquote>
<p>A fatal error has occurred and debugging needs to be terminated. HRESULT=0x8013110e. ... | [
{
"answer_id": 394992,
"author": "Henning",
"author_id": 7034,
"author_profile": "https://Stackoverflow.com/users/7034",
"pm_score": 1,
"selected": false,
"text": "INSERT ... ON DUPLICATE KEY UPDATE"
},
{
"answer_id": 15875387,
"author": "laksys",
"author_id": 978136,
... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49189/"
] |
393,686 | <p>I was wondering how can I change currency format from US ($) to EURO (€) for a specific TextBox in Microsoft ReportViewer? </p>
<p>Because it always displays a dollar sign in front and the format is ##,###.## and as for euro it must be like ##.###,##</p>
| [
{
"answer_id": 18227804,
"author": "Mark",
"author_id": 1135965,
"author_profile": "https://Stackoverflow.com/users/1135965",
"pm_score": 2,
"selected": false,
"text": "<Language>en-gb</Language>\n"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22637/"
] |
393,687 | <p>I would like to add attributes to Linq 2 Sql classes properties. Such as this Column is browsable in the UI or ReadOnly in the UI and so far.</p>
<p>I've thought about using templates, anybody knows how to use it? or something different?</p>
<p>Generally speaking, would do you do to address this issue with classes... | [
{
"answer_id": 393695,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": "TypeDescriptionProvider"
},
{
"answer_id": 393829,
"author": "Rafael Romão",
"author_id": 39281,
... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11659/"
] |
393,701 | <p>Suppose we have following type:</p>
<pre><code>struct MyNullable<T> where T : struct
{
T Value;
public bool HasValue;
public MyNullable(T value)
{
this.Value = value;
this.HasValue = true;
}
public static implicit operator T(MyNullable<T> value)
{
r... | [
{
"answer_id": 393714,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": false,
"text": "Decimal"
},
{
"answer_id": 394948,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31090/"
] |
393,707 | <p>In XML documentaiton comments for C#, is there a way to mark two or more functions to be overloads of each other, so that they reference each other automatically? Ideally, they'd also be grouped in the sandcastle-generated documentation somehow.</p>
<p>Purpose: Often, I want to link to this group of functions, e.g.... | [
{
"answer_id": 393718,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https://Stackoverflow.com/users/17516",
"pm_score": 2,
"selected": false,
"text": "see"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31317/"
] |
393,708 | <p>I have a legacy VB6 program which installs an Access file in a sub-directory of the common data folder (CSIDL_COMMON_APPDATA). I have now installed this program on a 64-bit Vista system, and the program works fine and accesses the file at C:\ProgramData\Wow\WowCat.mdb, but this file does not show in Windows Explorer... | [
{
"answer_id": 393719,
"author": "Vegard Larsen",
"author_id": 1606,
"author_profile": "https://Stackoverflow.com/users/1606",
"pm_score": 3,
"selected": true,
"text": "C:\\ProgramData>dir /aL\n Volume in drive C has no label.\n Volume Serial Number is 74DB-58F8\n\n Directory of C:\\Prog... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27863/"
] |
393,738 | <p>I want to scrape the contents of a webpage. The contents are produced after a form on that site has been filled in and submitted. </p>
<p>I've read on how to scrape the end result content/webpage - but how to I programmatically submit the form? </p>
<p>I'm using python and have read that I might need to get the or... | [
{
"answer_id": 393749,
"author": "Joao da Silva",
"author_id": 46329,
"author_profile": "https://Stackoverflow.com/users/46329",
"pm_score": -1,
"selected": false,
"text": "<form name='myform' ...\n"
},
{
"answer_id": 393760,
"author": "Cogsy",
"author_id": 48234,
"au... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,742 | <p>I have a Deplhi based Windows Service that, on installation, parses some command line arguments. I want those arguments to be added to the services command line (ImagePath value on the registry) so that the service is always started with them.</p>
<p>How can I accomplish this?</p>
<p>I want the regedit look like t... | [
{
"answer_id": 394493,
"author": "Pablo Venturino",
"author_id": 16732,
"author_profile": "https://Stackoverflow.com/users/16732",
"pm_score": 4,
"selected": true,
"text": "uses Registry;\nprocedure MyService.AfterInstall(Sender: TObject) ;\nvar\n reg:TRegistry;\nbegin\n reg := TRegist... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16732/"
] |
393,757 | <p>It has been said that C# can be regarded as a functional programming language, even though it is widely recognized as a OO programming language.</p>
<p>So, what feature set makes C# a functional programming language?</p>
<p>I can only think of:</p>
<ol>
<li>delegates (even without anonymous methods and lambda exp... | [
{
"answer_id": 393781,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": false,
"text": "var sum = data.Sum(x=>x.SomeProp);\n"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26349/"
] |
393,785 | <p>Is it possible in opengl to setup blending to achieve additive color overlays?</p>
<p>Red + green = yellow, cyan + magenta = white, etc.. (see <a href="http://en.wikipedia.org/wiki/File:AdditiveColor.svg" rel="noreferrer">diagram</a>)</p>
| [
{
"answer_id": 393825,
"author": "schnaader",
"author_id": 34065,
"author_profile": "https://Stackoverflow.com/users/34065",
"pm_score": 5,
"selected": true,
"text": "glEnable(GL_BLEND);\nglBlendFunc(GL_SRC_ALPHA, GL_ONE);\n"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36182/"
] |
393,786 | <p>I have a piece of code here that i really could use some help with refactoring. I need the different methods for adding relational data in a form in rails. The code is taken from <a href="http://railscasts.com/episodes/75-complex-forms-part-3" rel="nofollow noreferrer">http://railscasts.com/episodes/75-complex-forms... | [
{
"answer_id": 393869,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": "answers"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9191/"
] |
393,803 | <p>I am writing a cocoa application in which I want to download a file from a webserver. What will be the most convenient method to go about doing this? Should I go in for NSSockets or a NSUrlRequest? Or is there any other easier way to achieve this?</p>
| [
{
"answer_id": 394009,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 3,
"selected": false,
"text": "initWithURL:"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
393,813 | <p>I am making a popup window using jqModal, and I have one main popup window. After clicking OK, I have to close that window and open another popup window. How do I achieve this?</p>
<p>Here my problem is that the click event is not working. While I am pressing a button {#b}, more than this onclick of the button I hav... | [
{
"answer_id": 394246,
"author": "Mauricio Scheffer",
"author_id": 21239,
"author_profile": "https://Stackoverflow.com/users/21239",
"pm_score": 1,
"selected": false,
"text": "$(\"#b\").click"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44984/"
] |
393,824 | <p>I need to use git over SSH (it's a self-imposed limitation, but one I am loathe to break). If my laptop is sitting on my home network, it all works great. When I'm at work or logged in via VPN, however, I would need to use corkscrew to access my remote repository, which I can set up without problems. </p>
<p>I w... | [
{
"answer_id": 71558879,
"author": "Joe Casadonte",
"author_id": 45978,
"author_profile": "https://Stackoverflow.com/users/45978",
"pm_score": 1,
"selected": true,
"text": ".ssh/config"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/393824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45978/"
] |
393,840 | <p>I need to locate the node within an xml file by its value using XPath.
The problem araises when the node to find contains value with whitespaces inside.
F.e.:</p>
<pre><code><Root>
<Child>value</Child>
<Child>value with spaces</Child>
</Root>
</code></pre>
<p>I can not const... | [
{
"answer_id": 393867,
"author": "kdgregory",
"author_id": 42126,
"author_profile": "https://Stackoverflow.com/users/42126",
"pm_score": 3,
"selected": false,
"text": "/Root/Child[normalize-space(text())=value without spaces]\n"
},
{
"answer_id": 394032,
"author": "Dimitre No... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1596171/"
] |
393,843 | <p>I need to delete some Unicode symbols from the string 'بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ'</p>
<p>I know they exist here for sure. I tried:</p>
<pre><code>re.sub('([\u064B-\u0652\u06D4\u0670\u0674\u06D5-\u06ED]+)', '', 'بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ')
</code></pre>
<p>but it doesn't work. String stay... | [
{
"answer_id": 393856,
"author": "ʞɔıu",
"author_id": 41613,
"author_profile": "https://Stackoverflow.com/users/41613",
"pm_score": 8,
"selected": true,
"text": "re.sub(ur'[\\u064B-\\u0652\\u06D4\\u0670\\u0674\\u06D5-\\u06ED]+', '', ...)\n"
},
{
"answer_id": 393915,
"author":... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49206/"
] |
393,845 | <p>I have several independent executable Perl, PHP CLI scripts and C++ programs for which I need to develop an exit error code strategy. These programs are called by other programs using a wrapper class I created to use <code>exec()</code> in PHP. So, I will be able to get an error code back. Based on that error cod... | [
{
"answer_id": 393989,
"author": "James Brady",
"author_id": 29903,
"author_profile": "https://Stackoverflow.com/users/29903",
"pm_score": 2,
"selected": false,
"text": "0000 : 0 (no error)\n0001 : 1 (error)\n0010 : 2 (I/O error)\n0100 : 4 (user input error)\n1000 : 8 (permission error)\... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28714/"
] |
393,852 | <p>I wonder if you anyone can construct a regular expression that can detect if a person searches for something like "site:cnn.com" or "site:www.globe.com.ph/". I've been having the most difficult time figuring it out. Thanks a lot in advance!</p>
<p>Edit: Sorry forgot to mention my script is in PHP.</p>
| [
{
"answer_id": 393875,
"author": "ʞɔıu",
"author_id": 41613,
"author_profile": "https://Stackoverflow.com/users/41613",
"pm_score": 0,
"selected": false,
"text": "http://www.google.com/search?client=safari&rls=en-us&q=whatever+site:foo.com&ie=UTF-8&oe=UTF-8\n"
},
{
"answer_id": 3... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47947/"
] |
393,853 | <p>I have a class called DataSet with various constructors, each specifying a different type of variable. It might look a bit like this:</p>
<pre><code>public class DataSet
{
private HashSet Data;
public DataSet( DataObject obj )
{
Data = new <DataObject>HashSet();
Data.add( obj );... | [
{
"answer_id": 393857,
"author": "duffymo",
"author_id": 37213,
"author_profile": "https://Stackoverflow.com/users/37213",
"pm_score": 0,
"selected": false,
"text": "import java.util.HashSet;\nimport java.util.Set;\nimport java.util.Arrays;\n\npublic class DataSet\n{\n private Set<Dat... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19825/"
] |
393,868 | <p>I know how to show and hide hidden files in the Terminal - but is there a way to hide certain files like .DS_STORE when showing hidden files? Make certain files super-hidden, so to speak?</p>
| [
{
"answer_id": 393905,
"author": "ibz",
"author_id": 5475,
"author_profile": "https://Stackoverflow.com/users/5475",
"pm_score": 1,
"selected": false,
"text": "alias lv=\"ls -al | grep -v .DS_Store\"\n"
},
{
"answer_id": 393914,
"author": "tvanfosson",
"author_id": 12950,... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24218/"
] |
393,871 | <p><br/>
I'd like to include <strong>Python scripting</strong> in one of my applications, that is written in Python itself. </p>
<p>My application must be able to call external Python functions (written by the user) as <strong>callbacks</strong>. There must be some control on code execution; for example, if the user p... | [
{
"answer_id": 393897,
"author": "ibz",
"author_id": 5475,
"author_profile": "https://Stackoverflow.com/users/5475",
"pm_score": 4,
"selected": true,
"text": "__import__"
},
{
"answer_id": 393921,
"author": "James Brady",
"author_id": 29903,
"author_profile": "https:/... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23034/"
] |
393,881 | <p>Hey, im doing a little app for my smart phone, using Windows Mobile 6. I'm trying to get all currently running processec, but method CreateToolhelp32Snapshot always returns -1. So now im stuck. I tried to get error with invoking GetLastError() method, but that method returns 0 value.
Here is a snippet of my code.</p... | [
{
"answer_id": 32725605,
"author": "dquadros",
"author_id": 4843677,
"author_profile": "https://Stackoverflow.com/users/4843677",
"pm_score": 1,
"selected": false,
"text": "CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);\n"
},
{
"answer_id": 61262605,
"author": "GuidedHackin... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19600/"
] |
393,882 | <p>Saving and auto-filing of username/password is a feature of most modern browsers. And the user can generally choose to disable this feature on a per domain basis. But is there a standard way for the site itself to prevent password caching?</p>
<p>The emphasis here is cross-browser, so I would employ multiple parall... | [
{
"answer_id": 393938,
"author": "ceejayoz",
"author_id": 1902010,
"author_profile": "https://Stackoverflow.com/users/1902010",
"pm_score": 5,
"selected": true,
"text": "autocomplete=\"off\""
},
{
"answer_id": 34819929,
"author": "RetroCoder",
"author_id": 487328,
"au... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14749/"
] |
393,885 | <p>Simple question - In c++, what's the neatest way of getting which of two numbers (u0 and u1) is the smallest positive number? (that's still efficient)</p>
<p>Every way I try it involves big if statements or complicated conditional statements.</p>
<p>Thanks,
Dan</p>
<p>Here's a simple example:</p>
<pre><code>bool... | [
{
"answer_id": 393906,
"author": "antik",
"author_id": 1625,
"author_profile": "https://Stackoverflow.com/users/1625",
"pm_score": 2,
"selected": false,
"text": "unsigned int minUnsigned( unsigned int a, unsigned int b )\n{\n return ( a < b ) ? a : b;\n}\n\nbool lowestPositive( int a, ... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18909/"
] |
393,886 | <h2>Exact Duplicate of: <a href="https://stackoverflow.com/questions/390800/is-there-a-way-to-do-object-with-its-attributes-serializing-to-xml">Is there a way to do object (with its attributes) serializing to xml?</a></h2>
<p>Quite Ironically, it's a duplicate of the poster's previous question.</p>
<hr />
<p>I want ... | [
{
"answer_id": 393969,
"author": "Yossi Dahan",
"author_id": 43541,
"author_profile": "https://Stackoverflow.com/users/43541",
"pm_score": 1,
"selected": false,
"text": "//Create serializer instance, passing in the type of the class \nXmlSerializer serializer = \n new XmlSerializer(type... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48824/"
] |
393,895 | <p>I am using jQuery and Ajax, and my <code>Ajax.php</code> file returns the following field into the main file. While I am clicking in Mozilla and Chrome, it is working fine and gives an alert, but when I use Internet Explorer 7 (version 7.0.5730.13), it wasn't supported. Do I need to do anything on browser ... | [
{
"answer_id": 393904,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "echo \" <a href='#' onclick=\\\"javascript:alert('hello'); return false;\\\"> link</a>\";\n"
},
{
"answer_id": 3... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44984/"
] |
393,950 | <p>Can someone please give me a simple example on how to add three rows to a ListField so that the list shows something like this?</p>
<p>Item 1</p>
<p>Item 2</p>
<p>Item 3</p>
<p>I just want to show a list in which the user can select one of the items and the program would do something depending on the item select... | [
{
"answer_id": 401557,
"author": "roryf",
"author_id": 270,
"author_profile": "https://Stackoverflow.com/users/270",
"pm_score": 5,
"selected": true,
"text": "MainScreen screen = new MainScreen();\nscreen.setTitle(\"my test\");\n\nfinal ObjectListField list = new ObjectLIstField();\nStri... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49229/"
] |
393,954 | <p>I'm trying to write a program which takes an <code>SDL_Surface</code>, converts it to an <code>IplImage</code>, uses the cvBlobsLib to find blobs, paints the blobs as spots back over the image, then converts the output <code>IplImage</code> back to an <code>SDL_Surface</code>.</p>
<p>I'm almost done: only convertin... | [
{
"answer_id": 395408,
"author": "sgielen",
"author_id": 13104,
"author_profile": "https://Stackoverflow.com/users/13104",
"pm_score": 5,
"selected": true,
"text": "8 * 3 = 24"
},
{
"answer_id": 1453823,
"author": "Community",
"author_id": -1,
"author_profile": "https... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13104/"
] |
393,968 | <p>That is, if I had two or more sets, and I wanted to return a new set containing either:</p>
<ol>
<li>All of the elements each set has in common (AND).</li>
<li>All of the elements total of each set (OR).</li>
<li>All of the elements unique to each set. (XOR).</li>
</ol>
<p>Is there an easy, pre-existing way to do ... | [
{
"answer_id": 393993,
"author": "Jason S",
"author_id": 44330,
"author_profile": "https://Stackoverflow.com/users/44330",
"pm_score": 2,
"selected": false,
"text": "s1"
},
{
"answer_id": 393994,
"author": "Ari Ronen",
"author_id": 34957,
"author_profile": "https://St... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19825/"
] |
393,980 | <p>I'm looking for ways to restrict the number of C symbols exported to a Linux static library (archive). I'd like to limit these to only those symbols that are part of the official API for the library. I already use 'static' to declare most functions as static, but this restricts them to file scope. I'm looking for... | [
{
"answer_id": 394188,
"author": "tpgould",
"author_id": 32161,
"author_profile": "https://Stackoverflow.com/users/32161",
"pm_score": 4,
"selected": false,
"text": "{ global: foo; bar; local: *; };\n"
},
{
"answer_id": 415840,
"author": "Employed Russian",
"author_id": 5... | 2008/12/26 | [
"https://Stackoverflow.com/questions/393980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,005 | <p>How the variables can be transferred between the Winforms? Example customer id</p>
<p>Thanks</p>
| [
{
"answer_id": 394008,
"author": "Jim Anderson",
"author_id": 42439,
"author_profile": "https://Stackoverflow.com/users/42439",
"pm_score": 2,
"selected": false,
"text": "frmTwo.CustomerId = frmOne.CustomerId\n"
},
{
"answer_id": 394015,
"author": "Jab",
"author_id": 2967... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49238/"
] |
394,020 | <p>How accurate is <strong>System.Diagnostics.Stopwatch</strong>? I am trying to do some metrics for different code paths and I need it to be exact. Should I be using stopwatch or is there another solution that is more accurate.</p>
<p>I have been told that sometimes stopwatch gives incorrect information.</p>
| [
{
"answer_id": 33767765,
"author": "user3308241",
"author_id": 3308241,
"author_profile": "https://Stackoverflow.com/users/3308241",
"pm_score": 3,
"selected": false,
"text": "var watch = new Stopwatch();\nwatch.Start();\n... (perform a set of operations)\nwatch.Stop();\nvar wrongDate = ... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
394,033 | <p>Can anybody recommend a decent C# <a href="http://martinfowler.com/eaaCatalog/dataMapper.html" rel="nofollow noreferrer">Mapper Pattern</a> code generation template that plays nicely with SQL stored procedures? I'm looking for something that generates <a href="https://stackoverflow.com/questions/250001/define-poco"... | [
{
"answer_id": 33767765,
"author": "user3308241",
"author_id": 3308241,
"author_profile": "https://Stackoverflow.com/users/3308241",
"pm_score": 3,
"selected": false,
"text": "var watch = new Stopwatch();\nwatch.Start();\n... (perform a set of operations)\nwatch.Stop();\nvar wrongDate = ... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10792/"
] |
394,053 | <p>I am doing windows appliction in vb.net. i have customer object contains save method. how do i generate insert query?</p>
<p>I need to save the object in relational database (SQL server). I need to know which is the correct way of doing the insertion ie,. Inside the save method i have written the SQL statement to s... | [
{
"answer_id": 394154,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": false,
"text": "INSERT INTO [tablename] ( [column1], [column2], ... ) VALUES ( [value1], [value2], ...)\n"
},
{
"answer_id": 3... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,061 | <p>I`m writing a chat using WinSock2 and WinAPI functions. And I have a little trouble.<br>
I store the std::vector of client connections on server. When new client connects, new thread starts and all work with the client is done in this new thread. I do not use classes (I know it is not very good) so this list of conn... | [
{
"answer_id": 394151,
"author": "Evgeny Lazin",
"author_id": 42371,
"author_profile": "https://Stackoverflow.com/users/42371",
"pm_score": 2,
"selected": false,
"text": "unsigned int size();\nT& operator[](int index);\n"
},
{
"answer_id": 423104,
"author": "Integer Poet",
... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28298/"
] |
394,063 | <p>I want to take two variables (in and in2) and put them together, for example:</p>
<pre><code>in = 1;
in2 = 3;
pin = in.in2; // I want this to set pin to 13
</code></pre>
<p>The arduino IDE tells me that in is not a class, so what syntax would I use to accomplish this?</p>
<p>EDIT: I figured out a different way t... | [
{
"answer_id": 394073,
"author": "Russ Bradberry",
"author_id": 48450,
"author_profile": "https://Stackoverflow.com/users/48450",
"pm_score": 0,
"selected": false,
"text": "pin = int.Parse((string)in + (string)in2);\n"
},
{
"answer_id": 587105,
"author": "Ed James",
"auth... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29291/"
] |
394,081 | <p>I need function in c++ that allows me to retrieve and store the system date. I have a class for storing dates.</p>
| [
{
"answer_id": 394091,
"author": "jason",
"author_id": 45914,
"author_profile": "https://Stackoverflow.com/users/45914",
"pm_score": 3,
"selected": false,
"text": "time.h"
},
{
"answer_id": 394135,
"author": "Evgeny Lazin",
"author_id": 42371,
"author_profile": "https... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,127 | <pre><code>private HashMap<DataObject, HashSet> AllDataObjects;
...
/** Returns all DataObject elements that are NOT in the specified set. */
private DataObject[] invert( HashSet<DataObject> set )
{
HashSet<DataObject> keys = (HashSet) AllDataObjects.keySet();
keys = (HashSet) keys.clone();
... | [
{
"answer_id": 394129,
"author": "iny",
"author_id": 27067,
"author_profile": "https://Stackoverflow.com/users/27067",
"pm_score": 5,
"selected": true,
"text": "private DataObject[] invert( Set<DataObject> set ){\n Set<DataObject> keys = new HashSet<DataObject>(AllDataObjects.keySet()... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19825/"
] |
394,133 | <p>I'm a beginner programmer and I'm learning my first language, C. </p>
<p>I'm learning mostly from Deitel and Deitel's C How to Program book, but also using example tasks and things from the university, however I am stuck on one.</p>
<p>I have a very very basic understanding of pointers - adding & in front of a... | [
{
"answer_id": 394141,
"author": "frankodwyer",
"author_id": 42404,
"author_profile": "https://Stackoverflow.com/users/42404",
"pm_score": 4,
"selected": true,
"text": "greatestCD(num2,(num1%num2));\n"
},
{
"answer_id": 394161,
"author": "user49117",
"author_id": 49117,
... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49262/"
] |
394,144 | <p>According to Wikipedia, a <a href="http://en.wikipedia.org/wiki/Monkey_patch" rel="noreferrer">monkey patch</a> is:</p>
<blockquote>
<p>a way to extend or modify the runtime
code of dynamic languages [...]
without altering the original source
code.</p>
</blockquote>
<p>The following statement from the same... | [
{
"answer_id": 394168,
"author": "Robert K",
"author_id": 24950,
"author_profile": "https://Stackoverflow.com/users/24950",
"pm_score": 2,
"selected": false,
"text": "class Float\n def self.times(&block)\n self.to_i.times { |i| yield(i) }\n remainder = self - self.to_i\n yield(... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1173/"
] |
394,153 | <p>I wrote the following function that works about 95% of the time, but I need it to work 100% (obviously):</p>
<pre><code>Public Shared Function getPassedVars() As String
Const keyCount As Integer = 54 ' 54 seems to be the number of parameter keys passed by default (for this web_app).
' ... | [
{
"answer_id": 394159,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": 1,
"selected": false,
"text": "Dim myParamValue as String = Request.Form(\"MyKeyName\")\n"
},
{
"answer_id": 394209,
"author": "Adam ... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25515/"
] |
394,162 | <p>I'm trying to write a function that is able to determine whether a string contains a real or an integer value.</p>
<p>This is the simplest solution I could think of:</p>
<pre><code>int containsStringAnInt(char* strg){
for (int i =0; i < strlen(strg); i++) {if (strg[i]=='.') return 0;}
return 1;
}
</code></p... | [
{
"answer_id": 394182,
"author": "Adarsha",
"author_id": 28373,
"author_profile": "https://Stackoverflow.com/users/28373",
"pm_score": 3,
"selected": true,
"text": "int containsStringAnInt(char* strg){ \n\n for (int i =0;strg[i]!='\\0'; i++) {\n if (strg[i]=='.') return 0;} \n r... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43960/"
] |
394,176 | <p>I am using Visual Studio 2008 to create a web based report viewing page. Its working fine locally, but when i deploy it to client's web server it does not run and it gives error that crystal reports 10.5 components are missing. Client told me that server have crystal reports 11 installed.</p>
<p>Now my question is... | [
{
"answer_id": 467216,
"author": "Rowland Shaw",
"author_id": 50447,
"author_profile": "https://Stackoverflow.com/users/50447",
"pm_score": 0,
"selected": false,
"text": "C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\Packages"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/394176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,184 | <p>I have a table in SQL Server 2005 which has three columns: </p>
<pre><code>id (int),
message (text),
timestamp (datetime)
</code></pre>
<p>There is an index on timestamp and id.</p>
<p>I am interested in doing a query which retrieves all messages for a given date, say '12/20/2008'. However I know that simply do... | [
{
"answer_id": 394190,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": true,
"text": "-- avoid re-calculating @MyDate +1 for every row\nDECLARE @NextDay DateTime\nSet @NextDay = @MyDate + 1\n\nSELECT \n ... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/324/"
] |
394,192 | <p>What is the source (url) for Rails Engines that works with rails 2.2.2?</p>
| [
{
"answer_id": 394190,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": true,
"text": "-- avoid re-calculating @MyDate +1 for every row\nDECLARE @NextDay DateTime\nSet @NextDay = @MyDate + 1\n\nSELECT \n ... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19224/"
] |
394,201 | <p>Suppose I have the following:</p>
<ul>
<li>A region defined by minimum and maximum latitude and longitude (commonly a 'lat-long rect', though it's not actually rectangular except in certain projections).</li>
<li>A circle, defined by a center lat/long and a radius</li>
</ul>
<p>How can I determine:</p>
<ol>
<li>W... | [
{
"answer_id": 394346,
"author": "Jason S",
"author_id": 44330,
"author_profile": "https://Stackoverflow.com/users/44330",
"pm_score": 2,
"selected": false,
"text": "InsideCircle(P)"
},
{
"answer_id": 394420,
"author": "aib",
"author_id": 1088,
"author_profile": "http... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12030/"
] |
394,214 | <p>I am hoping that there is a standard class/php script that we can use for the "forgot password" functionality. It seems almost every website has one, and I'd like to reduce the development time on it.</p>
<p>It appears that a common approach is:</p>
<ol>
<li>click on Forgot password</li>
<li>User receives via ema... | [
{
"answer_id": 394292,
"author": "Stacey Richards",
"author_id": 1142,
"author_profile": "https://Stackoverflow.com/users/1142",
"pm_score": 4,
"selected": false,
"text": "// query is my own SQLite3 wrapper function which ensures I have a valid database connection then executes the SQL.\... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43980/"
] |
394,227 | <p>I have a lengthy number-crunching process which takes advantage of quite abit of OpenGL off-screen rendering. It all works well but when I leave it to work on its own while I go make a sandwich I would usually find that it crashed while I was away.<br>
I was able to determine that the crash occurs very close to the ... | [
{
"answer_id": 394286,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 3,
"selected": false,
"text": "#!/usr/bin/python\nimport dbus\nimport time\nbus = dbus.Bus(dbus.Bus.TYPE_SESSION)\ndevobj = bus.get_object('org.freedes... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9611/"
] |
394,230 | <p>I would like to keep my <code>.bashrc</code> and <code>.bash_login</code> files in version control so that I can use them between all the computers I use. The problem is I have some OS specific aliases so I was looking for a way to determine if the script is running on Mac OS X, Linux or <a href="http://en... | [
{
"answer_id": 394235,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 8,
"selected": false,
"text": "OSTYPE"
},
{
"answer_id": 394238,
"author": "Joao da Silva",
"author_id": 46329,
"autho... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19839/"
] |
394,260 | <p>With regards to OOP, how would you describe an interface?</p>
<p>What I mean is, sub-classing can be described as <em>"Has-A"</em>, and inheritance could be <em>"Is-A"</em>. A member method could be <em>"Can-Do"</em>.</p>
<p>Is there any way this could be extended (no pun intended) to describe what an interface do... | [
{
"answer_id": 394282,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 4,
"selected": true,
"text": "Serializable"
}
] | 2008/12/26 | [
"https://Stackoverflow.com/questions/394260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19731/"
] |
394,298 | <p>In an HTML file on My Computer, I'm trying to use the Scripting.FileSystemObject in a script. How can I disable the popup saying "Any ActiveX control on this page may be unsafe for scripting"?</p>
<p>The "Internet Options" Security pane allows one to set "Initialize and script ActiveX controls not marked as safe fo... | [
{
"answer_id": 394359,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "[HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\0]\n\"1201\"=dword:00000000\n"
}... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
394,299 | <p>I have an object tree that looks something like</p>
<pre><code> Ball
/ \
LegalBall IllegalBall
</code></pre>
<p>And I have 2 methods:</p>
<pre><code>class o {
AddBall(LegalBall l)
AddBall(IllegalBall i)
}
</code></pre>
<p>in another class I'd like to do the following:</p>
<pre><code>... | [
{
"answer_id": 394306,
"author": "Federico A. Ramponi",
"author_id": 18770,
"author_profile": "https://Stackoverflow.com/users/18770",
"pm_score": 2,
"selected": false,
"text": "class o {\nAddBall(Ball b)\n}\n"
},
{
"answer_id": 394308,
"author": "Tom Hawtin - tackline",
... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47026/"
] |
394,316 | <p>I want to write a script in Ruby to clean up some messed up keys in several copies of the same MySQL schema. I'd like to do something like SHOW CREATE TABLE, then look at what comes back and delete keys if they exist.</p>
<p>I know in the Rails environment you can do this...</p>
<pre><code>ActiveRecord::Base.conne... | [
{
"answer_id": 394376,
"author": "Keltia",
"author_id": 16143,
"author_profile": "https://Stackoverflow.com/users/16143",
"pm_score": 2,
"selected": false,
"text": "require \"dbi\"\nrequire \"dbi/dbrc\"\n\n# == Configuration\n\nDB = \"sympa\"\nHOST = \"saphir\"\n\ncnt = 0\ndup = 0\n\n# =... | 2008/12/26 | [
"https://Stackoverflow.com/questions/394316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42595/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.