qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
12,611 | <p>I have to create something similiar to Google Calendar, so I created an events table that contains all the events for a user.</p>
<p>The hard part is handling re-occurring events, the row in the events table has an event_type field that tells you what kind of event it is, since an event can be for a single date onl... | [
{
"answer_id": 12993,
"author": "eplawless",
"author_id": 1370,
"author_profile": "https://Stackoverflow.com/users/1370",
"pm_score": 2,
"selected": false,
"text": "SELECT * FROM events WHERE id = 3 OR parentid = 3\n SELECT * FROM events WHERE startdate >= '2008-08-01' AND enddate <= '20... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368/"
] |
12,613 | <p>I've been using Emacs's sql interactive mode to talk to the MySQL db server and gotten to enjoy it. A developer has set up another db on a new non-default port number but I don't know how to access it using sql-mysql.</p>
<p>How do I specify a port number when I'm trying to connect to a database?</p>
<p>It would b... | [
{
"answer_id": 12628,
"author": "Marcel Levy",
"author_id": 676,
"author_profile": "https://Stackoverflow.com/users/676",
"pm_score": 3,
"selected": false,
"text": "(setq sql-mysql-options (list \"-P <port number>\"))\n"
},
{
"answer_id": 12658,
"author": "Jon Ericson",
"... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/680/"
] |
12,633 | <p>I'm trying to parse an INI file using C++. Any tips on what is the best way to achieve this? Should I use the Windows API tools for INI file processing (with which I am totally unfamiliar), an open-source solution or attempt to parse it manually?</p>
| [
{
"answer_id": 1964505,
"author": "Mike",
"author_id": 124476,
"author_profile": "https://Stackoverflow.com/users/124476",
"pm_score": 3,
"selected": false,
"text": "#include \"SimpleIni\\SimpleIni.h\" \nCSimpleIniA ini;\nini.SetUnicode();\nini.LoadFile(FileName);\nconst char * pVal =... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1467/"
] |
12,638 | <p>So basically I'm building an app for my company and it NEEDS to be built using MS Access and it needs to be built on SQL Server.</p>
<p>I've drawn up most of the plans but am having a hard time figuring out a way to handle the auditing system.</p>
<p>Since it is being used internally only and you won't even be abl... | [
{
"answer_id": 12650,
"author": "Jay Mooney",
"author_id": 733,
"author_profile": "https://Stackoverflow.com/users/733",
"pm_score": 2,
"selected": false,
"text": "\nselect user_name(),suser_sname()\n"
},
{
"answer_id": 12653,
"author": "SQLMenace",
"author_id": 740,
... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/428190/"
] |
12,642 | <p>I am trying to upload a file or stream of data to our web server and I cant find a decent way of doing this. I have tried both <code>WebClient</code> and <code>WebRequest</code> both have their problems. </p>
<p><strong>WebClient</strong><br>
Nice and easy but you do not get any notification that the asynchronous ... | [
{
"answer_id": 12691,
"author": "Brian Leahy",
"author_id": 580,
"author_profile": "https://Stackoverflow.com/users/580",
"pm_score": 2,
"selected": true,
"text": " public void DoIt(){\nthis.IsUploading = True; \n\n WebRequest postRequest = WebRequest.Create(new Uri(ServiceURL)... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1478/"
] |
12,647 | <p>Is there a simple way in Perl that will allow me to determine if a given variable is numeric? Something along the lines of:</p>
<pre><code>if (is_number($x))
{ ... }
</code></pre>
<p>would be ideal. A technique that won't throw warnings when the <code>-w</code> switch is being used is certainly preferred.</p>
| [
{
"answer_id": 12654,
"author": "farmerchris",
"author_id": 1317,
"author_profile": "https://Stackoverflow.com/users/1317",
"pm_score": 2,
"selected": false,
"text": "sub isnumber \n{\n shift =~ /^-?\\d+\\.?\\d*$/;\n}\n"
},
{
"answer_id": 12667,
"author": "andrewrk",
"... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/872/"
] |
12,656 | <p>In a project that I'm about to wrap up, I've written and implemented an object-relational mapping solution for PHP. Before the doubters and dreamers cry out "how on earth?", relax -- I haven't found a way to make late static binding work -- I'm just working around it in the best way that I possibly can.</p>
<p>Anyw... | [
{
"answer_id": 13092,
"author": "John Downey",
"author_id": 200,
"author_profile": "https://Stackoverflow.com/users/200",
"pm_score": 5,
"selected": true,
"text": "call_user_func_array call_user_func_array(array(&$stmt, 'bindparams'), $array_of_params);\n"
},
{
"answer_id": 80352... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1344/"
] |
12,661 | <p>What's the most efficient way to resize large images in PHP?</p>
<p>I'm currently using the <a href="http://en.wikipedia.org/wiki/GD_Graphics_Library" rel="noreferrer">GD</a> function imagecopyresampled to take high resolution images, and cleanly resize them down to a size for web viewing (roughly 700 pixels wide b... | [
{
"answer_id": 12805,
"author": "Kevin",
"author_id": 40,
"author_profile": "https://Stackoverflow.com/users/40",
"pm_score": 5,
"selected": false,
"text": "<?\nfunction fastimagecopyresampled (&$dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h, $qual... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1477/"
] |
12,671 | <p>I'm fairly new to ASP.NET and trying to learn how things are done. I come from a C# background so the code-behind portion is easy, but thinking like a web developer is unfamiliar.</p>
<p>I have an aspx page that contains a grid of checkboxes. I have a button that is coded via a Button_Click event to collect a list ... | [
{
"answer_id": 14735,
"author": "Erick B",
"author_id": 1373,
"author_profile": "https://Stackoverflow.com/users/1373",
"pm_score": 1,
"selected": false,
"text": "<uc1:ChildPage ID=\"MyModalPage\" runat=\"server\" />\n AjaxControlToolkit.ModalPopupExtender mpe = \n (AjaxControlToolkit... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1373/"
] |
12,702 | <p>I have a WCF service from which I want to return a DataTable. I know that this is often a highly-debated topic, as far as whether or not returning DataTables is a good practice. Let's put that aside for a moment.</p>
<p>When I create a DataTable from scratch, as below, there are no problems whatsoever. The table is... | [
{
"answer_id": 12712,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 2,
"selected": false,
"text": "[ServiceContract]\npublic interface ITableProvider\n{\n [OperationContract]\n DataTable GetTbl();\n}\n\n\n[OperationBeh... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/940/"
] |
12,706 | <p>I'm coming from a Rails background and doing some work on a ASP.NET project (not ASP MVC). Newbie question: what's the easiest way to make a custom editor for a table of records?</p>
<p>For example: I have a bunch of data rows and want to change the "category" field on each -- maybe a dropdown, maybe a link, maybe ... | [
{
"answer_id": 12873,
"author": "Kalid",
"author_id": 109,
"author_profile": "https://Stackoverflow.com/users/109",
"pm_score": 0,
"selected": false,
"text": "<asp:DataGrid ID=\"GridView1\" runat=\"server\" AutoGenerateColumns=\"False\">\n <Columns>\n <asp:BoundColumn DataField... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/109/"
] |
12,716 | <p>In C++ program, I am trying to #import TLB of .NET out-of-proc server.</p>
<p>I get errors like:</p>
<blockquote>
<p>z:\server.tlh(111) : error C2146: syntax error : missing ';' before identifier 'GetType'</p>
<p>z:\server.tlh(111) : error C2501: '_TypePtr' : missing storage-class or type specifiers</p>
<p>z:\server... | [
{
"answer_id": 12751,
"author": "jm.",
"author_id": 814,
"author_profile": "https://Stackoverflow.com/users/814",
"pm_score": 2,
"selected": true,
"text": "#import \"server.tlb\" no_namespace named_guids\n"
},
{
"answer_id": 758927,
"author": "Community",
"author_id": -1,... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/814/"
] |
12,794 | <p>I'm trying to use <code>jQuery</code> to format code blocks, specifically to add a <code><pre></code> tag inside the <code><code></code> tag:</p>
<pre><code>$(document).ready(function() {
$("code").wrapInner("<pre></pre>");
});
</code></pre>
<p>Firefox applies the formatting correctly, b... | [
{
"answer_id": 12804,
"author": "Pat",
"author_id": 238,
"author_profile": "https://Stackoverflow.com/users/238",
"pm_score": 1,
"selected": false,
"text": "$(\"code\").wrapInner(document.createElement(\"pre\"));\n"
},
{
"answer_id": 12983,
"author": "markpasc",
"author_i... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/311/"
] |
12,836 | <p>We have our own ORM we use here, and provide strongly typed wrappers for all of our db tables. We also allow weakly typed ad-hoc SQL to be executed, but these queries still go through the same class for getting values out of a data reader.</p>
<p>In tweaking that class to work with Oracle, we've come across an inte... | [
{
"answer_id": 12854,
"author": "John Smithers",
"author_id": 1069,
"author_profile": "https://Stackoverflow.com/users/1069",
"pm_score": 1,
"selected": false,
"text": "DBNull"
},
{
"answer_id": 12935,
"author": "Dan Herbert",
"author_id": 392,
"author_profile": "http... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/489/"
] |
12,843 | <p>I have two separate mercurial repositories. At this point it makes sense that they "become one" because I want to work on the two projects simultaneously.</p>
<p>I'd really like the two projects to each be a subdirectory in the new repository.</p>
<ol>
<li>How do I merge the two projects?</li>
<li>Is this a good i... | [
{
"answer_id": 18175,
"author": "nlucaroni",
"author_id": 157,
"author_profile": "https://Stackoverflow.com/users/157",
"pm_score": 2,
"selected": false,
"text": "transplant hg transplant -s REPOSITORY lower_rev:high_rev\n"
},
{
"answer_id": 20591,
"author": "jm.",
"autho... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/814/"
] |
12,855 | <p>I have a query where I am searching against a string:</p>
<pre><code>SELECT county FROM city WHERE UPPER(name) = 'SAN FRANCISCO';
</code></pre>
<p>Now, this works fine, but it doesn't scale well, and I need to optimize it. I have <a href="http://www.ibm.com/developerworks/db2/library/techarticle/0203adamache/0203... | [
{
"answer_id": 12886,
"author": "nsanders",
"author_id": 1244,
"author_profile": "https://Stackoverflow.com/users/1244",
"pm_score": 3,
"selected": false,
"text": "hash = [compute hash key for 'SAN FRANCISCO']\n\nSELECT county \nFROM city \nWHERE cityHash = hash \n AND UPPER(name) = 'SA... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/122/"
] |
12,865 | <p>Got a bluescreen in windows while cloning a mercurial repository.</p>
<p>After reboot, I now get this message for almost all hg commands:</p>
<pre>
c:\src\>hg commit
waiting for lock on repository c:\src\McVrsServer held by '\x00\x00\x00\x00\x00\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
interru... | [
{
"answer_id": 12879,
"author": "jm.",
"author_id": 814,
"author_profile": "https://Stackoverflow.com/users/814",
"pm_score": 10,
"selected": true,
"text": ".hg/wlock .hg/store/lock .hg/store/lock"
},
{
"answer_id": 2960524,
"author": "Tiago Matos",
"author_id": 356772,
... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/814/"
] |
12,870 | <p>This is a nasty one for me... I'm a PHP guy working in Java on a JSP project. I know how to do what I'm attempting through too much code and a complete lack of finesse. </p>
<p>I'd prefer to do it right. Here is the situation:</p>
<p>I'm writing a small display to show customers what days they can water their ... | [
{
"answer_id": 12878,
"author": "Mike Stone",
"author_id": 122,
"author_profile": "https://Stackoverflow.com/users/122",
"pm_score": 5,
"selected": true,
"text": "Hashtable<String, Hashtable<String, String>> schedule\n = new Hashtable<String, Hashtable<String, String>>();\nschedule.pu... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/172/"
] |
12,890 | <p>I have a large database of normalized order data that is becoming very slow to query for reporting. Many of the queries that I use in reports join five or six tables and are having to examine tens or hundreds of thousands of lines.</p>
<p>There are lots of queries and most have been optimized as much as possible t... | [
{
"answer_id": 12950,
"author": "Eric Z Beard",
"author_id": 1219,
"author_profile": "https://Stackoverflow.com/users/1219",
"pm_score": 5,
"selected": true,
"text": "select a.name, b.address from tbla a \njoin tblb b on b.fk_a_id = a.id where a.id=1\n create table tbl_ab (a_id, a_name, ... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1430/"
] |
12,896 | <p>I'm looking for good/working/simple to use PHP code for parsing raw email into parts.</p>
<p>I've written a couple of brute force solutions, but every time, one small change/header/space/something comes along and my whole parser fails and the project falls apart.</p>
<p>And before I get pointed at PEAR/PECL, I need ... | [
{
"answer_id": 12965,
"author": "jj33",
"author_id": 430,
"author_profile": "https://Stackoverflow.com/users/430",
"pm_score": 6,
"selected": true,
"text": "HEADERS\\n\n\\n\nBODY\n HSTRING:HTEXT\n HEADER: HEADER TEXT\nHEADER: MORE HEADER TEXT\n INCLUDING A LINE CONTINUATION\nHEADER: LAS... | 2008/08/15 | [
"https://Stackoverflow.com/questions/12896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/314/"
] |
12,905 | <p>I'm experimenting with creating an add-in for Infopath 2007. The documentation is very skimpy. What I'm trying to determine is what kind of actions an add-in can take while designing a form. Most of the discussion and samples are for when the user is filling out the form. Can I, for example, add a new field to the f... | [
{
"answer_id": 12965,
"author": "jj33",
"author_id": 430,
"author_profile": "https://Stackoverflow.com/users/430",
"pm_score": 6,
"selected": true,
"text": "HEADERS\\n\n\\n\nBODY\n HSTRING:HTEXT\n HEADER: HEADER TEXT\nHEADER: MORE HEADER TEXT\n INCLUDING A LINE CONTINUATION\nHEADER: LAS... | 2008/08/16 | [
"https://Stackoverflow.com/questions/12905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9/"
] |
12,906 | <p>I need to know how much space occupies all the databases inside an SQL Server 2000. I did some research but could not found any script to help me out.</p>
| [
{
"answer_id": 12915,
"author": "Jon Galloway",
"author_id": 5,
"author_profile": "https://Stackoverflow.com/users/5",
"pm_score": 4,
"selected": true,
"text": "USE master;\nGO\n\nIF OBJECT_ID('dbo.sp_SDS', 'P') IS NOT NULL\n DROP PROCEDURE dbo.sp_SDS;\nGO\n\nCREATE PROCEDURE dbo.sp_SDS... | 2008/08/16 | [
"https://Stackoverflow.com/questions/12906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/296/"
] |
12,927 | <p>I am calling a vendor's Java API, and on some servers it appears that the JVM goes into a low priority polling loop after logging into the API (CPU at 100% usage). The same app on other servers does not exhibit this behavior. This happens on WebSphere and Tomcat. The environment is tricky to set up so it is diffic... | [
{
"answer_id": 24082,
"author": "Marcel",
"author_id": 2554,
"author_profile": "https://Stackoverflow.com/users/2554",
"pm_score": 2,
"selected": false,
"text": "kill -3 <process id>"
}
] | 2008/08/16 | [
"https://Stackoverflow.com/questions/12927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/791/"
] |
12,936 | <p>Does anybody have experience working with PHP accelerators such as <a href="http://turck-mmcache.sourceforge.net/" rel="noreferrer">MMCache</a> or <a href="http://www.zend.com/en/" rel="noreferrer">Zend Accelerator</a>? I'd like to know if using either of these makes PHP comparable to <em>faster</em> web-technologi... | [
{
"answer_id": 31990,
"author": "John Douthat",
"author_id": 2774,
"author_profile": "https://Stackoverflow.com/users/2774",
"pm_score": 1,
"selected": false,
"text": "yum install php-devel httpd-devel php-pear\npecl install apc \necho \"extension=apc.so\" > /etc/php.d/apc.ini\n# if you'... | 2008/08/16 | [
"https://Stackoverflow.com/questions/12936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40/"
] |
12,982 | <p>It's 2008, and I'm still torn on this one. So I'm developing a web method that needs a complex type passed into it and returned from it. The two options I'm toying with are:</p>
<ol>
<li><p>Pass and return <em>actual</em> business objects with both data and behavior. When wsdl.exe is run, it will automatically c... | [
{
"answer_id": 12990,
"author": "Darren Kopp",
"author_id": 77,
"author_profile": "https://Stackoverflow.com/users/77",
"pm_score": 2,
"selected": false,
"text": "public class TransferObject\n{\n public string Type { get; set; }\n public byte[] Data { get; set; }\n}\n public static... | 2008/08/16 | [
"https://Stackoverflow.com/questions/12982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1436/"
] |
13,000 | <p>I want to define something like this in <em>php</em>:</p>
<pre><code>$EL = "\n<br />\n";
</code></pre>
<p>and then use that variable as an "endline" marker all over my site, like this:</p>
<pre><code>echo "Blah blah blah{$EL}";
</code></pre>
<p>How do I define $EL once (in only 1 file), include it on every... | [
{
"answer_id": 13003,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 4,
"selected": true,
"text": " include 'header.php';\n"
},
{
"answer_id": 13008,
"author": "UnkwnTech",
"author_id": 115,
"author_prof... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103/"
] |
13,021 | <p>I've frequently encountered sites that put all of their JavaScript inside a <code>namespace</code> structure along the lines of:</p>
<pre><code>namespaces = { com : { example: { example.com's data} }
</code></pre>
<p>However, setting this up safely with respect to other namespaced frameworks seems to require a rel... | [
{
"answer_id": 13193,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 5,
"selected": true,
"text": "var namespaces = { com: { example: { /* example.com's data */ } } }\n namespaces com example var com_example_data = { /* example.c... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/784/"
] |
13,049 | <p>What's the difference between struct and class in .NET?</p>
| [
{
"answer_id": 13053,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 6,
"selected": false,
"text": "struct MyStruct \n{\n string MyProperty { get; set; }\n}\n\nvoid ChangeMyStruct(MyStruct input) \n{ \n input.MyProperty = \"... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/905/"
] |
13,055 | <p>I'm looking for a clear, concise and accurate answer. </p>
<p>Ideally as the actual answer, although links to good explanations welcome.</p>
| [
{
"answer_id": 13056,
"author": "Justin Standard",
"author_id": 92,
"author_profile": "https://Stackoverflow.com/users/92",
"pm_score": 6,
"selected": false,
"text": "int Integer Collection Collection Collection int Integer"
},
{
"answer_id": 13057,
"author": "Keith",
"au... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/905/"
] |
13,060 | <p>I'm looking for a clear, concise and accurate answer. </p>
<p>Ideally as the actual answer, although links to good explanations welcome.</p>
<p>This also applies to VB.Net, but the keywords are different - <code>ByRef</code> and <code>ByVal</code>.</p>
| [
{
"answer_id": 13061,
"author": "Keith",
"author_id": 905,
"author_profile": "https://Stackoverflow.com/users/905",
"pm_score": 2,
"selected": false,
"text": "out int result; //not initialised\n\nif( int.TryParse( \"123\", out result ) )\n //result is now 123\nelse\n //if TryParse fa... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/905/"
] |
13,109 | <p>In php, I often need to map a variable using an array ... but I can not seem to be able to do this in a one liner. c.f. example:</p>
<pre><code>// the following results in an error:
echo array('a','b','c')[$key];
// this works, using an unnecessary variable:
$variable = array('a','b','c');
echo $variable[$key];
</... | [
{
"answer_id": 13113,
"author": "onnodb",
"author_id": 1037,
"author_profile": "https://Stackoverflow.com/users/1037",
"pm_score": 5,
"selected": true,
"text": "$variable = array('a','b','c');\necho $variable[$key];\nunset($variable);\n function indexonce(&$ar, $index) {\n return $ar[$i... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1532/"
] |
13,128 | <p>I'm tired of adding ten link libraries into my project, or requiring eight of them to use my own. I'd like to take existing libraries like libpng.a, libz.a, libjpeg.a, and combine them into one single .a library. Is that possible? How about combining .lib libraries?</p>
| [
{
"answer_id": 13206,
"author": "Judge Maygarden",
"author_id": 1491,
"author_profile": "https://Stackoverflow.com/users/1491",
"pm_score": 5,
"selected": false,
"text": "ar x <library name>\n ar cs <new library name> <list each extracted object file>\n"
},
{
"answer_id": 22041,
... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1536/"
] |
13,170 | <p>From time to time I get a System.Threading.ThreadStateException when attempting to restart a thread. The code in question is as follows:</p>
<pre><code>// Make sure the thread is done stopping
while (this.mThread.ThreadState == ThreadState.Running)
{
Thread.Sleep(0);
}
// Respawn a thread if the current one is... | [
{
"answer_id": 13207,
"author": "Brad Wilson",
"author_id": 1554,
"author_profile": "https://Stackoverflow.com/users/1554",
"pm_score": 1,
"selected": false,
"text": "if (this.mThread == null || this.mThread.ThreadState != ThreadState.Suspended)"
},
{
"answer_id": 13214,
"aut... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1185/"
] |
13,204 | <p>I have a cron job on an Ubuntu Hardy VPS that only half works and I can't work out why. The job is a Ruby script that uses mysqldump to back up a MySQL database used by a Rails application, which is then gzipped and uploaded to a remote server using SFTP.</p>
<p>The gzip file is created and copied successfully but ... | [
{
"answer_id": 13232,
"author": "T Percival",
"author_id": 954,
"author_profile": "https://Stackoverflow.com/users/954",
"pm_score": 2,
"selected": false,
"text": "PATH /bin /bin/rm /etc/crontab PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n"
},
{
"answer_id"... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1450/"
] |
13,213 | <p>I see often (rewritten) URLs without ID in it, like on some wordpress installations. What is the best way of achieve this?</p>
<p>Example: site.com/product/some-product-name/</p>
<p>Maybe to keep an array of page names and IDs in cache, to avoid DB query on every page request?
How to avoid conflicts, and what are ot... | [
{
"answer_id": 89901,
"author": "Devin Reams",
"author_id": 16248,
"author_profile": "https://Stackoverflow.com/users/16248",
"pm_score": 1,
"selected": false,
"text": "RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2&day=$3 [QSA,L]\n /2008/01/01/ /inde... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1407/"
] |
13,224 | <p>I've included a mobile web form in my asp.net project, I thought that it could/should be seen just for my mobile users but I realize that it can also be seen from any browser, I don't see problem there cause I could diff the access using HttpBrowserCapabilities.IsMobileDevice=true and transferring to the appropiate ... | [
{
"answer_id": 14182,
"author": "Pat Hermens",
"author_id": 1677,
"author_profile": "https://Stackoverflow.com/users/1677",
"pm_score": 2,
"selected": false,
"text": "HttpContext.Current.Request.Headers(\"User-Agent\") HttpCapabilitiesBase.IsMobileDevice HttpContext.Current.Request.Brows... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1130097/"
] |
13,225 | <p>I've recently inherited a internationalized and text-heavy Struts 1.1 web application. Many of the JSP files look like:</p>
<pre class="lang-jsp prettyprint-override"><code><p>
<bean:message key="alert" />
</p>
</code></pre>
<p>and the properties files look like:</p>
<pre><code>messages.prop... | [
{
"answer_id": 13239,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 0,
"selected": false,
"text": "#\nalert=Please update your {0}address{1} and {2}contact information{3}.\n"
},
{
"answer_id": 13359,
"author": "Mc... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1557/"
] |
13,343 | <p>I've been thinking about software estimation lately, and I have a bunch of questions around time spent coding. I'm curious to hear from people who have had at least a couple years of experience developing software.</p>
<p>When you have to estimate the amount of time you'll spend working on something, how many hours... | [
{
"answer_id": 9800326,
"author": "Coral Doe",
"author_id": 1252063,
"author_profile": "https://Stackoverflow.com/users/1252063",
"pm_score": 1,
"selected": false,
"text": "formality"
}
] | 2008/08/16 | [
"https://Stackoverflow.com/questions/13343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1554/"
] |
13,345 | <p>I've always wanted a way to make a socket connection to a server and allow the server to manipulate the page DOM. For example, this could be used in a stock quotes page, so the server can push new quotes as they become available. </p>
<p>I know this is a classic limitation (feature?) of HTTP's request/response pr... | [
{
"answer_id": 12466445,
"author": "Beachhouse",
"author_id": 783004,
"author_profile": "https://Stackoverflow.com/users/783004",
"pm_score": 1,
"selected": false,
"text": "socket_send(\"This was sent via the socket\\n\\n\"); on_socket_get(message){ more_code(message); }"
}
] | 2008/08/16 | [
"https://Stackoverflow.com/questions/13345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
13,362 | <p>I've got a div that uses overflow:auto to keep the contents inside the div as it is resized and dragged around the page. I'm using some ajax to retrieve lines of text from the server, then append them to the end of the div, so the content is growing downwards. Every time this happens, I'd like to use JS to scroll th... | [
{
"answer_id": 13365,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 7,
"selected": true,
"text": "scrollHeight scrollTop $(\"#thediv\").each( function() \n{\n // certain browsers have a bug such that scrollHeight is too small\... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384/"
] |
13,396 | <p>I love list comprehensions in Python, because they concisely represent a transformation of a list.</p>
<p>However, in other languages, I frequently find myself writing something along the lines of:</p>
<pre><code>foreach (int x in intArray)
if (x > 3) //generic condition on x
x++
//do other processin... | [
{
"answer_id": 13403,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 0,
"selected": false,
"text": "intArray.select { |x| x > 3 }.each do |x|\n # do other processing\nend\n intArray.select { |x| x > 3 }.each { |x| som... | 2008/08/16 | [
"https://Stackoverflow.com/questions/13396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1266/"
] |
13,434 | <p>How can I get programmatic access to the call stack?</p>
| [
{
"answer_id": 13439,
"author": "James Avery",
"author_id": 537,
"author_profile": "https://Stackoverflow.com/users/537",
"pm_score": 3,
"selected": false,
"text": "StackTrace StrackFrame System.Diagnostics"
},
{
"answer_id": 13621,
"author": "Scott Dorman",
"author_id": ... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100/"
] |
13,454 | <p>I wrote a piece of code to convert PHP's striplashes into valid Python [backslash] escapes:</p>
<pre><code>cleaned = stringwithslashes
cleaned = cleaned.replace('\\n', '\n')
cleaned = cleaned.replace('\\r', '\n')
cleaned = cleaned.replace('\\', '')
</code></pre>
<p>How can I condense it? </p>
| [
{
"answer_id": 13456,
"author": "Brad Wilson",
"author_id": 1554,
"author_profile": "https://Stackoverflow.com/users/1554",
"pm_score": 0,
"selected": false,
"text": "cleaned = stringwithslashes.replace(\"\\\\n\",\"\\n\").replace(\"\\\\r\",\"\\n\").replace(\"\\\\\",\"\")\n"
},
{
... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
13,470 | <p>I was reading <a href="https://stackoverflow.com/questions/6173/regular-expression-for-parsing-links-from-a-webpage">this question</a> about how to parse URLs out of web pages and had a question about the <a href="https://stackoverflow.com/questions/6173/regular-expression-for-parsing-links-from-a-webpage#6183">acce... | [
{
"answer_id": 13483,
"author": "jj33",
"author_id": 430,
"author_profile": "https://Stackoverflow.com/users/430",
"pm_score": 2,
"selected": false,
"text": "tibook 0 /home/jj33/swap > cat text\nText this is http://example.com text this is\nText this is http://http://example.com text thi... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/430/"
] |
13,473 | <p>I would like to sort an array in ascending order using <code>C/C++</code>. The outcome is an array containing element indexes. Each index is corespondent to the element location in the sorted array.</p>
<p><strong>Example</strong></p>
<pre><code>Input: 1, 3, 4, 9, 6
Output: 1, 2, 3, 5, 4
</code></pre>
<p><strong>Ed... | [
{
"answer_id": 13477,
"author": "Patrick",
"author_id": 429,
"author_profile": "https://Stackoverflow.com/users/429",
"pm_score": 0,
"selected": false,
"text": "newArray = sorted(oldArray)\nblankArray = [0] * len(oldArray)\nfor i in xrange(len(newArray)):\n dex = oldArray.index(newArray... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/522/"
] |
13,537 | <p>I've heard of the idea of bootstrapping a language, that is, writing a compiler/interpreter for the language in itself. I was wondering how this could be accomplished and looked around a bit, and saw someone say that it could only be done by either</p>
<ul>
<li>writing an initial compiler in a different language.<... | [
{
"answer_id": 29983650,
"author": "Basile Starynkevitch",
"author_id": 841108,
"author_profile": "https://Stackoverflow.com/users/841108",
"pm_score": 1,
"selected": false,
"text": "*/*.{ml,mli} boot/ocamlc *.ml[i] boot/ocamlc wget *.melt melt/generated/*.cc [A-Z]*.c dx.h _[0-9]*"
}
] | 2008/08/17 | [
"https://Stackoverflow.com/questions/13537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1266/"
] |
13,540 | <p>I've written a stored proc that will do an update if a record exists, otherwise it will do an insert. It looks something like this:</p>
<pre><code>update myTable set Col1=@col1, Col2=@col2 where ID=@ID
if @@rowcount = 0
insert into myTable (Col1, Col2) values (@col1, @col2)
</code></pre>
<p>My logic behind writing... | [
{
"answer_id": 25318,
"author": "Dima Malenko",
"author_id": 2586,
"author_profile": "https://Stackoverflow.com/users/2586",
"pm_score": 3,
"selected": false,
"text": "BEGIN TRANSACTION Upsert\nupdate myTable set Col1=@col1, Col2=@col2 where ID=@ID\nif @@rowcount = 0\ninsert into myTable... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
13,569 | <p>In our place we're split between using mysqli and PDO for stuff like prepared statements and transaction support. Some projects use one, some the other. There is little realistic likelihood of us ever moving to another RDBMS.</p>
<p>I prefer PDO for the single reason that it allows named parameters for prepared sta... | [
{
"answer_id": 49787,
"author": "Brian Warshaw",
"author_id": 1344,
"author_profile": "https://Stackoverflow.com/users/1344",
"pm_score": 5,
"selected": false,
"text": "call_user_func_array()"
},
{
"answer_id": 127319,
"author": "Unlabeled Meat",
"author_id": 20291,
"... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/137/"
] |
13,578 | <p>The need arose, in our product, to determine how long the current user has been logged on to Windows (specifically, Vista). It seems there is no straight forward API function for this and I couldn't find anything relevant with WMI (although I'm no expert with WMI, so I might have missed something).</p>
<p>Any ideas... | [
{
"answer_id": 13600,
"author": "Nickolay",
"author_id": 1026,
"author_profile": "https://Stackoverflow.com/users/1026",
"pm_score": 3,
"selected": true,
"text": "strComputer = \".\"\nSet objWMIService = GetObject(\"winmgmts:\" _\n & \"{impersonationLevel=impersonate}!\\\\\" _\n & ... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1596/"
] |
13,599 | <p>Does anyone know how to transform a enum value to a human readable value?</p>
<p>For example:</p>
<blockquote>
<p>ThisIsValueA should be "This is Value A".</p>
</blockquote>
| [
{
"answer_id": 13611,
"author": "Adam Haile",
"author_id": 194,
"author_profile": "https://Stackoverflow.com/users/194",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Reflection;\nnamespace FunWithEnum\n{\n enum Coolness : byte\n {\n [Description(\"N... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1154/"
] |
13,615 | <p>I need to validate an integer to know if is a valid enum value.</p>
<p>What is the best way to do this in C#?</p>
| [
{
"answer_id": 13635,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 3,
"selected": false,
"text": "Enum.IsDefined"
},
{
"answer_id": 13651,
"author": "Mike Polen",
"author_id": 212,
"author_profile": "ht... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1154/"
] |
13,620 | <p>(assume php5) consider</p>
<pre><code><?php
$foo = 'some words';
//case 1
print "these are $foo";
//case 2
print "these are {$foo}";
//case 3
print 'these are ' . $foo;
?>
</code></pre>
<p>Is there much of a difference between 1 and 2?</p>
<p>If not, what about between 1/2 an... | [
{
"answer_id": 13665,
"author": "Adam Wright",
"author_id": 1200,
"author_profile": "https://Stackoverflow.com/users/1200",
"pm_score": 7,
"selected": true,
"text": "function timeFunc($function, $runs)\n{\n $times = array();\n\n for ($i = 0; $i < $runs; $i++)\n {\n $time = microtim... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/314/"
] |
13,678 | <p>I am part of a high school robotics team, and there is some debate about which language to use to program our robot. We are choosing between C (or maybe C++) and LabVIEW. There are pros for each language.</p>
<p>C(++):</p>
<ul>
<li>Widely used</li>
<li>Good preparation for the future (most programming positions ... | [
{
"answer_id": 13746,
"author": "Brendan",
"author_id": 199,
"author_profile": "https://Stackoverflow.com/users/199",
"pm_score": 6,
"selected": true,
"text": "y = x*x + x + 1 while, for, if"
},
{
"answer_id": 352310,
"author": "dbr",
"author_id": 745,
"author_profile... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1615/"
] |
13,698 | <p>I've seen it mentioned in many blogs around the net, but I believe it shoud be discussed here.
What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod_rewrite?
Are there any "short-cuts"? Can we transfer control in any way (so that a mapping may occur between p... | [
{
"answer_id": 13777,
"author": "Theo",
"author_id": 1109,
"author_profile": "https://Stackoverflow.com/users/1109",
"pm_score": 3,
"selected": true,
"text": "mod_rewrite"
}
] | 2008/08/17 | [
"https://Stackoverflow.com/questions/13698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1622/"
] |
13,725 | <p><code>NSInteger</code>/<code>NSUInteger</code> are Cocoa-defined replacements for the regular built-in types.</p>
<p>Is there any benefit to using the NS* types over the built-ins? Which do you prefer and why? Are <code>NSInteger</code> and <code>int</code> the same width on 32-bit / 64-bit platforms?</p>
| [
{
"answer_id": 13730,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 4,
"selected": false,
"text": "#if __LP64__ || NS_BUILD_32_LIKE_64\ntypedef long NSInteger;\ntypedef unsigned long NSUInteger;\n#else\ntypedef int NSIn... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1043/"
] |
13,751 | <p>How can I permanently enable line numbers in IntelliJ IDEA?</p>
| [
{
"answer_id": 27353549,
"author": "MaxM",
"author_id": 1518458,
"author_profile": "https://Stackoverflow.com/users/1518458",
"pm_score": 3,
"selected": false,
"text": "Editor -> General -> Appearance"
},
{
"answer_id": 34649002,
"author": "mpontillo",
"author_id": 77939,... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
13,753 | <p>I'm missing something here:</p>
<pre><code>$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry
$objSearcher.Filter = ("(objectclass=computer)")
$computers = $objSearcher.findall()
</code></pre>
<p>So the question ... | [
{
"answer_id": 13878,
"author": "slipsec",
"author_id": 1635,
"author_profile": "https://Stackoverflow.com/users/1635",
"pm_score": 0,
"selected": false,
"text": "PS C:\\> $computers[0] | %{ \"$_.properties.name\"; \"$($_.properties.name)\" }\nSystem.DirectoryServices.SearchResult.proper... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1635/"
] |
13,763 | <p>Is there a function like <code>document.getElementById("FirstDiv").clear()</code>?</p>
| [
{
"answer_id": 13769,
"author": "eplawless",
"author_id": 1370,
"author_profile": "https://Stackoverflow.com/users/1370",
"pm_score": 6,
"selected": false,
"text": "var mydiv = document.getElementById('FirstDiv');\nwhile(mydiv.firstChild) {\n mydiv.removeChild(mydiv.firstChild);\n}\n"
... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
13,786 | <p>Are we supposed to find workarounds in our web applications so that they will work in every situation? Is it time to do away with IE6 programming?</p>
| [
{
"answer_id": 2863045,
"author": "alemani",
"author_id": 291181,
"author_profile": "https://Stackoverflow.com/users/291181",
"pm_score": 1,
"selected": false,
"text": "http://browsershots.org/\n http://www.cmsmatrix.org/\n http://www.w3schools.com/\n http://meyerweb.com/eric/thoughts/20... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
13,791 | <p>I am trying to implement string unescaping with Python regex and backreferences, and it doesn't seem to want to work very well. I'm sure it's something I'm doing wrong but I can't figure out what...</p>
<pre><code>>>> import re
>>> mystring = r"This is \n a test \r"
>>> p = re.compile( "\... | [
{
"answer_id": 13844,
"author": "Anders Eurenius",
"author_id": 1421,
"author_profile": "https://Stackoverflow.com/users/1421",
"pm_score": 2,
"selected": false,
"text": "\"\\\\n\" == r\"\\n\"\n\n>>> import re\n>>> mystring = r\"This is \\\\n a test \\\\r\"\n>>> p = re.compile( r\"[\\\\]... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1370/"
] |
13,832 | <p>I have taken over the development of a web application that is targeted at the .net 1.0 framework and is written in C# and Visual Basic. </p>
<p>I decided that the first thing we need to do is refine the build process, I wrote build files for the C# projects, but am having tons of problems creating a build file for... | [
{
"answer_id": 32391,
"author": "RobertTheGrey",
"author_id": 1107,
"author_profile": "https://Stackoverflow.com/users/1107",
"pm_score": 1,
"selected": false,
"text": "<target name=\"WinBuild\">\n <exec program=\"msbuild.exe\"\n basedir=\"${DotNetPath}\"\n workingdir=\"${... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
13,851 | <p>I am having trouble with IE7. I have a header, which is an IMG. Under it I have a div that represents a menu, they have to be attached to each other without space in between. Both are 1000px width. In Opera and FireFox the header and the menu are neatly attached to each other. However, in IE7, there is a small space... | [
{
"answer_id": 13855,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "img {\npadding: 0px;\nmargin: 0px;\ndisplay: block;\n}\n"
},
{
"answer_id": 14183,
"author": "Akira",
"author_i... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
13,857 | <p>I've been reading a lot about closures and I think I understand them, but without clouding the picture for myself and others, I am hoping someone can explain closures as succinctly and clearly as possible. I'm looking for a simple explanation that might help me understand where and why I would want to use them.</p>... | [
{
"answer_id": 13875,
"author": "Anders Eurenius",
"author_id": 1421,
"author_profile": "https://Stackoverflow.com/users/1421",
"pm_score": 6,
"selected": false,
"text": ">>> def makeConstantAdder(x):\n... constant = x\n... def adder(y):\n... return y + constant\n... ... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1649/"
] |
13,863 | <p>I have been trying to find an easy way to parse a search query and convert it to an SQL query for my DB. </p>
<p>I have found two solutions:</p>
<ol>
<li><em><a href="https://lucene.apache.org/" rel="nofollow noreferrer">Lucene</a></em>: Powerful Java-based search engine, contains a query parser but it isn't very ... | [
{
"answer_id": 154639,
"author": "Mr. Shiny and New 安宇",
"author_id": 7867,
"author_profile": "https://Stackoverflow.com/users/7867",
"pm_score": 1,
"selected": false,
"text": "new AndExp(new FieldContainsExp(\"NAME\", \"Harry\"), new FieldContainsExp(\"NAME\", \"Potter\")\n new AndExp(n... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1651/"
] |
13,927 | <p>When I've registered an object <strong>foo</strong> to receive KVO notifications from another object <strong>bar</strong> (using addObserver:...), if I then deallocate <strong>foo</strong> do I need to send a <code>removeObserver:forKeyPath:</code> message to <strong>bar</strong> in -dealloc?</p>
| [
{
"answer_id": 14054,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 6,
"selected": true,
"text": "-removeObserver:forKeyPath: -[NSObject dealloc] -dealloc -retain -autorelease -finalize -dealloc -removeObserver:forKeyPath... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
13,938 | <p><img src="https://i.stack.imgur.com/DibJS.jpg" alt="Visual Studio folder structure"></p>
<p>I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for unit test... | [
{
"answer_id": 13969,
"author": "andynil",
"author_id": 446,
"author_profile": "https://Stackoverflow.com/users/446",
"pm_score": 3,
"selected": true,
"text": "Sub TemporaryMacro()\n DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate\n DTE.ActiveWindow.Object.GetItem... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/446/"
] |
13,941 | <p>I'd like to have a python program alert me when it has completed its task by making a beep noise. Currently, I use <code>import os</code> and then use a command line speech program to say "Process complete". I much rather it be a simple "bell."</p>
<p>I know that there's a function that can be... | [
{
"answer_id": 13949,
"author": "gbc",
"author_id": 1667,
"author_profile": "https://Stackoverflow.com/users/1667",
"pm_score": 7,
"selected": true,
"text": "import sys\nsys.stdout.write('\\a')\nsys.stdout.flush()\n print('\\a')\n"
},
{
"answer_id": 13959,
"author": "markpasc... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1615/"
] |
13,963 | <p>I want to parse a config file sorta thing, like so:</p>
<pre><code>[KEY:Value]
[SUBKEY:SubValue]
</code></pre>
<p>Now I started with a <code>StreamReader</code>, converting lines into character arrays, when I figured there's gotta be a better way. So I ask you, humble reader, to help me.</p>
<p>One restr... | [
{
"answer_id": 13975,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "public string check()\n {\n ArrayList tags = getTags();\n\n\n int stackSize = tags.Count;\n\n Stack sta... | 2008/08/17 | [
"https://Stackoverflow.com/questions/13963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61/"
] |
13,981 | <p>I understand that the <code>Ruby 1.8 AST</code> is traversed at runtime using a big switch statement, and many things like calling a method in a class or parent module involve the interpreter looking up and down the tree as it goes. Is there a straightforward way of accessing this <code>AST</code> in a <code>Ruby C<... | [
{
"answer_id": 14498,
"author": "maetl",
"author_id": 14446,
"author_profile": "https://Stackoverflow.com/users/14446",
"pm_score": 0,
"selected": false,
"text": "ParseTree"
}
] | 2008/08/17 | [
"https://Stackoverflow.com/questions/13981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14446/"
] |
14,008 | <p>I've been looking for some good genetic programming examples for C#. Anyone knows of good online/book resources? Wonder if there is a C# library out there for Evolutionary/Genetic programming?</p>
| [
{
"answer_id": 24674105,
"author": "giacomelli",
"author_id": 956886,
"author_profile": "https://Stackoverflow.com/users/956886",
"pm_score": 2,
"selected": false,
"text": "var selection = new EliteSelection();\nvar crossover = new OrderedCrossover();\nvar mutation = new ReverseSequenceM... | 2008/08/17 | [
"https://Stackoverflow.com/questions/14008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/877/"
] |
14,029 | <p>I have a ListView control, and I'm trying to figure out the easiest/best way to disallow changing the selected row(s), without <em>hiding</em> the selected row(s).</p>
<p>I know there's a <code>HideSelection</code> property, but that only works when the <code>ListView</code> is still enabled (but not focused). I ne... | [
{
"answer_id": 1090706,
"author": "Mugunth",
"author_id": 90165,
"author_profile": "https://Stackoverflow.com/users/90165",
"pm_score": 0,
"selected": false,
"text": " private void listViewABC_SelectedIndexChanged(object sender, EventArgs e)\n {\n listViewABC.SelectedItems.C... | 2008/08/17 | [
"https://Stackoverflow.com/questions/14029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/369/"
] |
14,031 | <p>In the past I've never been a fan of using triggers on database tables. To me they always represented some "magic" that was going to happen on the database side, far far away from the control of my application code. I also wanted to limit the amount of work the DB had to do, as it's generally a shared resource and I... | [
{
"answer_id": 15093,
"author": "jinsungy",
"author_id": 1316,
"author_profile": "https://Stackoverflow.com/users/1316",
"pm_score": 0,
"selected": false,
"text": "UPDATE tblUsers\nSET Age = 11\nWHERE State = 'NY'\n"
}
] | 2008/08/18 | [
"https://Stackoverflow.com/questions/14031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1680/"
] |
14,061 | <p>I've created an "attached behaviour" in my WPF application which lets me handle the Enter keypress and move to the next control. I call it EnterKeyTraversal.IsEnabled, and you can see the code on my blog <a href="http://www.madprops.org/blog/enter-to-tab-as-an-attached-property/" rel="noreferrer">here</a>.</p>
<p>M... | [
{
"answer_id": 6169737,
"author": "John Fenton",
"author_id": 613519,
"author_profile": "https://Stackoverflow.com/users/613519",
"pm_score": 3,
"selected": false,
"text": "ue.PreviewKeyDown += ue_PreviewKeyDown;\n ue_PreviewKeyDown ue.PreviewKeyDown ue_PreviewKeyDown STATIC GCed ue GCed... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/615/"
] |
14,118 | <p>I'm writing my first Perl app -- an AOL Instant Messenger bot that talks to an Arduino microcontroller, which in turn controls a servo that will push the power button on our sysadmin's server, which freezes randomly every 28 hours or so. </p>
<p>I've gotten all the hard stuff done, I'm just trying to add one last b... | [
{
"answer_id": 14124,
"author": "jj33",
"author_id": 430,
"author_profile": "https://Stackoverflow.com/users/430",
"pm_score": 5,
"selected": true,
"text": "select() select() IO::Select #!/usr/bin/perl\n\nuse IO::Select;\n\n$s = IO::Select->new();\n$s->add(\\*STDIN);\n\nwhile (++$i) {\n ... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
14,138 | <p>I installed the wxWidgets source code, compiled it and am linking the libraries thus obtained with my application code. Now I need to use OpenGL in my wxWidgets application. How do I enable this?</p>
| [
{
"answer_id": 35975,
"author": "Jason Weathered",
"author_id": 3736,
"author_profile": "https://Stackoverflow.com/users/3736",
"pm_score": 2,
"selected": false,
"text": "configure --with-opengl"
},
{
"answer_id": 72787,
"author": "Baxissimo",
"author_id": 9631,
"auth... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,165 | <p>I'm seeing strange errors when my C++ code has min() or max() calls. I'm using Visual C++ compilers.</p>
| [
{
"answer_id": 14169,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 5,
"selected": true,
"text": "#define NOMINMAX\n#include <windows.h>\n"
},
{
"answer_id": 14177,
"author": "Pat Notz",
"author_id": ... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,209 | <p><code>System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.</code></p>
<p>Anybody ever get this error and/or have any idea on it's cause and/or solution?</p>
<p><a href="http://forums.micro... | [
{
"answer_id": 1086442,
"author": "Roboblob",
"author_id": 125718,
"author_profile": "https://Stackoverflow.com/users/125718",
"pm_score": 4,
"selected": false,
"text": "exec sp_configure 'user instances enabled', 1.\nGO\nReconfigure\n C:\\Documents and Settings\\{YOUR_USERNAME}\\Local S... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1659/"
] |
14,247 | <p>I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and <em>please</em>, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to say, have the class functionality in a separate ActionScript c... | [
{
"answer_id": 14261,
"author": "Theo",
"author_id": 1109,
"author_profile": "https://Stackoverflow.com/users/1109",
"pm_score": 6,
"selected": true,
"text": "BindingUtils bindSetter bindProperty invalidateProperties ChangeWatcher BindingUtils.bindSetter(nameChanged, selectedEmployee, \"... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/266/"
] |
14,264 | <p>What are the basic steps to compile an OpenGL application using <em>GLUT (OpenGL Utility Toolkit)</em> under Visual C++ Express Edition?</p>
| [
{
"answer_id": 112729,
"author": "Baxissimo",
"author_id": 9631,
"author_profile": "https://Stackoverflow.com/users/9631",
"pm_score": 3,
"selected": false,
"text": "exit() exit() glut.h stdlib.h #define GLUT_DISABLE_ATEXIT_HACK #include <gl/glut.h> glut.h #ifdef blocks --- c:\\naterobbi... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,278 | <p>I'd like to provide some way of creating dynamically loadable plugins in my software.
Typical way to do this is using the <a href="http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx" rel="noreferrer">LoadLibrary</a> WinAPI function to load a dll and calling <a href="http://msdn.microsoft.com/en-us/library/... | [
{
"answer_id": 14282,
"author": "Zooba",
"author_id": 891,
"author_profile": "https://Stackoverflow.com/users/891",
"pm_score": 5,
"selected": true,
"text": "Base using System.IO;\nusing System.Reflection;\n\nList<Base> objects = new List<Base>();\nDirectoryInfo dir = new DirectoryInfo(A... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1534/"
] |
14,281 | <p>I have over a million text files compressed into 40 zip files. I also have a list of about 500 model names of phones. I want to find out the number of times a particular model was mentioned in the text files. </p>
<p>Is there any python module which can do a regex match on the files without unzipping it. Is there a... | [
{
"answer_id": 14320,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 4,
"selected": true,
"text": "#!/usr/bin/python\n\nimport zipfile\nf = zipfile.ZipFile('myfile.zip')\n\nfor subfile in f.namelist():\n print subfile\... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448/"
] |
14,287 | <p>In my C/C++ program, I'm using <a href="http://opencvlibrary.sourceforge.net/" rel="noreferrer">OpenCV</a> to capture images from my webcam. The camera (<a href="http://en.wikipedia.org/wiki/Quickcam" rel="noreferrer">Logitech QuickCam IM</a>) can capture at resolutions <strong>320x240</strong>, <strong>640x480</str... | [
{
"answer_id": 14290,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 5,
"selected": true,
"text": "#define CV_CAP_PROP_DIALOG_DISPLAY 8\n#define CV_CAP_PROP_DIALOG_FORMAT 9\n#define CV_CAP_PROP_DIALOG_SOURCE 10\n#defi... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,300 | <p>For example; with the old command prompt it would be:</p>
<pre><code>cmd.exe /k mybatchfile.bat
</code></pre>
| [
{
"answer_id": 14313,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 6,
"selected": true,
"text": "powershell -?\n"
},
{
"answer_id": 5346936,
"author": "john",
"author_id": 665321,
"author_profile": "... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/887/"
] |
14,308 | <p>I'm currently working at a small web development company, we mostly do campaign sites and other promotional stuff. For our first year we've been using a "server" for sharing project files, a plain windows machine with a network share. But this isn't exactly future proof. </p>
<p>SVN is great for code (it's what we ... | [
{
"answer_id": 14429,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 1,
"selected": false,
"text": "vcs checkout blah -r 234"
}
] | 2008/08/18 | [
"https://Stackoverflow.com/questions/14308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/914/"
] |
14,330 | <p>How do I convert the RGB values of a pixel to a single monochrome value?</p>
| [
{
"answer_id": 14331,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 6,
"selected": true,
"text": "mono = (0.2125 * color.r) + (0.7154 * color.g) + (0.0721 * color.b);\n"
},
{
"answer_id": 14339,
"author":... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,344 | <p>Is it possible to compile and run OpenGL programs from under Cygwin? If yes, how?</p>
| [
{
"answer_id": 68074857,
"author": "Adriana",
"author_id": 6908795,
"author_profile": "https://Stackoverflow.com/users/6908795",
"pm_score": 1,
"selected": false,
"text": "C:\\Program Files(x86)\\Microsoft Visual Studio\\2019\\Community\\SDK\\ScopeCPPSDK\\vc15\\lib\\SDK\\lib\\opengl32.li... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,350 | <p>I have a Flex swf hosted at <a href="http://www.a.com/a.swf" rel="nofollow noreferrer">http://www.a.com/a.swf</a>.
I have a flash code on another doamin that tries loading the SWF:</p>
<pre><code>_loader = new Loader();
var req:URLRequest = new URLRequest("http://services.nuconomy.com/n.swf");
_loader.contentLoader... | [
{
"answer_id": 14409,
"author": "grapefrukt",
"author_id": 914,
"author_profile": "https://Stackoverflow.com/users/914",
"pm_score": 2,
"selected": false,
"text": "<?xml version=\"1.0\"?>\n<!-- http://www.foo.com/crossdomain.xml -->\n<cross-domain-policy>\n <allow-access-from domain=\"w... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1228206/"
] |
14,359 | <p>What recommendations can you give for a system which must do the following:</p>
<p>Load Plugins (and eventually execute them) but have 2 methods of loading these plugins:</p>
<ul>
<li>Load only authorized plugins
(developed by the owner of the
software) </li>
<li>Load all plugins</li>
</ul>
<p>And we need to be ... | [
{
"answer_id": 14409,
"author": "grapefrukt",
"author_id": 914,
"author_profile": "https://Stackoverflow.com/users/914",
"pm_score": 2,
"selected": false,
"text": "<?xml version=\"1.0\"?>\n<!-- http://www.foo.com/crossdomain.xml -->\n<cross-domain-policy>\n <allow-access-from domain=\"w... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1111/"
] |
14,373 | <p>I am converting from existing CVS repository to SVN repository. CVS repository has few brances and I'd like to rename branches while converting.</p>
<p>Wanted conversion is like this:</p>
<pre><code>CVS branch SVN branch
HEAD -> branches/branchX
branchA -> trunk
branchB -> ... | [
{
"answer_id": 211627,
"author": "mhagger",
"author_id": 24478,
"author_profile": "https://Stackoverflow.com/users/24478",
"pm_score": 1,
"selected": false,
"text": "--symbol-hints=symbol-hints.txt SymbolHintsFileRule('symbol-hints.txt') symbol-hints.txt . .trunk. trunk branches/branchX ... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1431/"
] |
14,375 | <p>I'm using repository pattern with LINQ, have IRepository.DeleteOnSubmit(T Entity). It works fine, but when my entity class has interface, like this: </p>
<pre><code>public interface IEntity { int ID {get;set;} }
public partial class MyEntity: IEntity {
public int ID {
get { return this.IDfield; }
... | [
{
"answer_id": 14381,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 0,
"selected": false,
"text": "using System.Data.Linq.Mapping;\n\npublic partial class MyEntity: IEntity \n { [Column(Storage=\"IDfield\", DbType=\"i... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1407/"
] |
14,378 | <p>I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom in and out of a scene? How do I do that?</p>
| [
{
"answer_id": 14379,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 6,
"selected": true,
"text": "void mouseWheel(int, int, int, int);\n glutMouseWheelFunc(mouseWheel);\n void mouseWheel(int button, int dir, int x, i... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,386 | <p>With the <em>Visual Studio 2005 C++ compiler</em>, I get the following warning when my code uses the <code>fopen()</code> and such calls:</p>
<pre class="lang-none prettyprint-override"><code>1>foo.cpp(5) : warning C4996: 'fopen' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\i... | [
{
"answer_id": 14387,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 8,
"selected": true,
"text": "#define _CRT_SECURE_NO_DEPRECATE\n#include <stdio.h>\n"
},
{
"answer_id": 14506,
"author": "John Sibly",
... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,389 | <p>I have a script that parses the filenames of TV episodes (show.name.s01e02.avi for example), grabs the episode name (from the www.thetvdb.com API) and automatically renames them into something nicer (Show Name - [01x02].avi)</p>
<p>The script works fine, that is until you try and use it on files that have Unicode s... | [
{
"answer_id": 14391,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 5,
"selected": true,
"text": "[\\u0000-\\uFFFF] re.UNICODE UNICODE \\w [0-9_]"
}
] | 2008/08/18 | [
"https://Stackoverflow.com/questions/14389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
14,395 | <p>For my own project at home, I'm using the rather excellent managed subversion hosting from <a href="http://cvsdude.com/" rel="nofollow noreferrer">CVSDude</a>. As it's only me working on the code right now, I'm not using CruiseControl.net, however I expect this will change in the next couple of months and will want... | [
{
"answer_id": 14391,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 5,
"selected": true,
"text": "[\\u0000-\\uFFFF] re.UNICODE UNICODE \\w [0-9_]"
}
] | 2008/08/18 | [
"https://Stackoverflow.com/questions/14395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1122/"
] |
14,397 | <p>Currently we have a project with a standard subversion repository layout of:</p>
<p>./trunk<br>
./branches<br>
./tags</p>
<p>However, as we're moving down the road of OSGi and a modular project, we've ended up with:</p>
<p>./trunk/bundle/main<br>
./trunk/bundle/modulea<br>
./trunk/bundle/moduleb
./tags/bundle/mai... | [
{
"answer_id": 14441,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 4,
"selected": true,
"text": "/bundle/<project>/(trunk|tags|branches)"
}
] | 2008/08/18 | [
"https://Stackoverflow.com/questions/14397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1720/"
] |
14,402 | <p>In my simple OpenGL program I get the following error about exit redefinition:</p>
<pre><code>1>c:\program files\microsoft visual studio 8\vc\include\stdlib.h(406) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs
1> c:\program files\microsoft visual studio 8\vc\platformsdk\include\gl\... | [
{
"answer_id": 14403,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 7,
"selected": true,
"text": "#include <stdlib.h>\n#include <GL/glut.h>\n"
}
] | 2008/08/18 | [
"https://Stackoverflow.com/questions/14402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,413 | <p>I want to use the functions exposed under the OpenGL extensions. I'm on Windows, how do I do this?</p>
| [
{
"answer_id": 14414,
"author": "Ashwin Nanjappa",
"author_id": 1630,
"author_profile": "https://Stackoverflow.com/users/1630",
"pm_score": 5,
"selected": true,
"text": "glGenFramebuffersEXT()\nglBindFramebufferEXT()\nglFramebufferTexture2DEXT()\nglCheckFramebufferStatusEXT()\nglDeleteFr... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
14,422 | <p>For example, <a href="http://developer.apple.com/cocoa/pyobjc.html" rel="nofollow noreferrer">http://developer.apple.com/cocoa/pyobjc.html</a> is still for OS X 10.4 Tiger, not 10.5 Leopard.. And that's the official Apple documentation for it..</p>
<p>The official PyObjC page is equally bad, <a href="http://pyobjc.... | [
{
"answer_id": 14479,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 3,
"selected": false,
"text": "NSThread.detachNewThreadSelector_toTarget_withObject_(\"queryController\", self, None)\n NSThread + detachNewThreadSelec... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
14,451 | <p>What is the best way to make a delphi application (delphi 2007 for win32 here) go completely full screen, removing the application border and covering windows task bar ?</p>
<p>I am looking for something similar to what IE does when you hit F11.</p>
<p>I wish this to be a run time option for the user not a design ... | [
{
"answer_id": 14458,
"author": "JosephStyons",
"author_id": 672,
"author_profile": "https://Stackoverflow.com/users/672",
"pm_score": 2,
"selected": false,
"text": "procedure TForm1.FormCreate(Sender: TObject) ;\nbegin\n //maximize the window\n WindowState := wsMaximized;\n //hide... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1724/"
] |
14,453 | <p>I'm needing to access Excel workbooks from .Net. I know all about the different ways of doing it (I've written them up in a <a href="http://blog.functionalfun.net/2008/06/reading-and-writing-excel-files-with.html" rel="noreferrer" title="Reading and Writing Excel files in .Net">blog post</a>), and I know that using ... | [
{
"answer_id": 47135283,
"author": "CAD bloke",
"author_id": 492,
"author_profile": "https://Stackoverflow.com/users/492",
"pm_score": 0,
"selected": false,
"text": "headerStyle.BeginUpdate();\nworkbook.SetPaletteColor(8, System.Drawing.Color.FromArgb(255, 174, 33));\nheaderStyle.Color =... | 2008/08/18 | [
"https://Stackoverflow.com/questions/14453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1727/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.