qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
207,959 | <p>I'm converting some Windows batch files to Unix scripts using sh. I have problems because some behavior is dependent on the %~dp0 macro available in batch files.</p>
<p>Is there any sh equivalent to this? Any way to obtain the directory where the executing script lives?</p>
| [
{
"answer_id": 207961,
"author": "Sarien",
"author_id": 1994377,
"author_profile": "https://Stackoverflow.com/users/1994377",
"pm_score": 3,
"selected": false,
"text": "${0}\n {$var%Pattern}\nRemove from $var the shortest part of $Pattern that matches the back end of $var.\n ${0%/*}\n #... | 2008/10/16 | [
"https://Stackoverflow.com/questions/207959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11628/"
] |
207,964 | <p>I have a large query in a PostgreSQL database.
The Query is something like this:</p>
<pre><code>SELECT * FROM table1, table2, ... WHERE table1.id = table2.id...
</code></pre>
<p>When I run this query as a sql query, the it returns the wanted row.</p>
<p>But when I tries to use the same query to create a view, it ... | [
{
"answer_id": 208004,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 6,
"selected": true,
"text": "SELECT table1.id, column2, column3, ... FROM table1, table2 \nWHERE table1.id = table2.id\n postgres=# select 1 as a,... | 2008/10/16 | [
"https://Stackoverflow.com/questions/207964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26567/"
] |
207,965 | <p>I came across a class instance function that needed to temporarily change a class instance variable, and then restore it when the function completed. The function had return statements all over the place, and before each return there was a restoring statement. That seemed messy to me, not to mention scary when a exc... | [
{
"answer_id": 208108,
"author": "dalle",
"author_id": 19100,
"author_profile": "https://Stackoverflow.com/users/19100",
"pm_score": 3,
"selected": false,
"text": "template<typename T>\nclass restorer {\n T& ref_;\n T save_;\npublic:\n restorer(T& perm) : ref_(perm), save_(ref_) {}... | 2008/10/16 | [
"https://Stackoverflow.com/questions/207965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28524/"
] |
207,976 | <p>I have a bunch of enum types in some library header files that I'm using, and I want to have a way of converting enum values to user strings - and vice-versa. </p>
<p>RTTI won't do it for me, because the 'user strings' need to be a bit more readable than the enumerations.</p>
<p>A brute force solution would be a b... | [
{
"answer_id": 207985,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 4,
"selected": false,
"text": "enum {\n VALUE1, /* value 1 */\n VALUE2, /* value 2 */\n};\n const char* enum2str[] = {\n \"value 1\", /* VALUE1 */\n \"valu... | 2008/10/16 | [
"https://Stackoverflow.com/questions/207976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1737/"
] |
207,981 | <p>I came across PHP way of doing the trick:</p>
<pre><code>my_bool reconnect = 1;
mysql_options(&mysql, MYSQL_OPT_RECONNECT, &reconnect);
</code></pre>
<p>but no luck with MySQLdb (python-mysql).</p>
<p>Can anybody please give a clue? Thanks.</p>
| [
{
"answer_id": 210096,
"author": "Paul D. Eden",
"author_id": 3045,
"author_profile": "https://Stackoverflow.com/users/3045",
"pm_score": 4,
"selected": false,
"text": " # Here is another sad story about bad transactional behavior. MySQL\n # offers a feature to automatically reconn... | 2008/10/16 | [
"https://Stackoverflow.com/questions/207981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/140995/"
] |
208,007 | <p>In our administration team everyone has root passwords for all client servers.
But what should we do if one of the team members is not longer working with us?
He still has our passwords and we have to change them all, every time someone leave us. </p>
<p>Now we are using ssh keys instead of passwords, but this is n... | [
{
"answer_id": 208011,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 5,
"selected": false,
"text": "* sudoers"
},
{
"answer_id": 208040,
"author": "David Webb",
"author_id": 3171,
"author_profile": "https... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28528/"
] |
208,016 | <p>Say I create an object thus:</p>
<pre><code>var myObject =
{"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"};
</code></pre>
<p>What is the best way to retrieve a list of the property names? i.e. I would like to end up with some variable 'keys' such that:</p>
<pre><code>keys == ["ircEvent"... | [
{
"answer_id": 208020,
"author": "slashnick",
"author_id": 21030,
"author_profile": "https://Stackoverflow.com/users/21030",
"pm_score": 11,
"selected": true,
"text": "var keys = Object.keys(myObject);\n var getKeys = function(obj){\n var keys = [];\n for(var key in obj){\n keys... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27929/"
] |
208,017 | <p>I've got simple java-based ppt->swf sub-project that basically works. The open source software out there, <a href="http://www.openoffice.org/" rel="nofollow noreferrer">OpenOffice.org</a> and <a href="http://www.artofsolving.com/opensource/jodconverter" rel="nofollow noreferrer">JODConverter</a> do the job great.</... | [
{
"answer_id": 208020,
"author": "slashnick",
"author_id": 21030,
"author_profile": "https://Stackoverflow.com/users/21030",
"pm_score": 11,
"selected": true,
"text": "var keys = Object.keys(myObject);\n var getKeys = function(obj){\n var keys = [];\n for(var key in obj){\n keys... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2961/"
] |
208,018 | <p>I need to export multiple data tables to Excel on the clients machine, each to their own sheet. If it was just one sheet, I'd use the Excel/csv content type, but I've heard something about an XML format that can represent an entire workbook. I don't want to go down the Packaging and .xlsx route, so I need standard... | [
{
"answer_id": 665594,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": " private static string getWorkbookTemplate()\n {\n var sb = new StringBuilder(818);\n sb.AppendFormat(@\"<... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8741/"
] |
208,027 | <p>and can it be configured not to happen?</p>
<p>I'm usually finding myself saving a result of a query as a .csv and processing it later on my Unix machine. The characters being null separated makes me have to filter those chars and is a bit of a pain.</p>
<p>So, these are the questions:</p>
<ul>
<li>Why is this so... | [
{
"answer_id": 208037,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 1,
"selected": false,
"text": "iconv -futf-16le -tutf-8"
}
] | 2008/10/16 | [
"https://Stackoverflow.com/questions/208027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5190/"
] |
208,038 | <p>I'm looking for a way to selectively apply a CSS class to individual rows in a <code>GridView</code> based upon a property of the data bound item.</p>
<p>e.g.:</p>
<p>GridView's data source is a generic list of <code>SummaryItems</code> and <code>SummaryItem</code> has a property <code>ShouldHighlight</code>. When... | [
{
"answer_id": 208067,
"author": "balexandre",
"author_id": 28004,
"author_profile": "https://Stackoverflow.com/users/28004",
"pm_score": 6,
"selected": true,
"text": "protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)\n{\n if (e.Row.RowType == DataControlRow... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3599/"
] |
208,046 | <p>I'm pretty new to regular expressions. I have a requirement to replace spaces in a piece of multi-line text. The replacement rules are these:</p>
<ul>
<li>Replace all spaces at start-of-line with a non-breaking space (<code>&nbsp;</code>).</li>
<li>Replace any instance of repeated spaces (more than one space to... | [
{
"answer_id": 208076,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 4,
"selected": true,
"text": "\\x20 \\s $str = \"asdasd asdasd asdas1\\n asda234 4545 54\\n 34545 345 34534\\n34 345\\n\";\n\nprint preg_... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17981/"
] |
208,051 | <p>Is there a way to consume a web service using JavaScript? I'm Looking for a built-in way to do it, using a JavaScript framework is not an option. </p>
| [
{
"answer_id": 208182,
"author": "DOK",
"author_id": 27637,
"author_profile": "https://Stackoverflow.com/users/27637",
"pm_score": 0,
"selected": false,
"text": "// javascript global variables\nvar soapHeader = '<?xml version=\\\"1.0\\\"?>'\n + '<SOAP-ENV:Envelope xmlns:SOA... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15152/"
] |
208,063 | <p>I want to develop a website in ASP classic that uses HTTP Authentication against a database or password list that is under the control of the script. Ideally, the solution should involve no components or IIS settings as the script should be runnable in a hosted environment.</p>
<p>Any clues/code deeply appreciated.... | [
{
"answer_id": 208195,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "Dim DatabaseObject1\nSet DatabaseObject1 = Server.CreateObject(\"ADODB.Connection\")\nDatabaseObject1.Open(\"DSN=DSNname;\")\n... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24461/"
] |
208,074 | <p>I need to search all cpp/h files in svn working copy for "foo", excluding svn's special folders completely. What is the <strong>exact</strong> command for GNU grep?</p>
| [
{
"answer_id": 208135,
"author": "JesperE",
"author_id": 13051,
"author_profile": "https://Stackoverflow.com/users/13051",
"pm_score": 2,
"selected": false,
"text": "svn ls -R | xargs -d '\\n' grep <string-to-search-for>\n"
},
{
"answer_id": 1369762,
"author": "Ether",
"a... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20310/"
] |
208,077 | <p>If i can use</p>
<pre><code><td><textarea><bean:write name="smlMoverDetailForm" property="empFDJoiningDate"/>
</textarea></td>
</code></pre>
<p>to displace a value how can i use the struts tags to save a vaiable to the sesssion </p>
<p>in sudo code</p>
<pre><code>session.setAttribut... | [
{
"answer_id": 271570,
"author": "Fred",
"author_id": 33630,
"author_profile": "https://Stackoverflow.com/users/33630",
"pm_score": 1,
"selected": false,
"text": "session.setAttribute(\"test\",((THECLASSOFTHEBEAN)request.getAttribute(\"smlMoverDetailForm\")).getEmpFDJoiningDate());\n ses... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
208,084 | <p>In Visual Studio 2008 (and others) when creating a .NET or silverlight application if you look at your project properties, it seems like you can only have one assembly name - across all configurations. I would like to compile my application as:</p>
<p>MyAppDebug - in debug mode
and just
MyApp - in release mode</p>
... | [
{
"answer_id": 208158,
"author": "Josh",
"author_id": 11702,
"author_profile": "https://Stackoverflow.com/users/11702",
"pm_score": 2,
"selected": false,
"text": "#if DEBUG\n[assembly: AssemblyTitle(\"MyAssemblyDebug\")]\n#else\n[assembly: AssemblyTitle(\"MyAssembly\")]\n#endif\n"
},
... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/986/"
] |
208,085 | <pre><code>Apache/2.2.6 (Unix) DAV/2 mod_python/3.2.8 Python/2.4.4 configured ...
</code></pre>
<p>One of apache processes spawns some long-running python script asynchronously, and apparently doesn't seem to collect its child process table entry. After that long-run-in-subprocess python script finishes - defunct pyth... | [
{
"answer_id": 208158,
"author": "Josh",
"author_id": 11702,
"author_profile": "https://Stackoverflow.com/users/11702",
"pm_score": 2,
"selected": false,
"text": "#if DEBUG\n[assembly: AssemblyTitle(\"MyAssemblyDebug\")]\n#else\n[assembly: AssemblyTitle(\"MyAssembly\")]\n#endif\n"
},
... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/140995/"
] |
208,089 | <p>I am using Spring Forms for my web application. For nested properties, the form tag generates the input elements having id / name in form of .</p>
<p>For example, Person is the command class and Address is contained into its address field then the city element would be,</p>
<pre><code><input type="text" id="add... | [
{
"answer_id": 208116,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 5,
"selected": true,
"text": "$(\"#address\\\\.city\").val();\n \\ #foo\\\\:bar\n#foo\\\\[bar\\\\]\n#foo\\\\.bar\n"
},
{
"answer_id": 389599,
"au... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/959/"
] |
208,098 | <p>We have an application on Linux that used the <a href="http://linux.die.net/man/3/syslog" rel="noreferrer">syslog</a> mechanism. After a week spent trying to figure out why this application was running slower than expected, we discovered that if we eliminated syslog, and just wrote directly to a log file, performan... | [
{
"answer_id": 208109,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 1,
"selected": false,
"text": "LD_PRELOAD stderr /dev/log syslogd"
},
{
"answer_id": 208276,
"author": "jj33",
"author_id": 430,
"autho... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
208,105 | <p>Given an object:</p>
<pre><code>let myObject = {
"ircEvent": "PRIVMSG",
"method": "newURI",
"regex": "^http://.*"
};
</code></pre>
<p>How do I remove the property <code>regex</code> to end up with the following <code>myObject</code>?</p>
<pre><code>le... | [
{
"answer_id": 208106,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 14,
"selected": true,
"text": "delete myObject.regex;\n// or,\ndelete myObject['regex'];\n// or,\nvar prop = \"regex\";\ndelete myObject[prop];\n var myObjec... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27929/"
] |
208,119 | <p>How can I launch an event that has accessors like this :</p>
<pre><code>public event EventHandler CanExecuteChanged
{
add
{
CommandManager.RequerySuggested += value;
}
remove
{
CommandManager.RequerySuggested -= value;
}
}
</code></pre>
<p>If it were a no... | [
{
"answer_id": 208127,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "<blockquote>CommandManager.RequerySuggested(sender, EventArgs.…)</blockquote>\n CommandManager canExecuteChanged(send... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5246/"
] |
208,120 | <p>I want to write a program for this: In a folder I have <em>n</em> number of files; first read one file and perform some operation then store result in a separate file. Then read 2nd file, perform operation again and save result in new 2nd file. Do the same procedure for <em>n</em> number of files. The program reads ... | [
{
"answer_id": 208156,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 4,
"selected": false,
"text": "import sys\n\n# argv is your commandline arguments, argv[0] is your program name, so skip it\nfor n in sys.argv[1... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17451/"
] |
208,123 | <p>I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app.
Some of these classes are compatible with WPF and I would quite like to be able to have Silverlight / WPF code al... | [
{
"answer_id": 210364,
"author": "Christopher Bennage",
"author_id": 6855,
"author_profile": "https://Stackoverflow.com/users/6855",
"pm_score": 3,
"selected": false,
"text": " public static T GetResource<T>(this FrameworkElement element, object key)\n {\n Dependency... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/986/"
] |
208,133 | <p>By default the SQL Server comes with the Langauge set to "English (United States)", setting the date format to mm/dd/yy instead of the date format I want it in, which is Australian and has a date format such as dd/mm/yy.</p>
<p>Is there an option in the Server Management Studio / Configuration tools where I can set... | [
{
"answer_id": 208168,
"author": "balexandre",
"author_id": 28004,
"author_profile": "https://Stackoverflow.com/users/28004",
"pm_score": 0,
"selected": false,
"text": "INSERT INTO hello VALUES convert(datetime, @Date + ' 00:00:00', 103)\n INSERT INTO hello VALUES convert(datetime, @Date... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20900/"
] |
208,151 | <p>I have a checkbox list control on my asp.net web form that I am dynamically populating from an arraylist. In javascript I want to be able to iterate through the values in the list and if a particular value has been selected to display other controls on the page. </p>
<p>My issue is that all the values in the checkb... | [
{
"answer_id": 208167,
"author": "Dylan Beattie",
"author_id": 5017,
"author_profile": "https://Stackoverflow.com/users/5017",
"pm_score": 2,
"selected": false,
"text": "options[i].checked options[i].value"
}
] | 2008/10/16 | [
"https://Stackoverflow.com/questions/208151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1076/"
] |
208,181 | <p>How do I do <code>mv original.filename new.original.filename</code> without retyping the original filename?</p>
<p>I would imagine being able to do something like <code>mv -p=new. original.filename</code> or perhaps <code>mv original.filename new.~</code> or whatever - but I can't see anything like this after looki... | [
{
"answer_id": 208220,
"author": "Simon Lehmann",
"author_id": 27011,
"author_profile": "https://Stackoverflow.com/users/27011",
"pm_score": 8,
"selected": false,
"text": "rename(1) rename 's/(.*)$/new.$1/' original.filename\n rename *.jpg prefix_*.jpg for filename in *.jpg; do mv \"$fil... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9360/"
] |
208,184 | <p>I'm writing an app in C# (.net 3.5) and I have a question about class design: </p>
<p>I'd like to create a class which accesses a file (read, write) and provides its content to the users (instanciators) of the class. The most common operation on an instance will be to retrieve a certain value from the file. The act... | [
{
"answer_id": 208881,
"author": "Vivek",
"author_id": 7418,
"author_profile": "https://Stackoverflow.com/users/7418",
"pm_score": 1,
"selected": false,
"text": "public class MyFooBarClass\n{\n private static ReaderWriterLock readerWriterLock = new ReaderWriterLock();\n private stati... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16440/"
] |
208,186 | <p>I'm using a web service that returns a dataset. in this dataset there are 5 table, let's say table A, B, C, D, E. I use table A.</p>
<p>So </p>
<pre><code>DataTable dt = new DataTable()
dt = dataset.Table["A"]
</code></pre>
<p>Now in this datatable there are columns a1,a2,a3,a4,a5,a6,a7.</p>
<p>Let's say I only ... | [
{
"answer_id": 208201,
"author": "DOK",
"author_id": 27637,
"author_profile": "https://Stackoverflow.com/users/27637",
"pm_score": 5,
"selected": true,
"text": "AutoGenerateColumns false BoundColumns a3 a4"
},
{
"answer_id": 208205,
"author": "Ilya Komakhin",
"author_id":... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23491/"
] |
208,231 | <p>I want to use the java.util.Preferences API but I don't want my program to attempt to read or write to the Windows registry. How would I go about this?</p>
| [
{
"answer_id": 208289,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 5,
"selected": true,
"text": "java.util.Preferences Preference Preferences java.util.prefs.AbstractPreferences de.unika.ipd.grgen.util.MyPreferences import ja... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
208,234 | <p>I have a form that kicks off a Response.Redirect to download a file once complete. I also want to hide the form and show a 'thank you' panel before the redirect takes place, however it seems the asp.net engine just does the redirect without doing the 2 tasks before in the following code:</p>
<pre><code>if (success... | [
{
"answer_id": 208247,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 1,
"selected": false,
"text": "Response.AddHeader(\"Redirect\", \"3; URL=\" + _downloadURL\")\n Response.Redirect() Response.AddHeader()"
},
{
"a... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21969/"
] |
208,254 | <p>I've just started with opengl but I ran into some strange behaviour.</p>
<p>Below I posted code that runs well in xp but on vista it renders just black screen.</p>
<p>Sorry for posting unusally (as for this board) long code.</p>
<p>Is there something very specific to open gl in vista? Thanks.</p>
<pre><code>#inc... | [
{
"answer_id": 208318,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "PFD_SUPPORT_COMPOSITION DescribePixelFormat glGetString(GL_RENDERER);"
}
] | 2008/10/16 | [
"https://Stackoverflow.com/questions/208254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25587/"
] |
208,261 | <p>Ok, so I want to get a webapp running in tomcat (5.5) to run behind apache 2 (2.2.3 to be precise) serving from the root of the site (i.e. without the context), with static content being served via apache.</p>
<p>So if the app is running under "<code>/myapp</code>" on tomcat I want to use apache (plus <code>mod_rew... | [
{
"answer_id": 208407,
"author": "Leonel Martins",
"author_id": 26673,
"author_profile": "https://Stackoverflow.com/users/26673",
"pm_score": -1,
"selected": false,
"text": "RewriteRule ^/(.*)$ /myapp/$1 [L,R]\n JkMount /* worker1\nJkUnmount /static/* worker1\n mod_jk mod_rewrite +Forwar... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5868/"
] |
208,262 | <p>I've created a jQuery wee plugin for myself which takes care of showing, hiding and submitting a form to give in-place editing. Currently I have several of these on a page which function independently and I am happy. However, I'm thinking that an 'Edit All' might be useful. I'd therefore want to be able to access al... | [
{
"answer_id": 208284,
"author": "jammus",
"author_id": 984,
"author_profile": "https://Stackoverflow.com/users/984",
"pm_score": 0,
"selected": false,
"text": "var plugins = new Array();\n\nplugins.push($('first_editable_section').pluginThing());\nplugins.push($('second_editable_section... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/984/"
] |
208,263 | <p>I have a dev and a UAT environments.
Dev is in our place, UAT is in client's place.</p>
<p>Our DEV machine is a XEON 4 core @2,33GHz, 4Go RAM with Windows server 2003
The UAT physical machine is quite the same but a virtual machine is used (under VMWare).
I don't know the exact parameters used for this VM.</p>
<... | [
{
"answer_id": 208284,
"author": "jammus",
"author_id": 984,
"author_profile": "https://Stackoverflow.com/users/984",
"pm_score": 0,
"selected": false,
"text": "var plugins = new Array();\n\nplugins.push($('first_editable_section').pluginThing());\nplugins.push($('second_editable_section... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28544/"
] |
208,272 | <p>I have seen this macro defined before but never really knew its purpose. Can anyone shed light on this?</p>
| [
{
"answer_id": 208511,
"author": "JayG",
"author_id": 5823,
"author_profile": "https://Stackoverflow.com/users/5823",
"pm_score": 4,
"selected": true,
"text": " /* Get DTMF index */\n switch(dtmf)\n {\n case '0':\n case '1':\n case '2':\n case '3':\n case '4':\n c... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445087/"
] |
208,306 | <p>i know that i can get stacktrace by using Thread.getAllStackTraces()(it returns Map, but clear does not work). When I run recursion method i can get exception because of stacktrace being too big, is there any way to clear it?</p>
| [
{
"answer_id": 208655,
"author": "Pierre",
"author_id": 24449,
"author_profile": "https://Stackoverflow.com/users/24449",
"pm_score": -1,
"selected": false,
"text": "ulimit ulimit -s 8000\n ulimit -s unlimited\n struct ClearStack {} ;\n\nvoid myLongComputationWhichCausesStackOverflow() {... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
208,316 | <p>How can I tell if an App is ASP.NET 2.0 or ASP.NET 1.1. This is in C#</p>
<p>I don't have the source code and I don't have access to IIS Manager. But I can ftp and check the ASPX files. Any Ideas?</p>
| [
{
"answer_id": 208319,
"author": "John Boker",
"author_id": 2847,
"author_profile": "https://Stackoverflow.com/users/2847",
"pm_score": 4,
"selected": true,
"text": "<%@ Page Language=\"C#\" EnableSessionState=\"False\" EnableViewState=\"False\" Trace=\"False\" Debug=\"False\" %>\n\n<scr... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
208,333 | <p>I took a wsp file, and did my <strong>stsadm -o addsolution</strong> like usual. Then I went into <em>central administration->solution management</em> and it showed up just fine. Then I deployed the web part, no problems so far.</p>
<p>The problem is when I go to add it to the webpart gallery (<em>Web Part Galler... | [
{
"answer_id": 208499,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 1,
"selected": false,
"text": "string cmd_StsAdm = @\"C:\\Program files\\Common files\\Microsoft Shared\\web server extensions\\12\\BIN\\stsadm.exe\";\nstri... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14777/"
] |
208,355 | <p>This is a follow up from this <a href="https://stackoverflow.com/questions/198087/how-do-i-list-installed-msi-from-the-command-line">question</a>.</p>
<p>I'm using this slightly modified script to enumerate all installed MSI packages:</p>
<pre><code>strComputer = "."
Set objWMIService = GetObject("winmgmts:" &... | [
{
"answer_id": 15538973,
"author": "Stephen Quan",
"author_id": 881441,
"author_profile": "https://Stackoverflow.com/users/881441",
"pm_score": 1,
"selected": false,
"text": "Dim installer\nSet installer = CreateObject(\"WindowsInstaller.Installer\")\nDim productCode, productName\nFor Ea... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11892/"
] |
208,367 | <p>I'm trying to create a custom JSP tag that would take an array object and display the elements of the tag in an HTML table. Does anyone have suggestions on how to do this?</p>
| [
{
"answer_id": 15538973,
"author": "Stephen Quan",
"author_id": 881441,
"author_profile": "https://Stackoverflow.com/users/881441",
"pm_score": 1,
"selected": false,
"text": "Dim installer\nSet installer = CreateObject(\"WindowsInstaller.Installer\")\nDim productCode, productName\nFor Ea... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28557/"
] |
208,368 | <p>How can I set the font used by the FLVPlaybackCaptioning component for subtitles? Using the style property of the textarea does nothing, and using a TextFormat makes the text go blank, even though the font had been embedded.</p>
| [
{
"answer_id": 208585,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 3,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <tt xml:lang=\"en\" xmlns=\"http://www.w3.org/2006/04/ttaf1\" xmlns:tts=\"http:... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15371/"
] |
208,373 | <p>We need to write unit tests for a <em>wxWidgets</em> application using <em>Google Test Framework</em>.
The problem is that <em>wxWidgets</em> uses the macro <strong>IMPLEMENT_APP(MyApp)</strong> to initialize and enter the application main loop. This macro creates several functions including <strong>int main()</stro... | [
{
"answer_id": 210742,
"author": "antik",
"author_id": 1625,
"author_profile": "https://Stackoverflow.com/users/1625",
"pm_score": -1,
"selected": false,
"text": "IMPLEMENT_APP_NO_MAIN // Use this macro if you want to define your own main() or WinMain() function\n// and call wxEntry() fr... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/446104/"
] |
208,381 | <p>What is the difference between <strong><em>anonymous methods</em></strong> of C# 2.0 and <strong><em>lambda expressions</em></strong> of C# 3.0.?</p>
| [
{
"answer_id": 208410,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": false,
"text": "Expression<T> Func<int,bool> Func<int,bool> isEven = i => i % 2 == 0;\nExpression<Func<int,bool>> isEven = i => i % 2... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4021/"
] |
208,404 | <p>Are C# enums typesafe?</p>
<p>If not what are the implications? </p>
| [
{
"answer_id": 208523,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "enum Foo { A = 1, B = 2, C = 3 } \nstatic void Main()\n{\n Foo foo = (Foo)500; // works fine\n Console.WriteL... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24773/"
] |
208,411 | <p>I am adding a context menu using <code>QAction</code> for a widget.
Now, there is some white space beside the text of the action. I assume this is the space where the <code>QIcon</code> association with the <code>QAction</code> should have been there. Now how do I hide this space. I tried doing:</p>
<pre><code>acti... | [
{
"answer_id": 210756,
"author": "Chris Roland",
"author_id": 27975,
"author_profile": "https://Stackoverflow.com/users/27975",
"pm_score": -1,
"selected": false,
"text": "QAction::QAction ( const QString & text, QObject * parent )"
},
{
"answer_id": 220213,
"author": "Andy B... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11212/"
] |
208,421 | <p>How can I have a view render a partial (user control) from a different folder?
With preview 3 I used to call RenderUserControl with the complete path, but whith upgrading to preview 5 this is not possible anymore.
Instead we got the RenderPartial method, but it's not offering me the functionality I'm looking for.</p... | [
{
"answer_id": 208448,
"author": "Elijah Manor",
"author_id": 4481,
"author_profile": "https://Stackoverflow.com/users/4481",
"pm_score": 10,
"selected": true,
"text": "@Html.Partial(\"~/Views/AnotherFolder/Messages.cshtml\", ViewData.Model.Successes)\n <% Html.RenderPartial(\"~/Views/An... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
208,433 | <p>Very basic question: how do I write a <code>short</code> literal in C++?</p>
<p>I know the following:</p>
<ul>
<li><code>2</code> is an <code>int</code></li>
<li><code>2U</code> is an <code>unsigned int</code></li>
<li><code>2L</code> is a <code>long</code></li>
<li><code>2LL</code> is a <code>long long</code></li... | [
{
"answer_id": 208446,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 8,
"selected": true,
"text": "((short)2)\n a = 2L;\nb = 2.0;\nc = (short)2;\nd = '\\2';\n movl $2, _a\nmovl $2, _b\nmovl $2, _c\nmovl $2, _d\n"
... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18511/"
] |
208,436 | <p>When I plug my HP Laserjet 3015, Windows detects the correct model and then tries to install the appropriate drivers.</p>
<p>How can I detect the model of connected printer(s)? I don't want to use the list of installed printers because a Zebra printer can be installed with a Generic/Text only driver.</p>
<p>I'm a ... | [
{
"answer_id": 208503,
"author": "Roman Ganz",
"author_id": 17981,
"author_profile": "https://Stackoverflow.com/users/17981",
"pm_score": 2,
"selected": false,
"text": "TComboBox TMemo unit Unit1;\n\ninterface\n\nuses\n Windows, StdCtrls, Classes, Controls, Forms;\n\ntype\n TForm1 = cl... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17766/"
] |
208,468 | <p>What issues or refactoring did you have to do when you upgraded from ASP.NET MVC Preview 5 to the newly released <a href="http://www.microsoft.com/downloads/details.aspx?familyid=a24d1e00-cd35-4f66-baa0-2362bdde0766&displaylang=en&tm" rel="nofollow noreferrer">Beta</a> version?</p>
| [
{
"answer_id": 208883,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "<add namespace=\"System.Web.Mvc.Html\"/> [AcceptVerbs(HttpVerbs.Post | HttpVerbs.Put)] \npublic ActionResult Update() {...\n}\... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4481/"
] |
208,469 | <p>I have multiple RequireFieldValidators on my aspx page.</p>
<p>On the backend (C#) I want to be able to tell which control specifically wasn't valid so I can apply a style to that control.
I use the Page.IsValid method to see if the overall page passed validation but I need to know specifically which one control fa... | [
{
"answer_id": 208541,
"author": "Nikki9696",
"author_id": 456669,
"author_profile": "https://Stackoverflow.com/users/456669",
"pm_score": 3,
"selected": true,
"text": "If (Me.IsPostBack) Then\nMe.Validate()\nIf (Not Me.IsValid) Then\n Dim msg As String\n ' Loop through all validat... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4144/"
] |
208,471 | <p>I'm using jQuery to hide and show elements when a radio button group is altered/clicked. It works fine in browsers like Firefox, but in IE 6 and 7, the action only occurs when the user then clicks somewhere else on the page.</p>
<p>To elaborate, when you load the page, everything looks fine. In Firefox, if you clic... | [
{
"answer_id": 208488,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 8,
"selected": true,
"text": ".click .change"
},
{
"answer_id": 208491,
"author": "Chris Zwiryk",
"author_id": 734,
"author_... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21709/"
] |
208,484 | <p>I have a PHP website backed by a MySQL database and a small team of programmers submitting code to subversion. Typically we write code, test it locally, commit to subversion and then copy changed files to a hidden area for online testing.</p>
<p>However mistakes can be made. Occasionally I want to refresh the sit... | [
{
"answer_id": 208572,
"author": "Lucas Oman",
"author_id": 6726,
"author_profile": "https://Stackoverflow.com/users/6726",
"pm_score": 0,
"selected": false,
"text": "svn export svn checkout"
}
] | 2008/10/16 | [
"https://Stackoverflow.com/questions/208484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28565/"
] |
208,490 | <p>I came across the function <a href="http://msdn.microsoft.com/en-us/library/ms683590(VS.85).aspx" rel="noreferrer" title="MSDN Link">InterlockedExchange</a> and was wondering when I should use this function. In my opinion, setting a 32 Bit value on an x86 processor should always be atomic? <br/>
In the case where I ... | [
{
"answer_id": 208535,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 4,
"selected": false,
"text": "InterlockedExchange InterlockedExchange InterlockedExchange"
},
{
"answer_id": 208543,
"author": "moonshadow... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28572/"
] |
208,493 | <p>Is it possible to search every field of every table for a particular value in Oracle?</p>
<p>There are hundreds of tables with thousands of rows in some tables so I know this could take a very long time to query. But the only thing I know is that a value for the field I would like to query against is <code>1/22/200... | [
{
"answer_id": 208548,
"author": "jim",
"author_id": 27628,
"author_profile": "https://Stackoverflow.com/users/27628",
"pm_score": 3,
"selected": false,
"text": "select column_name from all_tab_columns c, user_all_tables u where c.table_name = u.table_name;\n v$session v$sqlarea"
},
... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2849/"
] |
208,518 | <p>Does anyone know how I can retrieve the previous JSP URL that a page has come from within a JSP?</p>
<p>Can I retrieve this from the session/ request/ response object?</p>
<p>Hope this makes sense, Thank you </p>
| [
{
"answer_id": 208559,
"author": "Julien Grenier",
"author_id": 23051,
"author_profile": "https://Stackoverflow.com/users/23051",
"pm_score": 0,
"selected": false,
"text": "\n public ActionForward action(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, Ht... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21004/"
] |
208,530 | <p>As most of you probably noticed, when uninstalling an MSI package Windows will ask for the original <code>.msi</code> file. Why is that?</p>
<p>I can only see disadvantages to that:</p>
<ul>
<li>not resilient to network changes.</li>
<li>not resilient to local disk changes.</li>
<li>unexpected by users.</li>
<li>t... | [
{
"answer_id": 208558,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": false,
"text": "%WINDIR%\\Installer\\"
},
{
"answer_id": 1189524,
"author": "Stein Åsmul",
"author_id": 129130,
"a... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11892/"
] |
208,532 | <p>Currently, I'm using:</p>
<pre><code>DataTable dt = CreateDataTableInSomeWay();
List<DataRow> list = new List<DataRow>();
foreach (DataRow dr in dt.Rows)
{
list.Add(dr);
}
</code></pre>
<p>Is there a better/magic way?</p>
| [
{
"answer_id": 208544,
"author": "Kibbee",
"author_id": 1862,
"author_profile": "https://Stackoverflow.com/users/1862",
"pm_score": 5,
"selected": false,
"text": "List<DataRow> list = new List<DataRow>(dt.Select());\n dt.Select() List"
},
{
"answer_id": 208550,
"author": "Mar... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1122/"
] |
208,557 | <p>The back button just causes my page to refresh. Is there a way around this without disabling the cache?</p>
| [
{
"answer_id": 208598,
"author": "Kon",
"author_id": 22303,
"author_profile": "https://Stackoverflow.com/users/22303",
"pm_score": 2,
"selected": true,
"text": "<META HTTP-EQUIV=\"CACHE-CONTROL\" CONTENT=\"NO-CACHE\">\n<META HTTP-EQUIV=\"PRAGMA\" CONTENT=\"NO-CACHE\">\n"
},
{
"an... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24481/"
] |
208,562 | <p>Is there a way to create register a handler that will be called exactly at the time when the last reference to a certain object is released?</p>
<p>An example would be an object that is backed by a physical data file and once the object become unreferenced, the file should be closed and than renamed. It would be ni... | [
{
"answer_id": 208803,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": -1,
"selected": false,
"text": "finalize() File.deleteOnExit()"
}
] | 2008/10/16 | [
"https://Stackoverflow.com/questions/208562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23424/"
] |
208,570 | <p>I have a class which is marked with a custom attribute, like this:</p>
<pre><code>public class OrderLine : Entity
{
...
[Parent]
public Order Order { get; set; }
public Address ShippingAddress{ get; set; }
...
}
</code></pre>
<p>I want to write a generic method, where I need to get the Property... | [
{
"answer_id": 208595,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "public static object GetParentValue<T>(T obj) {\n Type t = obj.GetType();\n foreach (var prop in t.GetPropertie... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8547/"
] |
208,580 | <p>I was wondering peoples opinions on the naming of ID columns in database tables.</p>
<p>If I have a table called Invoices with a primary key of an identity column I would call that column InvoiceID so that I would not conflict with other tables and it's obvious what it is.</p>
<p>Where I am workind current they ha... | [
{
"answer_id": 208591,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 5,
"selected": false,
"text": "InvoiceID ID ID i"
},
{
"answer_id": 208600,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26792/"
] |
208,604 | <p>I have successfully been able to rename a table and drop all constraints on that table with foreign key relationships and build they all back up. However, now I am at a point where the PK_tblFoo exists in more than one place (when I transfer the table to another DB). Renaming the table does not rename the primary ke... | [
{
"answer_id": 208686,
"author": "RyanKeeter",
"author_id": 7952,
"author_profile": "https://Stackoverflow.com/users/7952",
"pm_score": 1,
"selected": false,
"text": "IF EXISTS ( SELECT *\n FROM sys.indexes\n WHERE object_id = OBJECT_ID(N'[dbo].[tblFoo]')\n ... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7952/"
] |
208,612 | <p>I am kinda repeating this question bit the 1st time it was asked incorrectly.</p>
<p>I have this:</p>
<pre><code><xsd:complexType name="A">
<xsd:sequence>
<xsd:element name="options" type="options"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType n... | [
{
"answer_id": 208858,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 0,
"selected": false,
"text": "options options type A B <?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<xs:schema targetNamespace=\"http://tempuri.org/X... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22763/"
] |
208,647 | <p>I have a <a href="https://jqueryui.com/draggable/" rel="nofollow noreferrer"><code>draggable</code></a> with a custom <a href="http://api.jqueryui.com/draggable/#option-helper" rel="nofollow noreferrer"><code>helper</code></a>. Sometimes the helper is a clone and sometimes it is the original element. </p>
<p>The pr... | [
{
"answer_id": 212623,
"author": "Adam Hepton",
"author_id": 2268,
"author_profile": "https://Stackoverflow.com/users/2268",
"pm_score": 0,
"selected": false,
"text": "revert: \"invalid\"\n"
},
{
"answer_id": 217894,
"author": "MDCore",
"author_id": 1896,
"author_prof... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1896/"
] |
208,659 | <p>Does anyone know of a good .NET library rules library (ideally open-source)? I need something that can do nested logic expressions, e.g., (A AND B) AND (B OR C OR D). I need to do comparisons of object properties, e.g., A.P1 AND B.P1. (Ideally, I could compare any property -- A.P1 AND B.P2). </p>
<p>It should s... | [
{
"answer_id": 208769,
"author": "Shaun Bowe",
"author_id": 1514,
"author_profile": "https://Stackoverflow.com/users/1514",
"pm_score": 4,
"selected": false,
"text": "String result = ExpressionEvaluator.EvaluateToString(\"(2+5) < 8\");\n using System;\nusing System.CodeDom.Compiler;\nusi... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28588/"
] |
208,666 | <p>I was wondering, is there any possibility to create a table without a primary key, but with two foreign keys, where the foreign keys pairs are always different?
For example, a <code>STOCK</code> table with <code>item_id</code> and <code>warehouse_id</code> as foreign keys from <code>ITEMS</code> and <code>WAREHOUSES... | [
{
"answer_id": 208688,
"author": "DOK",
"author_id": 27637,
"author_profile": "https://Stackoverflow.com/users/27637",
"pm_score": 2,
"selected": false,
"text": "ALTER TABLE [dbo].[RepresentativeData] \nadd CONSTRAINT [UK_Representative_repRecID_AppID] unique (repRecID,AppId)\ngo\n"
},... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
208,668 | <p>I had an odd problem today when I was trying to serialize an object. The object was generated via "Add service reference" from a web service (svcutil.exe). </p>
<p>The problem was that the below property (agencyId) was not being serialized with the rest of the object. Out of desperation I commented the property ... | [
{
"answer_id": 208687,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "[DefaultValue] [XmlIgnore]"
}
] | 2008/10/16 | [
"https://Stackoverflow.com/questions/208668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10589/"
] |
208,682 | <p>So - I have a checkbox</p>
<pre><code><asp:CheckBox ID="chkOrder" runat="server" Visible='<%#IsCheckBoxVisible() %>'
Checked="false"
OnCheckedChanged="chkOrder_CheckedChanged" AutoPostBack="true"
EnableViewState="false"></asp:CheckBox>
</code></pre>
<p>the one above. Now, the che... | [
{
"answer_id": 208730,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 3,
"selected": false,
"text": "checked <input type=\"checkbox\" checked=\"false\">\n"
},
{
"answer_id": 209155,
"author": "Karl",
"a... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5246/"
] |
208,691 | <p>I am using a DBGrid component in Delphi. I wonder how I can set the format of a column. I have real values that I want to be displayed as currency in the grid. </p>
<p>Someone knows how?</p>
| [
{
"answer_id": 208833,
"author": "Germán Estévez -Neftalí-",
"author_id": 17487,
"author_profile": "https://Stackoverflow.com/users/17487",
"pm_score": 4,
"selected": true,
"text": "DisplayFormat Field OnGetText"
},
{
"answer_id": 210404,
"author": "Mohammed Nasman",
"aut... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6636/"
] |
208,703 | <p>I have seen the following code:</p>
<pre><code>[DefaultValue(100)]
[Description("Some descriptive field here")]
public int MyProperty{...}
</code></pre>
<p>The functionality from the above snippit seems clear enough, I have no idea as to how I can use it to do useful things. Im not even sure as to what name to gi... | [
{
"answer_id": 208708,
"author": "Isak Savo",
"author_id": 8521,
"author_profile": "https://Stackoverflow.com/users/8521",
"pm_score": 3,
"selected": false,
"text": "DefaultValue"
},
{
"answer_id": 208740,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile"... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816/"
] |
208,721 | <p>Is it true that a WCF either runs as a console application that you have to manually start OR under a more traditional IIS application (like a website or webservice)</p>
| [
{
"answer_id": 208863,
"author": "jezell",
"author_id": 27453,
"author_profile": "https://Stackoverflow.com/users/27453",
"pm_score": 1,
"selected": false,
"text": "using (ServiceHost host = new ServiceHost(typeof(MyService))\n{\n host.Open();\n\n WaitForClose();\n\n host.Close();\... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
208,735 | <p>I've begun to the the built-in TraceSource and TraceListener classes and I would like to modify the output format of the events independently of the TraceSources and TraceListeners. It seems that the TraceListeners apply their own formatting. Is it possible to completely change the formatting without creating a ne... | [
{
"answer_id": 806528,
"author": "Greg D",
"author_id": 6932,
"author_profile": "https://Stackoverflow.com/users/6932",
"pm_score": 0,
"selected": false,
"text": "Write() WriteLine() Trace"
}
] | 2008/10/16 | [
"https://Stackoverflow.com/questions/208735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2033241/"
] |
208,736 | <p>How can I strip out extra whitespace from jsp pages' output? Is there a switch I can flip on my web.xml? Is there a Tomcat specific setting?</p>
| [
{
"answer_id": 208752,
"author": "Rontologist",
"author_id": 13925,
"author_profile": "https://Stackoverflow.com/users/13925",
"pm_score": 9,
"selected": true,
"text": "<%@ page trimDirectiveWhitespaces=\"true\" %>\n <jsp-config>\n <jsp-property-group>\n <url-pattern>*.jsp</url-patte... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5586/"
] |
208,739 | <p>Eric Meyer's advice to keep individual rules alphabetized in a CSS style definition makes sense - there's no "natural" way to order rules, and this makes it easy in a complex definition to make sure you don't define the same thing twice.</p>
<pre><code>div.Foo
{
background:Green;
border:1px solid K... | [
{
"answer_id": 59001982,
"author": "Joel Stransky",
"author_id": 1538634,
"author_profile": "https://Stackoverflow.com/users/1538634",
"pm_score": 4,
"selected": false,
"text": "settings.json \"postcssSorting.config\": {\n \"properties-order\": \"alphabetical\"\n}\n PostCSS Sorting: Run... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
208,767 | <p>What is the return value of the <code>WaitForObject()</code> function?</p>
<p>I do not mean the type of return value (int).</p>
<p>What does it return if the event is signalled and what does it return if the event is not signalled?</p>
| [
{
"answer_id": 208776,
"author": "Roger Lipscombe",
"author_id": 8446,
"author_profile": "https://Stackoverflow.com/users/8446",
"pm_score": 3,
"selected": true,
"text": "WaitForObject WaitForSingleObject WaitForMultipleObjects WaitForSingleObject WAIT_TIMEOUT WAIT_OBJECT_0 WAIT_ERROR Wa... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27213/"
] |
208,772 | <p>The situation is as follows:</p>
<p>A series of remote workstations collect field data and ftp the collected field data to a server through ftp. The data is sent as a CSV file which is stored in a unique directory for each workstation in the FTP server.</p>
<p>Each workstation sends a new update every 10 minutes, ... | [
{
"answer_id": 208789,
"author": "bmdhacks",
"author_id": 14032,
"author_profile": "https://Stackoverflow.com/users/14032",
"pm_score": 2,
"selected": false,
"text": "grab_lockfile() or exit();\nwhile (1) {\n if (new_files()) {\n process_new_files();\n }\n sleep(60);\n}\n... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14177/"
] |
208,777 | <p>I have a class which has the following constructor</p>
<pre><code>public DelayCompositeDesigner(DelayComposite CompositeObject)
{
InitializeComponent();
compositeObject = CompositeObject;
}
</code></pre>
<p>along with a default constructor with no parameters.</p>
<p>Next I'm trying to create an instanc... | [
{
"answer_id": 208812,
"author": "DocMax",
"author_id": 6234,
"author_profile": "https://Stackoverflow.com/users/6234",
"pm_score": 4,
"selected": false,
"text": "var designer = Activator.CreateInstance(designerAttribute.Designer, new object[] { new DelayComposite(4) });\n"
},
{
... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28149/"
] |
208,784 | <p>Suppose A.css styles B.html. What tools/techniques are there to programmatically reduce the size of A.css while holding its styling effects on B.html constant? Here are some techniques I would imagine such a tool using:</p>
<ol>
<li><p><strong>Remove redundancies in A.css.</strong> For example, if the same class is... | [
{
"answer_id": 208841,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 0,
"selected": false,
"text": "mod_gzip mod_deflate"
}
] | 2008/10/16 | [
"https://Stackoverflow.com/questions/208784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25068/"
] |
208,828 | <p>A colleague and I are discussing best practices regarding ordering method parameters. The goal is to establish a standard in our organization to improve readability and productivity by giving our methods common signatures. We are merely establishing guidelines for the recent grads we are hiring. </p>
<p><strong>... | [
{
"answer_id": 208866,
"author": "DOK",
"author_id": 27637,
"author_profile": "https://Stackoverflow.com/users/27637",
"pm_score": 2,
"selected": false,
"text": "public method foo (string name)\npublic method foo (string name, string city)\npublic method foo (string name, string city, st... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6617/"
] |
208,835 | <p>I am just now learning about function pointers and, as I was reading the K&R chapter on the subject, the first thing that hit me was, "Hey, this is kinda like a closure." I knew this assumption is fundamentally wrong somehow and after a search online I didn't find really any analysis of this comparison... | [
{
"answer_id": 208851,
"author": "Herms",
"author_id": 1409,
"author_profile": "https://Stackoverflow.com/users/1409",
"pm_score": 3,
"selected": false,
"text": "function runLater(f:Function):Void {\n sleep(100);\n f();\n}\n function objectProcessor(o:Object):Void {\n /* Do something ... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25012/"
] |
208,839 | <p>We are working with some legacy code that accesses a shared drive by the letter (f:\ for example). Using the UNC notation is not an option. Our Java wrapper app will run as a service, and as the first step, I would like to map the drive explicitly in the code. Has anyone done this?</p>
| [
{
"answer_id": 208857,
"author": "Jonas K",
"author_id": 26609,
"author_profile": "https://Stackoverflow.com/users/26609",
"pm_score": 3,
"selected": false,
"text": " try {\n // Execute a command without arguments\n String command = \"C:\\\\Windows\\\\system32\\\\net.exe... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9293/"
] |
208,855 | <p>Let's have the following class definition:</p>
<pre><code>CThread::CThread ()
{
this->hThread = NULL;
this->hThreadId = 0;
this->hMainThread = ::GetCurrentThread ();
this->hMainThreadId = ::GetCurrentThreadId ();
this->Timeout = 2000; //milliseconds
}
CThrea... | [
{
"answer_id": 208991,
"author": "m_pGladiator",
"author_id": 446104,
"author_profile": "https://Stackoverflow.com/users/446104",
"pm_score": -1,
"selected": false,
"text": "MyClass* myPointer = thread.getMyPointer(); \n\nwhile (myPointer == 0) \n{\n ::Sleep(1000);\n}\n\nmyPointer->so... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/446104/"
] |
208,890 | <p>So, I want to export all my contacts from Outlook as vcards. If I google that, I get a bunch of shareware programs, but I want something free that just works. </p>
<p>If I'm to code it myself, I guess I should use the Microsoft.Office.Interop.Outlook assembly. Has anyone already code to convert ContactItems to vcar... | [
{
"answer_id": 208949,
"author": "DOK",
"author_id": 27637,
"author_profile": "https://Stackoverflow.com/users/27637",
"pm_score": 2,
"selected": false,
"text": "Dim oPerson As New CDO.Person\nDim strm As New ADODB.Stream\n\n' Assume strURL is a valid URL to a person contact item\noPerso... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17436/"
] |
208,894 | <p>How should I base64 encode a PDF file for transport over XML-RPC in Python?</p>
| [
{
"answer_id": 208960,
"author": "Pat Notz",
"author_id": 825,
"author_profile": "https://Stackoverflow.com/users/825",
"pm_score": 3,
"selected": false,
"text": "xmlrpclib Binary \nimport xmlrpclib \nserver = xmlrpclib.ServerProxy(\"http://athomas:password@localhost:8080/trunk/login/xml... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/825/"
] |
208,897 | <p>The simple question is: how to find out the location of an executable file in a Cocoa application. </p>
<p>Remember that, in many Unix-like OS people use PATH environment to assign the preferred location for their executables, especially when they have several versions of same application in their system. As a good... | [
{
"answer_id": 209463,
"author": "Brian Webster",
"author_id": 23324,
"author_profile": "https://Stackoverflow.com/users/23324",
"pm_score": 3,
"selected": false,
"text": "dscl dscl -plist localhost -read /Local/Default/Users/username UserShell -plist env -c"
},
{
"answer_id": 38... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25079/"
] |
208,919 | <p>I am searching for "o" then prints all lines with "o". Any suggestion/code I must apply?</p>
<p>data.txt:</p>
<pre><code>j,o,b:
a,b,d:
o,l,e:
f,a,r:
e,x,o:
</code></pre>
<p>desired output:</p>
<pre><code>j,o,b:
o,l,e:
e,x,o:
</code></pre>
| [
{
"answer_id": 208935,
"author": "Srikanth",
"author_id": 7205,
"author_profile": "https://Stackoverflow.com/users/7205",
"pm_score": 1,
"selected": false,
"text": "grep \"o\" data.txt\n"
},
{
"answer_id": 208936,
"author": "Ed Guiness",
"author_id": 4200,
"author_pro... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28607/"
] |
208,925 | <p>I'm using MS SQL Server 2005. Is there a difference, to the SQL engine, between</p>
<pre><code>SELECT * FROM MyTable;
</code></pre>
<p>and</p>
<pre><code>SELECT ColA, ColB, ColC FROM MyTable;
</code></pre>
<p>When ColA, ColB, and ColC represent every column in the table?</p>
<p>If they are the same, is there a... | [
{
"answer_id": 208945,
"author": "swilliams",
"author_id": 736,
"author_profile": "https://Stackoverflow.com/users/736",
"pm_score": 6,
"selected": true,
"text": "Select col1, col2 from Table"
},
{
"answer_id": 208962,
"author": "TcKs",
"author_id": 20382,
"author_pro... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17803/"
] |
208,959 | <p>I'm in the process of creating a class that stores metadata about a particular data source. The metadata is structured in a tree, very similar to how XML is structured. The metadata values can be integer, decimal, or string values.</p>
<p>I'm curious if there is a good way in C++ to store variant data for a situa... | [
{
"answer_id": 208968,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 6,
"selected": true,
"text": "std::variant std::any"
},
{
"answer_id": 1739889,
"author": "Fox",
"author_id": 134793,
"author_pr... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21254/"
] |
208,969 | <p>Is it possible to encode an assignment into an expression tree?</p>
| [
{
"answer_id": 209002,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "int x;\nExpression<Func<int,int>> foo = (x=y); // Assign to x and return value\n CS0832: An expression tree may not conta... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26054/"
] |
208,977 | <p>When I launch CruiseControl.NET with a particular configuration file I receive the following error:</p>
<blockquote>
<p>ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: Duplicate node detected</p>
</blockquote>
<p>What does this mean, and what causes it?</p>
| [
{
"answer_id": 209002,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "int x;\nExpression<Func<int,int>> foo = (x=y); // Assign to x and return value\n CS0832: An expression tree may not conta... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13172/"
] |
208,978 | <p>I'm trying to write an audio analysis application, and I need to identify local maxima in a 2D array which represents a spectrogram. I've already got an open source library that can generate the spectrogram using Fast Fourier Transforms, but I was wondering if anybody knew of any good libraries to help me with actua... | [
{
"answer_id": 209002,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "int x;\nExpression<Func<int,int>> foo = (x=y); // Assign to x and return value\n CS0832: An expression tree may not conta... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4397/"
] |
208,993 | <p>I have an asp.net page which sends content of a file to the client, so the browser shows the save as dialog to download the file. This page is displayed in a popup and when the user clicks the save button, it closes automatically and the download starts.</p>
<p>On windows server 2003, it works fine. On vista with o... | [
{
"answer_id": 208999,
"author": "swilliams",
"author_id": 736,
"author_profile": "https://Stackoverflow.com/users/736",
"pm_score": 3,
"selected": false,
"text": "ContentType application/octet-stream"
},
{
"answer_id": 209009,
"author": "TheSmurf",
"author_id": 1975282,
... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31505/"
] |
208,998 | <pre><code>something.each do |x|
#lots of stuff
end if some_condition
</code></pre>
| [
{
"answer_id": 209012,
"author": "workmad3",
"author_id": 16035,
"author_profile": "https://Stackoverflow.com/users/16035",
"pm_score": 2,
"selected": false,
"text": "if some_condition\n"
},
{
"answer_id": 209419,
"author": "Gishu",
"author_id": 1695,
"author_profile"... | 2008/10/16 | [
"https://Stackoverflow.com/questions/208998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20714/"
] |
209,005 | <p>I am trying to create a MATLAB class with a member variable that's being updated as a result of a method invocation, but when I try to change the property within the class it (apperently, from what I understood from MATLAB's memory management) creates a copy of the object and then modifies it, leaving the original o... | [
{
"answer_id": 209159,
"author": "Azim J",
"author_id": 4612,
"author_profile": "https://Stackoverflow.com/users/4612",
"pm_score": 5,
"selected": false,
"text": ">> a=testprop\n>> a.Request(5); % will NOT change the value of a.numRequests.\n5\n\n>> a.Request(5) \n5\n\n>> a.numRequests\n... | 2008/10/16 | [
"https://Stackoverflow.com/questions/209005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
209,015 | <p>I have a colleague who insists that his code doesn't need comments, it's "self documenting."</p>
<p>I've reviewed his code, and while it's clearer than code which I've seen others produce, I still disagree that self-documenting code is as complete and useful as well commented and documented code.</p>
<p>He... | [
{
"answer_id": 209087,
"author": "ddimitrov",
"author_id": 18187,
"author_profile": "https://Stackoverflow.com/users/18187",
"pm_score": 3,
"selected": false,
"text": "/**\n * Sets the value of foobar.\n *\n * @foobar is the new vaue of foobar.\n */\n public void setFoobar(Object foobar)... | 2008/10/16 | [
"https://Stackoverflow.com/questions/209015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2915/"
] |
209,023 | <p>I have a Google App Engine that has a form. When the user clicks on the submit button, AJAX operation will be called, and the server will output something to append to the end of the very page where it comes from. How, I have a Django template, and I intend to use jquery. I have the following view:</p>
<pre><code>... | [
{
"answer_id": 266862,
"author": "Seamus",
"author_id": 30443,
"author_profile": "https://Stackoverflow.com/users/30443",
"pm_score": 2,
"selected": false,
"text": "//...\n success: function( result ) { \n console.log( result );\n $('#SubmitForm').after( \"<div><tt>\" ... | 2008/10/16 | [
"https://Stackoverflow.com/questions/209023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3834/"
] |
209,029 | <p>I have an <code>input type="image"</code>. This acts like the cell notes in Microsoft Excel. If someone enters a number into the text box that this <code>input-image</code> is paired with, I setup an event handler for the <code>input-image</code>. Then when the user clicks the <code>image</code>, they get a little p... | [
{
"answer_id": 209044,
"author": "John Boker",
"author_id": 2847,
"author_profile": "https://Stackoverflow.com/users/2847",
"pm_score": 5,
"selected": false,
"text": "$(\"#myimage\").unbind(\"click\");\n"
},
{
"answer_id": 209079,
"author": "Mnebuerquo",
"author_id": 5114... | 2008/10/16 | [
"https://Stackoverflow.com/questions/209029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13800/"
] |
209,043 | <p>I am used to using Atlas. Recently i have started transitioning to jQuery and sometimes prototype. The project that i'm currently working on is using prototype.</p>
<p>In Prototype, is there an easy way to get the browser name and version? I've looked over the API documentation and can't seem to find it.</p>
| [
{
"answer_id": 209537,
"author": "Remy Sharp",
"author_id": 22617,
"author_profile": "https://Stackoverflow.com/users/22617",
"pm_score": 2,
"selected": false,
"text": "var Browser = Class.create({\n initialize: function() {\n var userAgent = navigator.userAgent.toLowerCase();\n t... | 2008/10/16 | [
"https://Stackoverflow.com/questions/209043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6350/"
] |
209,067 | <p>Since Access 2003 doesn't have the control anchoring functionality as exists in 2007, I was wondering if anyone has or is aware of some VBA script, or a freeware control, that can give this functionality?</p>
| [
{
"answer_id": 209827,
"author": "Godeke",
"author_id": 28006,
"author_profile": "https://Stackoverflow.com/users/28006",
"pm_score": 4,
"selected": true,
"text": "resizeRatio = currentFormWidth / baseFormWidth\n\ncontrol.left = baseLeft * resizeRatio\ncontrol.width = baseWidth * resizeR... | 2008/10/16 | [
"https://Stackoverflow.com/questions/209067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8678/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.