qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
333,620 | <p>I need to add user roles and permission system into my web application built using PHP/MySQL. I want to have this functionality: </p>
<ol>
<li>One root user can create sub-roots, groups, rules and normal users( all privileges) .</li>
<li>Sub-roots can create only rules, permissions and users for his/her own group (... | [
{
"answer_id": 333668,
"author": "faulty",
"author_id": 20007,
"author_profile": "https://Stackoverflow.com/users/20007",
"pm_score": 3,
"selected": false,
"text": "PermissionMaster(FormName)\n"
},
{
"answer_id": 25643919,
"author": "Suresh Kamrushi",
"author_id": 1900692... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29656/"
] |
333,629 | <p>UDP doesnot sends any ack back, but will it send any response?</p>
<p>I have set up client server UDP program. If I give client to send data to non existent server then will client receive any response?</p>
<p>My assumption is as;</p>
<p>Client -->Broadcast server address (ARP)
Server --> Reply to client with its... | [
{
"answer_id": 7426932,
"author": "David Schwartz",
"author_id": 721269,
"author_profile": "https://Stackoverflow.com/users/721269",
"pm_score": 3,
"selected": false,
"text": "sendto"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33411/"
] |
333,630 | <p>I have a single line CEikLabel in my application that needs to scroll text.</p>
<p>The simple solution that comes to mind (but possibly naive) would be something like..</p>
<pre><code>[begin pseduo code]
on timer.fire {
set slightly shifted text in label
redraw label
}
start timer
[end pseudo code]
</code... | [
{
"answer_id": 7426932,
"author": "David Schwartz",
"author_id": 721269,
"author_profile": "https://Stackoverflow.com/users/721269",
"pm_score": 3,
"selected": false,
"text": "sendto"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33604/"
] |
333,632 | <p>I'm making some changes to a legacy classic ASP application. I've made the changes locally, and now I want to copy the changed files to the server. At the same time, I need to download the Access database, add some fields to some tables, and upload it again. For this reason, I need to be able to stop visitors from m... | [
{
"answer_id": 1441999,
"author": "brianary",
"author_id": 54323,
"author_profile": "https://Stackoverflow.com/users/54323",
"pm_score": 0,
"selected": false,
"text": "Application(\"Offline\")= True\n"
},
{
"answer_id": 47867932,
"author": "Shaista",
"author_id": 9113227,... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31092/"
] |
333,634 | <p>Is it possible to do a HTTP Head request solely using an XMLHTTPRequest in JavaScript?</p>
<p>My motivation is to conserve bandwidth.</p>
<p>If not, is it possible to fake it?</p>
| [
{
"answer_id": 333657,
"author": "doekman",
"author_id": 56,
"author_profile": "https://Stackoverflow.com/users/56",
"pm_score": 8,
"selected": true,
"text": "function UrlExists(url, callback)\n{\n var http = new XMLHttpRequest();\n http.open('HEAD', url);\n http.onreadystatecha... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6691/"
] |
333,655 | <p>I've got a name of a method: "Garden.Plugins.Code.Beta.Business.CalculateRest"</p>
<p>How to run it? I think about this fancy reflection based solution like RunMethod(string MethodName)</p>
| [
{
"answer_id": 333671,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": true,
"text": "BindingFlags.Public | BindingFlags.Static"
},
{
"answer_id": 333719,
"author": "Timothy Khouri",
"author_... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38940/"
] |
333,664 | <p>I can find lots of information on how Long Polling works (For example, <a href="http://jfarcand.wordpress.com/2007/05/15/new-adventures-in-comet-polling-long-polling-or-http-streaming-with-ajax-which-one-to-choose/" rel="noreferrer">this</a>, and <a href="http://en.wikipedia.org/wiki/Comet_(programming)#Ajax_with_lo... | [
{
"answer_id": 333702,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 5,
"selected": false,
"text": "while (!hasNewData())\n usleep(50);\n\noutputNewData();\n"
},
{
"answer_id": 333884,
"author": "dbr",
"aut... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
333,665 | <p>I tried the following code to get an alert upon closing a browser window:</p>
<pre><code>window.onbeforeunload = confirmExit;
function confirmExit() {
return "You have attempted to leave this page. If you have made any changes to the fields without clicking the Save button, your changes will be lost. Are you su... | [
{
"answer_id": 333672,
"author": "M. Utku ALTINKAYA",
"author_id": 40948,
"author_profile": "https://Stackoverflow.com/users/40948",
"pm_score": 6,
"selected": true,
"text": "$(function () {\n $(\"a\").click(function {\n window.onbeforeunload = null;\n });\n});\n"
},
{
"answ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42348/"
] |
333,682 | <p><strong><a href="http://en.wikipedia.org/wiki/Anti-pattern" rel="noreferrer">anti-pattern</a></strong> : there must be at least two key elements present to formally distinguish an actual anti-pattern from a simple bad habit, bad practice, or bad idea:</p>
<ul>
<li>Some repeated pattern of action, process or structu... | [
{
"answer_id": 333814,
"author": "Aaron Digulla",
"author_id": 34088,
"author_profile": "https://Stackoverflow.com/users/34088",
"pm_score": 6,
"selected": false,
"text": "teardown()"
},
{
"answer_id": 333820,
"author": "Aaron Digulla",
"author_id": 34088,
"author_pro... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1695/"
] |
333,687 | <p>My function iterates through every node of an instance of an <code>XMLDocument</code>. It checks to see if the current node's name is in a lookup list. If it is, it applies appropriate validation to the value of the current node.</p>
<p>When the validation method indicates that the value has been changed, I want ... | [
{
"answer_id": 333718,
"author": "xan",
"author_id": 15667,
"author_profile": "https://Stackoverflow.com/users/15667",
"pm_score": 3,
"selected": true,
"text": ".InnerText\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7703/"
] |
333,690 | <p>Every tutorial or explanation of REST just goes too complicated too quickly - the learning curve rises so fast after the initial explanation of CRUD and the supposed simplicity over SOAP. Why can't people write decent tutorials anymore!</p>
<p>I'm looking at Restlet - and its not the best, there are things missing... | [
{
"answer_id": 4084583,
"author": "PIXAR",
"author_id": 495573,
"author_profile": "https://Stackoverflow.com/users/495573",
"pm_score": 3,
"selected": false,
"text": "// Outputting the content of a Web page \nnew ClientResource(\"http://\").get().write(System.out); \n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5175/"
] |
333,693 | <p>In a world where IE didn't exist, what things would be easier, less hacky, less buggy and generally more used.</p>
<p>What could the internet have been if all features were available cross browser?</p>
<p>List one point per post.</p>
<p>This is community wiki, so feel free to amend the question/answers for clarit... | [
{
"answer_id": 333699,
"author": "adam",
"author_id": 33604,
"author_profile": "https://Stackoverflow.com/users/33604",
"pm_score": 2,
"selected": false,
"text": "Web Programming\n"
},
{
"answer_id": 333734,
"author": "annakata",
"author_id": 13018,
"author_profile": ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16511/"
] |
333,706 | <p>There is one thing that I do not understand... </p>
<p>Imagine you have a <strong>text</strong> = "hello world" and you want to split it.</p>
<p>In some places I see people that want to split the <strong>text</strong> doing:</p>
<pre><code>string.split(text)
</code></pre>
<p>In other places I see people just do... | [
{
"answer_id": 333715,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 4,
"selected": false,
"text": "string.split(stringobj)"
},
{
"answer_id": 333727,
"author": "csl",
"author_id": 21028,
"author_profile... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41795/"
] |
333,729 | <p>I want to include a js file depending on the value of the current Locale. I have tried to access it from JSP as follows: </p>
<pre><code><%@ page import="java.util.Locale" %>
<% if( ((Locale) pageContext.getAttribute("org.apache.struts.action.LOCALE",PageContext.REQUEST_SCOPE)).getLanguage().equals("de")... | [
{
"answer_id": 333915,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 2,
"selected": false,
"text": "org.apache.struts.action.LOCALE"
},
{
"answer_id": 334018,
"author": "Sergio del Amo",
"author_id": 2138,... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
333,735 | <p>What's the best way to:</p>
<ol>
<li>Get the data from the db using a single query</li>
<li>Loop through the results building e.g. a nested unordered list</li>
</ol>
<p>My table has <code>id</code>, <code>name</code> and <code>parent_id</code> columns.</p>
<hr>
<p>Here's an update to my last answer, with a count... | [
{
"answer_id": 7231292,
"author": "Maystro",
"author_id": 917971,
"author_profile": "https://Stackoverflow.com/users/917971",
"pm_score": 2,
"selected": false,
"text": "function generate_list($array,$parent,$level)\n{\n\n foreach ($array as $value)\n {\n $has_children=false;\n\n ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4196/"
] |
333,736 | <p>I've been programming a long time, and the programs I see, when they run out of memory, attempt to clean up and exit, i.e. fail gracefully. I can't remember the last time I saw one actually attempt to recover and continue operating normally.</p>
<p>So much processing relies on being able to successfully allocate me... | [
{
"answer_id": 333860,
"author": "geocar",
"author_id": 37507,
"author_profile": "https://Stackoverflow.com/users/37507",
"pm_score": 1,
"selected": false,
"text": "malloc()"
},
{
"answer_id": 334309,
"author": "Community",
"author_id": -1,
"author_profile": "https://... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33949/"
] |
333,737 | <p>Is there a function the .NET framework that can evaluate a numeric expression contained in a string and return the result? F.e.:</p>
<pre><code>string mystring = "3*(2+4)";
int result = EvaluateExpression(mystring);
Console.Writeln(result); // Outputs 18
</code></pre>
<p>Is there a standard framework function that... | [
{
"answer_id": 334378,
"author": "Beardo",
"author_id": 33724,
"author_profile": "https://Stackoverflow.com/users/33724",
"pm_score": 2,
"selected": false,
"text": "IronPython.Hosting.PythonEngine pythonEngine = new IronPython.Hosting.PythonEngine();\nstring expression = \"3*(2+4)\";\ndo... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37119/"
] |
333,750 | <p>I have the following five tables:</p>
<ul>
<li>ISP</li>
<li>Product</li>
<li>Connection</li>
<li>AddOn</li>
<li>AddOn/Product (pivot table for many-to-many relationship).</li>
</ul>
<p>Each Product is linked to an ISP, each Connection is listed to a Product. Each product can have a number of add-ons, through the u... | [
{
"answer_id": 333816,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": "https://Stackoverflow.com/users/18747",
"pm_score": 0,
"selected": false,
"text": "AND NOT EXISTS (SELECT NULL FROM addon a2\n WHERE a2.addon_id IN (1,14,237)\n AND NOT ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9479/"
] |
333,767 | <p>Is there some smart way to retreive the installation path when working within a dll (C#) which will be called from an application in a different folder?</p>
<p>I'm developing an add-in for an application. My add-in is written in C#. The application that will use is written in C and needs to compile some stuff durin... | [
{
"answer_id": 333786,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 5,
"selected": true,
"text": "Assembly.GetExecutingAssembly().Location"
},
{
"answer_id": 333790,
"author": "Cristian Libardo",
"autho... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15763/"
] |
333,812 | <p>How can I list all the local users configured on a windows machine (Win2000+) using java.<br>
I would prefer doing this with ought using any java 2 com bridges, or any other third party library if possible.<br>
Preferable some native method to Java. </p>
| [
{
"answer_id": 333848,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 3,
"selected": true,
"text": "import java.util.Enumeration;\nimport com.jacob.activeX.ActiveXComponent;\nimport com.jacob.com.ComThread;\nimport com.jacob.co... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26042/"
] |
333,828 | <p>I've built a small application which has User Management, a frontend console to enter data and a backend console to control parts of the frontend. The frontend adds rows to a MySQL database which are timestamped. The backend needs to be able to select rows from the database between X and Y dates.</p>
<p>Everything ... | [
{
"answer_id": 333844,
"author": "Tim",
"author_id": 33914,
"author_profile": "https://Stackoverflow.com/users/33914",
"pm_score": 4,
"selected": true,
"text": "select *\nfrom table\nwhere date >= '[start date]' and date <= '[end date]';\n"
},
{
"answer_id": 333859,
"author":... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42428/"
] |
333,829 | <p>In .NET, a value type (C# <code>struct</code>) can't have a constructor with no parameters. According to <a href="https://stackoverflow.com/questions/203695/structure-vs-class-in-c#204009">this post</a> this is mandated by the CLI specification. What happens is that for every value-type a default constructor is crea... | [
{
"answer_id": 333840,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 9,
"selected": true,
"text": "MyStruct[] foo = new MyStruct[1000];\n"
},
{
"answer_id": 334683,
"author": "user42467",
"author_id": 424... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3848/"
] |
333,839 | <p>I have a MySQL query that I use to retrieve random rows from a table. The query is:</p>
<pre><code>SELECT * FROM QUESTION WHERE TESTID=1 ORDER BY RAND() LIMIT 10;
</code></pre>
<p>Now I need to change this query to <strong><em>Hibernate</em></strong>. Did a bit of googling but couldn't find the answer. Can someone... | [
{
"answer_id": 333846,
"author": "Romain Linsolas",
"author_id": 26457,
"author_profile": "https://Stackoverflow.com/users/26457",
"pm_score": 2,
"selected": true,
"text": "String query = \"from QUESTION order by newid()\";\nQuery q = session.createQuery(query);\nq.setMaxResults(10);\n"
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40945/"
] |
333,841 | <p>Is there any way to have a look at signatures of anonymous functions in ActionScript 3 during runtime?</p>
<p>I would like to validate <code>Function</code> objects passed in as arguments to other functions and make sure that they accept the correct number of arguments (with the correct types) and return a value of... | [
{
"answer_id": 334491,
"author": "Luca Tettamanti",
"author_id": 42448,
"author_profile": "https://Stackoverflow.com/users/42448",
"pm_score": 1,
"selected": false,
"text": "function doStuff(callback:Function) {\n trace(callback.length);\n}\n"
},
{
"answer_id": 348585,
"auth... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4111/"
] |
333,850 | <p>I'm trying to work out a way of passing the web current http context to a service class (or initialising the class with a reference to it). I am doing this to abstract the rest of the app away from needing to know anything about the http context. </p>
<p>I also want the service to be testable using TDD, probably us... | [
{
"answer_id": 333866,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "new HttpContextWrapper( httpContext )"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/333850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31128/"
] |
333,856 | <p>Is it possible to get a report of the records that are updated using a update query, without using a recordset?</p>
<p>Ex:</p>
<p><code>sqltext = update table employees set bonus = 0 where salary > 50000<br>
DoCmd.RunSQL sqltext</code></p>
<p>After this query runs, is it possible to get the name of the employe... | [
{
"answer_id": 342881,
"author": "David-W-Fenton",
"author_id": 9787,
"author_profile": "https://Stackoverflow.com/users/9787",
"pm_score": 3,
"selected": true,
"text": "DoCmd.RunSQL"
},
{
"answer_id": 30557650,
"author": "Avagut",
"author_id": 2849004,
"author_profil... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31132/"
] |
333,875 | <p>I have a SelectList that I first check for a selected value != null and then want to use this selectedvalue in a where clause for a filter. Like so:</p>
<pre><code>if(searchBag.Qualities.SelectedValue != null){
ListItem selected = (ListItem)searchBag.Qualities.SelectedValue;
}
</code></pre>
<p>I made the cast ... | [
{
"answer_id": 342881,
"author": "David-W-Fenton",
"author_id": 9787,
"author_profile": "https://Stackoverflow.com/users/9787",
"pm_score": 3,
"selected": true,
"text": "DoCmd.RunSQL"
},
{
"answer_id": 30557650,
"author": "Avagut",
"author_id": 2849004,
"author_profil... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
333,876 | <p>Is there some way to determine what file currently is being rendered by Rails (2.2) in a helper method. An example result would be "/sessions/new.html.erb" or something similar.</p>
<p>I am trying to write a helper function that does something based on the file name that is being rendered, so I need a reliable way ... | [
{
"answer_id": 342881,
"author": "David-W-Fenton",
"author_id": 9787,
"author_profile": "https://Stackoverflow.com/users/9787",
"pm_score": 3,
"selected": true,
"text": "DoCmd.RunSQL"
},
{
"answer_id": 30557650,
"author": "Avagut",
"author_id": 2849004,
"author_profil... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42431/"
] |
333,889 | <p>Why does C++ have header files and .cpp files?</p>
| [
{
"answer_id": 333964,
"author": "paercebal",
"author_id": 14089,
"author_profile": "https://Stackoverflow.com/users/14089",
"pm_score": 9,
"selected": false,
"text": "// A.CPP\nvoid doSomething()\n{\n doSomethingElse(); // Defined in B.CPP\n}\n\n// B.CPP\nvoid doSomethingElse()\n{\n ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
333,911 | <p>I'm getting crazy with this IE 7...</p>
<p>==> hhttp://neu.emergent-innovation.com/</p>
<p>Why does following function not work in IE 7, but perfectly with Firefox? Is there a bug in the animate-function?</p>
<pre><code>function accordion_starting_page(){
// hide all elements except the first one
$('#FCE-... | [
{
"answer_id": 333975,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 0,
"selected": false,
"text": "display: none"
},
{
"answer_id": 491221,
"author": "Community",
"author_id": -1,
"author_profile": "https:... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27404/"
] |
333,946 | <p>How would you write ToUpper() if it didn't exist? Bonus points for i18n and L10n</p>
<p>Curiosity sparked by this: <a href="http://thedailywtf.com/Articles/The-Long-Way-toUpper.aspx" rel="nofollow noreferrer">http://thedailywtf.com/Articles/The-Long-Way-toUpper.aspx</a></p>
| [
{
"answer_id": 333971,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 3,
"selected": false,
"text": "(string-upcase \"Straße\") ⇒ \"STRASSE\"\n(string-downcase \"Straße\") ⇒ \"straße\"\n(string-upcase \"ΧΑΟΣ\") ⇒ \"... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12744/"
] |
333,953 | <p>Is there a C# equivalent method to Java's <code>Exception.printStackTrace()</code> or do I have to write something myself, working my way through the InnerExceptions?</p>
| [
{
"answer_id": 333966,
"author": "Drew Noakes",
"author_id": 24874,
"author_profile": "https://Stackoverflow.com/users/24874",
"pm_score": 8,
"selected": true,
"text": "Console.WriteLine(ex.ToString());\n"
},
{
"answer_id": 333973,
"author": "Steve Brouillard",
"author_id... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
333,965 | <p>I'm trying to write a query for an advanced search page on my document archiving system. I'm attempting to search by multiple optional parameters. I have about 5 parameters that could be empty strings or search strings. I know I shouldn't have to check for each as a string or empty and create a separate stored pr... | [
{
"answer_id": 333974,
"author": "Dave Markle",
"author_id": 24995,
"author_profile": "https://Stackoverflow.com/users/24995",
"pm_score": 1,
"selected": false,
"text": "WHERE \n (@var1 = '' OR col1 = @var1) AND\n (@var2 = '' OR col1 = @var2) AND\n (@var3 = '' OR col1 = @var3) ...\... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1491425/"
] |
333,995 | <p>Is there a simple way to detect, within Python code, that this code is being executed through the Python debugger?</p>
<p>I have a small Python application that uses Java code (thanks to JPype). When I'm debugging the Python part, I'd like the embedded JVM to be passed debug options too.</p>
| [
{
"answer_id": 334073,
"author": "dowski",
"author_id": 21712,
"author_profile": "https://Stackoverflow.com/users/21712",
"pm_score": 1,
"selected": false,
"text": "$ USING_PDB=1 pdb yourprog.py\n"
},
{
"answer_id": 334090,
"author": "babbageclunk",
"author_id": 38851,
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/333995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11618/"
] |
334,038 | <p>In a Swing app a method should continue only after user enters a correct answer. The correct answer is stored in a <code>String</code> with user answer being set by a listener to another <code>String</code>. So, the code is</p>
<pre><code>while (!correctAnswer.equals(currentAnswer)) {
// wait for user to click... | [
{
"answer_id": 334056,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 0,
"selected": false,
"text": "do-while"
},
{
"answer_id": 334064,
"author": "cletus",
"author_id": 18393,
"author_profile": "https://... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15187/"
] |
334,057 | <p>I have a very simple html page here:</p>
<p><a href="http://www.nomorepasting.com/getpaste.php?pasteid=22407" rel="nofollow noreferrer">http://www.nomorepasting.com/getpaste.php?pasteid=22407</a></p>
<p>And I have 4 layers on the page. The reason for this is it is the framework oif a much more complicated site, I ... | [
{
"answer_id": 334146,
"author": "Carl",
"author_id": 38375,
"author_profile": "https://Stackoverflow.com/users/38375",
"pm_score": 0,
"selected": false,
"text": "<html>\n <head>\n <style type=\"text/css\">\n .class1{color:#000;}\n .class2{color:#00f;}\n ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
334,095 | <p>I have been trying to get more in to TDD. Currently keeping it simple with lots of <code>Debug.Asserts</code> in a console application.</p>
<p>Part of the tests I wanted to complete was ensuring that events were raised from the object, the correct number of times, since client code will depend on these events.</p>
... | [
{
"answer_id": 334118,
"author": "Mendelt",
"author_id": 3320,
"author_profile": "https://Stackoverflow.com/users/3320",
"pm_score": 3,
"selected": true,
"text": "MyObject subjectUnderTest = new MyObject();\nEventMonitor monitor = new Monitor();\nsubjectUnderTest.Event += monitor.EventCa... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
334,102 | <p>When trying to launch and run a flex/java project in eclipse I kept getting a "Out of Memory Exception" and "Java Heap Space" using Eclipse, Tomcat and a JRE.</p>
<p>While researching trying to adjust the memory settings I found three places to adjust these:</p>
<ul>
<li><p>Eclipse.ini</p></li>
<li><p>The JRE Sett... | [
{
"answer_id": 334254,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 4,
"selected": false,
"text": "-xms"
},
{
"answer_id": 1720281,
"author": "Andreas Mattisson",
"author_id": 209334,
"author_profi... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23133/"
] |
334,108 | <p>I want to check for data, but ignore it if it's null or empty. Currently the query is as follows...</p>
<pre><code>Select
Coalesce(listing.OfferText, company.OfferText, '') As Offer_Text,
from tbl_directorylisting listing
Inner Join tbl_companymaster company
On listing.compan... | [
{
"answer_id": 334115,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 6,
"selected": false,
"text": "SELECT\n CASE WHEN LEN(listing.OfferText) > 0 THEN listing.OfferText \n ELSE COALESCE(Company.OfferText, '') ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5055/"
] |
334,123 | <p>I need a regex for the following pattern:</p>
<ul>
<li><p>Total of 5 characters (alpha and numeric, nothing else).</p></li>
<li><p>first character must be a letter (<code>A</code>, <code>B</code>, or <code>C</code> only)</p></li>
<li><p>the remaining 4 characters can be number or letter.</p></li>
</ul>
<p>Clarifca... | [
{
"answer_id": 334134,
"author": "Timothy Khouri",
"author_id": 11917,
"author_profile": "https://Stackoverflow.com/users/11917",
"pm_score": 7,
"selected": true,
"text": "^[A-C][a-zA-Z0-9]{4}$\n"
},
{
"answer_id": 334143,
"author": "Martin",
"author_id": 18660,
"auth... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/750/"
] |
334,149 | <p>What's the quickest/neatest way to calculate the next anniversary of someone's birthday.</p>
<p>For example, if I knew a person was born on 31st January, 1990, and today is the 10th February 2000, their next anniversary will be 31st January, 2001.</p>
<p>February 29th should roll onto March 1st (e.g. if they were ... | [
{
"answer_id": 334168,
"author": "biozinc",
"author_id": 30698,
"author_profile": "https://Stackoverflow.com/users/30698",
"pm_score": 3,
"selected": true,
"text": "private DateTime nextDate(DateTime currentDate, DateTime anniversaryDate)\n{\n DateTime nextDate;\n try{\n nex... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15393/"
] |
334,163 | <p>I created a vbscript custom action which checks for some registry keys and alters them if neccessary. In case a key could not be written or something like that, the setup should be aborted.</p>
<p>In order to achieve this, I set a property which I tried to use as a condition for the next step within the execute seq... | [
{
"answer_id": 334363,
"author": "Ken",
"author_id": 18836,
"author_profile": "https://Stackoverflow.com/users/18836",
"pm_score": 3,
"selected": true,
"text": "Function ExitSetupFromVBS( )\n\nConst IDABORT = 3\n\n ' ...do some work...\n\n ' abort the installation\n ExitSetupFro... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25428/"
] |
334,183 | <p>I am implementing a tagging system on my website similar to one stackoverflow uses, my question is - what is the most effective way to store tags so that they may be searched and filtered?</p>
<p>My idea is this:</p>
<pre><code>Table: Items
Columns: Item_ID, Title, Content
Table: Tags
Columns: Title, Item_ID
</co... | [
{
"answer_id": 32061474,
"author": "Dmitry Shvedov",
"author_id": 1434116,
"author_profile": "https://Stackoverflow.com/users/1434116",
"pm_score": 3,
"selected": false,
"text": "Table: Items\nColumns: Item_ID:int, Title:text, Content:text\n\nTable: Tags\nColumns: Item_ID:int, Tag_Title:... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29595/"
] |
334,201 | <p>At every company I have worked at, I have found that people are still writing their SQL queries in the ANSI-89 standard:</p>
<pre><code>select a.id, b.id, b.address_1
from person a, address b
where a.id = b.id
</code></pre>
<p>rather than the ANSI-92 standard:</p>
<pre><code>select a.id, b.id, b.address_1
from pe... | [
{
"answer_id": 334245,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 7,
"selected": true,
"text": "(+)"
},
{
"answer_id": 334469,
"author": "Jonathan",
"author_id": 6910,
"author_profile": "https://... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41165/"
] |
334,204 | <p>ASP.NET master pages - essential things.</p>
<p>However, I have a lot of very similar UserControls in my projects - it might be a standard layout for an AJAX ModalPopup, or something more involved.</p>
<p>I wish I could get rid of some of my duplicated code (both in ascx files and code-behind) with some Master Use... | [
{
"answer_id": 3883057,
"author": "Mike",
"author_id": 469251,
"author_profile": "https://Stackoverflow.com/users/469251",
"pm_score": 1,
"selected": false,
"text": "public class MasterLoader : UserControl\n{\n MasterUserControl _masterUserControl;\n\n protected override void Creat... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39709/"
] |
334,207 | <p>I would like to document the file format of regedit utility, so data can be merged into the registry. </p>
<p>From the command-line you can (silently) merge data from a batch file like this:</p>
<pre><code>regedit /s file.reg
</code></pre>
<p>Exporting from a subkey goes like this:</p>
<pre><code>regedit /e file... | [
{
"answer_id": 334208,
"author": "doekman",
"author_id": 56,
"author_profile": "https://Stackoverflow.com/users/56",
"pm_score": 6,
"selected": true,
"text": "REGEDIT4\n[-HKEY_CURRENT_USER\\RemoveThisTree]\n[HKEY_CURRENT_USER\\RemoveValue]\n\"valueName\"=-\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/334207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/56/"
] |
334,214 | <p>I have been asked to find training resources to bring engineers up to speed on VBA programming.</p>
<p>The target trainee will have some systems engineering experience but little to no non-systems programming experience. </p>
<p>I'm hoping for a computer-based training course or DVD that we can purchase and give t... | [
{
"answer_id": 334208,
"author": "doekman",
"author_id": 56,
"author_profile": "https://Stackoverflow.com/users/56",
"pm_score": 6,
"selected": true,
"text": "REGEDIT4\n[-HKEY_CURRENT_USER\\RemoveThisTree]\n[HKEY_CURRENT_USER\\RemoveValue]\n\"valueName\"=-\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/334214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29/"
] |
334,256 | <p>I would like to create a custom XmlDeclaration while using the XmlDocument/XmlDeclaration classes in c# .net 2 or 3. </p>
<p>This is my desired output (it is an expected output by a 3rd party app):</p>
<pre><code><?xml version="1.0" encoding="ISO-8859-1" ?>
<?MyCustomNameHere attribute1="val1" attribute2=... | [
{
"answer_id": 334291,
"author": "Bradley Grainger",
"author_id": 23633,
"author_profile": "https://Stackoverflow.com/users/23633",
"pm_score": 5,
"selected": true,
"text": "XmlDocument doc = new XmlDocument();\nXmlDeclaration declaration = doc.CreateXmlDeclaration(\"1.0\", \"ISO-8859-1\... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9664/"
] |
334,259 | <p>I'm working on an useragent that logs into teamcity and I'm trying to move the password encryption from js to c#.</p>
<p><a href="http://teamcity.jetbrains.com/res/-4045289697674020822.js" rel="nofollow noreferrer">this is the javascript</a> </p>
<p>the section called rsa.js and encrypt.js are important. They make... | [
{
"answer_id": 334291,
"author": "Bradley Grainger",
"author_id": 23633,
"author_profile": "https://Stackoverflow.com/users/23633",
"pm_score": 5,
"selected": true,
"text": "XmlDocument doc = new XmlDocument();\nXmlDeclaration declaration = doc.CreateXmlDeclaration(\"1.0\", \"ISO-8859-1\... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/253/"
] |
334,277 | <p>I'm building a c++ DLL in visual studio 2008.</p>
<p>For some reason, even when I build in release mode, my dll still depends on msvcr90d.dll.
I can see that using depends.exe</p>
<p>Is there any way to figure out what is causing this dependency?
My run-time library setting is /MD </p>
<p>Thanks,
Dan</p>
| [
{
"answer_id": 334470,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 3,
"selected": true,
"text": "\"Configuration Properties\"/Linker/General"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/334277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4697/"
] |
334,279 | <p>Can anyone tell me how can I get the xpath of the name attribute from this file:</p>
<pre><code><asmv1:assembly xmlns:asmv1="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="MyName"/>
</asmv1:assembly>
</code></pre>
<p>I'm trying to get it for nant xmlpoke task without success.</p>
<... | [
{
"answer_id": 334310,
"author": "joegtp",
"author_id": 39431,
"author_profile": "https://Stackoverflow.com/users/39431",
"pm_score": 1,
"selected": false,
"text": "/*[local-name()='assembly']/assemblyIdentity/@name\n"
},
{
"answer_id": 334313,
"author": "Jeff Yates",
"au... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19956/"
] |
334,280 | <p>Is there a way in MySQL 5 to show only the current user's processes(queries)?</p>
<p>The user has the <code>PROCESS</code> privilege, therefore <code>SHOW PROCESSLIST</code> displays running processes of all users. According to the documentation, <code>SHOW PROCESSLIST</code> does not allow any kind of <code>WHERE<... | [
{
"answer_id": 334315,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 5,
"selected": true,
"text": "SELECT"
},
{
"answer_id": 336325,
"author": "staticsan",
"author_id": 28832,
"author_profile": "htt... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19746/"
] |
334,292 | <p>What is the preferred/easiest way to manipulate TDesC strings, for example to obtain a substring.</p>
<p>I will give you an example of my scenario.</p>
<pre><code>RBuf16 buf;
...
CEikLabel label;
...
label->SetTextL(buf); // (SetTextL takes a const TDesC&)
</code></pre>
<p>I want to get a substring from bu... | [
{
"answer_id": 334384,
"author": "ayaz",
"author_id": 23191,
"author_profile": "https://Stackoverflow.com/users/23191",
"pm_score": 2,
"selected": false,
"text": "TDes::LeftTPtr()\nTDes::MidTPtr()\nTDes::RightTPtr()\n"
},
{
"answer_id": 334385,
"author": "Airsource Ltd",
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33604/"
] |
334,305 | <p>I have a custom renderer in a <code>JTable</code> to display <code>JCheckbox</code>es for <code>boolean</code>s. However, this causes a slight issue because when the user clicks in the table cell, but not in the checkbox, the checkbox is still checked.</p>
<p>Is there a way I can return the bounds of the actual <c... | [
{
"answer_id": 334324,
"author": "Dan Dyer",
"author_id": 5171,
"author_profile": "https://Stackoverflow.com/users/5171",
"pm_score": 1,
"selected": false,
"text": "DefaultCellEditor"
},
{
"answer_id": 334353,
"author": "Dan",
"author_id": 9774,
"author_profile": "htt... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
334,317 | <p>I'm working on an ASP.NET page, using VB.NET and I have this hierarchy:</p>
<p>Page A <br />
- Web User Control 1 <br />
- Web User Control A <br />
- Web User Control B <br />
- Web User Control C <br /></p>
<p>I need to raise an ... | [
{
"answer_id": 334454,
"author": "Yona",
"author_id": 40007,
"author_profile": "https://Stackoverflow.com/users/40007",
"pm_score": 0,
"selected": false,
"text": "Page A"
},
{
"answer_id": 334793,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https:... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1530166/"
] |
334,319 | <p>I have been programming for the last 3 years. When I program, I use to handle all known exceptions and alert the user gracefully. I have seen some code recently which has almost all methods wrapped inside try/catch blocks. The author says it is part of defensive programming. I wonder, is this really defensive progra... | [
{
"answer_id": 334329,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 6,
"selected": false,
"text": "catch {}"
},
{
"answer_id": 334358,
"author": "Aaron Digulla",
"author_id": 34088,
"author_profil... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
334,326 | <p>I am using a specific command in in my C# code, which works well. However, it is said to misbehave in "unmanaged" code.</p>
<p>What is managed or unmanaged code?</p>
| [
{
"answer_id": 17837415,
"author": "Ashok Narwal",
"author_id": 2615126,
"author_profile": "https://Stackoverflow.com/users/2615126",
"pm_score": 1,
"selected": false,
"text": "CLR"
},
{
"answer_id": 32175443,
"author": "Amnesh Goel",
"author_id": 1882208,
"author_pro... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21386/"
] |
334,334 | <p>I have a need to allow for a user to download an event that has multiple meeting dates. To do this I have created a memorystream to be downloaded which produces a .ics file. For example:</p>
<pre>
BEGIN:VCALENDAR
PRODID:-//Company//Product//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
SUMMARY:Subject of Event
LOCAT... | [
{
"answer_id": 538017,
"author": "Michael DeLorenzo",
"author_id": 1383003,
"author_profile": "https://Stackoverflow.com/users/1383003",
"pm_score": 2,
"selected": false,
"text": "BEGIN:VCALENDAR \nPRODID:-//XYZ Corp//My Product//EN \nVERSION:2.0 \nCALSCALE:GREGORIAN \nMETHOD:PUBLISH... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19251/"
] |
334,341 | <p>Component Services -> Computers -> My Computer -> COM+ Applications</p>
<p>Open a COM+ Application object.</p>
<p>Open Components.</p>
<p>Right-click on a class and select Properties.</p>
<p>Under "Advanced" there is a check box for "Allow IIS intrinsic properties".</p>
<p>How do I check this check box programm... | [
{
"answer_id": 334726,
"author": "Andrew J. Brehm",
"author_id": 4886,
"author_profile": "https://Stackoverflow.com/users/4886",
"pm_score": 3,
"selected": true,
"text": " //get collection of applications\n COMAdminCatalog catalog = new COMAdminCatalog();\n\n cat... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4886/"
] |
334,342 | <p>I'm looking for a good ssh console plugin for Eclipse, and can't find much at all. Would anyone have some good leads on one?</p>
| [
{
"answer_id": 5735278,
"author": "TrinitronX",
"author_id": 645491,
"author_profile": "https://Stackoverflow.com/users/645491",
"pm_score": 4,
"selected": false,
"text": "Shift+Alt+Q"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/334342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13812/"
] |
334,345 | <p>I have a table with a view_name field (varchar(256)) and I would like to use that field in an sql query.</p>
<p>Example :</p>
<p>TABLE university_members</p>
<p><strong>id | type | view_name | count</strong></p>
<p>1 | professors | view_professors | 0</p>
<p>2 | students | view_students2 | 0</p>
<p>3 | staff |... | [
{
"answer_id": 334364,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": 2,
"selected": false,
"text": "DECLARE @ViewName VARCHAR(500)\n\nSELECT @ViewName = view_name\nFROM University_Members\nWHERE Id = 1\n\nDECLARE @... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5788/"
] |
334,354 | <p>With the XML below, I would like to know how to get the value of text in the case_id node as an attribute for the hidden input tag in the xsl sheet below.
Is this possible?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="data.xsl"?>
<NewDataSet>
<Cas... | [
{
"answer_id": 334395,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 2,
"selected": false,
"text": "input"
},
{
"answer_id": 334396,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile":... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
334,360 | <p>Whilst debugging my program in VS 2008 I have come across the following error:</p>
<p>The CLR has been unable to transition from COM context 0x34fc1a0 to COM context 0x34fc258 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very l... | [
{
"answer_id": 489795,
"author": "Craigger",
"author_id": 18924,
"author_profile": "https://Stackoverflow.com/users/18924",
"pm_score": 0,
"selected": false,
"text": "RequestWork()"
},
{
"answer_id": 2227217,
"author": "Thiruvarul",
"author_id": 269269,
"author_profil... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
334,367 | <p>Playing with log4net, I have seen the possibility to use a per-thread stack of context labels called the NDC. </p>
<p>The labels pushed on this stack are displayed in a PatternLayout by specifying the <code>%x</code> or the <code>%ndc</code> format parameter.</p>
<p>The usage is something like: </p>
<pre><code>IL... | [
{
"answer_id": 17344012,
"author": "Donal Lafferty",
"author_id": 939250,
"author_profile": "https://Stackoverflow.com/users/939250",
"pm_score": 6,
"selected": false,
"text": "// GET api/HypervResource\npublic string Get()\n{\n logger.Debug(\"Start of service test\");\n System.Thr... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11545/"
] |
334,370 | <p>I've seen (and used) code to have a link spawn a javascript action many times in my life, but I've never come to a firm conclusion on if the href attribute should be blank or #. Do you have any preference one way or the other, and if so, why?</p>
<pre><code><a href="" onclick="javascript: DoSomething();">lin... | [
{
"answer_id": 334394,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 3,
"selected": false,
"text": "href"
},
{
"answer_id": 334413,
"author": "adam",
"author_id": 33604,
"author_profile": "https://Stackov... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/232/"
] |
334,371 | <p>What would the purpose of this construct in a c file be?: </p>
<pre><code>#define _TIMERC
#include "timer.h"
#undef _TIMERC
</code></pre>
<p>I am aware of the guard for preventing multiple inclusion of a header file. This doesn't appear to be whats happening though.</p>
<p>thanks!</p>
| [
{
"answer_id": 334495,
"author": "JeffV",
"author_id": 445087,
"author_profile": "https://Stackoverflow.com/users/445087",
"pm_score": 3,
"selected": false,
"text": "#define _TIMERA \n#include \"timer.h\" \n#undef _TIMERA \n"
},
{
"answer_id": 334751,
"author": "PhiLho",
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445087/"
] |
334,373 | <p>When debugging I need to start an external program from the target directory of a build and am wondering if it can be accomplished using relative paths.</p>
<p>As a post-build event I have the following:</p>
<pre>
IF NOT "$(ConfigurationName)"=="Debug" GOTO End
:CopyExecutable
copy "$(SolutionDir)\Source\Lib\MyExe... | [
{
"answer_id": 1141459,
"author": "David Martin",
"author_id": 34879,
"author_profile": "https://Stackoverflow.com/users/34879",
"pm_score": 3,
"selected": false,
"text": "Source\\Lib\\MyExecutable.exe\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/334373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32313/"
] |
334,382 | <p>I asked <a href="https://stackoverflow.com/questions/288409/how-do-i-get-the-html-output-of-a-usercontrol-in-net-c">how to render a UserControl's HTML</a> and got the code working for a dynamically generated UserControl.</p>
<p>Now I'm trying to use LoadControl to load a previously generated Control and spit out it... | [
{
"answer_id": 334405,
"author": "Bob",
"author_id": 45,
"author_profile": "https://Stackoverflow.com/users/45",
"pm_score": 0,
"selected": false,
"text": " <input type=\"text\" />\n"
},
{
"answer_id": 334442,
"author": "TcKs",
"author_id": 20382,
"author_profile": "h... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25538/"
] |
334,388 | <p>thanks in advance for your help. I am wondering if there is a (design) pattern that can be applied to this problem. </p>
<p><b>I am looking to parse, process, and extract out values from text files with similar, but differing formats.</b></p>
<p>More specifically, I am building a processing engine that accepts O... | [
{
"answer_id": 334453,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 1,
"selected": false,
"text": "public interface IDataProvider\n{\n IOnlinePokerInfo ParseFileInformation(FileInfo input);\n}\n\npublic interface I... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39365/"
] |
334,404 | <p>When I run <code>get-user|get-member</code> in powershell with the exchange add-in I noticed there is no description property.</p>
<p>Does anyone know if it has been renamed to something else or another way of accessing it? </p>
| [
{
"answer_id": 334820,
"author": "slipsec",
"author_id": 1635,
"author_profile": "https://Stackoverflow.com/users/1635",
"pm_score": 3,
"selected": true,
"text": "[PS] C:\\>$ANR = \"testuser@example.com\"\n[PS] C:\\>$foo = [adsi](\"LDAP://\" + (get-user $ANR).DistinguishedName)\n[PS] C:\... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18853/"
] |
334,415 | <p>What would be the benefit of using decimal.compare vs. just using a > or < to compare to variables? </p>
| [
{
"answer_id": 334451,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "Comparison<decimal>"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/334415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2636656/"
] |
334,431 | <p>I've recently started upgrading some applications to use Spring Webflow 2, and I want to make use of the new Ajax functionality that comes with Webflow 2. Can somebody please direct me to a tutorial for integrating Tiles 2 with Spring Webflow (since that's apparently what they recommend). I've found the documentat... | [
{
"answer_id": 838242,
"author": "TM.",
"author_id": 12983,
"author_profile": "https://Stackoverflow.com/users/12983",
"pm_score": 2,
"selected": false,
"text": "<bean id=\"tilesViewResolver\" class=\"org.springframework.web.servlet.view.UrlBasedViewResolver\">\n <property name=\"view... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32232/"
] |
334,439 | <p>We have recently been faced with the problem of porting our C++ framework to an ARM platform running uClinux where the only vendor supported compiler is GCC 2.95.3. The problem we have run into is that exceptions are extremely unreliable causing everything from not being caught at all to being caught by an unrelated... | [
{
"answer_id": 334484,
"author": "Steve Jessop",
"author_id": 13005,
"author_profile": "https://Stackoverflow.com/users/13005",
"pm_score": 5,
"selected": true,
"text": "MyClassWithNoThrowConstructor foo;\nif (foo.init(bar, baz, etc) != 0) {\n // error-handling code\n} else {\n // ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22247/"
] |
334,471 | <p>Here is the situation:</p>
<p>I have been called upon to work with InstallAnywhere 8, a Java-based installer IDE, of sorts, that allows starting and stopping of windows services, but has no built-in method to query their states. Fortunately, it allows you to create custom actions in Java which can be called at any... | [
{
"answer_id": 334632,
"author": "Yuval",
"author_id": 2819,
"author_profile": "https://Stackoverflow.com/users/2819",
"pm_score": 5,
"selected": true,
"text": "String STATE_PREFIX = \"STATE : \";\n\nString s = runProcess(\"sc query \\\"\"+serviceName+\"\\\"\");\n// check th... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42489/"
] |
334,472 | <p>Running a ServiceHost with a single contract is working fine like this:</p>
<pre><code>servicehost = new ServiceHost(typeof(MyService1));
servicehost.AddServiceEndpoint(typeof(IMyService1), new NetTcpBinding(), "net.tcp://127.0.0.1:800/MyApp/MyService1");
servicehost.Open();
</code></pre>
<p>Now I'd like to add a ... | [
{
"answer_id": 334554,
"author": "chilltemp",
"author_id": 28736,
"author_profile": "https://Stackoverflow.com/users/28736",
"pm_score": 7,
"selected": true,
"text": "servicehost = new ServiceHost(typeof(WcfEntryPoint));\nservicehost.Open(); \n\npublic class WcfEntryPoint : IMyService1, ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7021/"
] |
334,479 | <p>Is there a place I can find Backus–Naur Form or BNF grammars for popular languages? Whenever I do a search I don't turn up much, but I figure they must be published somewhere. I'm most interested in seeing one for Objective-C and maybe MySQL.</p>
| [
{
"answer_id": 334522,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": false,
"text": "mysql-server/sql/sql_yacc.y"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/334479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13009/"
] |
334,489 | <p>Let’s say I have this markup:</p>
<pre><code><div id="content">
<div id="firstP"><p>First paragraph</p></div>
<div id="secondP"><p>Second paragraph</p></div>
<div id="thirdP"><p>Third paragraph</p></div>
<div id="fourthP">&l... | [
{
"answer_id": 334494,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 4,
"selected": false,
"text": "var html = \"<div id=\\\"newP\\\"><p>New paragraph</p></div>\";\n$(\"#content\").append(html);\n$(\"#newP p\").focus();\n\nvar... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
334,490 | <p>I often get a problem with Windows Installer trying to uninstall a package, but it complains that:</p>
<blockquote>
<p>The feature you are trying to use is on a network resource that is unavailable.</p>
</blockquote>
<p>Is there a known means of uninstalling such packages when the original MSI is simply not avai... | [
{
"answer_id": 334610,
"author": "TravisO",
"author_id": 35116,
"author_profile": "https://Stackoverflow.com/users/35116",
"pm_score": 2,
"selected": false,
"text": "Office2010.msi"
},
{
"answer_id": 11004013,
"author": "AnneTheAgile",
"author_id": 242110,
"author_pro... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8741/"
] |
334,515 | <p>This question regards unit testing in Visual Studio using MSTest (this is important, because of MSTest's <a href="http://blogs.msdn.com/nnaderi/archive/2007/02/17/explaining-execution-order.aspx" rel="noreferrer">execution order</a>). Both the method marked [TestInitialize] and the test class constructor will run be... | [
{
"answer_id": 437008,
"author": "Anthony Mastrean",
"author_id": 3619,
"author_profile": "https://Stackoverflow.com/users/3619",
"pm_score": 2,
"selected": false,
"text": "[TestInitialize]"
},
{
"answer_id": 7079605,
"author": "Anthony Mastrean",
"author_id": 3619,
"... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3619/"
] |
334,518 | <p>I'm a C++ guy learning Java. I'm reading Effective Java and something confused me. It says never to write code like this:</p>
<pre><code>String s = new String("silly");
</code></pre>
<p>Because it creates unnecessary <code>String</code> objects. But instead it should be written like this:</p>
<pre><code>String s ... | [
{
"answer_id": 334538,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 4,
"selected": false,
"text": "String"
},
{
"answer_id": 334540,
"author": "Dan Vinton",
"author_id": 21849,
"author_profile": "https:/... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42496/"
] |
334,519 | <p>I've been attempting to hook a Rails application up to ActiveDirectory. I'll be synchronizing data about users between AD and a database, currently MySQL (but may turn into SQL Server or PostgreSQL).</p>
<p>I've checked out activedirectory-ruby, and it looks really buggy (for a 1.0 release!?). It wraps Net::LDAP, s... | [
{
"answer_id": 387304,
"author": "Lolindrath",
"author_id": 7985,
"author_profile": "https://Stackoverflow.com/users/7985",
"pm_score": 2,
"selected": false,
"text": "\"{MD5}\" + Base64.encode64(Digest::MD5.digest(pass))\n"
},
{
"answer_id": 5684335,
"author": "Phrogz",
"... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42486/"
] |
334,532 | <p>I'm generating a coupon based on dynamic input and a cropped image, and I'm displaying the coupon using ntml and css right now, the problem is, printing this has become an issue because of how backgrounds disappear when printing and other problems, so I think the best solution would be to be able to generate an imag... | [
{
"answer_id": 334586,
"author": "Dillie-O",
"author_id": 71,
"author_profile": "https://Stackoverflow.com/users/71",
"pm_score": 5,
"selected": true,
"text": "Bitmap FinalBitmap = new Bitmap();\nMemoryStream msStream = new MemoryStream();\n\nstrInputParameter == Request.Params(\"MagicPa... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29445/"
] |
334,571 | <p>I have a legacy MS Access 2007 table that contains 52 fields (1 field for each week of the year) representing historical sales data (plus one field for the year actually). I would like to convert this database into a more conventional Time/Value listing.</p>
<p>Does anyone knows how to do that without writing queri... | [
{
"answer_id": 334583,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 3,
"selected": true,
"text": "UNPIVOT"
},
{
"answer_id": 334588,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18858/"
] |
334,579 | <p>Do you have a default type that you prefer to use in your dealings with the results of LINQ queries?</p>
<p>By default LINQ will return an <code>IEnumerable<></code> or maybe an <code>IOrderedEnumerable<></code>. We have found that a <code>List<></code> is generally more useful to us, so have adop... | [
{
"answer_id": 334595,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "ToList"
},
{
"answer_id": 337362,
"author": "Timothy Khouri",
"author_id": 11917,
"author_profile": "... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39709/"
] |
334,625 | <p>I'm using Hibernate 3.1 and Oracle 10 DB. The blob is defined as @Lob @Basic @Column in the Hibernate entity which corresponds to the relevant DB table.
The error -java.sql.SQLException: Closed Connection- seem to appear once in while, not in every attempt to get the blob from the DB.
This seems like a hibernate fe... | [
{
"answer_id": 1437819,
"author": "Flueras Bogdan",
"author_id": 83843,
"author_profile": "https://Stackoverflow.com/users/83843",
"pm_score": 0,
"selected": false,
"text": "@Basic(fetch = FetchType.LAZY)\n"
}
] | 2008/12/02 | [
"https://Stackoverflow.com/questions/334625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42508/"
] |
334,626 | <p>When an item is clicked in the checkedlistbox, it gets highlighted. How can I prevent this highlighting effect? </p>
<p>I can hook into the SelectedIndexChanged event and clear the selection, but the highlighting still happens and you see a blip. In fact, if you hold down the mouse click, never releasing it after y... | [
{
"answer_id": 334672,
"author": "Hath",
"author_id": 5186,
"author_profile": "https://Stackoverflow.com/users/5186",
"pm_score": 5,
"selected": true,
"text": "this.checkedListBox1.SelectionMode = System.Windows.Forms.SelectionMode.None;\n"
},
{
"answer_id": 9144861,
"author"... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30581/"
] |
334,628 | <p>Using the <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow noreferrer">jQuery Validation</a> plugin and AJAX, how can I validate the contents of say an input (textbox) but pass more than one parameter to a controller action?</p>
<p>A brilliant example of passing a single value ... | [
{
"answer_id": 334657,
"author": "adam",
"author_id": 33604,
"author_profile": "https://Stackoverflow.com/users/33604",
"pm_score": 0,
"selected": false,
"text": "$(document).ready(function(){\n $(\"#form-sign-up\").validate( {\n rules: {\n email: {\n required: true,\n ... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5791/"
] |
334,630 | <p>I'm trying to open a folder in explorer with a file selected.</p>
<p>The following code produces a file not found exception: </p>
<pre><code>System.Diagnostics.Process.Start(
"explorer.exe /select,"
+ listView1.SelectedItems[0].SubItems[1].Text + "\\"
+ listView1.SelectedItems[0].Text);
</code></pre>... | [
{
"answer_id": 334645,
"author": "Tom Smykowski",
"author_id": 38940,
"author_profile": "https://Stackoverflow.com/users/38940",
"pm_score": 7,
"selected": true,
"text": "Process.Start(String, String)\n"
},
{
"answer_id": 696144,
"author": "Samuel Yang",
"author_id": 8446... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41291/"
] |
334,655 | <p>I'd like to call a function in python using a dictionary with matching key-value pairs for the parameters.</p>
<p>Here is some code:</p>
<pre><code>d = dict(param='test')
def f(param):
print(param)
f(d)
</code></pre>
<p>This prints <code>{'param': 'test'}</code> but I'd like it to just print <code>test</code>.... | [
{
"answer_id": 334661,
"author": "Patrick Harrington",
"author_id": 41165,
"author_profile": "https://Stackoverflow.com/users/41165",
"pm_score": 3,
"selected": false,
"text": "d = {'param' : 'test'}\n\ndef f(dictionary):\n for key in dictionary:\n print key\n\nf(d)\n"
},
{... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1575281/"
] |
334,658 | <p>Which would be quicker.</p>
<p>1) Looping a datareader and creating a custom rows and columns based populated datatable</p>
<p>2) Or creating a dataAdapter object and just (.Fill)ing a datatable.</p>
<p>Does the performance of a datareader still hold true upon dynamic creation of a datatable? </p>
| [
{
"answer_id": 334680,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 3,
"selected": false,
"text": "DataTable dt = new DataTable();\n\nusing (SqlConnection conn = GetOpenSqlConnection())\nusing (SqlCommand cmd = new Sq... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42446/"
] |
334,669 | <p>When the command prompt opens and then just closes really fast (because there isn't a pause line) is there a way to see what it just showed you? </p>
| [
{
"answer_id": 334682,
"author": "joegtp",
"author_id": 39431,
"author_profile": "https://Stackoverflow.com/users/39431",
"pm_score": 3,
"selected": false,
"text": "something.exe > c:\\temp\\output.txt\n"
},
{
"answer_id": 334688,
"author": "CheGueVerra",
"author_id": 177... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1161710/"
] |
334,671 | <p>I need to create a trigger in every database on my sql 2005 instance. I'm setting up some auditing ddl triggers.</p>
<p>I create a cursor with all database names and try to execute a USE statement. This doesn't seem to change the database - the CREATE TRIGGER statement just fires in adventureworks repeatedly. Th... | [
{
"answer_id": 334711,
"author": "Timothy Khouri",
"author_id": 11917,
"author_profile": "https://Stackoverflow.com/users/11917",
"pm_score": 1,
"selected": false,
"text": "sp_msforeachdb 'USE ?; PRINT ''Hello ?'''\n"
},
{
"answer_id": 334775,
"author": "Tom H",
"author_i... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37379/"
] |
334,674 | <p>So I don't do a lot of Win32 calls, but recently I have had to use the <a href="http://msdn.microsoft.com/en-us/library/ms724320(VS.85).aspx" rel="nofollow noreferrer"><code>GetFileTime()</code></a> and <a href="http://msdn.microsoft.com/en-us/library/ms724933(VS.85).aspx" rel="nofollow noreferrer"><code>SetFileTime... | [
{
"answer_id": 334690,
"author": "Roland Rabien",
"author_id": 39138,
"author_profile": "https://Stackoverflow.com/users/39138",
"pm_score": 4,
"selected": true,
"text": "LoadLibrary()"
},
{
"answer_id": 337322,
"author": "MSalters",
"author_id": 15416,
"author_profil... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1913/"
] |
334,686 | <p>I have Perl on Mac, Windows and Ubuntu. How can I tell from within the script which one is which? Thanks in advance.</p>
<p><strong>Edit:</strong> I was asked what I am doing. It is a script, part of our cross-platform build system. The script recurses directories and figures out what files to build. Some files are... | [
{
"answer_id": 334700,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 7,
"selected": true,
"text": "$^O"
},
{
"answer_id": 336174,
"author": "brian d foy",
"author_id": 2766176,
"author_profile": "... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6444/"
] |
334,691 | <p>I need the tool for graphical representing of work flow in a program (like electronic circuits are described with graphical representation). The representation has to be like the following: functions are boxes and arrows between boxes are "messages". Like this:</p>
<p><a href="http://img372.imageshack.us/img372/847... | [
{
"answer_id": 340694,
"author": "epatel",
"author_id": 842,
"author_profile": "https://Stackoverflow.com/users/842",
"pm_score": 2,
"selected": false,
"text": "#include <stdio.h>\n\n/* there are 8 blocks */\nint running;\n/* there are 1 out blocks */\nint state_curr_1;\nint state_next_1... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20514/"
] |
334,698 | <p>Is it possible to create a MySQL select statement that uses an expression as x then checks if the value for x is under a certain amount?</p>
<pre><code>SELECT (mytable.field1 + 10) AS x FROM `mytable` WHERE x < 50;
</code></pre>
| [
{
"answer_id": 334704,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 4,
"selected": true,
"text": "SELECT (mytable.field1 + 10) AS x FROM `mytable` WHERE (mytable.field1 + 10) < 50;\n"
},
{
"answer_id": 334715,
... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
334,702 | <p>I'm trying to get an object element from my webpage using getElementById (ultimately so I can replace it with a dynamically created object element) but it is returning <code>null</code> in IE6.</p>
<p>In the following code, the <code>byId()</code> function returns <code>null</code> in IE but an <code>[object HTMLOb... | [
{
"answer_id": 334790,
"author": "Johan Buret",
"author_id": 15366,
"author_profile": "https://Stackoverflow.com/users/15366",
"pm_score": 2,
"selected": false,
"text": "<object>"
},
{
"answer_id": 28982545,
"author": "HTML5 developer",
"author_id": 4656706,
"author_p... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40443/"
] |
334,705 | <p>I'm trying to create a css reset that targets only my control. So the HTML will look something like this:</p>
<pre><code><body>
<img class="outterImg" src="sadkitty.gif" />
<div id="container" class="container">
<img class="innerImg" src="sadkitty.gif" />
<div class="subContai... | [
{
"answer_id": 334763,
"author": "Joel Meador",
"author_id": 1976,
"author_profile": "https://Stackoverflow.com/users/1976",
"pm_score": 0,
"selected": false,
"text": "img \n{ \n border: solid 3px red; \n width: 50px; \n} \n.container .innerImg, .container div \n{ \n border: so... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7423/"
] |
334,708 | <p>I know that codeIgniter turns off GET parameters by default. </p>
<p>But by having everything done in POST, don't you get annoyed by the re-send data requests if ever you press back after a form submission?</p>
<p>It annoys me, but I'm not sure if I want to allow GET purely for this reason.</p>
<p>Is it such a b... | [
{
"answer_id": 334787,
"author": "Jelani Harris",
"author_id": 42538,
"author_profile": "https://Stackoverflow.com/users/42538",
"pm_score": 7,
"selected": true,
"text": "parse_str($_SERVER['QUERY_STRING'], $_GET); \n"
},
{
"answer_id": 1250535,
"author": "Community",
"au... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42106/"
] |
334,748 | <p>If I give the input from Text Box like</p>
<blockquote>
<p>AaBbcdCDEb</p>
</blockquote>
<p>the output should be</p>
<blockquote>
<p>ABCDE or abcde</p>
</blockquote>
<p>only unique characters should be there, no repeated characters.</p>
<p>How do I do this?</p>
| [
{
"answer_id": 334761,
"author": "joegtp",
"author_id": 39431,
"author_profile": "https://Stackoverflow.com/users/39431",
"pm_score": 2,
"selected": false,
"text": "new string(\"AaBbcdCDEb\".ToLower().Distinct().ToArray());\n"
},
{
"answer_id": 334986,
"author": "Bob",
"a... | 2008/12/02 | [
"https://Stackoverflow.com/questions/334748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42532/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.