qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
245,532 | <p>I have a web application that has many faces and so far I've implemented this through creating themes. A theme is a set of html, css and images to be used with the common back end.</p>
<p>Things are laid out like so:</p>
<pre><code>code/
themes/theme1
themes/theme2
</code></pre>
<p>And each instance of the web a... | [
{
"answer_id": 245707,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": "public interface ILogoutStrategy\n{\n void Logout();\n}\n\npublic abstract class AbstractLogoutStrategy : ILogoutStra... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
245,557 | <p>Let's say I have two arrays:</p>
<blockquote>
<p>int ArrayA[] = {5, 17, 150, 230, 285};</p>
<p>int ArrayB[] = {7, 11, 57, 110, 230, 250};</p>
</blockquote>
<p>Both arrays are sorted and can be any size. I am looking for an efficient algorithm to find if the arrays contain any duplicated elements between them. I just... | [
{
"answer_id": 245563,
"author": "Andru Luvisi",
"author_id": 5922,
"author_profile": "https://Stackoverflow.com/users/5922",
"pm_score": 6,
"selected": true,
"text": "counterA = 0;\ncounterB = 0;\nfor(;;) {\n if(counterA == ArrayA.length || counterB == ArrayB.length)\n return ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3175/"
] |
245,565 | <p>Most developers understand the concept of <a href="http://en.wikipedia.org/wiki/Wicked_problem" rel="nofollow noreferrer">wicked problems</a>. What's a good analogy to use when explaining this concept to project managers?</p>
| [
{
"answer_id": 245596,
"author": "Steven A. Lowe",
"author_id": 9345,
"author_profile": "https://Stackoverflow.com/users/9345",
"pm_score": 1,
"selected": false,
"text": "trying to hit a moving taget that changes shape, \nwears disguises, hides in shadows, recruits minions,\nand shoots b... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13118/"
] |
245,569 | <p>How do you properly ensure that a user isnt tampering with querystring values or action url values? For example, you might have a Delete Comment action on your CommentController which takes a CommentID. The action url might look like /Comments/Delete/3 to delete the comment with the id 3.</p>
<p>Now obviously you d... | [
{
"answer_id": 245692,
"author": "Schotime",
"author_id": 29376,
"author_profile": "https://Stackoverflow.com/users/29376",
"pm_score": 1,
"selected": false,
"text": "[AcceptVerbs(HttpVerbs.Post)]\npublic ActionResult Delete(int? id)\n{\n //Delete\n}\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10941/"
] |
245,584 | <p>What is the coolest <strong>somewhat practical</strong> metaprogramming hack you've done or seen done in the D programming language? Somewhat practical means excluding, for example, the compile-time raytracer.</p>
| [
{
"answer_id": 247766,
"author": "FeepingCreature",
"author_id": 59044,
"author_profile": "https://Stackoverflow.com/users/59044",
"pm_score": 3,
"selected": false,
"text": "template ElemType(T) {\n alias typeof((function() {\n foreach (elem; Init!(T)) return elem; assert(false);\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23903/"
] |
245,592 | <p>In DB2, you can name a column ORDER and write SQL like</p>
<pre><code>SELECT ORDER FROM tblWHATEVER ORDER BY ORDER
</code></pre>
<p>without even needing to put any special characters around the column name. This is causing me pain that I won't get into, but my question is: why do databases allow the use of SQL k... | [
{
"answer_id": 247503,
"author": "kristof",
"author_id": 3241,
"author_profile": "https://Stackoverflow.com/users/3241",
"pm_score": 1,
"selected": false,
"text": "create table [order](\nid int,\n[order] varchar(50) )\n select \n [order] \nfrom \n [order]\norder by [order]\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14606/"
] |
245,600 | <p>In an information security lab I'm working on, I've been tasked with executing multiple commands with a single call to "system()" (written in C, running on Fedora). What is the syntax that will allow me to execute more than command through system()? (The idea being you could execute arbitrary commands through a pr... | [
{
"answer_id": 245608,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 5,
"selected": true,
"text": "; command1; command2; command3\n && ;"
},
{
"answer_id": 245609,
"author": "paxdiablo",
"author_id": ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28076/"
] |
245,607 | <p>I didn't attend PDC 2008, but I heard some news that C# 4.0 is announced to support Generic covariance and contra-variance. That is, <code>List<string></code> can be assigned to <code>List<object></code>. How could that be?</p>
<p>In Jon Skeet's book <strong><em>C# in Depth</em></strong>, it is explaine... | [
{
"answer_id": 246101,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 8,
"selected": true,
"text": "List<Banana> List<Fruit> in out IEnumerable<T> IEnumerable<out T> IEnumerable<string> IEnumerable<object> Action<T> T Act... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26349/"
] |
245,614 | <p>Okay still fighting with doing some SqlCacheDependecy in my Asp.net MVC application</p>
<p>I got this piece of code from Microsoft to cache LINQtoSQL, basically what it does is it gets the SqlCommand text from the LINQ query and executes that via the System.Data.SqlClient.SqlCommand which SqlDependecy needs...</p>
... | [
{
"answer_id": 245665,
"author": "Aaron Powell",
"author_id": 11388,
"author_profile": "https://Stackoverflow.com/users/11388",
"pm_score": 2,
"selected": true,
"text": "@something p# #"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22093/"
] |
245,624 | <p>Are there any 'standard' plugins for detecting the CPU architecture in <strong>scons</strong>? </p>
<p>BTW, this question was asked already <a href="https://stackoverflow.com/questions/152016/detecting-cpu-architecture-compile-time">here</a> in a more general form... just wondering if anyone has already taken the t... | [
{
"answer_id": 418719,
"author": "dsvensson",
"author_id": 5962,
"author_profile": "https://Stackoverflow.com/users/5962",
"pm_score": 2,
"selected": false,
"text": "env = Environment()\nconf = Configure(env)\nif conf.CheckDeclaration(\"__i386__\"):\n conf.Define(\"MY_ARCH\", \"blahbl... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14069/"
] |
245,628 | <pre><code>template <class T>
bool BST<T>::search(const T& x, int& len) const
{
return search(BT<T>::root, x);
}
template <class T>
bool BST<T>::search(struct Node<T>*& root, const T& x)
{
if (root == NULL)
return false;
else
{
if (ro... | [
{
"answer_id": 245636,
"author": "oz10",
"author_id": 14069,
"author_profile": "https://Stackoverflow.com/users/14069",
"pm_score": 3,
"selected": true,
"text": "bool BST<T>::search(struct Node<T>*& root, const T& x) bool BST<T>::search(struct Node<T>*& root, const T& x) const struct Nod... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28392/"
] |
245,654 | <p>My database consists of 3 tables (one for storing all items, one for the tags, and one for the relation between the two):</p>
<p>Table: Post
Columns: PostID, Name, Desc</p>
<p>Table: Tag
Columns: TagID, Name</p>
<p>Table: PostTag
Columns: PostID, TagID</p>
<p>What is the best way to save a space separated string... | [
{
"answer_id": 245757,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 1,
"selected": false,
"text": "tag.id = 1; tag.name = 'smart'\ntag.id = 2; tag.name = 'funny'\ntag.id = 3; tag.name = 'wonderful'\n"
},
{
"answe... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27163/"
] |
245,666 | <p>When I'm using an If statement and I want to check if a boolean is false should I use the "Not" keyword or just = false, like so</p>
<pre><code>If (Not myboolean) then
</code></pre>
<p>vs</p>
<pre><code>If (myboolean = False) then
</code></pre>
<p>Which is better practice and more readable?</p>
| [
{
"answer_id": 245674,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 6,
"selected": true,
"text": " if (node.HasChildren)\n"
},
{
"answer_id": 245890,
"author": "Adam Liss",
"author_id": 29157,
"au... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
245,677 | <p>Many examples of macros seem to be about hiding lambdas, e.g. with-open-file in CL. I'm looking for some more exotic uses of macros, particularly in PLT Scheme. I'd like to get a feel for when to consider using a macro vs. using functions.</p>
| [
{
"answer_id": 247229,
"author": "Nathan Shively-Sanders",
"author_id": 7851,
"author_profile": "https://Stackoverflow.com/users/7851",
"pm_score": 4,
"selected": true,
"text": "define-syntax (define-syntax [: x]\n (syntax-case x ()\n ([src-: e es ...]\n (syntax-case (datum->synt... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28604/"
] |
245,698 | <p>This is similar to <a href="https://stackoverflow.com/questions/105212/linux-recursively-list-all-files-in-a-directory-including-files-in-symlink-dire">this question</a>, but I want to include the path relative to the current directory in unix. If I do the following:</p>
<pre><code>ls -LR | grep .txt
</code></pre>
... | [
{
"answer_id": 245710,
"author": "Jonathan Adelson",
"author_id": 8092,
"author_profile": "https://Stackoverflow.com/users/8092",
"pm_score": 5,
"selected": false,
"text": "find find [start directory] -name [what to find] find . -name \"*.txt\""
},
{
"answer_id": 245712,
"aut... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
245,709 | <p>When running PHP in CLI mode, <em>most</em> of the time (not always), the script will hang at the end of execution for about 5 seconds and then output this:</p>
<blockquote>
<p><code>Error in my_thread_global_end(): 1 threads didn't exit</code></p>
</blockquote>
<p>It doesn't seem to actually have any effect on ... | [
{
"answer_id": 245824,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 0,
"selected": false,
"text": "Whenever a new thread is created libmysql is told about that by Windows. It then \nincreases a thread counter and initializ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
245,725 | <p>I am building a simple Django app that will use scribd to display documents. I would like to have a page where the administrator can upload documents to scribd through the website, since I need to know a few things about it before it gets to scribd. What is the best/easiest way to do this, display an upload page and... | [
{
"answer_id": 245821,
"author": "Parand",
"author_id": 13055,
"author_profile": "https://Stackoverflow.com/users/13055",
"pm_score": 3,
"selected": true,
"text": "request.FILES['file']"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/85/"
] |
245,727 | <p>I have one website on my server, and my IIS Worker Process is using 4GB RAM consistently. What should I be checking?</p>
<pre><code>c:\windows\system32\inetsrv\w3wp.exe
</code></pre>
| [
{
"answer_id": 245758,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "using Using"
},
{
"answer_id": 245876,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16794/"
] |
245,735 | <p>By which I mean this:</p>
<p>Given the input set of numbers: </p>
<p>1,2,3,4,5 becomes "1-5".</p>
<p>1,2,3,5,7,9,10,11,12,14 becomes "1-3, 5, 7, 9-12, 14"</p>
<p>This is the best I managed to come up with: [C#]</p>
<p><em>Which feels a little sloppy to me, so the question is, is there somehow more readable and/... | [
{
"answer_id": 245788,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 5,
"selected": true,
"text": " public static string[] FormatInts(int[] ints)\n {\n Array.Sort<int>(ints);\n List<string> v... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15409/"
] |
245,740 | <p>For example, when I'm dividing two ints and want a float returned, I superstitiously write something like this:</p>
<pre><code>int a = 2, b = 3;
float c = (float)a / (float)b;
</code></pre>
<p>If I do not cast <code>a</code> and <code>b</code> to floats, it'll do integer division and return an int.</p>
<p>Similar... | [
{
"answer_id": 245746,
"author": "wilhelmtell",
"author_id": 456,
"author_profile": "https://Stackoverflow.com/users/456",
"pm_score": 2,
"selected": false,
"text": "#include <iostream>\n#include <limits>\n\nusing namespace std;\nint main()\n{\n signed int a = numeric_limits<signed in... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/813/"
] |
245,742 | <p>In this thread, we look at examples of good uses of <code>goto</code> in C or C++. It's inspired by <a href="https://stackoverflow.com/questions/244445/best-refactoring-for-the-dreaded-while-true-loop#244644">an answer</a> which people voted up because they thought I was joking.</p>
<p>Summary (label changed from ... | [
{
"answer_id": 245745,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 3,
"selected": false,
"text": "// No Code\n"
},
{
"answer_id": 245759,
"author": "fizzer",
"author_id": 18167,
"author_profile": "https... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18167/"
] |
245,747 | <p>In SQL Server given a Table/View how can you generate a definition of the Table/View in the form:</p>
<blockquote>
<p>C1 int,<br>
C2 varchar(20),<br>
C3 double</p>
</blockquote>
<p>The information required to do it is contained in the meta-tables of SQL Server but is there a standard script / IDE faciltity t... | [
{
"answer_id": 245935,
"author": "Ady",
"author_id": 31395,
"author_profile": "https://Stackoverflow.com/users/31395",
"pm_score": 0,
"selected": false,
"text": "select top 0\n *\ninto\n newtable\nfrom\n mytable\n"
},
{
"answer_id": 246435,
"author": "John Lemp",
"auth... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
245,765 | <p>For example, using the answer for this question: </p>
<p><a href="https://stackoverflow.com/questions/152024/how-to-select-all-users-who-made-more-than-10-submissions">How to select all users who made more than 10 submissions</a>
"How to select all users who made more than 10 submissions."</p>
<pre><code>select us... | [
{
"answer_id": 245769,
"author": "Dave Neeley",
"author_id": 9660,
"author_profile": "https://Stackoverflow.com/users/9660",
"pm_score": 2,
"selected": false,
"text": "select @@ROWCOUNT \n"
},
{
"answer_id": 245776,
"author": "BQ.",
"author_id": 4632,
"author_profile"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
245,766 | <p>In a fictitious web application ...</p>
<ol>
<li>The user clicks a link </li>
<li>The server starts to prepare the response, but it takes several seconds</li>
<li>The user cancels the page load</li>
</ol>
<p>What happens to the request?
Does the server continue to prepare the response?
Does the response arrive t... | [
{
"answer_id": 245795,
"author": "Jack Leow",
"author_id": 31506,
"author_profile": "https://Stackoverflow.com/users/31506",
"pm_score": 4,
"selected": true,
"text": "java.net.SocketException: Connection reset by peer: socket write error\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14755/"
] |
245,768 | <p>What I want to do is scroll down the window when I expand elements in my page. </p>
<p>The effect I am trying to achieve is like the Stack Overflow comments. If it expands beyond the page, it scrolls down to fit all the comments in the window.</p>
<p>What is the best way of doing this?</p>
<p>Edit: I am using JQu... | [
{
"answer_id": 245778,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 0,
"selected": false,
"text": "$(element).scrollTo() window.scrollTop window.scrollLeft"
},
{
"answer_id": 246624,
"author": "Diodeus ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/131/"
] |
245,783 | <p>Like, let's say I had a tree structure, then I would use, naturally a tree control, since that GUI element maps perfectly to the structure.</p>
<p>But what I have is a graph, potentially too wide to fit in one web page. I can't think of examples of GUIs that really match the structure. Some ideas I have that don'... | [
{
"answer_id": 245796,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 2,
"selected": false,
"text": "<canvas> <canvas>"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
245,787 | <p>Whenever I run any jython program in Eclipse, I got the following error in the beginning of the output: </p>
<blockquote>
<p>" Failed to
get environment, environ will be
empty: (0, 'Failed to execute command
([\'sh\', \'-c\', \'env\']):
java.io.IOException: Cannot run
program "sh": Crea teProcess error=... | [
{
"answer_id": 246176,
"author": "Blauohr",
"author_id": 22176,
"author_profile": "https://Stackoverflow.com/users/22176",
"pm_score": 3,
"selected": true,
"text": "# python.os determines operating-specific features, similar to and overriding the\n# Java property \"os.name\".\n# Some gen... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32267/"
] |
245,792 | <p>This is rather the inverse of <a href="https://stackoverflow.com/questions/102535/what-can-you-use-python-generator-functions-for">What can you use Python generator functions for?</a>: python generators, generator expressions, and the <code>itertools</code> module are some of my favorite features of python these day... | [
{
"answer_id": 245797,
"author": "Steven Huwig",
"author_id": 28604,
"author_profile": "https://Stackoverflow.com/users/28604",
"pm_score": 4,
"selected": false,
"text": "zip izip range xrange range xrange zip izip list(frob(x) for x in foo)"
},
{
"answer_id": 247527,
"author... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18950/"
] |
245,798 | <p>I use screen to persist my work session and connect to the same session from multiple machines. How can I setup SSH and screen such that the XDISPLAY variable <em>inside</em> my persistent screen session is always set to the machine I am currently connecting from?</p>
<p>ie. I start the screen session at work and u... | [
{
"answer_id": 246046,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 2,
"selected": false,
"text": "XDISPLAY PROMPT_COMMAND X11vnc Xvnc"
},
{
"answer_id": 670984,
"author": "rampion",
"author_id": 9859,... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26715/"
] |
245,802 | <p>I am using fscanf to read a file which has lines like<br>
Number <-whitespace-> string <-whitespace-> optional_3rd_column </p>
<p>I wish to extract the number and string out of each column, but ignore the 3rd_column if it exists</p>
<p>Example Data:<br>
12 foo something<br>
03 bar<br>
24 something #rand... | [
{
"answer_id": 245845,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 4,
"selected": false,
"text": "%*s %d gets() sscanf() while(scanf(\"%d %s%*[^\\n]\", &num, &word) == 2)\n{ \n assign stuff \n} [^\\n] * %s %*[\\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25990/"
] |
245,803 | <p>I have recently discovered the incredibly useful <a href="http://www.eclipse.org/mat/" rel="nofollow noreferrer">Eclipse Memory Analysis Tool</a>, which makes quick work of finding memory leaks in Java applications. Unfortunately, after switching my JDK to 1.6 (under Mac OS 10.5), the JVM terminates immediately upo... | [
{
"answer_id": 246883,
"author": "Turismo",
"author_id": 5271,
"author_profile": "https://Stackoverflow.com/users/5271",
"pm_score": 3,
"selected": true,
"text": "eclipse -vm <path to java>\n <!-- to use a specific Java version (instead of the platform's default) uncomment one of the fol... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9931/"
] |
245,825 | <p>What does <code>InitializeComponent()</code> do, and how does it work in WPF?</p>
<p>In general first, but I would especially be interested to know the gory details of order of construction, and what happens when there are Attached Properties.</p>
| [
{
"answer_id": 245881,
"author": "Brad Leach",
"author_id": 708,
"author_profile": "https://Stackoverflow.com/users/708",
"pm_score": 8,
"selected": true,
"text": "InitializeComponent() Window UserControl Window UserControl System.Windows.Application.LoadComponent() LoadComponent() LoadC... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/234288/"
] |
245,827 | <p>I have a legacy app where it reads message from a client program from file descriptor 3. This is an external app so I cannot change this. The client is written in C#. How can we open a connection to a specific file descriptor in C#? Can we use something like AnonymousPipeClientStream()? But how do we specify the fil... | [
{
"answer_id": 493768,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": 3,
"selected": false,
"text": "// nativeHandle is the WINAPI handle you have acquired with the P/Invoke call\nSafeFileHandle safeHandle = new SafeFil... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
245,834 | <p>I usually hate posting these types of questions as normally I find that the best way to really learn is to figure out the answer yourself. </p>
<p>However, I need an answer to this question really quickly as I have a client who can't run her business due to this problem.</p>
<p>Yesterday my ASP.NET host provider m... | [
{
"answer_id": 270736,
"author": "Mun",
"author_id": 775,
"author_profile": "https://Stackoverflow.com/users/775",
"pm_score": 3,
"selected": false,
"text": "<trust level=\"Full\" />\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26300/"
] |
245,835 | <p>I have a site behind basic authentication (IIS6).</p>
<p>Part of this site calls a web service that is also part of the site and thus behind basic authentication as well.</p>
<p>However, when this happens the calling code receives a 401 Authentication Error.</p>
<p>I've tried a couple of things, with the general ... | [
{
"answer_id": 245946,
"author": "Ady",
"author_id": 31395,
"author_profile": "https://Stackoverflow.com/users/31395",
"pm_score": 0,
"selected": false,
"text": "s.Credentials = System.Net.CredentialCache.DefaultCredentials(); s.Credentials = HttpContext.Current.User.Identity;"
},
{
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364/"
] |
245,838 | <p>Ok so I thought it was fixed, but I'm getting totally inconsistent results.
I rewrote it kind of from scratch to start fresh and here are my results. I get no errors, no crashing, it just doesn't remove them. It just totally messes up the tree and gives me a ton more leaves, and mixes everything up. Not sure wher... | [
{
"answer_id": 245883,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 0,
"selected": false,
"text": "remove() parent root data remove"
},
{
"answer_id": 245928,
"author": "Greg Rogers",
"author_id": 59... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28392/"
] |
245,840 | <p>Is there any way of batch renaming files in sub directories?</p>
<p>For example:</p>
<p>Rename <code>*.html</code> to <code>*.htm</code> in a folder which has directories and sub directories.</p>
| [
{
"answer_id": 245854,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 3,
"selected": false,
"text": "for x in $(find . -name \\*.html); do\n mv $x $(echo \"$x\" | sed 's/\\.html$/.htm/')\ndone\n"
},
{
"answer... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12178/"
] |
245,856 | <p>For general code, do I really need to dispose an object? Can I just ignore it for the most part or is it a good idea to always dispose an object when your 100% sure you don't need it anymore? </p>
| [
{
"answer_id": 245863,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 4,
"selected": false,
"text": "using (SqlCommand cmd = new SqlCommand(conn)) {\n cmd.ExecuteNonQuery();\n}\n"
},
{
"answer_id": 245865,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
245,866 | <p>Given a System.Timers.Timer, is there a way from the main thread to tell if the worker thread running the elapsed event code is still running?</p>
<p>In other words, how can one make sure the code running in the worker thread is not currently running before stopping the timer or the main app/service thread the time... | [
{
"answer_id": 246013,
"author": "sliderhouserules",
"author_id": 31385,
"author_profile": "https://Stackoverflow.com/users/31385",
"pm_score": 2,
"selected": true,
"text": "// main thread owns this\nprivate List<ManualResetEvent> _resetEvents;\n...\n// main thread does this to wait for ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91911/"
] |
245,868 | <p>I have seen the following methods of putting JavaScript code in an <code><a></code> tag:</p>
<pre><code>function DoSomething() { ... return false; }
</code></pre>
<ol>
<li><code><a href="javascript:;" onClick="return DoSomething();">link</a></code></li>
<li><code><a href="javascript:DoSomethin... | [
{
"answer_id": 245886,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 3,
"selected": false,
"text": "addEventListener attachEvent href <a> <button>"
},
{
"answer_id": 245888,
"author": "nickf",
"autho... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
245,878 | <p>So if I have to choose between a hash table or a prefix tree what are the discriminating factors that would lead me to choose one over the other. From my own naive point of view it seems as though using a trie has some extra overhead since it isn't stored as an array but that in terms of run time (assuming the longe... | [
{
"answer_id": 26404720,
"author": "user3391564",
"author_id": 3391564,
"author_profile": "https://Stackoverflow.com/users/3391564",
"pm_score": 3,
"selected": false,
"text": "O(k) k"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9401/"
] |
245,882 | <p>I have a vba macro which runs a loop for about 200 iterations, using up the ram page file as it runs.</p>
<p>I need some kind of quick fix to clear the page file after every iteration. I know the best fix would be to clean up the code, but time is a constraint here.</p>
| [
{
"answer_id": 245921,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 2,
"selected": false,
"text": "Nothing"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
245,916 | <p>What is the best way to extract the MAC address from <code>ifconfig</code>'s output?</p>
<p>Sample output:</p>
<pre><code>bash-3.00# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 1F:2E:19:10:3B:52
inet addr:127.0.0.66 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST RUN... | [
{
"answer_id": 245923,
"author": "albertb",
"author_id": 26715,
"author_profile": "https://Stackoverflow.com/users/26715",
"pm_score": 3,
"selected": false,
"text": "ifconfig eth0 | awk '/HWaddr/ {print $5}'\n"
},
{
"answer_id": 245925,
"author": "Robert Gamble",
"author_... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29405/"
] |
245,929 | <p>Some APIs, like the WebClient, use the <a href="http://msdn.microsoft.com/en-us/library/wewwczdw.aspx" rel="nofollow noreferrer">Event-based Async pattern</a>. While this looks simple, and probably works well in a loosely coupled app (say, BackgroundWorker in a UI), it doesn't chain together very well. </p>
<p>For ... | [
{
"answer_id": 246310,
"author": "Tim Robinson",
"author_id": 32133,
"author_profile": "https://Stackoverflow.com/users/32133",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Net;\n\nclass Program\n{\n static void onEx(Excepti... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27012/"
] |
245,932 | <p>i would like to release a snapshot project 'foo-1.0-SNAPSHOT' using the maven release plugin. The project depends on a 3rd party module 'bar-1.0-SNAPSHOT' which is not released yet.
I use the option 'allowTimestampedSnapshots' in my project's pom.xml to allow timestamped snapshots but i assume that the 3rd party mod... | [
{
"answer_id": 3959507,
"author": "Stevo Slavić",
"author_id": 381140,
"author_profile": "https://Stackoverflow.com/users/381140",
"pm_score": 7,
"selected": false,
"text": "allowTimestampedSnapshots ignoreSnapshots -DignoreSnapshots=true"
},
{
"answer_id": 5964197,
"author":... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32279/"
] |
245,947 | <p>I have <code>www.example.com</code> and also <code>store.example.com</code>.
(Yes they are subdomains of the same parent domain)</p>
<p><code>store.example.com</code> is on ASP.NET 1.1</p>
<p><code>www.example.com</code> is on ASP.NET 3.5</p>
<p>I want to know what options are available for sharing 'session' data... | [
{
"answer_id": 1271463,
"author": "TWith2Sugars",
"author_id": 35389,
"author_profile": "https://Stackoverflow.com/users/35389",
"pm_score": 3,
"selected": false,
"text": " <machineKey decryptionKey=\"EDCDA6DF458176504BBCC720A4E29348E252E652591179E2\" validationKey=\"CC482ED6B5D356981... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
245,956 | <p>How do you go about finding unused icons, images, strings in .resx files that may have become 'orphaned' and are no longer required?</p>
| [
{
"answer_id": 246024,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 4,
"selected": true,
"text": "grep sed"
},
{
"answer_id": 13786472,
"author": "Uwe Keim",
"author_id": 107625,
"author_profile": ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3849/"
] |
245,957 | <pre><code>void f(cli::array<PointF> ^points){
PointF& a = points[0];
// and so on...
}
</code></pre>
<p>Compile error at line 2. </p>
<pre><code>.\ndPanel.cpp(52) : error C2440: 'initializing' : cannot convert from 'System::Drawing::PointF' to 'System::Drawing::PointF &'
An object from ... | [
{
"answer_id": 245981,
"author": "Bogdan Maxim",
"author_id": 23795,
"author_profile": "https://Stackoverflow.com/users/23795",
"pm_score": 1,
"selected": false,
"text": "gcroot vcclr.h // mcpp_gcroot.cpp\n// compile with: /clr\n#include <vcclr.h>\nusing namespace System;\n\nclass CppCla... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45603/"
] |
245,963 | <p>I have to refactor a large C# application, and I found a lot of functions that are never used. How can I check for unused code, so I can remove all the unused functions?</p>
| [
{
"answer_id": 3619324,
"author": "Patrick from NDepend team",
"author_id": 27194,
"author_profile": "https://Stackoverflow.com/users/27194",
"pm_score": 4,
"selected": false,
"text": "// <Name>Dead Methods</Name>\nwarnif count > 0 \nfrom m in Application.Methods where !m.MethodsCallingM... | 2008/10/29 | [
"https://Stackoverflow.com/questions/245963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22562/"
] |
245,972 | <p>Why does using Fiddler break my site sometimes on page transitions.</p>
<p>After a server side redirect -- in the http response (as found in Fiddler) I get this:</p>
<p>Object moved</p>
<h2>Object moved to here.</h2>
<p></p>
<p>The site is an ASP.NET 1.1 / VB.NET 1.1 [sic] site. </p>
<p>Why doesnt Fiddler just... | [
{
"answer_id": 5383982,
"author": "ucla",
"author_id": 670204,
"author_profile": "https://Stackoverflow.com/users/670204",
"pm_score": 1,
"selected": false,
"text": "Server.Transfer(\"newpage.aspx\", true);\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/245972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
246,007 | <p>When I type <code>uname -a</code>, it gives the following output.</p>
<pre><code>Linux mars 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux
</code></pre>
<p>How can I know from this that the given OS is 32 or 64 bit?</p>
<p>This is useful when writing <code>configure</code> script... | [
{
"answer_id": 246012,
"author": "Thomas Watnedal",
"author_id": 4059,
"author_profile": "https://Stackoverflow.com/users/4059",
"pm_score": 7,
"selected": false,
"text": "uname -m\n getconf LONG_BIT\n"
},
{
"answer_id": 246014,
"author": "VonC",
"author_id": 6309,
"a... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11602/"
] |
246,011 | <p>I'm rather confused about this. </p>
<p>And what's their relationship(e.g., how one can be used in the context of the other)? Much thanks!!</p>
| [
{
"answer_id": 246056,
"author": "Daniel Rikowski",
"author_id": 23368,
"author_profile": "https://Stackoverflow.com/users/23368",
"pm_score": 0,
"selected": false,
"text": "typdef static final const"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21464/"
] |
246,017 | <p>I have an oc4j installation bereft of any release notes or version documentation. In the absence of such documents, how do I know for sure, which version of oc4j I am using?</p>
| [
{
"answer_id": 246034,
"author": "Maglob",
"author_id": 27520,
"author_profile": "https://Stackoverflow.com/users/27520",
"pm_score": 4,
"selected": true,
"text": "wget -S <url-to-server>\ncurl -I <url-to-server>\n Server: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server\n"
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11602/"
] |
246,028 | <p>I'm using the MVP pattern in a windows form app. I need to change a radio button on the view. I can do this by exposing a Boolean property on the view, but should I be using events to manipulate the view instead?</p>
| [
{
"answer_id": 246032,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 2,
"selected": false,
"text": "RadioButtonVisibilityChanged EventArgs"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,038 | <p>What is the best way to unit test a method that doesn't return anything? Specifically in c#.</p>
<p>What I am really trying to test is a method that takes a log file and parses it for specific strings. The strings are then inserted into a database. Nothing that hasn't been done before but being VERY new to TDD I am... | [
{
"answer_id": 246060,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 8,
"selected": true,
"text": "void DeductFromBalance( dAmount ) \n void OnAccountDebit( dAmount ) // emails account holder with info\n string[] ExamineLogFi... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/831/"
] |
246,041 | <p>Actually I try to find a subclass of InputStream which is also Serializable. I think that doesn't exist. Since both Interfaces have many sublclasses it is hard to find one that is a subclass of both.</p>
<p>Until now I haven't found anything to help my search in Eclipse. Anyone ideas?</p>
<p>Edit: I understand now... | [
{
"answer_id": 25975994,
"author": "Andrejs",
"author_id": 1180621,
"author_profile": "https://Stackoverflow.com/users/1180621",
"pm_score": 0,
"selected": false,
"text": "Set<Class<? extends Serializable>> subTypes = \n reflections.getSubTypesOf(Serializable.class);\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15108/"
] |
246,058 | <p>I got this error when trying to update an image.
It was a cross-thread update, but I used .Invoke(), so that shouldn't be the problem, should it.</p>
| [
{
"answer_id": 246064,
"author": "Benjol",
"author_id": 11410,
"author_profile": "https://Stackoverflow.com/users/11410",
"pm_score": 4,
"selected": true,
"text": "var x = this.Handle; \n"
},
{
"answer_id": 246098,
"author": "Marc Gravell",
"author_id": 23354,
"author... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11410/"
] |
246,068 | <p>I know about "class having a single reason to change". Now, what is that exactly? Are there some smells/signs that could tell that class does not have a single responsibility? Or could the real answer hide in YAGNI and only refactor to a single responsibility the first time your class changes?</p>
| [
{
"answer_id": 246079,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 5,
"selected": false,
"text": "CoffeeAndSoupFactory HotWaterGenerator Stirrer CoffeeFactory SoupFactory Coffee Soup"
},
{
"answer_id": 317331... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6846/"
] |
246,077 | <p>For example VK_LEFT, VK_DELETE, VK_ESCAPE, VK_RETURN, etc. How and where are they declared? Are they constants, #defines, or something else? Where do they come from?</p>
<p>If possible, please provide a file name/path where they are declared. Or some other info as specific as possible.</p>
| [
{
"answer_id": 246084,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 3,
"selected": true,
"text": "#define winuser.h C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Include\\WinUser.h\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9403/"
] |
246,091 | <p>The problem is very simple. An object needs to notify some events that might be of interest to observers.</p>
<p>When I sat to validate a design that I cooked up now in Ruby just to validate it.. I find myself stumped as to how to implement the object events. In .Net this would be a one-liner.. .Net also does handl... | [
{
"answer_id": 246245,
"author": "janm",
"author_id": 7256,
"author_profile": "https://Stackoverflow.com/users/7256",
"pm_score": 3,
"selected": false,
"text": "class EventBase\n def initialize\n @listeners = Hash.new\n end\n\n def listen_event(name, *func, &p)\n i... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1695/"
] |
246,097 | <p>I guess this is a multi-part question. I am building a membership site and want to have the accounts as international as possible.</p>
<ol>
<li><p>What is the best way to collect phone numbers on a form that allows for international numbers? I'm not worried about storing them, just collection and validation. What... | [
{
"answer_id": 246147,
"author": "kender",
"author_id": 4172,
"author_profile": "https://Stackoverflow.com/users/4172",
"pm_score": 0,
"selected": false,
"text": "[0-9]{2}-[0-9]{3}"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27580/"
] |
246,112 | <p>We are using LINQ very widely in our system. Particularly LINQ-to-objects. So in some places we end up having a LINQ query in memory build up from some huge expressions. The problem comes when there's some bug in the expressions. So we get NullReferenceException and the stack trace leads us nowhere (to [Lightweight ... | [
{
"answer_id": 246132,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "IQueryable<T> Queryable >Where: x => ((x % 2) = 0)\n<Where: x => ((x % 2) = 0)\n>Count\n'WindowsFormsApplication2.vsho... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18001/"
] |
246,121 | <p>I have an Ant script that needs to checkout a directory from Subversion. This works using svnant/svnkit. However, Subversion access is authenticated, and I do not want to store my user password in a file.</p>
<p>Can I make svnkit pop up a password dialog?
Or even better, make it use the same credential caching tha... | [
{
"answer_id": 246378,
"author": "Thilo",
"author_id": 14955,
"author_profile": "https://Stackoverflow.com/users/14955",
"pm_score": 2,
"selected": false,
"text": " <target name=\"checkout\">\n <input\n message=\"Please enter subversion password for ${username}:\"\n addp... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14955/"
] |
246,127 | <p>Why is <code>volatile</code> needed in C? What is it used for? What will it do?</p>
| [
{
"answer_id": 246139,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 6,
"selected": false,
"text": "volatile"
},
{
"answer_id": 246144,
"author": "Manoj Doubts",
"author_id": 31116,
"author_profile": "htt... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,130 | <p>I'm working on a eclipse plug-in and I've tried to create another test project seperate from the plug-in. The reason I do this is to not let the plug-in depend on jUnit when it is exported. However, I can't access the Eclipse Plug-in API when I do the testing. Whenever I try to add Plug-in dependencies the import li... | [
{
"answer_id": 246179,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 0,
"selected": false,
"text": "<natures>\n\n <nature>org.eclipse.pde.PluginNature</nature>\n [...]\n</natures>\n <classpath>\n [...]\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3713/"
] |
246,137 | <p>Im a coding a library including textual feedback that I need to translate.</p>
<p>I put the following lines in a <code>_config.py</code> module that I import everywhere in my app :</p>
<pre><code>import gettext, os, sys
pathname = os.path.dirname(sys.argv[0])
localdir = os.path.abspath(pathname) + "/locale"
gettex... | [
{
"answer_id": 398420,
"author": "runeh",
"author_id": 2906,
"author_profile": "https://Stackoverflow.com/users/2906",
"pm_score": 3,
"selected": true,
"text": "_() import gettext\n\nclass MyClass(object):\n def __init__(self, locale_for_instance):\n self.lang = gettext.transla... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9951/"
] |
246,143 | <p>this is my old code</p>
<hr>
<pre><code> protected override bool OnPreAction(string actionName, System.Reflection.MethodInfo methodInfo)
{
if ("|Register|RegisterPage|Login|LoginPage|Logout|Service".ToLower().Contains(actionName.ToLower()))
{
return base.OnPreAction(actionName, m... | [
{
"answer_id": 246778,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 5,
"selected": true,
"text": "string actionName = (string)filterContext.RouteData.Values[\"action\"];\n"
},
{
"answer_id": 521437,
"author... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31966/"
] |
246,159 | <p>In the recent project, we had an issue with the performance of few queries that relied heavily on ordering the results by datetime field (MSSQL 2008 database).</p>
<p>When we executed the queries with ORDER BY RecordDate DESC (or ASC) the queries executed 10x slower than without that. Ordering by any other field di... | [
{
"answer_id": 246164,
"author": "Eoin Campbell",
"author_id": 30155,
"author_profile": "https://Stackoverflow.com/users/30155",
"pm_score": 1,
"selected": false,
"text": "ALTER TABLE dbo.MyTable ADD TickCount BigInt Null\n\nUpdate dbo.MyTable Set TickCount = CLRFunction(DateTimeColumn)\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,162 | <p>can we output a .jpg image or .gif image in C? <p>I mean can we print a picture as output with the help of a C program?<p>Aslo can we write a script in C language for HTML pages as can be written in JavaScript? <p>Can the browsers operate on it?<p>If not possible is there any plugin for any of the browsers?
<p>Any e... | [
{
"answer_id": 246174,
"author": "Adam Pierce",
"author_id": 5324,
"author_profile": "https://Stackoverflow.com/users/5324",
"pm_score": 3,
"selected": true,
"text": "#include <stdio.h>\n\nmain()\n{\n char *pageTitle = \"Look, a JPEG!\";\n char *urlImage = \"/myimage.jpeg\";\n\n// S... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31116/"
] |
246,172 | <p>Our app is made up of several Modules, and we would like to take advantage of the XP feature that would allow these to be grouped together. For example all windows in "Module A" would be grouped together, separately from windows in "Module B". </p>
<p>I've tried setting the AssemblyTitle attribute in the
project's... | [
{
"answer_id": 246187,
"author": "Eoin Campbell",
"author_id": 30155,
"author_profile": "https://Stackoverflow.com/users/30155",
"pm_score": 0,
"selected": false,
"text": "[assembly: AssemblyDescription(\"MyAssemblyDescription\")]\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7140/"
] |
246,192 | <p>Instead of hardcoding the default @author template I would like Eclipse to use user's real name taken from account information (in Linux - but Windows solution is also welcome). Entering it somewhere into Eclipse configuration would be acceptable, too, alas I can't find the right place.</p>
| [
{
"answer_id": 246264,
"author": "Davide Inglima",
"author_id": 32041,
"author_profile": "https://Stackoverflow.com/users/32041",
"pm_score": 9,
"selected": true,
"text": "user.name eclipse.ini -showsplash\norg.eclipse.platform\n--launcher.XXMaxPermSize\n256M\n-vmargs\n-Dosgi.requiredJav... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29576/"
] |
246,193 | <p>While working on a project, I came across a JS-script created by a former employee that basically creates a report in the form of</p>
<pre><code>Name : Value
Name2 : Value2
</code></pre>
<p>etc.</p>
<p>The peoblem is that the values can sometimes be floats (with different precision), integers, or even in the form... | [
{
"answer_id": 246203,
"author": "Aron Rotteveel",
"author_id": 11568,
"author_profile": "https://Stackoverflow.com/users/11568",
"pm_score": 4,
"selected": false,
"text": "Math.round(532.24) => 532\n"
},
{
"answer_id": 246447,
"author": "aemkei",
"author_id": 28150,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18673/"
] |
246,211 | <p>What is the default capacity of a <code>StringBuilder</code>?</p>
<p>And when should (or shouldn't) the default be used?</p>
| [
{
"answer_id": 246218,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": -1,
"selected": false,
"text": "StringList StringCollection ArrayList List<string> T[] ArrayList Add List<T>"
},
{
"answer_id": 246465,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1755/"
] |
246,215 | <p>I am writing a shell script that takes file paths as input.</p>
<p>For this reason, I need to generate recursive file listings with full paths. For example, the file <code>bar</code> has the path:</p>
<pre><code>/home/ken/foo/bar
</code></pre>
<p>but, as far as I can see, both <code>ls</code> and <code>find</code... | [
{
"answer_id": 246220,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 10,
"selected": true,
"text": "find find \"$(pwd)\" -name .htaccess\n $PWD find \"$PWD\" -name .htaccess\n find pwd -P"
},
{
"answer_id"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20074/"
] |
246,223 | <p>Is there any way to export data (not necessarily schema) to an access database via asp.net?</p>
<p>The server has no office components installed and the process must occur via a webpage (like an excel export).</p>
| [
{
"answer_id": 246959,
"author": "Eduardo Molteni",
"author_id": 2385,
"author_profile": "https://Stackoverflow.com/users/2385",
"pm_score": 3,
"selected": true,
"text": " 'select References from the Project Menu, choose the COM tab, \n 'and add a reference to Microsoft ADO Ext. 2.... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23230/"
] |
246,225 | <p>I need to create a midnight DateTime</p>
<p>I've just done this:</p>
<pre><code>DateTime endTime = DateTime.Now;
endTime.Subtract(endTime.TimeOfDay);
</code></pre>
<p>Haven't test it yet, I'm assuming it works but is there a better/cleaner way?</p>
| [
{
"answer_id": 246229,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 9,
"selected": true,
"text": "foo.Date DateTime.Today"
},
{
"answer_id": 246237,
"author": "WebDude",
"author_id": 15360,
"autho... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25462/"
] |
246,227 | <p>There's an option to hide the version so it will display only nginx, but is there a way to hide that too so it will not show anything or change the header?</p>
| [
{
"answer_id": 246294,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://Stackoverflow.com/users/11438",
"pm_score": 7,
"selected": true,
"text": "src/http/ngx_http_header_filter_module.c ## vi src/http/ngx_http_header_filter_module.c (lines 48 and 49)\nstatic char ng... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9789/"
] |
246,228 | <p>If I make a JFrame like this</p>
<pre><code>public static void main(String[] args) {
new JFrame().setVisible(true);
}
</code></pre>
<p>then after closing the window the appication doesn't stop (I need to kill it).</p>
<p>What is the proper way of showing application's main windows ?</p>
<p>I'd also like to... | [
{
"answer_id": 246234,
"author": "Burkhard",
"author_id": 12860,
"author_profile": "https://Stackoverflow.com/users/12860",
"pm_score": 6,
"selected": true,
"text": "setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); public static void main(String[] args) {\n Runnable guiCreator = new Ru... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24028/"
] |
246,232 | <p>I have the following text</p>
<pre><code>tooooooooooooon
</code></pre>
<p>According to this book I'm reading, when the <code>?</code> follows after any quantifier, it becomes non greedy.</p>
<p>My regex <code>to*?n</code> is still returning <code>tooooooooooooon</code>.</p>
<p>It should return <code>ton</code> s... | [
{
"answer_id": 246239,
"author": "Gareth",
"author_id": 31582,
"author_profile": "https://Stackoverflow.com/users/31582",
"pm_score": 7,
"selected": true,
"text": "toooooooonoooooon\n t.*n\n toooooooonoooooon\n t.*?n\n toooooooon\n"
},
{
"answer_id": 246244,
"author": "Vinko ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17211/"
] |
246,233 | <p>I'm trying to print to Dot Matrix printers (various models) out of C#, currently I'm using Win32 API (you can find alot of examples online) calls to send escape codes directly to the printer out of my C# application. This works great, but...</p>
<p>My problem is because I'm generating the escape codes and not relyi... | [
{
"answer_id": 249807,
"author": "alexandrul",
"author_id": 19756,
"author_profile": "https://Stackoverflow.com/users/19756",
"pm_score": 3,
"selected": false,
"text": "type file.txt > lpt1 NOTEPAD /P file.txt"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32305/"
] |
246,249 | <p>Is there any way to add iCal event to the iPhone Calendar from the custom App?</p>
| [
{
"answer_id": 3177284,
"author": "WoodenKitty",
"author_id": 2684342,
"author_profile": "https://Stackoverflow.com/users/2684342",
"pm_score": 7,
"selected": false,
"text": "#import \"EventTestViewController.h\"\n#import <EventKit/EventKit.h>\n\n@implementation EventTestViewController\n... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26980/"
] |
246,272 | <p>I have a problem with how ASP.Net generates the <strong>img</strong> tag.
I have a server control like this: </p>
<pre><code><asp:Image runat="server" ID="someWarning" ImageUrl="~/images/warning.gif" AlternateText="Warning" />
</code></pre>
<p>I expect it to generate this: </p>
<pre><code><img id="ctl00_... | [
{
"answer_id": 251353,
"author": "AaronS",
"author_id": 26932,
"author_profile": "https://Stackoverflow.com/users/26932",
"pm_score": 0,
"selected": false,
"text": "document.getElementById('<%=ddlCountry.ClientID%>').style.display = \"block\";\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/246272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2099426/"
] |
246,274 | <p>I want to be able to run a function in my firefox sidebar js file when the selected tab in the main content window is reloaded or changed. So the sidebar can change depending on the site the user is looking at. </p>
<p>Anyone able to point me in the right direction?</p>
| [
{
"answer_id": 301756,
"author": "user11198",
"author_id": 11198,
"author_profile": "https://Stackoverflow.com/users/11198",
"pm_score": 2,
"selected": false,
"text": "//add the load eventListener to the window object\nwindow.addEventListener(\"load\", function() { functioname.init(); },... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11198/"
] |
246,275 | <p>I am working on a git repository with a master branch and another the topic branch. I have switched to topic branch and modified a file. Now, if I switched to the master branch, that same file is shown as modified.</p>
<p>For example:</p>
<p>git status in git-build branch:</p>
<pre><code># On branch git-build
# Chan... | [
{
"answer_id": 246343,
"author": "Peter Burns",
"author_id": 101,
"author_profile": "https://Stackoverflow.com/users/101",
"pm_score": 5,
"selected": false,
"text": "git stash git stash #work saved\ngit checkout master\n#edit files\ngit commit\ngit checkout git-build\ngit stash apply #re... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25453/"
] |
246,280 | <p>I have seen a function whose prototype is:</p>
<pre><code>int myfunc(void** ppt)
</code></pre>
<p>This function is called in a C file as
a = myfunc(mystruct **var1);</p>
<p>where mystruct is typedef for one of structure we have. </p>
<p>This works without any compilation errors in MSVC6.0, But when I compil... | [
{
"answer_id": 246288,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 4,
"selected": true,
"text": "void** mystruct **var1;\nx = myfunc ((void**) var1);\n myfunc void** void*"
},
{
"answer_id": 246291,
"author... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2759376/"
] |
246,293 | <p>Is there any good practice related to dynamic_cast error handling (except not using it when you don't have to)? I'm wondering how should I go about NULL and bad_cast it can throw.
Should I check for both? And if I catch bad_cast or detect NULL I probably can't recover anyway...
For now, I'm using assert to check if ... | [
{
"answer_id": 246313,
"author": "Johann Gerell",
"author_id": 6345,
"author_profile": "https://Stackoverflow.com/users/6345",
"pm_score": 1,
"selected": false,
"text": "dynamic_cast std::bad_cast"
},
{
"answer_id": 246323,
"author": "Magnus Hoff",
"author_id": 2971,
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3579/"
] |
246,300 | <p>I'm looking for a Report Designer that will allow me to connect to a RESTful webservice. Ideally I would like one that has a royalty-free End-User Report Designer. WE will be hosting it in an ASP.NET web site. So something compatable with that would be ideal ;)</p>
<p>We used to use <a href="http://www.datadynamics... | [
{
"answer_id": 250444,
"author": "CraftyFella",
"author_id": 30317,
"author_profile": "https://Stackoverflow.com/users/30317",
"pm_score": 0,
"selected": false,
"text": "HTTP/1.1 200 OK\nServer: ASP.NET Development Server/9.0.0.0\nDate: Thu, 30 Oct 2008 14:30:22 GMT\nX-AspNet-Version: 2.... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30317/"
] |
246,306 | <p>How do I convert a keycode to a keychar in .NET?</p>
| [
{
"answer_id": 246309,
"author": "Ady",
"author_id": 31395,
"author_profile": "https://Stackoverflow.com/users/31395",
"pm_score": 4,
"selected": false,
"text": "ChrW(70)\n (char) 70\n"
},
{
"answer_id": 5629660,
"author": "Yiu Korochko",
"author_id": 325238,
"author_... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
246,315 | <p>I'm trying to compile such code:</p>
<pre><code>#include <iostream>
using namespace std;
class CPosition
{
private:
int itsX,itsY;
public:
void Show();
void Set(int,int);
};
void CPosition::Set(int a, int b)
{
itsX=a;
itsY=b;
}
void CPosition::Show()
{
cout << "x:" << it... | [
{
"answer_id": 246327,
"author": "Jasper Bekkers",
"author_id": 31486,
"author_profile": "https://Stackoverflow.com/users/31486",
"pm_score": 2,
"selected": false,
"text": "friend class CPosition; class CCube\n{\n public:\n CPosition Position;\n};\n"
},
{
"answer_id":... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32312/"
] |
246,317 | <p>I want to create a trigger to check what is being deleted against business rules and then cancel the deletion if needed. Any ideas?</p>
<p>The solution used the Instead of Delete trigger. The Rollback tran stopped the delete. I was afraid that I would have a cascade issue when I did the delete but that didn't seem ... | [
{
"answer_id": 246322,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 5,
"selected": true,
"text": "INSTEAD OF DELETE"
},
{
"answer_id": 246405,
"author": "Leandro López",
"author_id": 22695,
"author_pro... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6336/"
] |
246,321 | <p>Here's a very simple question. I have an SP that inserts a row into a table and at the end there's the statement RETURN @@IDENTITY. What I can't seem to find is a way to retrieve this value in C#. I'm using the Enterprise library and using the method:</p>
<pre><code>db.ExecuteNonQuery(cmd);
</code></pre>
<p>I've t... | [
{
"answer_id": 246332,
"author": "Craig Norton",
"author_id": 24804,
"author_profile": "https://Stackoverflow.com/users/24804",
"pm_score": 3,
"selected": true,
"text": "Dim c as new sqlcommand(\"...\")\n\nDim d As New SqlParameter()\nd.Direction = ParameterDirection.ReturnValue\nc.param... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688440/"
] |
246,329 | <p>This might be a naive question. I have to manually edit a .WXS file to make it support select features from command line.</p>
<p>For example, there are 3 features in .WXS file.</p>
<pre><code><Feature Id="AllFeature" Level='1'>
<Feature Id="Feature1" Level='1'> </Feature>
<Feature Id... | [
{
"answer_id": 246920,
"author": "CheGueVerra",
"author_id": 17787,
"author_profile": "https://Stackoverflow.com/users/17787",
"pm_score": 6,
"selected": true,
"text": "<Feature Id=\"FEATUREA\" Title=\"Super\" Level=\"1\" >\n <ComponentRef Id=\"Component1\" />\n <ComponentRef Id=\"Comp... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26349/"
] |
246,357 | <p>I am reading WIX script written by others. There are some code really confuses me. </p>
<pre><code><Custom Action='UnLoadSchedulerPerfCounters' After='InstallInitialize'>
<![CDATA[(Installed) AND (!Scheduler = 3)]]>
</Custom>
<Custom Action='RollbackSchedulerPerfCounters' After='WriteRegist... | [
{
"answer_id": 246411,
"author": "xsl",
"author_id": 11387,
"author_profile": "https://Stackoverflow.com/users/11387",
"pm_score": 4,
"selected": true,
"text": "% environment variable (name is case insensitive)\n$ action state of component\n? installed state of component\n& ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26349/"
] |
246,364 | <p>I'm working on a piece of library code around <code>IDisposable</code>. The managed path (via <code>using</code>) is easily testable. I'm wondering about the finalizer though: Is calling <a href="http://msdn.microsoft.com/en-us/library/xe0c2357.aspx" rel="noreferrer"><code>System.GC.Collect()</code></a> sufficient t... | [
{
"answer_id": 246366,
"author": "brien",
"author_id": 4219,
"author_profile": "https://Stackoverflow.com/users/4219",
"pm_score": 0,
"selected": false,
"text": "IDisposable Dispose"
},
{
"answer_id": 246375,
"author": "RickL",
"author_id": 7261,
"author_profile": "ht... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4918/"
] |
246,367 | <p>My programming environment includes scripts for setting up my autobuild on a clean machine.</p>
<p>One step uses a vbscript to configure a website on IIS that is used to monitor the build.</p>
<p>On a particular machine I will be running apache on port 80 for a separate task.</p>
<p>I would like my vbscript to se... | [
{
"answer_id": 246366,
"author": "brien",
"author_id": 4219,
"author_profile": "https://Stackoverflow.com/users/4219",
"pm_score": 0,
"selected": false,
"text": "IDisposable Dispose"
},
{
"answer_id": 246375,
"author": "RickL",
"author_id": 7261,
"author_profile": "ht... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5427/"
] |
246,395 | <p>The problem is quite basic. I have a JTable showing cached data from a database. If a user clicks in a cell for editing, I want to attempt a lock on that row in the database. If the lock does not succeed, I want to prevent editing.</p>
<p>But I can't seem to find any clean way to accomplish this. Am I missing somet... | [
{
"answer_id": 246513,
"author": "Nick Pierpoint",
"author_id": 4003,
"author_profile": "https://Stackoverflow.com/users/4003",
"pm_score": 1,
"selected": false,
"text": "select * into v_row from my_table where my_table_id = 1\nfor update;\n select * into v_row from my_table where my_tab... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15932/"
] |
246,400 | <p>What is the best way of working with calculated fields of Propel objects?</p>
<p>Say I have an object "Customer" that has a corresponding table "customers" and each column corresponds to an attribute of my object. What I would like to do is: add a calculated attribute "Number of completed orders" to my object when ... | [
{
"answer_id": 246900,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "class Order {\n...\n public function save($conn = null) {\n $customer = $this->getCustomer();\n $customer->setOrdersCou... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2706/"
] |
246,407 | <p>Does anyone know how could I programatically disable/enable sleep mode on Windows Mobile?</p>
<p>Thanks!</p>
| [
{
"answer_id": 248673,
"author": "Shane Powell",
"author_id": 23235,
"author_profile": "https://Stackoverflow.com/users/23235",
"pm_score": 4,
"selected": true,
"text": "#include <windows.h>\n#include <commctrl.h>\n\nextern \"C\"\n{\n void WINAPI SHIdleTimerReset();\n};\n\nvoid KeepAl... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22996/"
] |
246,422 | <p>How can I deploy an iPhone application from Xcode to real iPhone device without having a US$99 Apple certificate?</p>
| [
{
"answer_id": 252173,
"author": "rpetrich",
"author_id": 4007,
"author_profile": "https://Stackoverflow.com/users/4007",
"pm_score": 7,
"selected": true,
"text": "ldid -S /Applications/AccelerometerGraph.app/AccelerometerGraph chmod +x /Applications/AccelerometerGraph.app/AccelerometerG... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16066/"
] |
246,430 | <p>0x34363932353433373538323038353135353439</p>
| [
{
"answer_id": 246437,
"author": "Diomidis Spinellis",
"author_id": 20520,
"author_profile": "https://Stackoverflow.com/users/20520",
"pm_score": 2,
"selected": false,
"text": "$ bc\nibase=16\n34363932353433373538323038353135353439\n1164362276596472215941024063897591129839055929\n"
},
... | 2008/10/29 | [
"https://Stackoverflow.com/questions/246430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.