qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
24,528 | <p>I'm curious to hear the experiences of those who are currently running their SVN server on Windows. </p>
<p>Jeff Atwood has a post on <a href="https://blog.codinghorror.com/setting-up-subversion-on-windows/" rel="nofollow noreferrer">how to setup SVN as a Windows service</a>. It's a great first step, but it doesn't... | [
{
"answer_id": 24564,
"author": "Portman",
"author_id": 1690,
"author_profile": "https://Stackoverflow.com/users/1690",
"pm_score": 2,
"selected": false,
"text": "Repo 1: 652 files, 273 directories, 60.1MB\n 23 seconds for VisualSVN over http:// \n 16 seconds for SVN over svn://\n\nRep... | 2008/08/23 | [
"https://Stackoverflow.com/questions/24528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1690/"
] |
24,542 | <p>Is there any reason not to use the bitwise operators &, |, and ^ for "bool" values in C++? </p>
<p>I sometimes run into situations where I want exactly one of two conditions to be true (XOR), so I just throw the ^ operator into a conditional expression. I also sometimes want all parts of a condition to be evalu... | [
{
"answer_id": 24560,
"author": "Patrick",
"author_id": 429,
"author_profile": "https://Stackoverflow.com/users/429",
"pm_score": 7,
"selected": true,
"text": "|| && true false | & ^ BOOL two = 2;\nBOOL one = 1;\nBOOL and = two & one; //and = 0\nBOOL cand = two && one; //cand = 1\n boo... | 2008/08/23 | [
"https://Stackoverflow.com/questions/24542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1891/"
] |
24,546 | <p>I'm trying to fetch Wikipedia pages using <a href="http://search.cpan.org/dist/libwww-perl" rel="noreferrer">LWP::Simple</a>, but they're not coming back. This code:</p>
<pre><code>#!/usr/bin/perl
use strict;
use LWP::Simple;
print get("http://en.wikipedia.org/wiki/Stack_overflow");
</code></pre>
<p>doesn't print... | [
{
"answer_id": 24574,
"author": "Jesse Beder",
"author_id": 112,
"author_profile": "https://Stackoverflow.com/users/112",
"pm_score": 5,
"selected": true,
"text": "#!/usr/bin/perl\nuse strict;\nuse LWP::UserAgent;\n\nmy $url = \"http://en.wikipedia.org/wiki/Stack_overflow\";\n\nmy $ua = ... | 2008/08/23 | [
"https://Stackoverflow.com/questions/24546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/112/"
] |
24,551 | <p>I've been programming in C# and Java recently and I am curious where the best place is to initialize my class fields.</p>
<p>Should I do it at declaration?:</p>
<pre><code>public class Dice
{
private int topFace = 1;
private Random myRand = new Random();
public void Roll()
{
// ......
}... | [
{
"answer_id": 24558,
"author": "kokos",
"author_id": 1065,
"author_profile": "https://Stackoverflow.com/users/1065",
"pm_score": 9,
"selected": true,
"text": "null false 0 0.0"
},
{
"answer_id": 32011236,
"author": "Miroslav Holec",
"author_id": 794117,
"author_profi... | 2008/08/23 | [
"https://Stackoverflow.com/questions/24551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635/"
] |
24,556 | <p>In LINQ to SQL, is it possible to check to see if an entity is already part of the data context before trying to attach it?</p>
<p>A little context if it helps...</p>
<p>I have this code in my <code>global.asax</code> as a helper method. Normally, between requests, this isn't a problem. But right after signing i... | [
{
"answer_id": 24558,
"author": "kokos",
"author_id": 1065,
"author_profile": "https://Stackoverflow.com/users/1065",
"pm_score": 9,
"selected": true,
"text": "null false 0 0.0"
},
{
"answer_id": 32011236,
"author": "Miroslav Holec",
"author_id": 794117,
"author_profi... | 2008/08/23 | [
"https://Stackoverflow.com/questions/24556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2595/"
] |
24,579 | <p>Is there a good ruby gem for a WYSIWYG editor that will easily work with a rails app?</p>
| [
{
"answer_id": 348596,
"author": "Tim Knight",
"author_id": 43043,
"author_profile": "https://Stackoverflow.com/users/43043",
"pm_score": 3,
"selected": false,
"text": "before_save details details_html before_save :convert_details\n\ndef convert_details\n return if self.details.nil?\n ... | 2008/08/23 | [
"https://Stackoverflow.com/questions/24579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1632/"
] |
24,580 | <p>How do you turn a Visual Studio build that you'd perform in the IDE into a script that you can run from the command line?</p>
| [
{
"answer_id": 24583,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 2,
"selected": false,
"text": "msbuild"
},
{
"answer_id": 24584,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https:/... | 2008/08/23 | [
"https://Stackoverflow.com/questions/24580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2541/"
] |
24,620 | <p>What can be reasons to prevent a class from being inherited? (e.g. using sealed on a c# class)
Right now I can't think of any.</p>
| [
{
"answer_id": 24665,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 0,
"selected": false,
"text": "sealed"
}
] | 2008/08/23 | [
"https://Stackoverflow.com/questions/24620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2374/"
] |
24,622 | <p>I can set the PHP include path in the <code>php.ini</code>:</p>
<pre><code>include_path = /path/to/site/includes/
</code></pre>
<p>But then other websites are affected so that is no good.</p>
<p>I can set the PHP include in the start of every file:</p>
<pre><code>$path = '/path/to/site/includes/';
set_include_pa... | [
{
"answer_id": 24631,
"author": "Erik van Brakel",
"author_id": 909,
"author_profile": "https://Stackoverflow.com/users/909",
"pm_score": 5,
"selected": true,
"text": "ini PHP_INI_ALL PHP_INI_PERDIR PHP_INI_ALL"
},
{
"answer_id": 24695,
"author": "Gary Richardson",
"autho... | 2008/08/23 | [
"https://Stackoverflow.com/questions/24622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2118/"
] |
24,626 | <p>Can you tell me what is the difference between <strong>abstraction</strong> and <strong>information hiding</strong> in software development?</p>
<p>I am confused. Abstraction hides detail implementation and
information hiding abstracts whole details of something.</p>
<p><strong>Update:</strong> I found a good answ... | [
{
"answer_id": 24728,
"author": "Zooba",
"author_id": 891,
"author_profile": "https://Stackoverflow.com/users/891",
"pm_score": 1,
"selected": false,
"text": "private protected"
},
{
"answer_id": 24748,
"author": "rp.",
"author_id": 2536,
"author_profile": "https://St... | 2008/08/23 | [
"https://Stackoverflow.com/questions/24626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1556/"
] |
24,644 | <p>Is there any way, in any language, to hook my program when a user renames a file?</p>
<p>For example:
A user renames a file and presses enter (or clicks away) to confirm the rename action. BEFORE the file is actually renamed, my program "listens" to this event and pops up a message saying "Are you sure you want to ... | [
{
"answer_id": 24781,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https://Stackoverflow.com/users/2199",
"pm_score": 0,
"selected": false,
"text": "IFileOperationProgressSink.PreRenameItem IFileOperation ConfirmRename SHFileOperation IFileOperation"
}
] | 2008/08/23 | [
"https://Stackoverflow.com/questions/24644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2644/"
] |
24,675 | <p>Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques.</p>
<hr>
<p>I'm developing a tool in <strong>PHP</strong> that could attain quite a lot of ... | [
{
"answer_id": 31191,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "ob_start() ob_start ob_start() ob_end() ob_start/ob_end"
}
] | 2008/08/23 | [
"https://Stackoverflow.com/questions/24675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2025/"
] |
24,680 | <p>My team is moving from Visual SourceSafe to Subversion soon, while developing/supporting a legacy project in Visual Basic 6.0, so I have a couple of questions:</p>
<ul>
<li>What's the best tool for Subversion IDE integration in Visual Studio 6? (or is it not worth the trouble...)</li>
<li>Are there any best practic... | [
{
"answer_id": 1530193,
"author": "awe",
"author_id": 109392,
"author_profile": "https://Stackoverflow.com/users/109392",
"pm_score": 3,
"selected": false,
"text": "*.vbw MSSCCPRJ.SCC *.log MyForm.frm MyForm.log"
}
] | 2008/08/23 | [
"https://Stackoverflow.com/questions/24680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/217/"
] |
24,715 | <p>I'm implementing a tagging system for a website. There are multiple tags per object and multiple objects per tag. This is accomplished by maintaining a table with two values per record, one for the ids of the object and the tag.</p>
<p>I'm looking to write a query to find the objects that match a given set of tags.... | [
{
"answer_id": 24720,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": -1,
"selected": false,
"text": " apple -> fruit\n apple -> red\n apple -> food\n banana -> fruit\n banana -> yellow\n banana -> food\n SELECT object WHER... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/658/"
] |
24,723 | <p>Jeff actually posted about this in <a href="http://refactormycode.com/codes/333-sanitize-html" rel="noreferrer">Sanitize HTML</a>. But his example is in C# and I'm actually more interested in a Java version. Does anyone have a better version for Java? Is his example good enough to just convert directly from C# to Ja... | [
{
"answer_id": 535022,
"author": "Chase Seibert",
"author_id": 7679,
"author_profile": "https://Stackoverflow.com/users/7679",
"pm_score": 7,
"selected": true,
"text": "<HTML><BODY>\n<?xml:namespace prefix=\"t\" ns=\"urn:schemas-microsoft-com:time\">\n<?import namespace=\"t\" implementat... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1406/"
] |
24,730 | <p>I'm doing a little bit of work on a horrid piece of software built by Bangalores best.</p>
<p>It's written in mostly classic ASP/VbScript, but "ported" to ASP.NET, though most of the code is classic ASP style in the ASPX pages :(</p>
<p>I'm getting this message when it tries to connect to my local database:</p>
<... | [
{
"answer_id": 24744,
"author": "Dale Ragan",
"author_id": 1117,
"author_profile": "https://Stackoverflow.com/users/1117",
"pm_score": 3,
"selected": true,
"text": "DRIVER={SQL Server};\n Provider=SQLOLEDB;\n"
},
{
"answer_id": 887833,
"author": "Amadiere",
"author_id": 7... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
24,734 | <p>I'm trying to add support for stackoverflow feeds in my rss reader but <strong>SelectNodes</strong> and <strong>SelectSingleNode</strong> have no effect. This is probably something to do with ATOM and xml namespaces that I just don't understand yet.</p>
<p>I have gotten it to work by removing all attributes from th... | [
{
"answer_id": 24740,
"author": "Julio César",
"author_id": 2148,
"author_profile": "https://Stackoverflow.com/users/2148",
"pm_score": 3,
"selected": false,
"text": "XmlDocument document = new XmlDocument();\nXmlNamespaceManager nsmgr = new XmlNamespaceManager(document.NameTable);\nnsmg... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1147/"
] |
24,797 | <p>What is the best way to convert a UTC datetime into local datetime. It isn't as simple as a getutcdate() and getdate() difference because the difference changes depending on what the date is.</p>
<p>CLR integration isn't an option for me either.</p>
<p>The solution that I had come up with for this problem a few mo... | [
{
"answer_id": 25073,
"author": "Eric Z Beard",
"author_id": 1219,
"author_profile": "https://Stackoverflow.com/users/1219",
"pm_score": 6,
"selected": true,
"text": "TimeZones e.g.\n--------- ----\nTimeZoneId 19\nName Eastern (GMT -5)\nOffset -5\n DaylightSavi... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1950/"
] |
24,816 | <p>Does anyone know of an easy way to escape HTML from strings in <a href="http://jquery.com/" rel="noreferrer">jQuery</a>? I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (preventing JavaScript/HTML injection attacks). I'm sure it's possible to extend jQuery to ... | [
{
"answer_id": 24870,
"author": "tghw",
"author_id": 2363,
"author_profile": "https://Stackoverflow.com/users/2363",
"pm_score": 6,
"selected": false,
"text": "html.replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\");\n \" " var escaped = html;\nvar findReplace ... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2657/"
] |
24,821 | <p>This problem started <a href="http://forums.asp.net/t/1304033.aspx" rel="nofollow noreferrer">on a different board</a>, but <a href="https://stackoverflow.com/users/60/dave-ward">Dave Ward</a>, who was very prompt and helpful there is also here, so I'd like to pick up here for hopefully the last remaining piece of t... | [
{
"answer_id": 26483,
"author": "Dave Ward",
"author_id": 60,
"author_profile": "https://Stackoverflow.com/users/60",
"pm_score": 3,
"selected": false,
"text": "protected void Page_Load(object sender, EventArgs e)\n{\n for (int i = 0; i < 10; i++) \n {\n Response.Write(i + \"<br />\... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1953/"
] |
24,829 | <pre><code>public class MyClass
{
public int Age;
public int ID;
}
public void MyMethod()
{
MyClass m = new MyClass();
int newID;
}
</code></pre>
<p>To my understanding, the following is true:</p>
<ol>
<li>The reference m lives on the stack and goes out of scope when MyMethod() exits.</li>
<li>The v... | [
{
"answer_id": 24876,
"author": "icelava",
"author_id": 2663,
"author_profile": "https://Stackoverflow.com/users/2663",
"pm_score": 4,
"selected": true,
"text": "public class EmbeddedValues\n{\n public int NumberField;\n}\n public class EmbeddedTest\n{\n public void TestEmbeddedValues(... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1880/"
] |
24,849 | <p>Is there any JavaScript method similar to the jQuery <code>delay()</code> or <code>wait()</code> (to delay the execution of a script for a specific amount of time)?</p>
| [
{
"answer_id": 24852,
"author": "Abhinav",
"author_id": 2617,
"author_profile": "https://Stackoverflow.com/users/2617",
"pm_score": 9,
"selected": true,
"text": "setTimeout(function, milliseconds);\n setTimeout()"
},
{
"answer_id": 24934,
"author": "Polsonby",
"author_id"... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
24,853 | <p>In C, what is the difference between using <code>++i</code> and <code>i++</code>, and which should be used in the incrementation block of a <code>for</code> loop?</p>
| [
{
"answer_id": 24856,
"author": "Ryan Fox",
"author_id": 55,
"author_profile": "https://Stackoverflow.com/users/55",
"pm_score": 6,
"selected": false,
"text": "++i i++ ++i i++"
},
{
"answer_id": 24858,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "ht... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128/"
] |
24,866 | <p>I am using Java back end for creating an XML string which is passed to the browser. Currently I am using simple string manipulation to produce this XML. Is it essential that I use some XML library in Java to produce the XML string?
I find the libraries very difficult to use compared to what I need.</p>
| [
{
"answer_id": 24897,
"author": "Telcontar",
"author_id": 518,
"author_profile": "https://Stackoverflow.com/users/518",
"pm_score": 0,
"selected": false,
"text": "public String DOM2String(Document doc)\n{\n TransformerFactory transformerFactory =TransformerFactory.newInstance();\n ... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
24,881 | <p>I'm trying to solve <a href="http://uva.onlinejudge.org/external/1/100.pdf" rel="noreferrer">the 3n+1 problem</a> and I have a <code>for</code> loop that looks like this: </p>
<pre><code>for(int i = low; i <= high; ++i)
{
res = runalg(i);
if (res > highestres)
... | [
{
"answer_id": 24882,
"author": "OysterD",
"author_id": 2638,
"author_profile": "https://Stackoverflow.com/users/2638",
"pm_score": 8,
"selected": true,
"text": "i #include <stdio.h>\n\nint main() {\n\n int i;\n\n /* for loop execution */\n for (i = 10; i < 20; i++) {\n print... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128/"
] |
24,886 | <p>Is there a performance difference between <code>i++</code> and <code>++i</code> if the resulting value is not used?</p>
| [
{
"answer_id": 24887,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 10,
"selected": true,
"text": "i++ ++i i ++i i++ $ cat i++.c\nextern void g(int i);\nvoid f()\n{\n int i;\n\n for (i = 0; i < 100; i++)\n g... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
24,891 | <p>I've always heard that in C you have to really watch how you manage memory. And I'm still beginning to learn C, but thus far, I have not had to do any memory managing related activities at all.. I always imagined having to release variables and do all sorts of ugly things. But this doesn't seem to be the case.</p>
... | [
{
"answer_id": 24893,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 3,
"selected": false,
"text": " char *string = malloc(stringlength); // stringlength is the number of bytes to allocate\n\n // Do something with the strin... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128/"
] |
24,901 | <p>We have the question <a href="/q/24886">is there a performance difference between <code>i++</code> and <code>++i</code> <strong>in C</strong>?</a></p>
<p>What's the answer for C++?</p>
| [
{
"answer_id": 24904,
"author": "Mark Harrison",
"author_id": 116,
"author_profile": "https://Stackoverflow.com/users/116",
"pm_score": 10,
"selected": true,
"text": "++i i++ i i i++ ++i operator++ Foo& Foo::operator++() // called for ++i\n{\n this->data += 1;\n return *this;\n}\... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
24,929 | <p>What is the difference between the <code>EXISTS</code> and <code>IN</code> clause in SQL?</p>
<p>When should we use <code>EXISTS</code>, and when should we use <code>IN</code>?</p>
| [
{
"answer_id": 24930,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 6,
"selected": false,
"text": "SELECT *\nFROM Customers\nWHERE EXISTS (\n SELECT *\n FROM Orders\n WHERE Orders.CustomerID = Customers.ID\n)... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2528/"
] |
24,931 | <ol>
<li>Is it possible to capture Python interpreter's output from a Python script?</li>
<li>Is it possible to capture Windows CMD's output from a Python script?</li>
</ol>
<p>If so, which librar(y|ies) should I look into?</p>
| [
{
"answer_id": 24939,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 0,
"selected": false,
"text": "somescript.py | your-capture-program-here\n"
},
{
"answer_id": 24949,
"author": "Henrik Gustafsson",
"... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1670/"
] |
24,941 | <p>I am using <a href="http://www.simpletest.org/" rel="nofollow noreferrer">Simpletest</a> as my unit test framework for the PHP site I am currently working on. I like the fact that it is shipped with a simple HTML reporter, but I would like a bit more advanced reporter.</p>
<p>I have read the reporter API documentat... | [
{
"answer_id": 24939,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 0,
"selected": false,
"text": "somescript.py | your-capture-program-here\n"
},
{
"answer_id": 24949,
"author": "Henrik Gustafsson",
"... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/276/"
] |
24,954 | <p>How to determine the applications associated with a particular extension (e.g. .JPG) and then determine where the executable to that application is located so that it can be launched via a call to say System.Diagnostics.Process.Start(...).</p>
<p>I already know how to read and write to the registry. It is the layo... | [
{
"answer_id": 24974,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stackoverflow.com/users/1196",
"pm_score": 4,
"selected": true,
"text": "using System;\nusing Microsoft.Win32;\n\nnamespace GetAssociatedApp\n{\n class Program\n {\n static void Main(string[... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2669/"
] |
24,991 | <p>I have defined a Java function:</p>
<pre><code>static <T> List<T> createEmptyList() {
return new ArrayList<T>();
}
</code></pre>
<p>One way to call it is like so:</p>
<pre><code>List<Integer> myList = createEmptyList(); // Compiles
</code></pre>
<p>Why can't I call it by explicitly pa... | [
{
"answer_id": 24997,
"author": "Cheekysoft",
"author_id": 1820,
"author_profile": "https://Stackoverflow.com/users/1820",
"pm_score": 5,
"selected": false,
"text": "static <T> List<T> createEmptyList( Class<T> type ) {\n return new ArrayList<T>();\n}\n\n@Test\npublic void createStringL... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/755/"
] |
24,993 | <p>I have a WCF Web Service which is referenced from a class library. After the project is run, when creating the service client object from inside a class library, I receive an InvalidOperationException with message:</p>
<blockquote>
<p>Could not find default endpoint element that references contract
'MyServiceRe... | [
{
"answer_id": 25004,
"author": "Richard Morgan",
"author_id": 2258,
"author_profile": "https://Stackoverflow.com/users/2258",
"pm_score": 0,
"selected": false,
"text": "<endpoint>"
},
{
"answer_id": 1711550,
"author": "NealWalters",
"author_id": 160245,
"author_profi... | 2008/08/24 | [
"https://Stackoverflow.com/questions/24993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31505/"
] |
25,007 | <p>What's the easiest way to convert a percentage to a color ranging from Green (100%) to Red (0%), with Yellow for 50%?</p>
<p>I'm using plain 32bit RGB - so each component is an integer between 0 and 255. I'm doing this in C#, but I guess for a problem like this the language doesn't really matter that much.</p>
<p>... | [
{
"answer_id": 25012,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 1,
"selected": false,
"text": "#F00 #FF0 #0F0 for (int i = 0; i < 100; i++) {\n var red = i < 50\n ? 255\n : 255 - (256.0 / 100 * ((... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1199387/"
] |
25,033 | <p>I am using the code snippet below, however it's not working quite as I understand it should. </p>
<pre><code>public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
try {
line = br.readLine();
while(line != null)... | [
{
"answer_id": 25043,
"author": "Tom Lokhorst",
"author_id": 2597,
"author_profile": "https://Stackoverflow.com/users/2597",
"pm_score": 4,
"selected": true,
"text": "readLine null \\n \\r\\n while (line != null && !line.equals(\"\"))\n java -cp . Echo < test.txt\n"
},
{
"answer_... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2628/"
] |
25,041 | <p>Using CSS,</p>
<p>I'm trying to specify the height of a <code>span</code> tag in Firefox, but it's just not accepting it (IE does).</p>
<p>Firefox accepts the <code>height</code> if I use a <code>div</code>, but the problem with using a <code>div</code> is the annoying line break after it, which I can't have in th... | [
{
"answer_id": 25047,
"author": "ceejayoz",
"author_id": 1902010,
"author_profile": "https://Stackoverflow.com/users/1902010",
"pm_score": 4,
"selected": false,
"text": "display: inline"
},
{
"answer_id": 25049,
"author": "Ross",
"author_id": 2025,
"author_profile": "... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1693/"
] |
25,046 | <p>I've just started learning Lisp and I can't figure out how to compile and link lisp code to an executable.</p>
<p>I'm using <code>clisp</code> and <code>clisp -c</code> produces two files:</p>
<ul>
<li>.fas</li>
<li>.lib</li>
</ul>
<p>What do I do next to get an executable?</p>
| [
{
"answer_id": 25435,
"author": "thekidder",
"author_id": 1631,
"author_profile": "https://Stackoverflow.com/users/1631",
"pm_score": 7,
"selected": true,
"text": "(EXT:SAVEINITMEM \"executable.exe\"\n :QUIET t\n :INIT-FUNCTION 'main\n :EXE... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2450/"
] |
25,116 | <p>In Python you can use <a href="https://docs.python.org/library/struct.html" rel="noreferrer">StringIO</a> for a file-like buffer for character data. <a href="https://docs.python.org/library/mmap.html" rel="noreferrer">Memory-mapped file</a> basically does similar thing for binary data, but it requires a file that is... | [
{
"answer_id": 25123,
"author": "mmattax",
"author_id": 1638,
"author_profile": "https://Stackoverflow.com/users/1638",
"pm_score": 2,
"selected": false,
"text": "\nimport struct\nf = open(filename, \"rb\")\ns = f.read(8)\nx, y = struct.unpack(\">hl\", s)\n"
},
{
"answer_id": 251... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2679/"
] |
25,128 | <p>Is it possible to create images with PHP (as opposed to simply linking to them via HTML) and if so, where should I go first to learn about such a thing?</p>
| [
{
"answer_id": 25139,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 5,
"selected": true,
"text": "<?php\nheader (\"Content-type: image/png\");\n$im = @imagecreatetruecolor(120, 20)\n or die(\"Cannot Initialize new GD image... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
25,132 | <p>I did a lot of PHP programming in the last years and one thing that keeps annoying me is the weak support for Unicode and multibyte strings (to be sure, natively there is none). For example, "htmlentities" seems to be a much used function in the PHP world and I found it to be absolutely annoying when you'v... | [
{
"answer_id": 25173,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 4,
"selected": true,
"text": "application/xhtml+xml text/html < > & " '"
}
] | 2008/08/24 | [
"https://Stackoverflow.com/questions/25132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2077/"
] |
25,147 | <p>I have two arrays of animals (for example).</p>
<pre><code>$array = array(
array(
'id' => 1,
'name' => 'Cat',
),
array(
'id' => 2,
'name' => 'Mouse',
)
);
$array2 = array(
array(
'id' => 2,
'age' => 321,
),
array(
... | [
{
"answer_id": 25155,
"author": "Erik van Brakel",
"author_id": 909,
"author_profile": "https://Stackoverflow.com/users/909",
"pm_score": 2,
"selected": false,
"text": "$array = array(\n 1 => array(\n 'name' => 'Cat',\n ),\n 2 => array(\n 'name' => 'Mouse',\n )\... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2118/"
] |
25,158 | <p>I'm rewriting an old application and use this as a good opportunity to try out C# and .NET development (I usually do a lot of plug-in stuff in C).</p>
<p>The application is basically a timer collecting data. It has a start view with a button to start the measurement. During the measurement the app has five differen... | [
{
"answer_id": 25512,
"author": "Chris Karcher",
"author_id": 2773,
"author_profile": "https://Stackoverflow.com/users/2773",
"pm_score": 4,
"selected": true,
"text": "tabControl1.Top = tabControl1.Top - tabControl1.ItemSize.Height;\ntabControl1.Height = tabControl1.Height + tabControl1.... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2703/"
] |
25,161 | <p>I have an image and on it are logos (it's a map), I want to have a little box popup with information about that logo's location when the user moves their mouse over said logo.</p>
<p>Can I do this without using a javascript framework and if so, are there any small libraries/scripts that will let me do such a thing?... | [
{
"answer_id": 25165,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "https://Stackoverflow.com/users/1600",
"pm_score": 3,
"selected": false,
"text": "title"
},
{
"answer_id": 25211,
"author": "travis",
"author_id": 1414,
"author_profile": "https://St... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
25,174 | <p>I've used the PHP MVC framework Symfony to build an on-demand web app.</p>
<p>It has an annoying bug - the session expires after about 15-30 minutes of inactivity. There is a config directive to prevent session expiration but it does not work. Even workarounds such as <a href="http://robrosenbaum.com/php/howto-disa... | [
{
"answer_id": 483374,
"author": "deresh",
"author_id": 11851,
"author_profile": "https://Stackoverflow.com/users/11851",
"pm_score": 0,
"selected": false,
"text": "all:\n .settings:\n timeout: 864000\n"
},
{
"answer_id": 1438989,
"author": "Community",
"author_id"... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2706/"
] |
25,200 | <p>I don't like the AutoSize property of the Label control. I have a custom Label that draws a fancy rounded border among other things. I'm placing a <code>AutoSize = false</code> in my constructor, however, when I place it in design mode, the property always is True. </p>
<p>I have overridden other properties with su... | [
{
"answer_id": 699553,
"author": "ESRogs",
"author_id": 88,
"author_profile": "https://Stackoverflow.com/users/88",
"pm_score": 0,
"selected": false,
"text": "this.AutoSize = false"
},
{
"answer_id": 1651394,
"author": "iard68",
"author_id": 199835,
"author_profile": ... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2684/"
] |
25,224 | <p>I have a postgres database with a user table (userid, firstname, lastname) and a usermetadata table (userid, code, content, created datetime). I store various information about each user in the usermetadata table by code and keep a full history. so for example, a user (userid 15) has the following metadata:</p>
<pr... | [
{
"answer_id": 27159,
"author": "Neall",
"author_id": 619,
"author_profile": "https://Stackoverflow.com/users/619",
"pm_score": 2,
"selected": false,
"text": "SELECT DISTINCT ON (code) code, content, createtime\nFROM metatable\nWHERE userid = 15\nORDER BY code, createtime DESC;\n"
},
... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2462/"
] |
25,225 | <p>I have a couple of files containing a value in each line.</p>
<p><strong>EDIT :</strong></p>
<p>I figured out the answer to this question while in the midst of writing the post and didn't realize I had posted it by mistake in its incomplete state.</p>
<p>I was trying to do:</p>
<pre><code>paste -d ',' file1 file... | [
{
"answer_id": 25229,
"author": "sparkes",
"author_id": 269,
"author_profile": "https://Stackoverflow.com/users/269",
"pm_score": 0,
"selected": false,
"text": "cat filetwo >> fileone\n"
},
{
"answer_id": 25231,
"author": "Bjorn Reppen",
"author_id": 1324220,
"author_... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1582/"
] |
25,238 | <blockquote>
<p>What's the best way to make an element of 100% minimum height across a
wide range of browsers ?</p>
</blockquote>
<p>In particular if you have a layout with a <code>header</code> and <code>footer</code> of fixed <code>height</code>,</p>
<p>how do you make the middle content part fill <code>100%</c... | [
{
"answer_id": 25249,
"author": "ollifant",
"author_id": 2078,
"author_profile": "https://Stackoverflow.com/users/2078",
"pm_score": 7,
"selected": false,
"text": "html,body {\n margin:0;\n padding:0;\n height:100%; /* needed for container min-height */\n background:gray;\n\n... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1725/"
] |
25,240 | <p>FCKeditor has InsertHtml API (<a href="http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API" rel="nofollow noreferrer">JavaScript API document</a>) that inserts HTML in the current cursor position. How do I insert at the very end of the document?</p>
<p>Do I need to start browser sniffing with so... | [
{
"answer_id": 720544,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "var oEditor = FCKeditorAPI.GetInstance('Editor_instance') ;\n OldText=oEditor.GetXHTML( true );\n\n oEditor.SetData( Old... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2515/"
] |
25,252 | <p>I'm using <a href="http://www.zend.com/en/products/studio/" rel="nofollow noreferrer">Zend Studio</a> to do remote debugging of my php scripts on a dev server. It works great for web code, but can I make it work with command line scripts?</p>
<p>I have several helper apps to make my application run. It would be rea... | [
{
"answer_id": 3091577,
"author": "Ramon Poca",
"author_id": 117188,
"author_profile": "https://Stackoverflow.com/users/117188",
"pm_score": 0,
"selected": false,
"text": "export QUERY_STRING=start_debug=1&debug_host=<host name or IP of the local machine>&debug_port=<the port that is con... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2506/"
] |
25,259 | <p>What is a good complete <a href="http://en.wikipedia.org/wiki/Regular_expression" rel="noreferrer">regular expression</a> or some other process that would take the title:</p>
<blockquote>
<p>How do you change a title to be part of the URL like Stack Overflow?</p>
</blockquote>
<p>and turn it into </p>
<pre clas... | [
{
"answer_id": 25263,
"author": "Dale Ragan",
"author_id": 1117,
"author_profile": "https://Stackoverflow.com/users/1117",
"pm_score": 4,
"selected": false,
"text": "def permalink_for(str)\n str.gsub(/[^\\w\\/]|[!\\(\\)\\.]+/, ' ').strip.downcase.gsub(/\\ +/, '-')\nend\n"
},
{
... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1632/"
] |
25,268 | <p>Has anybody out there used the <a href="http://www.swig.org/exec.html" rel="noreferrer">SWIG</a> library with C#? If you have, what pitfalls did you find and what is the best way to use the library? I am thinking about using it as a wrapper for a program that was written in C and I want to wrap the header files wh... | [
{
"answer_id": 1067011,
"author": "Roark Fan",
"author_id": 25362,
"author_profile": "https://Stackoverflow.com/users/25362",
"pm_score": 4,
"selected": true,
"text": "Examples/csharp/class mystuff.dll mystuffnet.dll"
},
{
"answer_id": 1070469,
"author": "Marc Bernier",
"... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1117/"
] |
25,269 | <p>I'm having an amazing amount of trouble starting and stopping a service on my remote server from my msbuild script.</p>
<p>SC.EXE and the ServiceController MSBuild task don't provide switches to allow a username/password so they won't authenticate, so I'm using RemoteService.exe from www.intelliadmin.com</p>
<p>-A... | [
{
"answer_id": 25326,
"author": "Brad Wilson",
"author_id": 1554,
"author_profile": "https://Stackoverflow.com/users/1554",
"pm_score": 3,
"selected": false,
"text": "C:\\> net use \\\\xx.xx.xx.xx\\ipc$ * /user:username\n *"
}
] | 2008/08/24 | [
"https://Stackoverflow.com/questions/25269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2086/"
] |
25,277 | <p>There is a <a href="https://web.archive.org/web/20081014140251/http://stackoverflow.uservoice.com:80/pages/general/suggestions/16644" rel="nofollow noreferrer">request</a> to make the SO search default to an AND style functionality over the current OR when multiple terms are used.</p>
<p>The official response was:</... | [
{
"answer_id": 25287,
"author": "Martin Marconcini",
"author_id": 2684,
"author_profile": "https://Stackoverflow.com/users/2684",
"pm_score": 2,
"selected": false,
"text": "WHERE FREETEXT('You gotta love MS-SQL') > 0\n AND FREETEXT('You gotta love MySQL too...') > 0\n"
},
{
"ans... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2134/"
] |
25,282 | <p>The point of this question is to collect a list of examples of hashtable implementations using arrays in different languages. It would also be nice if someone could throw in a pretty detailed overview of how they work, and what is happening with each example. </p>
<p><strong>Edit:</strong> </p>
<p>Why not just use... | [
{
"answer_id": 25365,
"author": "SemiColon",
"author_id": 1994,
"author_profile": "https://Stackoverflow.com/users/1994",
"pm_score": 4,
"selected": false,
"text": "int ComputeHash(char* key)\n{\n int hash = 5381;\n while (*key)\n hash = ((hash << 5) + hash) + *(key++);\n ret... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1797/"
] |
25,297 | <p>I would like to use <code>as</code> and <code>is</code> as members of an enumeration. I know that this is possible in VB.NET to write it like this:</p>
<pre><code>Public Enum Test
[as] = 1
[is] = 2
End Enum
</code></pre>
<p>How do I write the equivalent statement in C#?
The following code does not compile:... | [
{
"answer_id": 25300,
"author": "Brad Wilson",
"author_id": 1554,
"author_profile": "https://Stackoverflow.com/users/1554",
"pm_score": 6,
"selected": true,
"text": "public enum Test\n{\n @as = 1,\n @is = 2\n}\n"
}
] | 2008/08/24 | [
"https://Stackoverflow.com/questions/25297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2717/"
] |
25,349 | <p>I have a string that has some Environment.Newline in it. I'd like to strip those from the string and instead, replace the Newline with something like a comma. </p>
<p>What would be, in your opinion, the best way to do this using C#.NET 2.0?</p>
| [
{
"answer_id": 25350,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "string.Replace"
},
{
"answer_id": 25351,
"author": "Bjorn Reppen",
"author_id": 1324220,
"author_p... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2684/"
] |
25,376 | <p>I've read that Lambda Expressions are an incredibly powerful addition to C#, yet I find myself mystified by them. How can they improve my life or make my code better? Can anyone point to a good resource for learning such expressions?</p>
<p>They seem cool as hell, but how do they relate to my day-to-day life as an ... | [
{
"answer_id": 25385,
"author": "Brian Leahy",
"author_id": 580,
"author_profile": "https://Stackoverflow.com/users/580",
"pm_score": 3,
"selected": false,
"text": "List<int> myInts = GetAll();\nIEnumerable<int> evenNumbers = myInts.Where(x => x % 2 == 0);\n x=> x % 2 == 0\n"
},
{
... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2757/"
] |
25,396 | <p>I'm working on a website built with pure HTML and CSS, and I need a way to restrict access to pages located within particular directories within the site. The solution I came up with was, of course, ASP.NET Forms Authorization. I created the default Visual Studio log in form and set up the users, roles, and access r... | [
{
"answer_id": 25451,
"author": "Steve",
"author_id": 1857,
"author_profile": "https://Stackoverflow.com/users/1857",
"pm_score": 0,
"selected": false,
"text": "<authentication mode=\"Forms\" />\n"
},
{
"answer_id": 872068,
"author": "Brad Crandell",
"author_id": 97949,
... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1857/"
] |
25,449 | <p>I want to create a Java program that can be extended with plugins. How can I do that and where should I look for?</p>
<p>I have a set of interfaces that the plugin must implement, and it should be in a jar. The program should watch for new jars in a relative (to the program) folder and registered them somehow.</p>
... | [
{
"answer_id": 25492,
"author": "Steve M",
"author_id": 1693,
"author_profile": "https://Stackoverflow.com/users/1693",
"pm_score": 7,
"selected": true,
"text": "File dir = new File(\"put path to classes you want to load here\");\nURL loadPath = dir.toURI().toURL();\nURL[] classUrl = new... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2644/"
] |
25,450 | <p>Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in an effort to make dealing with that particular kettle of fish easier.</p>
<p>Is there anything you folks have used that has a similar concept applied to CSS? Something that does a bunch of cross-browser magic for you, supports l... | [
{
"answer_id": 25467,
"author": "grom",
"author_id": 486,
"author_profile": "https://Stackoverflow.com/users/486",
"pm_score": 4,
"selected": true,
"text": "template engine variables calculated fields"
},
{
"answer_id": 25534,
"author": "Kevin",
"author_id": 40,
"auth... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1666/"
] |
25,455 | <p>While plenty of solutions exist for entering dates (such as calendars, drop-down menus, etc.), it doesn't seem like there are too many "standard" ways to ask for a time (or time range).</p>
<p>I've personally tried drop-down menus for the hour, minute, and second fields (and sometimes an "AM/PM" field, as well). I... | [
{
"answer_id": 25467,
"author": "grom",
"author_id": 486,
"author_profile": "https://Stackoverflow.com/users/486",
"pm_score": 4,
"selected": true,
"text": "template engine variables calculated fields"
},
{
"answer_id": 25534,
"author": "Kevin",
"author_id": 40,
"auth... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1581/"
] |
25,458 | <p>I constantly hear how bad reflection is to use. While I generally avoid reflection and rarely find situations where it is impossible to solve my problem without it, I was wondering... </p>
<p>For those who have used reflection in applications, have you measured performance hits and, is it really so bad?</p>
| [
{
"answer_id": 25472,
"author": "lomaxx",
"author_id": 493,
"author_profile": "https://Stackoverflow.com/users/493",
"pm_score": 2,
"selected": false,
"text": "FillObject"
},
{
"answer_id": 4440657,
"author": "grenade",
"author_id": 68115,
"author_profile": "https://S... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
25,461 | <p>In a project I am interfacing between C++ and a C library that uses stdbool.h defined as such.</p>
<pre><code>#ifndef _STDBOOL_H
#define _STDBOOL_H
/* C99 Boolean types for compilers without C99 support */
/* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */
#if !defined(__cplusplus)
#if !d... | [
{
"answer_id": 25658,
"author": "Josh",
"author_id": 257,
"author_profile": "https://Stackoverflow.com/users/257",
"pm_score": 0,
"selected": false,
"text": "union boolean {\n bool value_cpp;\n int value_c;\n}; \n extern \"C\" bool library_func_1(int i, char c, bool b);\n bool libra... | 2008/08/24 | [
"https://Stackoverflow.com/questions/25461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1675/"
] |
25,481 | <p>I'm trying to call an Antlr task in my Ant build.xml as follows:</p>
<pre><code><path id="classpath.build">
<fileset dir="${dir.lib.build}" includes="**/*.jar" />
</path>
...
<target name="generate-lexer" depends="init">
<antlr target="${file.antlr.lexer}">
<classpath refi... | [
{
"answer_id": 4515467,
"author": "Terence Parr",
"author_id": 275496,
"author_profile": "https://Stackoverflow.com/users/275496",
"pm_score": 2,
"selected": false,
"text": "<path id=\"classpath\">\n <pathelement location=\"${antlr3.jar}\"/>\n <pathelement location=\"${ant-antlr3.j... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
25,499 | <p>I'm using Visual C++ 2005 and would like to know the simplest way to connect to a MS SQL Server and execute a query.</p>
<p>I'm looking for something as simple as ADO.NET's SqlCommand class with it's ExecuteNonQuery(), ExecuteScalar() and ExecuteReader().</p>
<p>Sigh offered an answer using CDatabase and ODBC.</p>... | [
{
"answer_id": 25544,
"author": "Sigh",
"author_id": 1866,
"author_profile": "https://Stackoverflow.com/users/1866",
"pm_score": 2,
"selected": false,
"text": "CDatabase db(ODBCConnectionString);\ndb.Open();\ndb.ExecuteSQL(blah);\ndb.Close();\n"
},
{
"answer_id": 154431,
"aut... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2768/"
] |
25,532 | <p>What would be the Master Pages equivalent in the Java web development world? I've heard of Tiles, Tapestry and Velocity but don't know anything about them. Are they as easy to use as Master Pages? </p>
<p>I want something as easy as set up one template and subsequent pages derive from the template and override c... | [
{
"answer_id": 33270,
"author": "tonygambone",
"author_id": 3344,
"author_profile": "https://Stackoverflow.com/users/3344",
"pm_score": 4,
"selected": false,
"text": "<ui:insert/> <asp:ContentPlaceHolder/> <ui:composition/> <ui:composition/> <ui:define/> <asp:Content/> <!-- HTML header c... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2572/"
] |
25,552 | <p>I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows.</p>
<p>Has anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used in the underlying OS? What about just ... | [
{
"answer_id": 25596,
"author": "William Brendel",
"author_id": 2405,
"author_profile": "https://Stackoverflow.com/users/2405",
"pm_score": 9,
"selected": true,
"text": "public class Main {\n public static void main(String[] args) {\n /* Total number of processors or cores available ... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1693/"
] |
25,561 | <p>I am attempting to parse a string like the following using a .NET regular expression:</p>
<pre><code>H3Y5NC8E-TGA5B6SB-2NVAQ4E0
</code></pre>
<p>and return the following using Split:
H3Y5NC8E
TGA5B6SB
2NVAQ4E0</p>
<p>I validate each character against a specific character set (note that the letters 'I'... | [
{
"answer_id": 25569,
"author": "Mark Glorie",
"author_id": 952,
"author_profile": "https://Stackoverflow.com/users/952",
"pm_score": 0,
"selected": false,
"text": "Dim stringArray As Array = someString.Split(\"-\")\n"
},
{
"answer_id": 25591,
"author": "aku",
"author_id"... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2754/"
] |
25,566 | <p>I wrote an O(n!) sort for my amusement that can't be trivially optimized to run faster without replacing it entirely. [And no, I didn't just randomize the items until they were sorted]. </p>
<p>How might I write an even worse Big-O sort, without just adding extraneous junk that could be pulled out to reduce the t... | [
{
"answer_id": 25605,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 2,
"selected": false,
"text": "def never_sort(array)\n while(true)\n end\n return quicksort(array)\nend\n def never_sort(array)\n i=0\n while(tr... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2775/"
] |
25,637 | <p>Is there a way to shutdown a computer using a built-in Java method?</p>
| [
{
"answer_id": 25644,
"author": "David McGraw",
"author_id": 568,
"author_profile": "https://Stackoverflow.com/users/568",
"pm_score": 8,
"selected": true,
"text": "public static void main(String arg[]) throws IOException{\n Runtime runtime = Runtime.getRuntime();\n Process proc = ... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2598/"
] |
25,642 | <p>I want to catch the NavigationService.Navigating event from my Page, to prevent the user from navigating forward. I have an event handler defined thusly:</p>
<pre><code>void PreventForwardNavigation(object sender, NavigatingCancelEventArgs e)
{
if (e.NavigationMode == NavigationMode.Forward)
{
e.Can... | [
{
"answer_id": 25644,
"author": "David McGraw",
"author_id": 568,
"author_profile": "https://Stackoverflow.com/users/568",
"pm_score": 8,
"selected": true,
"text": "public static void main(String arg[]) throws IOException{\n Runtime runtime = Runtime.getRuntime();\n Process proc = ... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/615/"
] |
25,646 | <p>The following code writes no data to the back buffer on Intel integrated video cards,for example, on a MacBook. On ATI cards, such as in the iMac, it draws to the back buffer. The width and height are correct (and 800x600 buffer) and m_PixelBuffer is correctly filled with 0xAA00AA00.</p>
<p>My best guess so far is ... | [
{
"answer_id": 154444,
"author": "Adrian",
"author_id": 23624,
"author_profile": "https://Stackoverflow.com/users/23624",
"pm_score": 1,
"selected": false,
"text": "GLint valid;\nglGet(GL_CURRENT_RASTER_POSITION_VALID, &valid);\n"
}
] | 2008/08/25 | [
"https://Stackoverflow.com/questions/25646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1329401/"
] |
25,652 | <p>I want to programatically create an NSTextView. How can I determine the correct frame height so that the view displays one line of text in the current default font?</p>
| [
{
"answer_id": 90694,
"author": "Ken",
"author_id": 17320,
"author_profile": "https://Stackoverflow.com/users/17320",
"pm_score": 2,
"selected": false,
"text": "[textField setFont:myFont];\n[textField sizeToFit];\n"
}
] | 2008/08/25 | [
"https://Stackoverflow.com/questions/25652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2140/"
] |
25,653 | <p>Is there any way to apply an attribute to a model file in ASP.NET Dynamic Data to hide the column?</p>
<p>For instance, I can currently set the display name of a column like this:</p>
<pre><code>[DisplayName("Last name")]
public object Last_name { get; set; }
</code></pre>
<p>Is there a similar way to hide a colu... | [
{
"answer_id": 25667,
"author": "Christian Hagelid",
"author_id": 202,
"author_profile": "https://Stackoverflow.com/users/202",
"pm_score": 5,
"selected": true,
"text": "[ScaffoldColumn(false)]\n [ScaffoldTable(false)]\n"
}
] | 2008/08/25 | [
"https://Stackoverflow.com/questions/25653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364/"
] |
25,665 | <p>Is there any python module to convert PDF files into text? I tried <a href="http://code.activestate.com/recipes/511465/" rel="noreferrer">one piece of code</a> found in Activestate which uses pypdf but the text generated had no space between and was of no use. </p>
| [
{
"answer_id": 48154,
"author": "Tony Meyer",
"author_id": 4966,
"author_profile": "https://Stackoverflow.com/users/4966",
"pm_score": 6,
"selected": false,
"text": "import pyPdf\npdf = pyPdf.PdfFileReader(open(filename, \"rb\"))\nfor page in pdf.pages:\n print page.extractText()\n"
... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448/"
] |
25,672 | <p>Been going over my predecessor's code and see usage of the "request" scope frequently. What is the appropriate usage of this scope?</p>
| [
{
"answer_id": 26725,
"author": "Adam Tuttle",
"author_id": 751,
"author_profile": "https://Stackoverflow.com/users/751",
"pm_score": 5,
"selected": true,
"text": "<cfif not structKeyExists(application, \"dsn\")>\n <cflock scope=\"application\" type=\"exclusive\" timeout=\"30\">\n ... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
25,746 | <p>I'm learning objective-C and Cocoa and have come across this statement:</p>
<blockquote>
<p>The Cocoa frameworks expect that global string constants rather than string literals are used for dictionary keys, notification and exception names, and some method parameters that take strings.</p>
</blockquote>
<p>I've ... | [
{
"answer_id": 25750,
"author": "Brad Wilson",
"author_id": 1554,
"author_profile": "https://Stackoverflow.com/users/1554",
"pm_score": 2,
"selected": false,
"text": "const std::string mystring = \"my string\";\n someMethod(mystring);\n someMethod(\"my string\");\n"
},
{
"answer_... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2799/"
] |
25,749 | <p>I'm learning objective-c and keep bumping into the @ symbol. It is used in different scenarios, for example at the start of a string or to synthesise accessor methods. </p>
<p>What's does the @ symbol mean in objective-c?</p>
| [
{
"answer_id": 25784,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 8,
"selected": true,
"text": "@ @ id Class nil Nil typedef #define id in out inout oneway byref bycopy @property copy retain assign readonly readwrite no... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2799/"
] |
25,752 | <p>In a drop down list, I need to add spaces in front of the options in the list. I am trying</p>
<pre><code><select>
<option>&#32;&#32;Sample</option>
</select>
</code></pre>
<p>for adding two spaces but it displays no spaces. How can I add spaces before option texts?</p>
| [
{
"answer_id": 25754,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 2,
"selected": false,
"text": " \n"
},
{
"answer_id": 25758,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Sta... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31505/"
] |
25,765 | <p>I'm in the process of weeding out all hardcoded values in a Java library and was wondering what framework would be the best (in terms of zero- or close-to-zero configuration) to handle run-time configuration? I would prefer XML-based configuration files, but it's not essential. </p>
<p>Please do only reply if you h... | [
{
"answer_id": 25819,
"author": "Anders Sandvig",
"author_id": 1709,
"author_profile": "https://Stackoverflow.com/users/1709",
"pm_score": 2,
"selected": false,
"text": "java.util.Properties"
},
{
"answer_id": 34397,
"author": "John Meagher",
"author_id": 3535,
"autho... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1448983/"
] |
25,767 | <p>What is the quickest way to get a large amount of data (think golf) and the most efficient (think performance) to get a large amount of data from a MySQL database to a session without having to continue doing what I already have:</p>
<pre><code>$sql = "SELECT * FROM users WHERE username='" . mysql_escape_string($_P... | [
{
"answer_id": 25776,
"author": "Marius",
"author_id": 1585,
"author_profile": "https://Stackoverflow.com/users/1585",
"pm_score": 0,
"selected": false,
"text": "$_SESSION['data'] = json_encode(mysql_fetch_array($result));\n json_decode $_SESSION['data'] json_encode json_decode json_enco... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
25,771 | <p>How can I insert compilation timestamp information into an executable I build with Visual C++ 2005? I want to be able to output something like this when I execute the program:</p>
<blockquote>
<p>This build XXXX was compiled at dd-mm-yy, hh:mm.</p>
</blockquote>
<p>where date and time reflect the time when the p... | [
{
"answer_id": 25780,
"author": "sparkes",
"author_id": 269,
"author_profile": "https://Stackoverflow.com/users/269",
"pm_score": 3,
"selected": false,
"text": "__DATE__ \n__TIME__\n"
},
{
"answer_id": 25802,
"author": "Eric Scrivner",
"author_id": 2594,
"author_profi... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
25,785 | <p>Is there a simple way, in a pretty standard UNIX environment with bash, to run a command to delete all but the most recent X files from a directory?</p>
<p>To give a bit more of a concrete example, imagine some cron job writing out a file (say, a log file or a tar-ed up backup) to a directory every hour. I'd like a... | [
{
"answer_id": 25789,
"author": "Espo",
"author_id": 2257,
"author_profile": "https://Stackoverflow.com/users/2257",
"pm_score": 7,
"selected": false,
"text": "rm `ls -t | awk 'NR>5'`\n"
},
{
"answer_id": 25790,
"author": "thelsdj",
"author_id": 163,
"author_profile":... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
25,794 | <p>Without local access to the server, is there any way to duplicate/clone a MySQL db (with content and without content) into another without using <code>mysqldump</code>?</p>
<p>I am currently using MySQL 4.0.</p>
| [
{
"answer_id": 26091,
"author": "Gary Richardson",
"author_id": 2506,
"author_profile": "https://Stackoverflow.com/users/2506",
"pm_score": 7,
"selected": false,
"text": "CREATE TABLE x LIKE y;\n SHOW TABLES CREATE TABLE x LIKE other_db.y;\n INSERT INTO x SELECT * FROM other_db.y;\n INSE... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/211/"
] |
25,803 | <p>For a given class I would like to have tracing functionality i.e. I would like to log every method call (method signature and actual parameter values) and every method exit (just the method signature). </p>
<p>How do I accomplish this assuming that: </p>
<ul>
<li>I don't want to use any 3rd party
AOP libraries... | [
{
"answer_id": 25808,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 1,
"selected": false,
"text": "LogStart LogEnd"
},
{
"answer_id": 25810,
"author": "Steen",
"author_id": 1448983,
"author_profile... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2800/"
] |
25,807 | <p>If I have Python code</p>
<pre><code>class A():
pass
class B():
pass
class C(A, B):
pass
</code></pre>
<p>and I have class <code>C</code>, is there a way to iterate through it's super classed (<code>A</code> and <code>B</code>)? Something like pseudocode:</p>
<pre><code>>>> magicGetSuperClass... | [
{
"answer_id": 25815,
"author": "John",
"author_id": 2168,
"author_profile": "https://Stackoverflow.com/users/2168",
"pm_score": 6,
"selected": true,
"text": "C.__bases__ def magicGetSuperClasses(cls):\n return cls.__bases__\n cls.__bases__"
},
{
"answer_id": 35111,
"author"... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2679/"
] |
25,841 | <p>How do you get the maximum number of bytes that can be passed to a <code>sendto(..)</code> call for a socket opened as a UDP port?</p>
| [
{
"answer_id": 25853,
"author": "Kristof Provost",
"author_id": 1466,
"author_profile": "https://Stackoverflow.com/users/1466",
"pm_score": 2,
"selected": false,
"text": "SO_MAX_MSG_SIZE"
},
{
"answer_id": 25976,
"author": "diciu",
"author_id": 2811,
"author_profile":... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/842/"
] |
25,846 | <p>I know that MAC OS X 10.5 comes with Apache installed but I would like to install the latest Apache without touching the OS Defaults incase it causes problems in the future with other udpates. So I have used the details located at: <a href="http://diymacserver.com/installing-apache/compiling-apache-on-leopard/" rel=... | [
{
"answer_id": 25851,
"author": "Espo",
"author_id": 2257,
"author_profile": "https://Stackoverflow.com/users/2257",
"pm_score": 2,
"selected": false,
"text": "export CFLAGS=\"-arch x86_64\"\n"
},
{
"answer_id": 25854,
"author": "Brian Warshaw",
"author_id": 1344,
"au... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2196/"
] |
25,865 | <p>My good friend, Wikipedia, <a href="http://en.wikipedia.org/wiki/Language_binding" rel="noreferrer">didn't give me a very good response</a> to that question. So:</p>
<ul>
<li>What are language bindings?</li>
<li>How do they work?</li>
</ul>
<p>Specifically accessing functions from code written in language X of a l... | [
{
"answer_id": 25868,
"author": "Matt MacLean",
"author_id": 22,
"author_profile": "https://Stackoverflow.com/users/22",
"pm_score": -1,
"selected": false,
"text": "<mx:TextInput id=\"LNameInput\"></mx:TextInput>\n...\n<mx:Label text=\"{LNameInput.text}\"></mx:Label>\n"
}
] | 2008/08/25 | [
"https://Stackoverflow.com/questions/25865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/416/"
] |
25,871 | <p>We created several custom web parts for SharePoint 2007. They work fine. However whenever they are loaded, we get an error in the event log saying:</p>
<blockquote>
<p>error initializing safe control - Assembly: ...</p>
</blockquote>
<p>The assembly actually loads fine. Additionally, it is correctly listed in th... | [
{
"answer_id": 25882,
"author": "Daniel Pollard",
"author_id": 2758,
"author_profile": "https://Stackoverflow.com/users/2758",
"pm_score": 2,
"selected": false,
"text": "<SafeControls>\n <SafeControl\n Assembly = \"Text\"\n Namespace = \"Text\"\n Safe = \"TRUE\" | \"FALSE\"\n ... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
25,914 | <p>I'm trying to setup CruiseControl.net webdashboard at the moment. So far it works nice, but I have a problem with the NAnt Build Timing Report.</p>
<p>Firstly, my current <code>ccnet.config</code> file looks something like this:</p>
<pre><code><project name="bla">
...
<prebuild>
<nant .../>
<... | [
{
"answer_id": 392610,
"author": "cordis",
"author_id": 1085,
"author_profile": "https://Stackoverflow.com/users/1085",
"pm_score": 2,
"selected": false,
"text": "<buildresults> <div id=\"NAntTimingReport\"> <xsl:variable name=\"buildresults\" select=\"//build/buildresults[1]\" />\n"
}... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1085/"
] |
25,952 | <p>Back when I was at school, I remember tinkering with a Mac game where you programmed little robots in a sort of pseudo-assembler language which could then battle each other. They could move themselves around the arena, look for opponents in different directions, and fire some sort of weapon. Pretty basic stuff, but ... | [
{
"answer_id": 25959,
"author": "Pascal Paradis",
"author_id": 1291,
"author_profile": "https://Stackoverflow.com/users/1291",
"pm_score": 5,
"selected": false,
"text": " public class MyFirstRobot extends Robot {\n public void run() {\n while (true) {\n ahead(100)... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
25,969 | <p>I am trying to <code>INSERT INTO</code> a table using the input from another table. Although this is entirely feasible for many database engines, I always seem to struggle to remember the correct syntax for the <code>SQL</code> engine of the day (<a href="http://en.wikipedia.org/wiki/MySQL" rel="noreferrer">MySQL</a... | [
{
"answer_id": 25971,
"author": "Claude Houle",
"author_id": 244,
"author_profile": "https://Stackoverflow.com/users/244",
"pm_score": 12,
"selected": true,
"text": "INSERT INTO table1 ( column1 )\nSELECT col1\nFROM table2 \n"
},
{
"answer_id": 26080,
"author": "travis",... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/244/"
] |
25,975 | <p>The Compact Framework doesn't support Assembly.GetEntryAssembly to determine the launching .exe. So is there another way to get the name of the executing .exe?</p>
<p>EDIT: I found the answer on Peter Foot's blog: <a href="http://peterfoot.net/default.aspx" rel="nofollow noreferrer">http://peterfoot.net/default.asp... | [
{
"answer_id": 117572,
"author": "Martin Liesén",
"author_id": 20715,
"author_profile": "https://Stackoverflow.com/users/20715",
"pm_score": 1,
"selected": false,
"text": "string exefile = Assembly.GetExecutingAssembly().GetName().CodeBase;\n"
}
] | 2008/08/25 | [
"https://Stackoverflow.com/questions/25975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1382/"
] |
25,977 | <p>I would like to compare a screenshot of one application (could be a Web page) with a previously taken screenshot to determine whether the application is displaying itself correctly. I don't want an exact match comparison, because the aspect could be slightly different (in the case of a Web app, depending on the brow... | [
{
"answer_id": 6801185,
"author": "Shachar",
"author_id": 859398,
"author_profile": "https://Stackoverflow.com/users/859398",
"pm_score": 4,
"selected": false,
"text": "O(n^2) C = sum(Pij*Qij)^2/(sum(Pij^2)*sum(Qij^2)) Pij=Qij i,j Qij = 1 Pij = 255 nxn n C=1/n^2"
},
{
"answer_id"... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2680/"
] |
25,982 | <p>Given that my client code knows everything it needs to about the remoting object, what's the simplest way to connect to it?</p>
<p>This is what I'm doing at the moment:</p>
<pre><code>ChannelServices.RegisterChannel(new HttpChannel(), false);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(IRemoteS... | [
{
"answer_id": 27450,
"author": "Ishmaeel",
"author_id": 227,
"author_profile": "https://Stackoverflow.com/users/227",
"pm_score": 2,
"selected": true,
"text": "//obtain another marshalbyref object of the type ISessionManager:\nISessionManager = MyServerObject.GetSessionManager();\n"
}... | 2008/08/25 | [
"https://Stackoverflow.com/questions/25982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2373/"
] |
26,002 | <p>I want our team to develop against local instances of an Oracle database. With MS SQL, I can use SQL Express Edition. What are my options?</p>
| [
{
"answer_id": 38346,
"author": "morais",
"author_id": 2846,
"author_profile": "https://Stackoverflow.com/users/2846",
"pm_score": 3,
"selected": false,
"text": "ALTER SYSTEM SET PROCESSES=150 SCOPE=SPFILE;\n"
}
] | 2008/08/25 | [
"https://Stackoverflow.com/questions/26002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2676/"
] |
26,007 | <p>Is there an easy way to iterate over an associative array of this structure in PHP:</p>
<p>The array <code>$searches</code> has a numbered index, with between 4 and 5 associative parts. So I not only need to iterate over <code>$searches[0]</code> through <code>$searches[n]</code>, but also <code>$searches[0]["part0... | [
{
"answer_id": 26013,
"author": "Re0sless",
"author_id": 2098,
"author_profile": "https://Stackoverflow.com/users/2098",
"pm_score": 3,
"selected": false,
"text": "/* foreach example 4: multi-dimensional arrays */\n$a = array();\n$a[0][0] = \"a\";\n$a[0][1] = \"b\";\n$a[1][0] = \"y\";\n$... | 2008/08/25 | [
"https://Stackoverflow.com/questions/26007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.