qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
28,952 | <p>Is it possible to get a breakdown of CPU utilization <strong>by database</strong>?</p>
<p>I'm ideally looking for a Task Manager type interface for SQL server, but instead of looking at the CPU utilization of each PID (like <code>taskmgr</code>) or each SPID (like <code>spwho2k5</code>), I want to view the total CP... | [
{
"answer_id": 488509,
"author": "Brent Ozar",
"author_id": 26837,
"author_profile": "https://Stackoverflow.com/users/26837",
"pm_score": 8,
"selected": true,
"text": "SELECT total_worker_time/execution_count AS AvgCPU \n, total_worker_time AS TotalCPU\n, total_elapsed_time/execution_co... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1690/"
] |
28,965 | <p>Watching SO come online has been quite an education for me. I'd like to make a checklist of various vunerabilities and exploits used against web sites, and what programming techniques can be used to defend against them.</p>
<ul>
<li>What categories of vunerabilities?
<ul>
<li>crashing site</li>
<li>breaking into... | [
{
"answer_id": 28978,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 2,
"selected": false,
"text": "mysql_real_escape_string"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/28965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/116/"
] |
28,975 | <p>I've followed the <a href="http://incubator.apache.org/couchdb/index.html" rel="noreferrer">CouchDB</a> project with interest over the last couple of years, and see it is now an Apache Incubator project. Prior to that, the CouchDB web site was full of <em>do not use for production code</em> type disclaimers, so I'd ... | [
{
"answer_id": 29060,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 4,
"selected": false,
"text": "GET 0.10.x 0.9.1"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/28975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2745/"
] |
28,982 | <p>Related to my <a href="https://stackoverflow.com/questions/28975/anyone-using-couchdb">CouchDB</a> question.</p>
<p>Can anyone explain MapReduce in terms a numbnuts could understand?</p>
| [
{
"answer_id": 29029,
"author": "Damien B",
"author_id": 3069,
"author_profile": "https://Stackoverflow.com/users/3069",
"pm_score": 4,
"selected": false,
"text": "for each document\n for each word in the document\n get the counter associated to the word for the document\n ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/28982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2745/"
] |
29,004 | <p>Sometimes I need to quickly extract some arbitrary data from XML files to put into a CSV format. What's your best practices for doing this in the Unix terminal? I would love some code examples, so for instance how can I get the following problem solved?</p>
<p>Example XML input:</p>
<pre class="lang-html prettyprint... | [
{
"answer_id": 29023,
"author": "Peter Hilton",
"author_id": 2670,
"author_profile": "https://Stackoverflow.com/users/2670",
"pm_score": 3,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/261/"
] |
29,011 | <p>I have</p>
<pre><code>class Foo < ActiveRecord::Base
named_scope :a, lambda { |a| :conditions => { :a => a } }
named_scope :b, lambda { |b| :conditions => { :b => b } }
end
</code></pre>
<p>I'd like</p>
<pre><code>class Foo < ActiveRecord::Base
named_scope :ab, lambda { |a,b| :conditions =... | [
{
"answer_id": 30719,
"author": "PJ.",
"author_id": 3230,
"author_profile": "https://Stackoverflow.com/users/3230",
"pm_score": 3,
"selected": true,
"text": "\n def self.ab(a, b)\n a(a).b(b)\n end\n "
},
{
"answer_id": 30753,
"author": "James A. Ro... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
29,040 | <p>I have one table "orders" with a foreing key "ProductID".</p>
<p>I want to show the orders in a grid with the <strong>product name</strong>, without <strong>LazyLoad</strong> for better performance, but I if use <strong>DataLoadOptions</strong> it retrieves <strong>all</strong> Product fields, which seams like a <s... | [
{
"answer_id": 29069,
"author": "Scott Wisniewski",
"author_id": 1737192,
"author_profile": "https://Stackoverflow.com/users/1737192",
"pm_score": 0,
"selected": false,
"text": "var q = from p in dataContext.products select p.ProductName;\nvar results = q.ToList();\n"
},
{
"answe... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2385/"
] |
29,053 | <p>Code:</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Unusual Array Lengths!</title>
<script type="text/javascript">
var arrayList = new Array();
arrayList = [1, 2, 3, 4, 5, ];
alert(arrayList.length);
</script>
</... | [
{
"answer_id": 29062,
"author": "Damien B",
"author_id": 3069,
"author_profile": "https://Stackoverflow.com/users/3069",
"pm_score": 2,
"selected": false,
"text": "if(!arrayList[arrayList.length -1]) arrayList.pop();\n"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/29053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/384/"
] |
29,061 | <p>When I try to use an <strong>ssh</strong> command in a shell script, the command just sits there. Do you have an example of how to use <strong>ssh</strong> in a shell script?</p>
| [
{
"answer_id": 29078,
"author": "Iker Jimenez",
"author_id": 2697,
"author_profile": "https://Stackoverflow.com/users/2697",
"pm_score": 0,
"selected": false,
"text": "expect"
},
{
"answer_id": 29083,
"author": "Mats Fredriksson",
"author_id": 2973,
"author_profile": ... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438/"
] |
29,067 | <p>I have a repeater that is bound to some data.</p>
<p>I bind to the <strong>ItemDataBound</strong> event, and I am attempting to <strong>programmatically</strong> create a <strong>UserControl</strong>:</p>
<p>In a nutshell:</p>
<pre><code>void rptrTaskList_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
... | [
{
"answer_id": 29080,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 1,
"selected": false,
"text": "ExecTaskControl foo = (ExecTaskControl)LoadControl(\"tasks\\\\ExecTaskControl.ascx\");\n"
},
{
"answer_id": 29543,
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
29,088 | <p>What is the difference between a <a href="http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.group.aspx" rel="nofollow noreferrer">Group</a> and a <a href="http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.match.aspx" rel="nofollow noreferrer">Match</a> in .NET's RegEx?</p>
| [
{
"answer_id": 29108,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://Stackoverflow.com/users/1199",
"pm_score": 4,
"selected": true,
"text": "string text = \"One car red car blue car\";\nstring pat = @\"(\\w+)\\s+(car)\";\nMatch m = r.Match(text);\n m (\\w+) (car... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
29,099 | <p>Since debate without meaningful terms is <a href="https://stackoverflow.com/questions/24270/whats-the-point-of-oop">meaningless</a>, I figured I would point at the elephant in the room and ask: What exactly makes a language "object-oriented"? I'm not looking for a textbook answer here, but one based on your experien... | [
{
"answer_id": 29217,
"author": "Quibblesome",
"author_id": 1143,
"author_profile": "https://Stackoverflow.com/users/1143",
"pm_score": -1,
"selected": false,
"text": "foreach(House house in location.Houses)\n{\n foreach(Deliverable mail in new Mailbag(new Deliverable[]\n {\... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3121/"
] |
29,107 | <p>Can anyone suggest a good implementation of a generic collection class that implements the <code>IBindingListView</code> & <code>IBindingList</code> interfaces and provides Filtering and Searching capabilities?</p>
<p>I see my current options as:<br /></p>
<ul>
<li>Using a class that someone else has written a... | [
{
"answer_id": 29146,
"author": "Joseph Daigle",
"author_id": 507,
"author_profile": "https://Stackoverflow.com/users/507",
"pm_score": 1,
"selected": false,
"text": "BindlingList<T> IBindingListView"
},
{
"answer_id": 165333,
"author": "Aaron Wagner",
"author_id": 3909,
... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/708/"
] |
29,141 | <p>The problem: Loading an excel spreadsheet template. Using the Save command with a different filename and then quitting the interop object. This ends up saving the original template file. Not the result that is liked.</p>
<pre><code>public void saveAndExit(string filename)
{
excelApplication.Save(filen... | [
{
"answer_id": 29232,
"author": "Kevin Crumley",
"author_id": 1818,
"author_profile": "https://Stackoverflow.com/users/1818",
"pm_score": 4,
"selected": true,
"text": "Microsoft.Office.Interop.Excel.Workbook wbk = excelApplication.Workbooks[0]; //or some other way of obtaining this work... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3135/"
] |
29,142 | <p>This is a follow-on question to the <a href="https://stackoverflow.com/questions/29061/how-do-you-use-ssh-in-a-shell-script">How do you use ssh in a shell script?</a> question. If I want to execute a command on the remote machine that runs in the background on that machine, how do I get the ssh command to return? ... | [
{
"answer_id": 29172,
"author": "Jax",
"author_id": 23,
"author_profile": "https://Stackoverflow.com/users/23",
"pm_score": 10,
"selected": true,
"text": "nohup myprogram > foo.out 2> foo.err < /dev/null &\n"
},
{
"answer_id": 30638,
"author": "hometoast",
"author_id": 20... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/171/"
] |
29,145 | <p>I know that there are a few (automatic) ways to create a data access layer to manipulate an existing database (LINQ to SQL, Hibernate, etc...). But I'm getting kind of tired (and I believe that there should be a better way of doing things) of stuff like:</p>
<ol>
<li>Creating/altering tables in Visio</li>
<li>Using... | [
{
"answer_id": 4281637,
"author": "Lucero",
"author_id": 88558,
"author_profile": "https://Stackoverflow.com/users/88558",
"pm_score": 0,
"selected": false,
"text": "CREATE"
}
] | 2008/08/26 | [
"https://Stackoverflow.com/questions/29145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2841/"
] |
29,155 | <p>What are the differences between delegates and an events? Don't both hold references to functions that can be executed?</p>
| [
{
"answer_id": 24712324,
"author": "faby",
"author_id": 3515042,
"author_profile": "https://Stackoverflow.com/users/3515042",
"pm_score": 7,
"selected": false,
"text": "public class Animal\n{\n public Action Run {get; set;}\n\n public void RaiseEvent()\n {\n if (Run != nu... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2993/"
] |
29,157 | <p>I am using StretchImage because the box is resizable with splitters. It looks like the default is some kind of smooth bilinear filtering, causing my image to be blurry and have moire patterns. </p>
| [
{
"answer_id": 5079308,
"author": "Alex D",
"author_id": 621520,
"author_profile": "https://Stackoverflow.com/users/621520",
"pm_score": 2,
"selected": false,
"text": " private void Form1_Load(object sender, EventArgs e)\n {\n // set image location\n imgOriginal = new... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2543/"
] |
29,168 | <p>My master branch layout is like this:</p>
<p><strong>/</strong> <-- top level</p>
<p><strong>/client</strong> <-- desktop client source files</p>
<p><strong>/server</strong> <-- Rails app</p>
<p>What I'd like to do is only pull down the /server directory in my <code>deploy.rb</code>, but I can't seem to... | [
{
"answer_id": 861804,
"author": "Simon Woodside",
"author_id": 102675,
"author_profile": "https://Stackoverflow.com/users/102675",
"pm_score": 2,
"selected": false,
"text": "set :project, \"mysubdirectory\""
},
{
"answer_id": 2047574,
"author": "thodg",
"author_id": 2487... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/574/"
] |
29,174 | <p>I'm using <a href="http://jquery.com/" rel="noreferrer">jQuery</a> and <a href="http://www.ericmmartin.com/projects/simplemodal/" rel="noreferrer">SimpleModal</a> in an ASP.Net project to make some nice dialogs for a web app. Unfortunately, any buttons in a modal dialog can no longer execute their postbacks, which ... | [
{
"answer_id": 30846,
"author": "Chris Zwiryk",
"author_id": 734,
"author_profile": "https://Stackoverflow.com/users/734",
"pm_score": 2,
"selected": false,
"text": "btn.OnClientClick = string.Format(\"{0}; dlg.close();\",\n ClientScript.GetPostBackEventReference(b... | 2008/08/26 | [
"https://Stackoverflow.com/questions/29174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2363/"
] |
29,242 | <p>I work a lot with network and serial communications software, so it is often necessary for me to have code to display or log hex dumps of data packets.</p>
<p>Every time I do this, I write yet another hex-dump routine from scratch. I'm about to do so again, but figured I'd ask here: Is there any good free hex dum... | [
{
"answer_id": 29395,
"author": "nohat",
"author_id": 3101,
"author_profile": "https://Stackoverflow.com/users/3101",
"pm_score": 4,
"selected": true,
"text": "xxd vim * Distribute freely and credit me,\n* make money and share with me,\n* lose money and don't ask me.\n hexdump"
},
{
... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
29,243 | <p>Here is my sample code:</p>
<pre><code>from xml.dom.minidom import *
def make_xml():
doc = Document()
node = doc.createElement('foo')
node.innerText = 'bar'
doc.appendChild(node)
return doc
if __name__ == '__main__':
make_xml().writexml(sys.stdout)
</code></pre>
<p>when I run the above code... | [
{
"answer_id": 29255,
"author": "dF.",
"author_id": 3002,
"author_profile": "https://Stackoverflow.com/users/3002",
"pm_score": 4,
"selected": true,
"text": "node.noSuchAttr = 'bar' minidom ElementTree import sys\nfrom xml.etree.cElementTree import Element, ElementTree\n\ndef make_xml():... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
29,244 | <p>I have the following HTML (note the CSS making the background black and text white)</p>
<pre><code><html>
<select id="opts" style="background-color: black; color: white;">
<option>first</option>
<option>second</option>
</select>
</html>
</code></pre>
<p>... | [
{
"answer_id": 29439,
"author": "RedWolves",
"author_id": 648,
"author_profile": "https://Stackoverflow.com/users/648",
"pm_score": 3,
"selected": true,
"text": "Vista XP SP 2"
},
{
"answer_id": 365359,
"author": "Community",
"author_id": -1,
"author_profile": "https:... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/234/"
] |
29,284 | <p>I was testing on a customer's box this afternoon which has Windows Vista (He had home, but I am testing on a Business Edition with same results).</p>
<p>We make use of a .DLL that gets the Hardware ID of the computer. It's usage is very simple and the sample program I have created works. The Dll is <a href="http://... | [
{
"answer_id": 30886,
"author": "imaginaryboy",
"author_id": 2508,
"author_profile": "https://Stackoverflow.com/users/2508",
"pm_score": 0,
"selected": false,
"text": "icacls C:\\Folder\n"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2684/"
] |
29,308 | <p>In the <a href="http://herdingcode.com/" rel="nofollow noreferrer">herding code</a> podcast 14 someone mentions that stackoverflow displayed the queries that were executed during a request at the bottom of the page. </p>
<p>It sounds like an excellent idea to me. Every time a page loads I want to know what sql stat... | [
{
"answer_id": 29319,
"author": "Jedi Master Spooky",
"author_id": 1154,
"author_profile": "https://Stackoverflow.com/users/1154",
"pm_score": 2,
"selected": false,
"text": "var query = from p in db.Table\n select p;\n\nMessageBox.SHow(query.ToString());\n"
},
{
"answe... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2785/"
] |
29,324 | <p>What is the most straightforward way to create a hash table (or associative array...) in Java? My google-fu has turned up a couple examples, but is there a standard way to do this?</p>
<p>And is there a way to populate the table with a list of key->value pairs without individually calling an add method on the obje... | [
{
"answer_id": 29334,
"author": "John",
"author_id": 2168,
"author_profile": "https://Stackoverflow.com/users/2168",
"pm_score": 2,
"selected": false,
"text": "import java.util.HashMap;\n\nMap map = new HashMap();\n"
},
{
"answer_id": 29336,
"author": "Edmund Tay",
"autho... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/145/"
] |
29,335 | <p>My current employer uses a 3rd party hosted CRM provider and we have a fairly sophisticated integration tier between the two systems. Amongst the capabilities of the CRM provider is for developers to author business logic in a Java like language and on events such as the user clicking a button or submitting a new... | [
{
"answer_id": 29334,
"author": "John",
"author_id": 2168,
"author_profile": "https://Stackoverflow.com/users/2168",
"pm_score": 2,
"selected": false,
"text": "import java.util.HashMap;\n\nMap map = new HashMap();\n"
},
{
"answer_id": 29336,
"author": "Edmund Tay",
"autho... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2228/"
] |
29,346 | <p>I have a web application that needs to read (and possibly write) files from a network share. I was wondering what the best way to do this would be?</p>
<p>I can't give the network service or aspnet accounts access to the network share. I could possibly use impersonation.</p>
<p>The network share and the web applic... | [
{
"answer_id": 29349,
"author": "Dan Herbert",
"author_id": 392,
"author_profile": "https://Stackoverflow.com/users/392",
"pm_score": 0,
"selected": false,
"text": "aspnet"
},
{
"answer_id": 11900448,
"author": "Mike Perrenoud",
"author_id": 1195080,
"author_profile":... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/493/"
] |
29,383 | <p>Maybe this is a dumb question, but is there any way to convert a boolean value to a string such that 1 turns to "true" and 0 turns to "false"? I could just use an if statement, but it would be nice to know if there is a way to do that with the language or standard libraries. Plus, I'm a pedant. :)</p>
| [
{
"answer_id": 29394,
"author": "Joseph Pecoraro",
"author_id": 792,
"author_profile": "https://Stackoverflow.com/users/792",
"pm_score": -1,
"selected": false,
"text": "#include <stdio.h>\n#include <stdarg.h>\n\n#define BOOL_STR(b) (b?\"true\":\"false\")\n\nint main (int argc, char cons... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
29,436 | <p>I'm using the .NET CF 3.5. The type I want to create does not have a default constructor so I want to pass a string to an overloaded constructor. How do I do this?</p>
<p>Code:</p>
<pre><code>Assembly a = Assembly.LoadFrom("my.dll");
Type t = a.GetType("type info here");
// All ok so far, assembly loads and I can ... | [
{
"answer_id": 29444,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 0,
"selected": false,
"text": "Type t = a.GetType(\"type info here\");\nvar ctors = t.GetConstructors();\nstring s = \"Pass me to the ctor of t\";\nMyOb... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/636/"
] |
29,437 | <p>I want to shift the contents of an array of bytes by 12-bit to the left.</p>
<p>For example, starting with this array of type <code>uint8_t shift[10]</code>:</p>
<pre><code>{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xBC}
</code></pre>
<p>I'd like to shift it to the left by 12-bits resulting in:</p>
... | [
{
"answer_id": 29463,
"author": "Joseph Pecoraro",
"author_id": 792,
"author_profile": "https://Stackoverflow.com/users/792",
"pm_score": 2,
"selected": false,
"text": "N N - Total number of bits to shift\nF = (N / 8) - Full 8 bit integers shifted\nR = (N % 8) - Remaining bits... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/609/"
] |
29,482 | <p>How do I cast an <code>int</code> to an <code>enum</code> in C#?</p>
| [
{
"answer_id": 29485,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 13,
"selected": true,
"text": "YourEnum foo = (YourEnum)yourInt;\n YourEnum foo = (YourEnum) Enum.Parse(typeof(YourEnum), yourString);\n\n// The foo.ToStrin... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/493/"
] |
29,496 | <p>I'd like to write a script/batch that will bunch up my daily IIS logs and zip them up by month.</p>
<p>ex080801.log which is in the format of ex<em>yymmdd</em>.log</p>
<p>ex080801.log - ex080831.log gets zipped up and the log files deleted.</p>
<p>The reason we do this is because on a heavy site a log file for on... | [
{
"answer_id": 29609,
"author": "David Crow",
"author_id": 2783,
"author_profile": "https://Stackoverflow.com/users/2783",
"pm_score": 5,
"selected": true,
"text": "7za.exe a -tzip ex%1-logs.zip %2\\ex%1*.log\ndel %2\\ex%1*.log\n ziplogs.bat 0808 c:\\logs"
},
{
"answer_id": 35030... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/648/"
] |
29,511 | <p>In Ruby, trying to print out the individual elements of a String is giving me trouble. Instead of seeing each character, I'm seeing their ASCII values instead: </p>
<pre><code>>> a = "0123"
=> "0123"
>> a[0]
=> 48
</code></pre>
<p>I've looked online but can't find any way to get the original "0" ... | [
{
"answer_id": 29512,
"author": "SCdF",
"author_id": 1666,
"author_profile": "https://Stackoverflow.com/users/1666",
"pm_score": 3,
"selected": false,
"text": "a[0,1] a[0]"
},
{
"answer_id": 29521,
"author": "Joseph Pecoraro",
"author_id": 792,
"author_profile": "http... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/422/"
] |
29,525 | <p>Can anyone tell me what is the <em>memory usage overhead associated with PHP opcode cache</em>? </p>
<p>I've seen a lot of reviews of <code>opcode cache</code> but all of them only concentrate on the performance increase. I have a small entry level <em>VPS and memory limits</em> are a concern for me. </p>
| [
{
"answer_id": 29824,
"author": "AdamTheHutt",
"author_id": 1103,
"author_profile": "https://Stackoverflow.com/users/1103",
"pm_score": 0,
"selected": false,
"text": "limit APC apc_store() apc_fetch()"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2976/"
] |
29,531 | <p>I want to use CodeDOM to both declare and initialize my static field in one statement. How can I do this?</p>
<pre><code>// for example
public static int MyField = 5;
</code></pre>
<p>I can seem to figure out how to declare a static field, and I can set its value later, but I can't seem to get the above effect.</... | [
{
"answer_id": 29538,
"author": "Haacked",
"author_id": 598,
"author_profile": "https://Stackoverflow.com/users/598",
"pm_score": 1,
"selected": false,
"text": "private static Foo instance = new Foo();\n"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/404/"
] |
29,539 | <p>Is there a one line function call that quits the program and displays a message? I know in Perl it's as simple as:</p>
<pre><code>die("Message goes here")
</code></pre>
<p>I'm tired of typing this:</p>
<pre><code>puts "Message goes here"
exit
</code></pre>
| [
{
"answer_id": 29547,
"author": "Mike Stone",
"author_id": 122,
"author_profile": "https://Stackoverflow.com/users/122",
"pm_score": 1,
"selected": false,
"text": "def die(msg)\n puts msg\n exit\nend\n"
},
{
"answer_id": 29587,
"author": "Jörg W Mittag",
"author_id": 29... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/422/"
] |
29,558 | <p>This might be on the "discussy" side, but I would really like to hear your view on this.</p>
<p>Previously I have often written data access classes that handled both reading and writing, which often led to poor naming, like FooIoHandler etc. The rule of thumb that classes that are hard to name probably are poorly d... | [
{
"answer_id": 29577,
"author": "Yaakov Ellis",
"author_id": 51,
"author_profile": "https://Stackoverflow.com/users/51",
"pm_score": 2,
"selected": false,
"text": "Car car = new Car();\ncar.Manufacturer = \"Toyota\"\ncar.Model = \"Camry\"\ncar.Year = 2006;\ncar.CarID = CarDB.InsertCar(ca... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/276/"
] |
29,562 | <p>I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross platform.</p>
<p>my main goal is to create a .deb package for... | [
{
"answer_id": 29575,
"author": "Sander",
"author_id": 2928,
"author_profile": "https://Stackoverflow.com/users/2928",
"pm_score": 5,
"selected": true,
"text": "#!/usr/bin/python \n\nfrom distutils.core import setup \n\nsetup (name = 'Initech Package 3', \n description = \"Servi... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2908/"
] |
29,580 | <p>It's one of those things that seems to have an odd curve where the more I think about it, the more it makes sense. To a certain extent, of course. And then it doesn't make sense to me at all.</p>
<p>Care to enlighten me?</p>
| [
{
"answer_id": 289682,
"author": "Stein G. Strindhaug",
"author_id": 26115,
"author_profile": "https://Stackoverflow.com/users/26115",
"pm_score": 0,
"selected": false,
"text": "select * from hugetable where somecondition; limit offset"
},
{
"answer_id": 374980,
"author": "Jo... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2293/"
] |
29,621 | <p>On Windows I can do:</p>
<pre><code>HANDLE hCurrentProcess = GetCurrentProcess();
SetPriorityClass(hCurrentProcess, ABOVE_NORMAL_PRIORITY_CLASS);
</code></pre>
<p>How can I do the same thing on *nix?</p>
| [
{
"answer_id": 29623,
"author": "Silas Snider",
"author_id": 2933,
"author_profile": "https://Stackoverflow.com/users/2933",
"pm_score": 6,
"selected": true,
"text": "#include <sys/time.h>\n#include <sys/resource.h>\n\nint main(){\n setpriority(PRIO_PROCESS, 0, -20);\n}\n"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/163/"
] |
29,624 | <p>I have a form element that contains multiple lines of inputs. Think of each line as attributes of a new object that I want to create in my web application. And, I want to be able to create multiple new objects in one HTTP POST. I'm using Javascript's built-in cloneNode(true) method to clone each line. The problem ... | [
{
"answer_id": 32281,
"author": "doekman",
"author_id": 56,
"author_profile": "https://Stackoverflow.com/users/56",
"pm_score": 0,
"selected": false,
"text": "var newItem = $(item).cloneNode(false);\nnewItem.innerHTML = $(item).innerHTML;\n"
},
{
"answer_id": 170515,
"author"... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1376/"
] |
29,626 | <p>In a VB.NET WinForms project, I get an exception</p>
<blockquote>
<p>Cannot access a disposed of object</p>
</blockquote>
<p>when closing a form. It occurs very rarely and I cannot recreate it on demand. The stack trace looks like this:</p>
<pre><code>Cannot access a disposed object. Object name: 'dbiSchedule'.... | [
{
"answer_id": 29637,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 4,
"selected": false,
"text": "if ControlObject.IsDisposed then return; // or do whatever - but don't call control methods\n"
},
{
"answer_id": 923267... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/961/"
] |
29,630 | <p>I've writen an Excel-based, database reporting tool. Currentely, all the VBA code is associated with a single XLS file. The user generates the report by clicking a button on the toolbar. Unfortunately, unless the user has saved the file under another file name, all the reported data gets wiped-out.</p>
<p>When I ha... | [
{
"answer_id": 29778,
"author": "saschabeaumont",
"author_id": 592,
"author_profile": "https://Stackoverflow.com/users/592",
"pm_score": 3,
"selected": false,
"text": "Public Sub Workbook_Open()\n ' startup code / add toolbar / load saved settings, etc.\nEnd Sub\n"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2665/"
] |
29,645 | <p>I have a few lines of PowerShell code that I would like to use as an automated script. The way I would like it to be able to work is to be able to call it using one of the following options:</p>
<ol>
<li>One command line that opens PowerShell, executes script and closes PowerShell (this would be used for a global b... | [
{
"answer_id": 29649,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 4,
"selected": true,
"text": "powershell.exe .\\foo.ps1\n"
},
{
"answer_id": 29675,
"author": "Yaakov Ellis",
"author_id": 51,
"auth... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51/"
] |
29,647 | <p>Let's say I'm creating a program in C that needs to use a tempfile. Creating an ad hoc tempfile in /tmp is probably not a good idea. Is there a function or OS call to supply me with a tempfile name so that I can begin to write and read from it?</p>
| [
{
"answer_id": 29656,
"author": "gavrie",
"author_id": 2794,
"author_profile": "https://Stackoverflow.com/users/2794",
"pm_score": 5,
"selected": true,
"text": "mkstemp(3) tmpfile(3) tmpfile mkstemp tmpfile"
},
{
"answer_id": 29693,
"author": "gavrie",
"author_id": 2794,
... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/432/"
] |
29,654 | <p>I'm developing a WinForms application (.Net 3.5, no WPF) where I want to be able to display foreign key lookups in a databound DataGridView. </p>
<p>An example of the sort of relationship is that I have a table of OrderLines. Orderlines have a foreign key relationship to Products and Products in turn have a foreig... | [
{
"answer_id": 225076,
"author": "Bevan",
"author_id": 30280,
"author_profile": "https://Stackoverflow.com/users/30280",
"pm_score": 0,
"selected": false,
"text": "myTextBox.DataBindings.Add(\"Text\", anOrderLine, \"OrderedPart.PartNumber\");\n"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2660/"
] |
29,664 | <p>I need to specifically catch SQL server timeout exceptions so that they can be handled differently. I know I could catch the SqlException and then check if the message string Contains "Timeout" but was wondering if there is a better way to do it?</p>
<pre><code>try
{
//some code
}
catch (SqlException ex)
{
... | [
{
"answer_id": 62688,
"author": "Jonathan",
"author_id": 6910,
"author_profile": "https://Stackoverflow.com/users/6910",
"pm_score": 8,
"selected": true,
"text": "if (ex.Number == -2)\n{\n //handle timeout\n}\n try\n{\n SqlConnection sql = new SqlConnection(@\"Network Library=DBMS... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2231/"
] |
29,668 | <p>I have two machines in two different domains. On both I have VS 2005 installed. I want remote debug between them. Without authentication it is possible but I want to debug managed code. I don't want to debug directly since it is really crappy machine.</p>
<p>When I try to attach with debugger I get message "The tru... | [
{
"answer_id": 17620190,
"author": "Walter Wilfinger",
"author_id": 2184185,
"author_profile": "https://Stackoverflow.com/users/2184185",
"pm_score": 1,
"selected": false,
"text": "PHYSICAL DOMAIN DOMAIN\\employee VIRTUAL PHYSICAL\\employee PHYSICAL VIRTUAL\\employee VIRTUAL DOMAIN\\empl... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/501/"
] |
29,686 | <p>I'll have an ASP.net page that creates some Excel Sheets and sends them to the user. The problem is, sometimes I get Http timeouts, presumably because the Request runs longer than executionTimeout (110 seconds per default).</p>
<p>I just wonder what my options are to prevent this, without wanting to generally incre... | [
{
"answer_id": 29754,
"author": "John Hunter",
"author_id": 2253,
"author_profile": "https://Stackoverflow.com/users/2253",
"pm_score": 5,
"selected": true,
"text": "HttpContext.Current.Server.ScriptTimeout"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91/"
] |
29,689 | <p>I have a large codebase without Javadoc, and I want to run a program to write a skeleton with the basic Javadoc information (e.g., for each method's parameter write @param...), so I just have to fill the gaps left.</p>
<p>Anyone know a good solution for this?</p>
<p><strong>Edit:</strong></p>
<p>JAutodoc is what ... | [
{
"answer_id": 16472314,
"author": "Booger",
"author_id": 636988,
"author_profile": "https://Stackoverflow.com/users/636988",
"pm_score": 4,
"selected": false,
"text": "/**\n"
},
{
"answer_id": 25558376,
"author": "Jorgesys",
"author_id": 250260,
"author_profile": "ht... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2937/"
] |
29,696 | <p>How do you stop the designer from auto generating code that sets the value for public properties on a user control?</p>
| [
{
"answer_id": 29717,
"author": "Will Dean",
"author_id": 987,
"author_profile": "https://Stackoverflow.com/users/987",
"pm_score": 3,
"selected": false,
"text": "[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\n"
},
{
"answer_id": 2972... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2253/"
] |
29,699 | <p>I have a database with names in it such as John Doe etc. Unfortunately some of these names contain quotes like Keiran O'Keefe. Now when I try and search for such names as follows:</p>
<pre><code>SELECT * FROM PEOPLE WHERE SURNAME='O'Keefe'
</code></pre>
<p>I (understandably) get an error.</p>
<p>How do I preven... | [
{
"answer_id": 29727,
"author": "Matt Sheppard",
"author_id": 797,
"author_profile": "https://Stackoverflow.com/users/797",
"pm_score": 6,
"selected": true,
"text": "SELECT * FROM PEOPLE WHERE SURNAME='O'Keefe' SELECT * FROM PEOPLE WHERE SURNAME='O''Keefe' SELECT * FROM PEOPLE WHERE SURN... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445/"
] |
29,709 | <p>I am using jQuery and trying to find a cross browser way to get the pixel coordinates of the caret in <code><textarea></code>s and <code>input</code> boxes such that I can place an absolutely positioned div around this location.</p>
<p>Is there some jQuery plugin? Or JavaScript snippet to do just that?</p>
| [
{
"answer_id": 29934,
"author": "Cheekysoft",
"author_id": 1820,
"author_profile": "https://Stackoverflow.com/users/1820",
"pm_score": 0,
"selected": false,
"text": "function insertAtCursor(myField, myValue) {\n\n/* selecion model - ie */\nif (document.selection) {\n myField.focus();\n ... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/238/"
] |
29,731 | <p>I have done a bit of research into this and it seems that the only way to sort a data bound combo box is to sort the data source itself (a DataTable in a DataSet in this case). </p>
<p>If that is the case then the question becomes what is the best way to sort a DataTable?</p>
<p>The combo box bindings are set in ... | [
{
"answer_id": 29735,
"author": "Andy Rose",
"author_id": 1762,
"author_profile": "https://Stackoverflow.com/users/1762",
"pm_score": 0,
"selected": false,
"text": "DataView dv = myDataTable.Select(\"filter expression\", \"sort\");\n"
},
{
"answer_id": 29738,
"author": "Matt ... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2253/"
] |
29,746 | <p>I'm looking for something that will show me the size of each folder within my main folder recursively.</p>
<p>This is a <a href="http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29" rel="nofollow noreferrer">LAMP</a> server with a CGI-Bin so most any PHP script should work or anything that will work in the CGI-... | [
{
"answer_id": 29755,
"author": "lubos hasko",
"author_id": 275,
"author_profile": "https://Stackoverflow.com/users/275",
"pm_score": 4,
"selected": true,
"text": "function getDirectorySize($path)\n{\n $totalsize = 0;\n $totalcount = 0;\n $dircount = 0;\n if ($handle = opendir ($path... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
29,751 | <p>I am having problems submitting forms which contain UTF-8 strings with Ajax. I am developing a <a href="http://en.wikipedia.org/wiki/Apache_Struts" rel="noreferrer">Struts</a> web application which runs in a <a href="http://en.wikipedia.org/wiki/Apache_Tomcat" rel="noreferrer">Tomcat</a> server. This is the environm... | [
{
"answer_id": 29756,
"author": "Pat",
"author_id": 238,
"author_profile": "https://Stackoverflow.com/users/238",
"pm_score": 4,
"selected": false,
"text": "$.ajaxSetup({ \n scriptCharset: \"utf-8\" , \n contentType: \"application/json; charset=utf-8\"\n});\n"
},
{
"answer_... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
29,760 | <p>I've got a problem here with an MSI deployment that I'm working on (using <a href="http://en.wikipedia.org/wiki/InstallShield" rel="nofollow noreferrer">InstallShield</a>). We have a program running in the background that needs to run per-user, and it needs to start automatically without user intervention.</p>
<p>T... | [
{
"answer_id": 29803,
"author": "saschabeaumont",
"author_id": 592,
"author_profile": "https://Stackoverflow.com/users/592",
"pm_score": 1,
"selected": false,
"text": "On Error Resume Next \nstrComputer = \".\"\nSet objWMIService = GetObject(\"winmgmts:\" _\n & \"{impersonationLevel=i... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/592/"
] |
29,761 | <p>Can anyone recommend a good repository viewer for Git, similar to gitk, that works on Mac OS X Leopard? (I'm not saying gitk doesn't work)</p>
<p>Of course I would like a native Mac application, but as I haven't found any, what are the best options to gitk?</p>
<p>I know about gitview, but I'm looking forward to e... | [
{
"answer_id": 36858,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 2,
"selected": false,
"text": "git gui gitk"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2954/"
] |
29,810 | <p>I am in charge of about 100+ documents (word document, not source code) that needs revision by different people in my department. Currently all the documents are in a shared folder where they will retrieve, revise and save back into the folder. </p>
<p>What I am doing now is looking up the "date modified" in the sh... | [
{
"answer_id": 8527923,
"author": "Gautam",
"author_id": 492561,
"author_profile": "https://Stackoverflow.com/users/492561",
"pm_score": 3,
"selected": false,
"text": "git .doc .odf .gitattributes diff"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1261/"
] |
29,820 | <p>In Java, say you have a class that wraps an <code>ArrayList</code> (or any collection) of objects. </p>
<p>How would you return one of those objects such that the caller will not see any future changes to the object made in the ArrayList? </p>
<p>i.e. you want to return a deep copy of the object, but you don't kno... | [
{
"answer_id": 29826,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 3,
"selected": true,
"text": "ArrayList<ICloneable>()"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/142/"
] |
29,822 | <p>One of our weblogic 8.1s has suddenly started logging giant amounts of logs and filling the disk.</p>
<p>The logs giving us hassle resides in </p>
<pre><code>mydrive:\bea\weblogic81\common\nodemanager\NodeManagerLogs\generatedManagedServer1\managedserveroutput.log
</code></pre>
<p>and the entries in the logfile i... | [
{
"answer_id": 29826,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 3,
"selected": true,
"text": "ArrayList<ICloneable>()"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/86/"
] |
29,841 | <p>We have a Windows Service written in C#. The service spawns a thread that does this: </p>
<pre><code>private void ThreadWorkerFunction()
{
while(false == _stop) // stop flag set by other thread
{
try
{
openConnection();
doStuff();
closeConnection();
}
catch (Exception ex)
... | [
{
"answer_id": 116008,
"author": "d4nt",
"author_id": 1039,
"author_profile": "https://Stackoverflow.com/users/1039",
"pm_score": 0,
"selected": false,
"text": "private void ThreadWorkerFunction()\n{\n DateTime? timeout = null;\n\n while (!_stop)\n {\n try\n {\n if (timeout... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1039/"
] |
29,845 | <p>I have an application on which I am implementing localization.</p>
<p>I now need to dynamically reference a name in the resouce file.</p>
<p>assume I have a resource file called Login.resx, an a number of strings: foo="hello", bar="cruel" and baz="world"</p>
<p>normally, I will refer as:
String result =Login.foo... | [
{
"answer_id": 29866,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": true,
"text": "ResourceManager Login.resx var resman = new System.Resources.ResourceManager(\n \"RootNamespace.Login\",\n System... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1090/"
] |
29,847 | <p>I have a History Table in SQL Server that basically tracks an item through a process. The item has some fixed fields that don't change throughout the process, but has a few other fields including status and Id which increment as the steps of the process increase.</p>
<p>Basically I want to retrieve the last step fo... | [
{
"answer_id": 29848,
"author": "ZombieSheep",
"author_id": 377,
"author_profile": "https://Stackoverflow.com/users/377",
"pm_score": 3,
"selected": false,
"text": "select \n top 1 <fields> \nfrom \n HistoryTable \nwhere \n BatchRef = @BatchRef \norder by \n <IdentityColumn> ... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1075/"
] |
29,856 | <p>The default Python install on OS X 10.5 is 2.5.1 with a FAT 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past, I have run Apache and MySQL to match this install in 32 bit mode (even stripping out the 64 bit stuff from Apache to make it work).</p>
<p>I want to upgrade Python ... | [
{
"answer_id": 31765,
"author": "John Douthat",
"author_id": 2774,
"author_profile": "https://Stackoverflow.com/users/2774",
"pm_score": 1,
"selected": false,
"text": "./configure --prefix=/usr/local/python64\nmake\nsudo make install\n"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3431280/"
] |
29,869 | <p>I need to match and remove all tags using a regular expression in Perl. I have the following:</p>
<pre><code><\\??(?!p).+?>
</code></pre>
<p>But this still matches with the closing <code></p></code> tag. Any hint on how to match with the closing tag as well?</p>
<p>Note, this is being performed on x... | [
{
"answer_id": 29871,
"author": "Brian Warshaw",
"author_id": 1344,
"author_profile": "https://Stackoverflow.com/users/1344",
"pm_score": 1,
"selected": false,
"text": "/<\\/?[^p][^>]*>/ <pre> <param> /<\\/?(?!p>|p )[^>]+>/\n <p>"
},
{
"answer_id": 29875,
"author": "Konrad Ru... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/274/"
] |
29,886 | <p>I'm writing a simple photo album app using ASP.NET Ajax.<br>
The app uses async Ajax calls to pre-load the next photo in the album, without changing the URL in the browser.</p>
<p>The problem is that when the user clicks the <strong>back</strong> button in the browser, the app doesn't go back to the previous photo,... | [
{
"answer_id": 3591659,
"author": "balupton",
"author_id": 130638,
"author_profile": "https://Stackoverflow.com/users/130638",
"pm_score": 4,
"selected": false,
"text": "hashchange hashchange"
},
{
"answer_id": 10233899,
"author": "Nikita Koksharov",
"author_id": 764206,
... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/373/"
] |
29,890 | <ol>
<li>You have multiple network adapters.</li>
<li>Bind a UDP socket to an local port, without specifying an address.</li>
<li>Receive packets on one of the adapters.</li>
</ol>
<p>How do you get the local ip address of the adapter which received the packet?</p>
<p>The question is, "What is the ip address from the... | [
{
"answer_id": 29912,
"author": "diciu",
"author_id": 2811,
"author_profile": "https://Stackoverflow.com/users/2811",
"pm_score": -1,
"selected": false,
"text": "\nint nbytes = recvfrom(sock, buf, MAXBUFSIZE, MSG_WAITALL, (struct sockaddr *)&bindaddr, &addrlen); \n\n fprintf(stdout, \"Re... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3186/"
] |
29,943 | <p>Can someone please tell me how to submit an HTML form when the return key is pressed and if there are no buttons in the form?
<strong>The submit button is not there</strong>. I am using a custom div instead of that.</p>
| [
{
"answer_id": 29951,
"author": "Sean Chambers",
"author_id": 2993,
"author_profile": "https://Stackoverflow.com/users/2993",
"pm_score": 3,
"selected": false,
"text": "j(\".textBoxClass\").keypress(function(e)\n{\n // if the key pressed is the enter key\n if (e.which == 13)\n {... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
29,971 | <p>Setting up an integration server, I’m in doubt about the best approach regarding using multiple tasks to complete the build. Is the best way to set all in just one big-job or make small dependent ones?</p>
| [
{
"answer_id": 29991,
"author": "Rob Wells",
"author_id": 2974,
"author_profile": "https://Stackoverflow.com/users/2974",
"pm_score": 0,
"selected": false,
"text": "</thebloodyobvious> (-:\n"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2267/"
] |
29,976 | <p>We have a couple of ASP.Net dataview column templates that are dynamically added to the dataview depending on columns selected by users.</p>
<p>These templated cells need to handle custom databindings:</p>
<pre><code>public class CustomColumnTemplate:
ITemplate
{
public void InstantiateIn( Control contain... | [
{
"answer_id": 30536,
"author": "David Basarab",
"author_id": 2469,
"author_profile": "https://Stackoverflow.com/users/2469",
"pm_score": 3,
"selected": true,
"text": " //add a custom data binding\n contentLabel.DataBinding +=\n (object sender, EventArgs e ) =>\n... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/905/"
] |
29,980 | <p>So I'm working on some legacy code that's heavy on the manual database operations. I'm trying to maintain some semblance of quality here, so I'm going TDD as much as possible.</p>
<p>The code I'm working on needs to populate, let's say a <code>List<Foo></code> from a DataReader that returns all the fields req... | [
{
"answer_id": 30055,
"author": "kokos",
"author_id": 1065,
"author_profile": "https://Stackoverflow.com/users/1065",
"pm_score": 0,
"selected": false,
"text": "var arrFoos = new Foos[]{...}; // what you expect\nvar expectedFoos = new List<Foo>(arrFoos); // make a list from the hardcoded... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/266/"
] |
29,988 | <p>I'd like my program to be able to email me error reports. How can I do this without hard-coding a username/password/SMTP server/etc. into the code? (Doing so would allow users to decompile the program and take over this email account.)</p>
<p>I've been told you could do some stuff with telneting to port 25, but I'm... | [
{
"answer_id": 30007,
"author": "aku",
"author_id": 1196,
"author_profile": "https://Stackoverflow.com/users/1196",
"pm_score": -1,
"selected": false,
"text": "MailMessage msg = new MailMessage(\"someone@foo.com\", \"someoneelse@bar.com\");\nmsg.Subject = \"Check it out!\";\nmsg.Body = \... | 2008/08/27 | [
"https://Stackoverflow.com/questions/29988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3191/"
] |
29,995 | <p>I want to practice my skills away from a keyboard (i.e. pen and paper) and I'm after simple practice questions like Fizz Buzz, Print the first N primes.</p>
<p>What are your favourite simple programming questions?</p>
| [
{
"answer_id": 30047,
"author": "OysterD",
"author_id": 2638,
"author_profile": "https://Stackoverflow.com/users/2638",
"pm_score": 1,
"selected": false,
"text": "a1 * a2 * ... * aN / ai"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/29995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1736/"
] |
30,003 | <p>I have the following html code: </p>
<pre><code><h3 id="headerid"><span onclick="expandCollapse('headerid')">&uArr;</span>Header title</h3>
</code></pre>
<p>I would like to toggle between up arrow and down arrow each time the user clicks the span tag. </p>
<pre><code>function expandCol... | [
{
"answer_id": 30013,
"author": "jason saldo",
"author_id": 1293,
"author_profile": "https://Stackoverflow.com/users/1293",
"pm_score": 1,
"selected": false,
"text": "<div id=\"inplace\">\n<div id=\"myStatic\">Hello World!</div>\n<div id=\"myEdit\" style=\"display: none\">\n<input id=\"m... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
30,005 | <p>I have to load a PDF within a page.</p>
<p>Ideally I would like to have a loading animated gif which is replaced once the PDF has loaded.</p>
| [
{
"answer_id": 30012,
"author": "travis",
"author_id": 1414,
"author_profile": "https://Stackoverflow.com/users/1414",
"pm_score": 8,
"selected": false,
"text": "$(\"#iFrameId\").on(\"load\", function () {\n // do something once the iframe is loaded\n});\n"
},
{
"answer_id": 3... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3168/"
] |
30,018 | <p>How can I use XPath to select an XML-node based on its content? </p>
<p>If I e.g. have the following xml and I want to select the <author>-node that contains Ritchie to get the author's full name:</p>
<pre><code><books>
<book isbn='0131103628'>
<title>The C Programming Language&... | [
{
"answer_id": 30019,
"author": "Cros",
"author_id": 1523,
"author_profile": "https://Stackoverflow.com/users/1523",
"pm_score": 2,
"selected": false,
"text": "/books/book/authors/author[contains(., 'Ritchie')]\n xmlDoc.SelectSingleNode(\"/books/book/authors/author[contains(., 'Ritchie')... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1523/"
] |
30,026 | <p>I've seen a lot of commonality in regex capabilities of different regex-enabled tools/languages (e.g. perl, sed, java, vim, etc), but I've also many differences.</p>
<p>Is there a <em>standard</em> subset of regex capabilities that all regex-enabled tools/languages will support? How do regex capabilities vary betwe... | [
{
"answer_id": 30054,
"author": "Rob Wells",
"author_id": 2974,
"author_profile": "https://Stackoverflow.com/users/2974",
"pm_score": 1,
"selected": false,
"text": "\"xyxyxyzz\" \"(xy)*(xyz)?\" \"xyxyxyz\" \"xyxyxy\""
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/30026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2045/"
] |
30,036 | <p>Is there some way to do multi-threading in JavaScript?</p>
| [
{
"answer_id": 30200,
"author": "17 of 26",
"author_id": 2284,
"author_profile": "https://Stackoverflow.com/users/2284",
"pm_score": 4,
"selected": false,
"text": "setTimeout()"
},
{
"answer_id": 13710318,
"author": "Jono",
"author_id": 1876818,
"author_profile": "htt... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/184/"
] |
30,049 | <p>I got embroiled in a discussion about DOM implementation quirks yesterday, with gave rise to an interesting question regarding Text.splitText and Element.normalise behaviours, and how they should behave.</p>
<p>In <a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html" rel="nofollow norefer... | [
{
"answer_id": 34202,
"author": "Sam Brightman",
"author_id": 2492,
"author_profile": "https://Stackoverflow.com/users/2492",
"pm_score": 2,
"selected": false,
"text": "textNode splitText"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/30049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1200/"
] |
30,058 | <p>The <a href="http://developer.apple.com/documentation/AppleApplications/Reference/SafariWebContent/UsingiPhoneApplications/chapter_6_section_4.html" rel="nofollow noreferrer">Apple Developer Documentation</a> (link is dead now) explains that if you place a link in a web page and then click it whilst using Mobile Saf... | [
{
"answer_id": 30079,
"author": "Adam Wright",
"author_id": 1200,
"author_profile": "https://Stackoverflow.com/users/1200",
"pm_score": 7,
"selected": true,
"text": "openURL UIApplication [someUIApplication openURL:[NSURL URLWithString:@\"http://maps.google.com/maps?q=London\"]]\n MKMapI... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2183/"
] |
30,062 | <p>Yesterday I wanted to add a boolean field to an Oracle table. However, there isn't actually a boolean data type in Oracle. Does anyone here know the best way to simulate a boolean? Googling the subject discovered several approaches</p>
<ol>
<li><p>Use an integer and just don't bother assigning anything other tha... | [
{
"answer_id": 30072,
"author": "ColinYounger",
"author_id": 1223,
"author_profile": "https://Stackoverflow.com/users/1223",
"pm_score": 7,
"selected": true,
"text": "getBoolean() create table tbool (bool char check (bool in (0,1));\ninsert into tbool values(0);\ninsert into tbool values... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1694/"
] |
30,066 | <p>I'm looking for a way to redirect all the stderr streams in interactive bash (ideally to its calling parent process).</p>
<p>I don't want to redirect stderr stream from each individual command, which I could do by appending <code>2> a_file</code> to each command.</p>
<p>By default, these stderr streams are redi... | [
{
"answer_id": 30085,
"author": "caerwyn",
"author_id": 2406,
"author_profile": "https://Stackoverflow.com/users/2406",
"pm_score": 2,
"selected": false,
"text": " $ bash -i 2> stderr.log\n $ \n"
},
{
"answer_id": 30088,
"author": "gavrie",
"author_id": 2794,
"autho... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1044/"
] |
30,074 | <p>We have several .NET applications that monitor a directory for new files, using FileSystemWatcher. The files are copied from another location, uploaded via FTP, etc. When they come in, the files are processed in one way or another. However, one problem that I have never seen a satisfactory answer for is: for large f... | [
{
"answer_id": 1431709,
"author": "Dirk Vollmar",
"author_id": 40347,
"author_profile": "https://Stackoverflow.com/users/40347",
"pm_score": 2,
"selected": false,
"text": "/// <summary>\n/// Waits until a file can be opened with write permission\n/// </summary>\npublic static void WaitRe... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2144/"
] |
30,080 | <p>I have two points (a line segment) and a rectangle. I would like to know how to calculate if the line segment intersects the rectangle. </p>
| [
{
"answer_id": 30109,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 5,
"selected": true,
"text": "public struct Line\n{\n public static Line Empty;\n\n private PointF p1;\n private PointF p2;\n\n public L... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/623/"
] |
30,099 | <p>In my browsings amongst the Internet, I came across <a href="http://www.reddit.com/r/programming/comments/6y6lr/ask_proggit_which_is_more_useful_to_know_c_or_java/" rel="nofollow noreferrer">this post</a>, which includes this</p>
<blockquote>
<p>"(Well written) C++ goes to great
lengths to make stack automatic
... | [
{
"answer_id": 30125,
"author": "Brad Barker",
"author_id": 12081,
"author_profile": "https://Stackoverflow.com/users/12081",
"pm_score": 1,
"selected": false,
"text": "MyObject x = MyObject(params); // onto the stack\n\nMyObject * y = new MyObject(params); // onto the heap\n"
},
{
... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/841/"
] |
30,170 | <p>Are there any useful techniques for reducing the repetition of constants in a CSS file?</p>
<p>(For example, a bunch of different selectors which should all apply the same colour, or the same font size)?</p>
| [
{
"answer_id": 30177,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 0,
"selected": false,
"text": "<div class=\"one two\">"
},
{
"answer_id": 30178,
"author": "KevinUK",
"author_id": 1469,
"author_profi... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/797/"
] |
30,171 | <p>Help! I have an Axis web service that is being consumed by a C# application. Everything works great, except that arrays of long values always come across as [0,0,0,0] - the right length, but the values aren't deserialized. I have tried with other primitives (ints, doubles) and the same thing happens. What do I d... | [
{
"answer_id": 30172,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 4,
"selected": true,
"text": " <xsd:complexType name=\"ArrayOf_xsd_long\">\n <xsd:complexContent mixed=\"false\">\n <xsd:restriction base=\... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/96/"
] |
30,184 | <p>I am creating a small modal form that is used in Winforms application. It is basically a progress bar of sorts. But I would like the user to be able to click anywhere in the form and drag it to move it around on the desktop while it is still being displayed.</p>
<p>How can I implement this behavior?</p>
| [
{
"answer_id": 30241,
"author": "Timothy Fries",
"author_id": 3163,
"author_profile": "https://Stackoverflow.com/users/3163",
"pm_score": 6,
"selected": true,
"text": "private const int WM_NCHITTEST = 0x84;\nprivate const int HTCLIENT = 0x1;\nprivate const int HTCAPTION = 0x2;\n\n... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/507/"
] |
30,188 | <p>I am trying to set a <code>javascript</code> <code>date</code> so that it can be submitted via <code>JSON</code> to a <code>.NET</code> type, but when attempting to do this, <code>jQuery</code> sets the <code>date</code> to a full <code>string</code>, what format does it have to be in to be converted to a <code>.NET... | [
{
"answer_id": 30241,
"author": "Timothy Fries",
"author_id": 3163,
"author_profile": "https://Stackoverflow.com/users/3163",
"pm_score": 6,
"selected": true,
"text": "private const int WM_NCHITTEST = 0x84;\nprivate const int HTCLIENT = 0x1;\nprivate const int HTCAPTION = 0x2;\n\n... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2993/"
] |
30,211 | <p>Is the ZIP compression that is built into Windows XP/Vista/2003/2008 able to be scripted at all? What executable would I have to call from a BAT/CMD file? or is it possible to do it with VBScript?</p>
<p>I realize that this is possible using <a href="http://en.wikipedia.org/wiki/WinZip" rel="noreferrer">WinZip</a>,... | [
{
"answer_id": 30473,
"author": "Adam Davis",
"author_id": 2915,
"author_profile": "https://Stackoverflow.com/users/2915",
"pm_score": 6,
"selected": true,
"text": ".zip Sub NewZip(sPath)\n'Create empty Zip File\n'Changed by keepITcool Dec-12-2005\n If Len(Dir(sPath)) > 0 Then Kill sP... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1414/"
] |
30,222 | <p>I am writing a query in which I have to get the data for only the last year. What is the best way to do this?</p>
<pre><code>SELECT ... FROM ... WHERE date > '8/27/2007 12:00:00 AM'
</code></pre>
| [
{
"answer_id": 30229,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 9,
"selected": true,
"text": "SELECT ... From ... WHERE date > DATEADD(year,-1,GETDATE())\n"
},
{
"answer_id": 30232,
"author": "SQLMenace",
... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2486/"
] |
30,230 | <p>I have some C# / asp.net code I inherited which has a textbox which I want to make multiline. I did so by adding textmode="multiline" but when I try to insert a newline, the enter key instead submits the form :P</p>
<p>I googled around and it seems like the default behavior should be for enter (or control-enter) to... | [
{
"answer_id": 30261,
"author": "samjudson",
"author_id": 1908,
"author_profile": "https://Stackoverflow.com/users/1908",
"pm_score": 1,
"selected": false,
"text": "<asp:TextBox runat=\"server\" ID=\"textbox1\" TextMode=\"MultiLine\" />\n<br />\n<br />\n<asp:Button runat=\"server\" ID=\"... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2462/"
] |
30,239 | <p>I have an images folder with a png in it. I would like to set a MenuItem's icon to that png. How do I write this in procedural code?</p>
| [
{
"answer_id": 30285,
"author": "Timothy Fries",
"author_id": 3163,
"author_profile": "https://Stackoverflow.com/users/3163",
"pm_score": 7,
"selected": true,
"text": "menutItem.Icon = new System.Windows.Controls.Image \n { \n Source = new BitmapImage(new Uri(\"images/sam... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3047/"
] |
30,251 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/83073/why-not-use-tables-for-layout-in-html">Why not use tables for layout in HTML?</a> </p>
</blockquote>
<p>Under what conditions should you choose tables instead of DIVs in HTML coding?</p>
| [
{
"answer_id": 30264,
"author": "Peter Stuifzand",
"author_id": 1633,
"author_profile": "https://Stackoverflow.com/users/1633",
"pm_score": 1,
"selected": false,
"text": "div"
},
{
"answer_id": 30595,
"author": "Sören Kuklau",
"author_id": 1600,
"author_profile": "htt... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2141/"
] |
30,288 | <p>Using CFML (ColdFusion Markup Langauge, aka ColdFusion), how can you compare if two single dimension arrays are the same?</p>
| [
{
"answer_id": 30292,
"author": "Jason",
"author_id": 3242,
"author_profile": "https://Stackoverflow.com/users/3242",
"pm_score": 4,
"selected": false,
"text": "<cfset array1 = listToArray(\"tom,dick,harry,phred\")/>\n<cfset array2 = listToArray(\"dick,harry,phred\") />\n<cfset array3 = ... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3242/"
] |
30,302 | <p>I'd like to ignore multiple wildcard routes. With asp.net mvc preview 4, they ship with:</p>
<pre><code>RouteTable.Routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
</code></pre>
<p>I'd also like to add something like:</p>
<pre><code>RouteTable.Routes.IgnoreRoute("Content/{*pathInfo}");
</code></pre>
<p>but tha... | [
{
"answer_id": 30551,
"author": "Haacked",
"author_id": 598,
"author_profile": "https://Stackoverflow.com/users/598",
"pm_score": 5,
"selected": true,
"text": "RouteTable.Routes.IgnoreRoute(\"{folder}/{*pathInfo}\", new {folder=\"content\"});\n"
}
] | 2008/08/27 | [
"https://Stackoverflow.com/questions/30302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3085/"
] |
30,307 | <p>I'm doing some PHP stuff on an Ubuntu server.</p>
<p>The path I'm working in is <strong>/mnt/dev-windows-data/Staging/mbiek/test_list</strong> but the PHP call <code>getcwd()</code> is returning <strong>/mnt/dev-windows/Staging/mbiek/test_list</strong> (notice how it's dev-windows instead of dev-windows-data).</p>
... | [
{
"answer_id": 30313,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 2,
"selected": true,
"text": "<?php\n require_once('./includes/construct.php');\n //snip\n?>\n <?php\n //snip\n (!defined('DIR')) ? define('DIR', g... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305/"
] |
30,310 | <p>I'd like to have dashes separate words in my URLs. So instead of:</p>
<pre><code>/MyController/MyAction
</code></pre>
<p>I'd like:</p>
<pre><code>/My-Controller/My-Action
</code></pre>
<p>Is this possible?</p>
| [
{
"answer_id": 540583,
"author": "ChadT",
"author_id": 23300,
"author_profile": "https://Stackoverflow.com/users/23300",
"pm_score": 8,
"selected": true,
"text": "[ActionName(\"My-Action\")]\npublic ActionResult MyAction() {\n return View();\n}\n public static void RegisterRoutes(Rout... | 2008/08/27 | [
"https://Stackoverflow.com/questions/30310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3085/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.