qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
161,485 | <p>How should I configure the class to bind three dropdowns (date, month, year) to a single Date property so that it works the way it works for 'single request parameter per property' scenario ?
I guess a should add some custom PropertyEditors by overriding initBinder method. What else ?</p>
| [
{
"answer_id": 173783,
"author": "miceuz",
"author_id": 24443,
"author_profile": "https://Stackoverflow.com/users/24443",
"pm_score": 3,
"selected": true,
"text": "dateField = new SimpleFormat(\"YYYY-mm-dd\").parse(this.year + \"-\" + this.month + \"-\" this.day);\n Calendar c = Calendar... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578/"
] |
161,486 | <p>I developing ASP.NET application using a Swedish version of Windows XP and Visual studio Professional. When ever i get an error aka. "yellow screen of death" the error message is in swedish, making it a bit hard to search for info about it.</p>
<p>How can i change what language the error messages in ASP.NET uses?</... | [
{
"answer_id": 161503,
"author": "Joe",
"author_id": 13087,
"author_profile": "https://Stackoverflow.com/users/13087",
"pm_score": 6,
"selected": false,
"text": "<system.web>\n <globalization uiCulture=\"en-US\" />\n</system.web>\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20368/"
] |
161,490 | <p>I am currently porting a lot of code from an MFC-based application to a DLL for client branding purposes.</p>
<p>I've come across an unusual problem. This bit of code is the same in both systems:</p>
<pre><code>// ...
CCommsProperties props;
pController->GetProperties( props );
if (props.handshake ... | [
{
"answer_id": 161564,
"author": "user22044",
"author_id": 22044,
"author_profile": "https://Stackoverflow.com/users/22044",
"pm_score": 1,
"selected": false,
"text": "RefreshCommProperties()"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/342/"
] |
161,497 | <p>In Windows XP what is the best way to execute a particular application when a particular type of USB device is attached (it currently attaches as a storage device - i.e. it appears as a drive).</p>
<p>The solution I am looking for must execute the application from the very first time the device is attached or offer... | [
{
"answer_id": 161728,
"author": "Treb",
"author_id": 22114,
"author_profile": "https://Stackoverflow.com/users/22114",
"pm_score": 2,
"selected": false,
"text": "ManagementEventWatcher Watcher;\nWqlEventQuery Query = new WqlEventQuery();\nQuery.EventClassName = \"__InstanceCreationEvent... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22100/"
] |
161,510 | <p>In Ruby, is it possible to pass by reference a parameter with value-type semantics (e.g. a Fixnum)?
I'm looking for something similar to C#'s '<strong>ref</strong>' keyword.</p>
<p>Example:</p>
<pre><code>def func(x)
x += 1
end
a = 5
func(a) #this should be something like func(ref a)
puts a #should read '... | [
{
"answer_id": 161589,
"author": "Christoph Schiessl",
"author_id": 20467,
"author_profile": "https://Stackoverflow.com/users/20467",
"pm_score": 4,
"selected": false,
"text": "Fixnum x += 1 Fixnum Fixnum"
},
{
"answer_id": 161607,
"author": "jmah",
"author_id": 3948,
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11545/"
] |
161,518 | <p>How do I link an external .jar into my Xcode java project? That is, have it in the classpath during compilation and execution. I'm using Xcode 3.0 and this seems to have changed since 2.4.</p>
| [
{
"answer_id": 162574,
"author": "jmah",
"author_id": 3948,
"author_profile": "https://Stackoverflow.com/users/3948",
"pm_score": 0,
"selected": false,
"text": "-classpath path/to/lib"
},
{
"answer_id": 540112,
"author": "Paxic",
"author_id": 64457,
"author_profile": ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4127/"
] |
161,519 | <p>I use Visual Basic and an automation interface to retrieve strings from an external application. These strings contain simple html formatting codes (<b>, <i>, etc.).
Is there any easy function in Visual Basic for Word to insert these strings into a word document and convert the html formatting codes to w... | [
{
"answer_id": 161699,
"author": "Treb",
"author_id": 22114,
"author_profile": "https://Stackoverflow.com/users/22114",
"pm_score": 0,
"selected": false,
"text": "<b>, <i>, <a> and <p>,"
},
{
"answer_id": 163511,
"author": "Jonathan Yee",
"author_id": 16320,
"author_p... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
161,524 | <p>I'm writing a query for an application that needs to list all the products with the number of times they have been purchased.</p>
<p>I came up with this and it works, but I am not too sure how optimized it is. My SQL is really rusty due to my heavy usage of ORM's, But in this case a query is a much more elegant sol... | [
{
"answer_id": 161555,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 0,
"selected": false,
"text": "SELECT products.id,\n MIN(products.long_name) AS name, \n count(oi.order_id) AS sold\nFROM (products\nLEFT OUTER JOIN... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1877/"
] |
161,531 | <p>This seems to be a common problem but I cannot find a solution.</p>
<p>I type in my username and password which are in a login control I have created.
I then press enter once I've typed in my password and the page just refreshes. It triggers the page load event but not the button on click event.</p>
<p>If I press ... | [
{
"answer_id": 161560,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 1,
"selected": false,
"text": "<form runat=\"server\" DefaultButton=\"SubmitButton\">\n"
},
{
"answer_id": 161768,
"author": "WebDude",
"a... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1469/"
] |
161,539 | <p>Imagine the following Ruby Module:</p>
<pre><code>module Foo
def inst_method
puts "Called Foo.inst_method"
end
def self.class_method
puts "Called Foo.class_method"
end
end
</code></pre>
<p>Obviously <code>Foo.class_method</code> can be called without any class instances. However, what's happening t... | [
{
"answer_id": 161618,
"author": "Jean",
"author_id": 7898,
"author_profile": "https://Stackoverflow.com/users/7898",
"pm_score": 2,
"selected": false,
"text": "module Tester\n def inst_meth\n puts \"test inst meth\\n\"\n end\n\n def self.meth\n puts \"test self meth\\n\"\n end... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20467/"
] |
161,541 | <p>I am starting a new distributed project. Should I use SVN or Git, and why?</p>
| [
{
"answer_id": 161562,
"author": "Hank Gay",
"author_id": 4203,
"author_profile": "https://Stackoverflow.com/users/4203",
"pm_score": 3,
"selected": false,
"text": "svn git"
},
{
"answer_id": 161602,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5147/"
] |
161,549 | <p>I recently had to rename a table (and a column and FK/PK contraints) in SQL Server 2000 without losing an data. There did not seem to be an obvious DDL T-SQL statements for performing this action, so I used sp_rename to directly fiddle with object names.</p>
<p>Was this the only solution to the problem? (other, tha... | [
{
"answer_id": 161557,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 4,
"selected": false,
"text": "EXEC sp_rename 'Old_TableName', 'New_TableName'\n"
},
{
"answer_id": 161628,
"author": "Philippe Grondier",
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23497/"
] |
161,556 | <p>I've got a Method that gets a IDictionary as a parameter.
Now I want to provide a method that retrieves the value from this dictionary, but it should be case-invariant.</p>
<p>So my solution to this right now was to have a static function that loops through the keys and converts them toLower() like this:</p>
<pre>... | [
{
"answer_id": 161565,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "StringComparer.OrdinalIgnoreCase"
},
{
"answer_id": 161608,
"author": "VVS",
"author_id": 21038,
"aut... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21699/"
] |
161,614 | <p>I need to get the Class of an object at runtime.</p>
<p>For an non-abstract class I could do something like:</p>
<pre><code>public class MyNoneAbstract{
public static Class MYNONEABSTRACT_CLASS = new MyNoneAbstract().getClass();
</code></pre>
<p>But for an abstract class this does NOT work (always gives me <c... | [
{
"answer_id": 161625,
"author": "skaffman",
"author_id": 21234,
"author_profile": "https://Stackoverflow.com/users/21234",
"pm_score": 3,
"selected": true,
"text": "MyAbstract.class\n"
},
{
"answer_id": 162340,
"author": "DJClayworth",
"author_id": 19276,
"author_pro... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/180142/"
] |
161,633 | <p>Should methods in a Java interface be declared with or without the <code>public</code> access modifier?</p>
<p>Technically it doesn't matter, of course. A class method that implements an <code>interface</code> is always <code>public</code>. But what is a better convention?</p>
<p>Java itself is not consistent in t... | [
{
"answer_id": 161649,
"author": "JeeBee",
"author_id": 17832,
"author_profile": "https://Stackoverflow.com/users/17832",
"pm_score": 3,
"selected": false,
"text": "public"
},
{
"answer_id": 161659,
"author": "Rasmus Faber",
"author_id": 5542,
"author_profile": "https... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3565/"
] |
161,637 | <p>My team developed a GUI application on Visual Studio 2005, managed C++. Since some deliveries it is not possible to open the form in the designer, even if the source code and the project settings have not been changed. The designer reports this error: </p>
<p><strong>Exception of type 'System.OutOfMemoryException' ... | [
{
"answer_id": 235919,
"author": "msulis",
"author_id": 9317,
"author_profile": "https://Stackoverflow.com/users/9317",
"pm_score": 0,
"selected": false,
"text": "multi(0)disk(0)rdisk(0)partition(2)\\WINDOWS=\"Microsoft Windows XP Professional\" /noexecute=optin /fastdetect /3GB\n cd %Pr... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17934/"
] |
161,639 | <p>I have two overloads of a c++ function and I would like to set a breakpoint on one of them:</p>
<pre><code>0:000> bu myexe!displayerror
Matched: 00000000`ff3c6100 myexe!displayError (int, HRESULT, wchar_t *)
Matched: 00000000`ff3c60d0 myexe!displayError (int, HRESULT)
Ambiguous symbol error at 'myexe!displayerro... | [
{
"answer_id": 161658,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 3,
"selected": false,
"text": "bu 0xff3c6100\n"
},
{
"answer_id": 4176483,
"author": "kizzx2",
"author_id": 111021,
"author_profile": "... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15071/"
] |
161,654 | <p>This is a subjective question as I want to gauge if it's worth me moaning at my co-workers for doing something which I find utterly detestable.</p>
<p>The issue is that a bunch of my co-workers will truncate method calls to fit a width. We all use widescreen laptops that can handle large resolutions (mine is 1920x1... | [
{
"answer_id": 161723,
"author": "Avi",
"author_id": 1605,
"author_profile": "https://Stackoverflow.com/users/1605",
"pm_score": 2,
"selected": false,
"text": "IReallyLongInterfaceName instanceOfInterfaceName =\n OurContainer.retrieveClass(IReallyLongInterfaceName.class,\n ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6414/"
] |
161,655 | <p>Consider the following subversion directory structure</p>
<p>/dir1/file.txt</p>
<p>/dir2/file.txt</p>
<p>I want to move the file.txt in dir1 to replace the same file in dir2 and ensure that the history for the dir1 file is maintained. I don't care about the history of original dir2 file.</p>
<p>Is this possible ... | [
{
"answer_id": 161668,
"author": "Richard Harrison",
"author_id": 19624,
"author_profile": "https://Stackoverflow.com/users/19624",
"pm_score": 4,
"selected": true,
"text": "svn rm /dir2/file.txt\nsvn mv /dir1/file.txt /dir2/file.txt\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445016/"
] |
161,666 | <p>I'm trying to learn scheme via SICP. Exercise 1.3 reads as follow: Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers. Please comment on how I can improve my solution.</p>
<pre><code>(define (big x y)
(if (> x y) x y))
(define (p a b c)
... | [
{
"answer_id": 161674,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 3,
"selected": true,
"text": "(define (max2 . l)\n (lambda ()\n (let ((a (apply max l)))\n (values a (apply max (remv a l))))))\n\n(define (q a b... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24457/"
] |
161,672 | <p>I noticed some code of a colleague today that initialized class variables in the initialization. However it was causing a warning, he says because of the order they are in. My question is why is it better to do variable initialization where it currently is and not within the curly brackets?</p>
<pre><code>Diagram... | [
{
"answer_id": 161684,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 6,
"selected": true,
"text": "const const"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24459/"
] |
161,676 | <p>I'm running zsh as the default shell on a Ubuntu box, and everything works fine using gnome-terminal (which as far as I know emulates xterm). When I login from a windows box via ssh and putty (which also emulates xterm) suddendly the home/end keys no longer work. </p>
<p>I've been able to solve that adding these li... | [
{
"answer_id": 162125,
"author": "agnul",
"author_id": 6069,
"author_profile": "https://Stackoverflow.com/users/6069",
"pm_score": 2,
"selected": false,
"text": "^[OH ^[OF ^[[1~ ^[[4~ ^[Ow"
},
{
"answer_id": 686458,
"author": "hopla",
"author_id": 82011,
"author_profi... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6069/"
] |
161,687 | <p>You sometimes hear it said about Perl that there might be 6 different ways to approach the same problem. Good Perl developers usually have well-reasoned insights for making choices between the various possible methods of implementation.</p>
<p>So an example Perl problem:</p>
<p>A simple script which recursively i... | [
{
"answer_id": 161740,
"author": "antik",
"author_id": 1625,
"author_profile": "https://Stackoverflow.com/users/1625",
"pm_score": -1,
"selected": false,
"text": "readdir utime stat"
},
{
"answer_id": 161762,
"author": "workmad3",
"author_id": 16035,
"author_profile":... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19468/"
] |
161,698 | <p>I'm using a local artifactory to proxy the request, but the build and test phases are still a bit slow. It's not the actual compile and tests that are slow, it's the "warmup" of the maven2 framework. Any ideas?</p>
| [
{
"answer_id": 161710,
"author": "Henry B",
"author_id": 6414,
"author_profile": "https://Stackoverflow.com/users/6414",
"pm_score": 3,
"selected": false,
"text": "-Dmaven.junit.fork=true\n-Dmaven.junit.jvmargs=-Xmx512m\n -Dmaven.compile.fork=true\n"
},
{
"answer_id": 8661057,
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17554/"
] |
161,717 | <p>If I create a function with jQuery that adds an empty div, performs some animation inside the blank space created by the div, then removes the div, the browser never makes room for the empty div (height and width are set).</p>
<p>If I don't remove the empty div in my function, then the browser will create the neede... | [
{
"answer_id": 263947,
"author": "SeanDowney",
"author_id": 5261,
"author_profile": "https://Stackoverflow.com/users/5261",
"pm_score": 2,
"selected": false,
"text": "$('#someDiv').slideDown(100, function() { \n $(this).remove(); \n});\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4820/"
] |
161,738 | <p>How can I check if a given string is a valid URL address?</p>
<p>My knowledge of regular expressions is basic and doesn't allow me to choose from the hundreds of regular expressions I've already seen on the web.</p>
| [
{
"answer_id": 161756,
"author": "Duncan Smart",
"author_id": 1278,
"author_profile": "https://Stackoverflow.com/users/1278",
"pm_score": 6,
"selected": false,
"text": "System.Uri.TryCreate static bool IsValidUrl(string urlString)\n{\n Uri uri;\n return Uri.TryCreate(urlString, Uri... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1842864/"
] |
161,747 | <p>I would like to allow the logged user to edit MediaWiki/Common.css without adding them to the sysop group.</p>
<p>I understand that this will allow user to change it to harful ways but it is a closed wiki so that is not a problem.</p>
<p>Any solution is acceptable even changing php code :)</p>
| [
{
"answer_id": 295808,
"author": "che",
"author_id": 7806,
"author_profile": "https://Stackoverflow.com/users/7806",
"pm_score": 5,
"selected": true,
"text": "$wgGroupPermissions['mynewgroup']['editinterface'] = true;\n $wgGroupPermissions['user']['editinterface'] = true;\n// user is the... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4508/"
] |
161,755 | <p>Ant has a nice way to select groups of files, most handily using ** to indicate a directory tree. E.g.</p>
<pre><code>**/CVS/* # All files immediately under a CVS directory.
mydir/mysubdir/** # All files recursively under mysubdir
</code></pre>
<p>More examples can be seen here:</p>
<p><a href="http:... | [
{
"answer_id": 161858,
"author": "dkagedal",
"author_id": 24458,
"author_profile": "https://Stackoverflow.com/users/24458",
"pm_score": 2,
"selected": false,
"text": "os.walk **/CVS/* def match(pattern, filename):\n if pattern.startswith(\"**\"):\n return fnmatch.fnmatch(file, ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/974/"
] |
161,775 | <p>I am working on a script that downloads emails and stores them in a db, I usually receive thousands of emails on this account, once downloaded the mails are deleted.</p>
<p>Being paranoic, I want to have at least one month backup of my emails, but I cannot clutter my main mailbox address leaving them in there.</p>
... | [
{
"answer_id": 5835167,
"author": "Manuel Richarz",
"author_id": 719628,
"author_profile": "https://Stackoverflow.com/users/719628",
"pm_score": 1,
"selected": false,
"text": "$fromMboxServerPath = \"{imap.from.server/notls/imap/readonly:143}\"; //ReadOnly\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15780/"
] |
161,783 | <p>I have a web page with <code>DIV</code>s with a <code>mouseover</code> handler that is intended to show a pop-up information bubble. I don't want more than one info bubble to be visible at a time. But when the user moves the mouse rapidly over two items, I sometimes get two bubbles. This should not happen, because t... | [
{
"answer_id": 161824,
"author": "Tom",
"author_id": 20,
"author_profile": "https://Stackoverflow.com/users/20",
"pm_score": 1,
"selected": false,
"text": "// maintain a reference to the active div bubble\nthis.oActiveDivBubble = null;\n\n// event handler for the first div\n$('exampleDiv... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8925/"
] |
161,788 | <p>Are there any downsides to passing structs by value in C, rather than passing a pointer?</p>
<p>If the struct is large, there is obviously the performance aspect of copying lots of data, but for a smaller struct, it should basically be the same as passing several values to a function.</p>
<p>It is maybe even more in... | [
{
"answer_id": 162140,
"author": "Mecki",
"author_id": 15809,
"author_profile": "https://Stackoverflow.com/users/15809",
"pm_score": 4,
"selected": false,
"text": "struct {\n short a;\n char b;\n short c;\n char d;\n}\n"
},
{
"answer_id": 3355560,
"author": "kizzx2",
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24458/"
] |
161,790 | <p>I have the following class in C++:</p>
<pre><code>class a {
const int b[2];
// other stuff follows
// and here's the constructor
a(void);
}
</code></pre>
<p>The question is, how do I initialize b in the initialization list, given that I can't initialize it inside the body of the function of the co... | [
{
"answer_id": 161829,
"author": "Daniel Bungert",
"author_id": 21093,
"author_profile": "https://Stackoverflow.com/users/21093",
"pm_score": 2,
"selected": false,
"text": "#include <stdio.h>\n#include <stdlib.h>\n\nclass a {\n static const int b[2];\npublic:\n a(void) {\n ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1084/"
] |
161,794 | <p>I am not sure if I formulated the question right, but still ...</p>
<p>I have a view that shows a flash embed and this flash take as parameter a <code>/controller/action</code> URL that generates a XML. I nee to send, from this view, an array to the XML generator action. How is the best way ? Is there some <code>he... | [
{
"answer_id": 163979,
"author": "neilcrookes",
"author_id": 9968,
"author_profile": "https://Stackoverflow.com/users/9968",
"pm_score": 1,
"selected": false,
"text": "function player() {\n $this->Session->write('key', $array);\n}\n public function generate() {\n $array = $this->Sessio... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2274/"
] |
161,797 | <p><a href="https://stackoverflow.com/questions/160930">Another question</a> asked about determining odd/evenness in C, and the idiomatic (x & 1) approach was correctly flagged as broken for <a href="http://en.wikipedia.org/wiki/Signed_number_representations#Ones.27_complement" rel="noreferrer">one's complement-bas... | [
{
"answer_id": 46440337,
"author": "Antti Haapala -- Слава Україні",
"author_id": 918959,
"author_profile": "https://Stackoverflow.com/users/918959",
"pm_score": 3,
"selected": false,
"text": "Type | Bits | Range\n---------------------+------+-----------------\nsigned cha... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1737/"
] |
161,813 | <p>How do I resolve merge conflicts in my Git repository?</p>
| [
{
"answer_id": 162056,
"author": "davetron5000",
"author_id": 3029,
"author_profile": "https://Stackoverflow.com/users/3029",
"pm_score": 9,
"selected": false,
"text": "git add the_file git rebase --continue"
},
{
"answer_id": 163234,
"author": "Paul",
"author_id": 23356,... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3713/"
] |
161,819 | <p>What are the main/best Maven repositories to use that will include the majority of your open source Java package dependencies.</p>
<p>Also in what order should these be included? Does it matter?</p>
| [
{
"answer_id": 161846,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 5,
"selected": false,
"text": "<repository>\n <id>MavenCentral</id>\n <name>Maven repository</name>\n <url>http://repo1.maven.org/maven2</u... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17719/"
] |
161,822 | <p>I have several similar methods, say eg. CalculatePoint(...) and CalculateListOfPoints(...). Occasionally, they may not succeed, and need to indicate this to the caller. For CalculateListOfPoints, which returns a generic List, I could return an empty list and require the caller to check this; however Point is a value... | [
{
"answer_id": 161834,
"author": "Luk",
"author_id": 5789,
"author_profile": "https://Stackoverflow.com/users/5789",
"pm_score": 6,
"selected": true,
"text": "public bool CalculatePoint(... out Point result);"
},
{
"answer_id": 161840,
"author": "Jonathan C Dickinson",
"a... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6091/"
] |
161,828 | <p>I need to control the data type when reading XML data in SAS. The XML data are written and accessed using the XML libname engine in SAS.</p>
<p>SAS seems to guess the data type based on the contents of a column: If I write "20081002" to my XML data in a character column, it will be read back in as a numerical varia... | [
{
"answer_id": 162067,
"author": "jilles de wit",
"author_id": 7531,
"author_profile": "https://Stackoverflow.com/users/7531",
"pm_score": 1,
"selected": false,
"text": "libname my_xml_out XML XMLMETA=SCHEMADATA;\n libname my_xml_in XML XMLSCHEMA='external-file'\n XMLMETA=SCHEMA"
},
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18968/"
] |
161,838 | <p>Is it possible to unlisten on a socket after you have called listen(fd, backlog)? </p>
<p>Edit: My mistake for not making myself clear. I'd like to be able to temporarily unlisten on the socket. Calling close() will leave the socket in the M2LS state and prevent me from reopening it (or worse, some nefarious progra... | [
{
"answer_id": 161841,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 2,
"selected": false,
"text": "close(fd);\n"
},
{
"answer_id": 161896,
"author": "prakash",
"author_id": 123,
"author_profil... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6449/"
] |
161,852 | <p>I have a slight problem reading data from file. I want to be able to read wstring's, aswell as a chunk of raw data of arbitrary size (size is in bytes). </p>
<pre><code>std::wfstream stream(file.c_str());
std::wstring comType;
stream >> comType;
int comSize;
stream >> comSize;
char *comData = new cha... | [
{
"answer_id": 161878,
"author": "Jorge Ferreira",
"author_id": 6508,
"author_profile": "https://Stackoverflow.com/users/6508",
"pm_score": 1,
"selected": false,
"text": "#include \"stdafx.h\"\n#include <fstream>\n#include <iostream>\n\nint _tmain(int argc, _TCHAR* argv[])\n{\n std::w... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2166173/"
] |
161,859 | <p>I'd like to invoke bash using a string as input. Something like:</p>
<pre><code>sh -l -c "./foo"
</code></pre>
<p>I'd like to do this from Java. Unfortunately, when I try to invoke the command using <code>getRuntime().exec</code>, I get the following error: </p>
<pre><code> foo": -c: line 0: unexpected EOF ... | [
{
"answer_id": 161888,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 7,
"selected": true,
"text": "Runtime.getRuntime().exec(new String[] {\"sh\", \"-l\", \"-c\", \"./foo\"});\n echo \"Hello, world!\" Runtime.getRuntime().ex... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20426/"
] |
161,872 | <p>What are some really useful but esoteric language features in Perl that you've actually been able to employ to do useful work?</p>
<p>Guidelines:</p>
<ul>
<li>Try to limit answers to the Perl core and not CPAN</li>
<li>Please give an example and a short description</li>
</ul>
<hr>
<h2>Hidden Features also found ... | [
{
"answer_id": 161943,
"author": "Sec",
"author_id": 20555,
"author_profile": "https://Stackoverflow.com/users/20555",
"pm_score": 4,
"selected": false,
"text": "$a = 5 <=> 7; # $a is set to -1\n$a = 7 <=> 5; # $a is set to 1\n$a = 6 <=> 6; # $a is set to 0\n"
},
{
"answer_id"... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21632/"
] |
161,873 | <p>I'm working on the K&R book. I've read farther ahead than I've done exercises, mostly for lack of time. I'm catching up, and have done almost all the exercises from chapter 1, which is the tutorial.</p>
<p>My issue was exercise 1-18. The exercise is to:</p>
<blockquote>
<p>Write a program to remove trailing ... | [
{
"answer_id": 161895,
"author": "Eric Z Beard",
"author_id": 1219,
"author_profile": "https://Stackoverflow.com/users/1219",
"pm_score": 3,
"selected": false,
"text": "if (1 == myvar)\n if (myvar = 1)\n"
},
{
"answer_id": 161935,
"author": "Ferruccio",
"author_id": 4086,... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14048/"
] |
161,879 | <p>Quite often in ANSI C code I can see parenthesis sorrounding a single return value. </p>
<p>Like this:-</p>
<pre><code>int foo(int x) {
if (x)
return (-1);
else
return (0);
}
</code></pre>
<p>Why use () around the return value in those cases? Any ideas? I can see no reason for that.</p>
| [
{
"answer_id": 161899,
"author": "Adam Haile",
"author_id": 194,
"author_profile": "https://Stackoverflow.com/users/194",
"pm_score": 7,
"selected": true,
"text": "return (x+i*2);\n int y = x+i*2;\nreturn y;\n"
},
{
"answer_id": 161992,
"author": "Kristopher Johnson",
"au... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23864/"
] |
161,884 | <p>For those of you that like puzzles: I had this problem recently and am sure there must be a nicer solution.</p>
<p>Consider :</p>
<ul>
<li>an ObservableCollection of <strong>Foo</strong> objects called <em>foos</em>.</li>
<li><strong>Foo</strong> contains a string ID field</li>
<li>I have no control over <em>foos<... | [
{
"answer_id": 161899,
"author": "Adam Haile",
"author_id": 194,
"author_profile": "https://Stackoverflow.com/users/194",
"pm_score": 7,
"selected": true,
"text": "return (x+i*2);\n int y = x+i*2;\nreturn y;\n"
},
{
"answer_id": 161992,
"author": "Kristopher Johnson",
"au... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20508/"
] |
161,885 | <p>When running performance tests file system cache hit or miss can significantly influence test results. Therefore generally before running such tests used files are evicted from system cache. How to do that on Linux?</p>
<p><strong>Clarification:</strong> If possible, the solution should not require root privileges.... | [
{
"answer_id": 162041,
"author": "Mecki",
"author_id": 15809,
"author_profile": "https://Stackoverflow.com/users/15809",
"pm_score": 4,
"selected": false,
"text": "sync; echo 3 > /proc/sys/vm/drop_caches\n"
},
{
"answer_id": 162792,
"author": "Paweł Hajdan",
"author_id": ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9403/"
] |
161,913 | <p>I would like to draw a diagram in HTML. The positioning structure looks like this:</p>
<pre class="lang-html prettyprint-override"><code><div id='hostDiv'>
<div id='backgroundDiv'>
... drawing the background ...
</div>
<div id='foregroundDiv' style='position: absolute;'>
... dra... | [
{
"answer_id": 161923,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 3,
"selected": false,
"text": "var height = $('#myTable').height();\n"
},
{
"answer_id": 161934,
"author": "gx.",
"author_id": 2158... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24451/"
] |
161,915 | <p>I'm trying to have two inputs (one textbox, one drop down) to have the same width.
You can set the width through css, but for some reason, the select box is always a few pixels smaller.
It seems this only happens with the xhtml 1.0 strict doctype
Any suggestions/ideas about the reason/work around?</p>
<p>Having the... | [
{
"answer_id": 161940,
"author": "Vincent McNabb",
"author_id": 16299,
"author_profile": "https://Stackoverflow.com/users/16299",
"pm_score": 0,
"selected": false,
"text": "input select <style type=\"text/css\">\n .searchInput {\n overflow: hidden;\n }\n select.searchInpu... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
161,928 | <p>I am trying to figure out what is the 'grafts' in the Git.</p>
<p>For example, in one of the latest comments <a href="http://web.archive.org/web/20080930112610/http://log.emmanuelebassi.net/archives/2007/09/when-the-levee-breaks/" rel="noreferrer">here</a>, Tobu suppose to use <b>git-filter-branch</b> and <b>.git/i... | [
{
"answer_id": 50517809,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": false,
"text": "$GIT_DIR/info/grafts refs/replace/ dscho gitster echo \"$commit-id $graft-id\" >> .git/info/grafts\n git replace --graft $com... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/70293/"
] |
161,937 | <p>I understand there is a HTTP response header directive to disable page caching:</p>
<pre><code>Cache-Control:no-cache
</code></pre>
<p>I can modify the header by "hand":</p>
<pre><code> <%response.addHeader("Cache-Control","no-cache");%>
</code></pre>
<p>But is there a "nice" way to make the JSP interprete... | [
{
"answer_id": 162096,
"author": "Swati",
"author_id": 12682,
"author_profile": "https://Stackoverflow.com/users/12682",
"pm_score": 0,
"selected": false,
"text": "<?xml version=\"1.0\"?>\n<jsp:root xmlns:jsp=\"http://java.sun.com/JSP/Page\" version=\"2.0\"> \n <jsp:scriptlet><![CDATA[\n... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17428/"
] |
161,942 | <p>I don't want a discussion about when to and not to throw exceptions. I wish to resolve a simple issue. 99% of the time the argument for not throwing exceptions revolves around them being slow while the other side claims (with benchmark test) that the speed is not the issue. I've read numerous blogs, articles, and po... | [
{
"answer_id": 161965,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 9,
"selected": true,
"text": "int.TryParse"
},
{
"answer_id": 162001,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "ht... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23164/"
] |
161,960 | <p>A query that is used to loop through <b>17 millions records to remove duplicates</b> has been running now for about <b>16 hours</b> and I wanted to know if the query is stopped right now if it will finalize the delete statements or if it has been deleting while running this query? Indeed, if I do stop it, does it f... | [
{
"answer_id": 162021,
"author": "jwanagel",
"author_id": 15118,
"author_profile": "https://Stackoverflow.com/users/15118",
"pm_score": 3,
"selected": false,
"text": "declare @count int\nselect @count = 5\nWHILE @count > 0\nBEGIN\n print @count\n delete from applicationlog;\n waitfor ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7952/"
] |
161,975 | <p>Ever since I started using .NET, I've just been creating Helper classes or Partial classes to keep code located and contained in their own little containers, etc. </p>
<p>What I'm looking to know is the best practices for making ones code as clean and polished as it possibly could be.</p>
<p>Obviously clean code i... | [
{
"answer_id": 162003,
"author": "Andre Bossard",
"author_id": 21027,
"author_profile": "https://Stackoverflow.com/users/21027",
"pm_score": 6,
"selected": true,
"text": "holy code"
},
{
"answer_id": 1164985,
"author": "peterchen",
"author_id": 31317,
"author_profile"... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20900/"
] |
161,984 | <p>Is it possible to create Selenium tests using the Firefox plugin that use randomly generated values to help do regression tests?</p>
<p><strong>The full story:</strong>
I would like to help my clients do acceptance testing by providing them with a suite of tests that use some smarts to create random (or at least ps... | [
{
"answer_id": 162107,
"author": "Thilo",
"author_id": 14955,
"author_profile": "https://Stackoverflow.com/users/14955",
"pm_score": 7,
"selected": true,
"text": "type fieldName javascript{Math.floor(Math.random()*11)}\n"
},
{
"answer_id": 2709476,
"author": "RajendraChary",
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14971/"
] |
161,988 | <p>I'm reading data from a table( from a MySQL Database) with Hibernate SQL Query.
The thing is, the table contains a colum that is mapped to a char in Hibernate Model, and sometimes this column is empty.
And I suppose this is where my exception comes from.
How can I map a colum of char to my hibernate model without ge... | [
{
"answer_id": 162145,
"author": "MetroidFan2002",
"author_id": 8026,
"author_profile": "https://Stackoverflow.com/users/8026",
"pm_score": 3,
"selected": true,
"text": "import java.sql.ResultSet;\nimport java.sql.SQLException;\n\nimport org.hibernate.type.CharacterType;\n\npublic class ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/161988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24069/"
] |
161,994 | <p>Assuming I have an open source web server or proxy I can enhance, let's say apache or squid. </p>
<p>Is there a way to determine the time each client spends on a web page?</p>
<p>HTTP is of course stateless, so it's not trivial, but maybe someone has an idea on how to approach this problem?</p>
| [
{
"answer_id": 162136,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://Stackoverflow.com/users/11438",
"pm_score": 0,
"selected": false,
"text": "<a href>"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/161994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13523/"
] |
162,007 | <p>I have an object of the type System.Drawing.Image and want to make every pixel which has some specific color, for example black, transparent (that is, set alpha to 0 for this pixel).</p>
<p>What is the best way to do this?</p>
| [
{
"answer_id": 162063,
"author": "Phil Wright",
"author_id": 6276,
"author_profile": "https://Stackoverflow.com/users/6276",
"pm_score": 4,
"selected": true,
"text": "ImageAttributes attribs = new ImageAttributes();\nList<ColorMap> colorMaps = new List<ColorMap>();\n//\n// Remap black to... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7559/"
] |
162,011 | <p>I have a Nant build file which executes NUnit after compiling the dll's. I am executing the NAnt build file with a task in CruiseControl. So NAnt is running the tests not CruiseControl.</p>
<p>How do I configure it so that the CruiseControl web dashboard can be used to view the NUnit output ?</p>
<hr>
<p>This fi... | [
{
"answer_id": 162055,
"author": "ckramer",
"author_id": 20504,
"author_profile": "https://Stackoverflow.com/users/20504",
"pm_score": 4,
"selected": true,
"text": " <merge>\n <files>\n <file><path to XML output>\\*.xml</file>\n </files>\n </merge>\n"
},
{
"answer... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2083160/"
] |
162,020 | <p>I am using ASP.NET 2.0 with AJAX Extensions (1.0?) and am wondering if it is possible to call a method asynchronously and have the results populate on the page after it has been loaded.</p>
<p>I have a gridview that is populated by a fairly long-running SQL query. I would prefer to have the page come up and the res... | [
{
"answer_id": 866098,
"author": "nicoruy",
"author_id": 60315,
"author_profile": "https://Stackoverflow.com/users/60315",
"pm_score": 0,
"selected": false,
"text": "<div style=\"visibility:hidden\">\n <asp:Button ID=\"btnLoad\" OnClick=\"btnLoad_Click\" runat=\"server\"/>\n</div>\n pro... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
162,028 | <p>We have a large C# (.net 2.0) app which uses our own C++ COM component and a 3rd party fingerprint scanner library also accessed via COM. We ran into an issue where in production some events from the fingerprint library do not get fired into the C# app, although events from our own C++ COM component fired and were r... | [
{
"answer_id": 39623446,
"author": "Tony L.",
"author_id": 3347858,
"author_profile": "https://Stackoverflow.com/users/3347858",
"pm_score": 2,
"selected": false,
"text": "Embed Interop Types=true Embed Interop Types=false"
},
{
"answer_id": 49375166,
"author": "Ruskin",
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
162,032 | <p>I've got two arrays of the same size. I'd like to merge the two so the values of one are the key indexes of the new array, and the values of the new array are the values of the other.</p>
<p>Right now I'm just looping through the arrays and creating the new array manually, but I have a feeling there is a much more... | [
{
"answer_id": 162040,
"author": "aib",
"author_id": 1088,
"author_profile": "https://Stackoverflow.com/users/1088",
"pm_score": 7,
"selected": true,
"text": "array_combine()"
},
{
"answer_id": 163069,
"author": "Christopher Lightfoot",
"author_id": 24525,
"author_pro... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
162,037 | <p>My Outlook add-in handles NewInspector event of the Inspector object, in order to display a custom form for the mail item.</p>
<p>I can get EntryID of the CurrentItem of the Inspector object which is passed as a parameter of the event. But, the problem is that the EntryID of the current mail item is shorter than it... | [
{
"answer_id": 162585,
"author": "Nenad Dobrilovic",
"author_id": 22062,
"author_profile": "https://Stackoverflow.com/users/22062",
"pm_score": 3,
"selected": true,
"text": "item.Save();\nitem.Move(some_folder);\nitems_list.Add(item.EntryID);\n item.Save();\nitem = (Outlook.MailItem)item... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22062/"
] |
162,042 | <p>Let's face it. The Singleton Pattern is <a href="https://stackoverflow.com/questions/11831/singletons-good-design-or-a-crutch#11839">highly controversial</a> topic with hordes programmers on <em>both</em> sides of the fence. There are those who feel like the Singleton is nothing more then a glorified global variab... | [
{
"answer_id": 162167,
"author": "Pop Catalin",
"author_id": 4685,
"author_profile": "https://Stackoverflow.com/users/4685",
"pm_score": 2,
"selected": false,
"text": "*pseudocode* currentContainer.GetServiceByObjectType(singletonType)\n//Under the covers the object might be a singleton,... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25/"
] |
162,057 | <p>I'm building a Thunderbird extension and would like to add my own header to all outgoing email (e.g. <myext-version: 1.0> ). Any idea how to do this? I know it's possible since this is done in the OpenPGP Enigmail extension. Thanks!</p>
| [
{
"answer_id": 686118,
"author": "gerhard",
"author_id": 83151,
"author_profile": "https://Stackoverflow.com/users/83151",
"pm_score": 2,
"selected": false,
"text": "function SendObserver() {\n this.register();\n}\n\nSendObserver.prototype = {\n observe: function(subject, topic, data) ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24473/"
] |
162,064 | <p>I am using a textbox in a .NET 2 winforms app that is setup with a custom AutoCompleteSource. Is there anyway through code that I can increase the width of the list that appears containing the auto complete suggestions? </p>
<p>Ideally I would like to do this without increasing the width of the textbox as I am sh... | [
{
"answer_id": 162547,
"author": "Nikki9696",
"author_id": 456669,
"author_profile": "https://Stackoverflow.com/users/456669",
"pm_score": 1,
"selected": false,
"text": "Public Class Form1\nPrivate WithEvents T As TextBox\nPrivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As ... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6165/"
] |
162,079 | <p>We have the usual <strong>web.xml</strong> for our web application which includes some jsp and jsp tag files. I want to switch to using pre-compiled jsp's. I have the pre-compilation happening in the build ok, and it generates the web.xml fragment and now I want to merge the fragment into the main web.xml.</p>
<p... | [
{
"answer_id": 162186,
"author": "Chris Kimpton",
"author_id": 48310,
"author_profile": "https://Stackoverflow.com/users/48310",
"pm_score": 2,
"selected": false,
"text": " <jasper2\n validateXml=\"false\"\n uriroot=\"${web.dir}\"\n addWebXmlMappings=\"true\"\n... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48310/"
] |
162,086 | <p>in web.xml i set my welcome file to a jsp within web.xml</p>
<pre><code><welcome-file>WEB-INF/index.jsp</welcome-file>
</code></pre>
<p>inside index.jsp i then forward on to a servlet </p>
<pre><code><% response.sendRedirect(response.encodeRedirectURL("myServlet/")); %>
</code></pre>
<p>however... | [
{
"answer_id": 162186,
"author": "Chris Kimpton",
"author_id": 48310,
"author_profile": "https://Stackoverflow.com/users/48310",
"pm_score": 2,
"selected": false,
"text": " <jasper2\n validateXml=\"false\"\n uriroot=\"${web.dir}\"\n addWebXmlMappings=\"true\"\n... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24481/"
] |
162,088 | <p>I use <code>serialize</code> in one <code>ActiveRecord</code> model to serialize an <code>Array</code> of simple Hashes into a text database field. I even use the second parameter to coerce deserialization into <code>Array</code>s.</p>
<pre><code>class Shop < ActiveRecord::Base
serialize : recipients, Array
en... | [
{
"answer_id": 12501093,
"author": "Jordan Sitkin",
"author_id": 273987,
"author_profile": "https://Stackoverflow.com/users/273987",
"pm_score": 2,
"selected": false,
"text": "some_field.force_encoding(Encoding::UTF_8)"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/162088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21702/"
] |
162,105 | <p>What's a good method of programatically generating etag for web pages, and is this practice recommended? Some sites recommend turning etags off, others recommend producing them manually, and some recommend leaving the default settings active - what's the best way here?</p>
| [
{
"answer_id": 163102,
"author": "blueyed",
"author_id": 15690,
"author_profile": "https://Stackoverflow.com/users/15690",
"pm_score": 3,
"selected": false,
"text": "md5($content)"
},
{
"answer_id": 826923,
"author": "easel",
"author_id": 16706,
"author_profile": "htt... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16511/"
] |
162,113 | <p>I'm looking for an elegant, high performance solution to the following problem. </p>
<p>There are 256 linked lists. </p>
<ul>
<li>Each list contains the same types of object that among other things holds a whole number that is used to define a sort order.</li>
<li>All numbers across all lists are unique</li>
<li>... | [
{
"answer_id": 162131,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": true,
"text": "# Preprocessing:\nresult = list.new()\nqueue = priority_queue.new()\n\nforeach (list in lists):\n queue.push(list.f... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7855/"
] |
162,142 | <p>Perforce allows people to check in unchanged files. Why any version control system would allow this is beyond me, but that's a topic for another question. I want to create a trigger that will deny the submission of unchanged files. However, I have no experience with Perforce triggers. From what I've read, I'm gue... | [
{
"answer_id": 162570,
"author": "Douglas Leeder",
"author_id": 3978,
"author_profile": "https://Stackoverflow.com/users/3978",
"pm_score": 3,
"selected": false,
"text": " SubmitOptions: Flags to change submit behaviour.\n\n submitunchanged All open files are sub... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4228/"
] |
162,149 | <p>Our company is sending out a lot of emails per day and planning to send even more in future. (thousands) Also there are mass mailouts as well in the ten thousands every now and then.</p>
<p>Anybody has experience with hotmail, yahoo (web.de, gmx.net) and similar webmail companies blocking your emails because "too m... | [
{
"answer_id": 162320,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 6,
"selected": true,
"text": "Precedence: bulk"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/162149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/925/"
] |
162,159 | <p>Which is better to do client side or server side validation?</p>
<p>In our situation we are using </p>
<ul>
<li>jQuery and MVC. </li>
<li>JSON data to pass between our View and Controller. </li>
</ul>
<p>A lot of the validation I do is validating data as users enter it.
For example I use the the <code>keypress<... | [
{
"answer_id": 162579,
"author": "Nathan Long",
"author_id": 4376,
"author_profile": "https://Stackoverflow.com/users/4376",
"pm_score": 10,
"selected": true,
"text": "curl POST"
},
{
"answer_id": 19169307,
"author": "TaylorMac",
"author_id": 720785,
"author_profile":... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7617/"
] |
162,163 | <p>I have been trying to determine a best case solution for registering a COM server using WiX to create a Windows Installer package and am struggling.</p>
<p>In this post <a href="http://blog.deploymentengineering.com/2008/09/howto-use-regsvr32exe-with-wix.html" rel="nofollow noreferrer">Deployment Engineering Archiv... | [
{
"answer_id": 162330,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "COM extraction DllRegisterServer()"
},
{
"answer_id": 26304137,
"author": "perlyking",
"author_id": 1073262,
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1145/"
] |
162,172 | <p>I am trying to install xampp 1.6.7 in a Red Hat Enterprise Edition. I followed the installation instructions and after that I started the stack with the command </p>
<pre><code>sudo /opt/lampp/lampp start
</code></pre>
<p>And I get te usual response</p>
<pre><code>XAMPP: Starting Apache with SSL (and PHP5)...
XAM... | [
{
"answer_id": 162230,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 0,
"selected": false,
"text": "mysql status\n ps aux | grep mysql\n"
},
{
"answer_id": 162275,
"author": "Till",
"author_id": 2859,... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9132/"
] |
162,176 | <p><code>fopen</code> is failing when I try to read in a very moderately sized file in <code>PHP</code>. <code>A 6 meg file</code> makes it choke, though smaller files around <code>100k</code> are just fine. i've read that it is sometimes necessary to recompile <code>PHP</code> with the <code>-D_FILE_OFFSET_BITS=64</... | [
{
"answer_id": 162263,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": 7,
"selected": true,
"text": "fopen fgets $handle = fopen(\"/tmp/uploadfile.txt\", \"r\") or die(\"Couldn't get handle\");\nif ($handle) {\n while (!feo... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
162,177 | <p>I have an application A with a domain-model which is mapped to a database using Hibernate. I have another application B that uses exactly the same domain-model-classes as A and adds some additional classes. </p>
<p>My goal is to read data from database A in application B and transfer that data into the database of ... | [
{
"answer_id": 12634553,
"author": "Kevin Wong",
"author_id": 4792,
"author_profile": "https://Stackoverflow.com/users/4792",
"pm_score": 2,
"selected": false,
"text": "import java.io.Serializable;\nimport java.util.List;\nimport java.util.logging.Logger;\n\nimport lombok.Getter;\nimport... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18722/"
] |
162,187 | <p>When used like this:</p>
<pre><code>import static com.showboy.Myclass;
public class Anotherclass{}
</code></pre>
<p>what's the difference between <code>import static com.showboy.Myclass</code> and <code>import com.showboy.Myclass</code>?</p>
| [
{
"answer_id": 162215,
"author": "Nicolas",
"author_id": 1730,
"author_profile": "https://Stackoverflow.com/users/1730",
"pm_score": 6,
"selected": false,
"text": "package test;\n\nimport org.example.Foo;\n\nclass A {\n\n B b = Foo.B_INSTANCE;\n\n}\n package test;\n\nimport static org.ex... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10927/"
] |
162,192 | <p>When adding a DLL as a reference to an ASP.Net project, VS2008 adds several files to the bin directory. If the DLL is called foo.dll, VS2008 adds foo.dll.refresh, foo.pdb and foo.xml. I know what foo.dll is :-), why does VS2008 add the other three files? What do those three files do? Can I delete them? Do they ... | [
{
"answer_id": 162223,
"author": "xsl",
"author_id": 11387,
"author_profile": "https://Stackoverflow.com/users/11387",
"pm_score": 5,
"selected": true,
"text": ".dll.refresh .xml .pdb .dll .refresh"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/162192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24482/"
] |
162,225 | <p>I've got an XML document containing news stories, and the body element of a news story contains p tags amongst the plain text. When I use XSL to retrieve the body, e.g.</p>
<pre><code><xsl:value-of select="body" />
</code></pre>
<p>the p tags seem to get stripped out. I'm using Visual Studio 2005's implement... | [
{
"answer_id": 162250,
"author": "Enrico Murru",
"author_id": 68336,
"author_profile": "https://Stackoverflow.com/users/68336",
"pm_score": -1,
"selected": false,
"text": "<xsl:value-of select=\"body\" disable-output-escaping=\"yes\"/>\n"
},
{
"answer_id": 162259,
"author": "... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12277/"
] |
162,255 | <p>What's the best way, using SQL, to check the maximum number of connections that is allowed for an Oracle database? In the end, I would like to show the current number of sessions and the total number allowed, e.g. "Currently, 23 out of 80 connections are used".</p>
| [
{
"answer_id": 162374,
"author": "JosephStyons",
"author_id": 672,
"author_profile": "https://Stackoverflow.com/users/672",
"pm_score": 5,
"selected": false,
"text": "SELECT\n 'Currently, ' \n || (SELECT COUNT(*) FROM V$SESSION)\n || ' out of ' \n || DECODE(VL.SESSIONS_MAX,0,'unlimit... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24495/"
] |
162,276 | <p>I am wanting to use the Facebox plugin for JQuery but am having a few issues getting it running how I want. The div that houses the facebox content is created outside of the tag so even though I am loading up some web controls none of them are firing back to the server.</p>
<p>Has anyone dealt with this that can ... | [
{
"answer_id": 162317,
"author": "Kevin Sheffield",
"author_id": 590,
"author_profile": "https://Stackoverflow.com/users/590",
"pm_score": 3,
"selected": true,
"text": "$('body').append($.facebox.settings.faceboxHtml)\n $('#aspnetForm').append($.facebox.settings.faceboxHtml)\n"
},
{
... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/590/"
] |
162,291 | <p>How can I check if an application is running from a batch (well cmd) file?</p>
<p>I need to not launch another instance if a program is already running. (I can't change the app to make it single instance only.)</p>
<p>Also the application could be running as any user.</p>
| [
{
"answer_id": 162302,
"author": "prakash",
"author_id": 123,
"author_profile": "https://Stackoverflow.com/users/123",
"pm_score": -1,
"selected": false,
"text": "c:\\windows\\notepad.exe"
},
{
"answer_id": 162361,
"author": "Matt Lacey",
"author_id": 1755,
"author_pr... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1755/"
] |
162,298 | <p>I have a basic ActiveRecord model in which i have two fields that i would like to validate. The requirement is that at least one of the fields must have a value. Both can have values, but at least one needs a value.</p>
<p>How do i express this with </p>
<pre><code>validates_presence_of
</code></pre>
<p>statemen... | [
{
"answer_id": 162334,
"author": "Bartosz Blimke",
"author_id": 18715,
"author_profile": "https://Stackoverflow.com/users/18715",
"pm_score": 4,
"selected": true,
"text": "validates_presence_of :main_file, :if => Proc.new { |p| p.alt_file.blank? }\nvalidates_presence_of :alt_file, :if =>... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18811/"
] |
162,303 | <p>How can I convert a Char[] (of any length) to a List ?</p>
| [
{
"answer_id": 162556,
"author": "TK.",
"author_id": 1816,
"author_profile": "https://Stackoverflow.com/users/1816",
"pm_score": 3,
"selected": false,
"text": "byte[] arr = new System.Text.UTF8Encoding( true ).GetBytes( str );\nList<byte> byteList = new List<byte>( arr );\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/162303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816/"
] |
162,304 | <p>I've been using <a href="https://en.wikipedia.org/wiki/Remote_Desktop_Services#Remote_Desktop_Connection" rel="noreferrer">Remote Desktop Connection</a> to get into a workstation. But in this environment, I cannot use the power options in Start Menu. I need an alternative way to shutdown or restart.</p>
<p>How do I... | [
{
"answer_id": 162305,
"author": "Keng",
"author_id": 730,
"author_profile": "https://Stackoverflow.com/users/730",
"pm_score": 11,
"selected": true,
"text": "shutdown shutdown -s shutdown -r shutdown -l shutdown -h -h shutdown.exe shutdown -h shutdown -i shutdown -a -f -t <seconds> -t 0... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/730/"
] |
162,309 | <p>To pop up the UAC dialog in Vista when writing to the HKLM registry hive, we opt to not use the Win32 Registry API, as when Vista permissions are lacking, we'd need to relaunch our entire application with administrator rights. Instead, we do this trick:</p>
<pre><code>ShellExecute(hWnd, "runas" /* display UAC promp... | [
{
"answer_id": 162360,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profile": "https://Stackoverflow.com/users/6970",
"pm_score": 3,
"selected": false,
"text": "reg.exe PATH"
},
{
"answer_id": 2801958,
"author": "akira",
"author_id": 98653,
"author_profile": "... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9744/"
] |
162,325 | <p>This has been an adventure. I started with the looping duplicate query located in <a href="https://stackoverflow.com/questions/161960">my previous question</a>, but each loop would go over all <strong>17 million records</strong>, <strong>meaning it would take weeks</strong> (just running <code>*select count * from M... | [
{
"answer_id": 162378,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 1,
"selected": false,
"text": "SET SHOWPLAN_TEXT ON\n"
},
{
"answer_id": 162479,
"author": "TrevorD",
"author_id": 12492,
"author_profile... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7952/"
] |
162,326 | <p>How to get the checked option in a group of radio inputs with JavaScript?</p>
| [
{
"answer_id": 162408,
"author": "leoinfo",
"author_id": 6948,
"author_profile": "https://Stackoverflow.com/users/6948",
"pm_score": 4,
"selected": true,
"text": "<html>\n <head>\n <script type=\"text/javascript\">\n function testR(){\n var x = document.getElementsByName(... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1100/"
] |
162,331 | <p>I'm developing an application targeting .NET Framework 2.0 using C# for which I need to be able to find the default application that is used for opening a particular file type.</p>
<p>I know that, for example, if you just want to open a file using that application you can use something like:</p>
<pre><code>System.... | [
{
"answer_id": 162351,
"author": "curtisk",
"author_id": 17651,
"author_profile": "https://Stackoverflow.com/users/17651",
"pm_score": 5,
"selected": true,
"text": "HKEY_CLASSES_ROOT"
},
{
"answer_id": 162371,
"author": "Bart Read",
"author_id": 17786,
"author_profile... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17786/"
] |
162,335 | <p>I was browsing Scott Hanselman's <a href="http://www.hanselman.com/blog/WhatGreatNETDevelopersOughtToKnowMoreNETInterviewQuestions.aspx" rel="noreferrer">Developer Interview question list</a>, and ran across this question:</p>
<blockquote>
<p>What is wrong with
DateTime.Parse(myString)?</p>
</blockquote>
<p>Wh... | [
{
"answer_id": 162348,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 6,
"selected": true,
"text": "DateTime.Parse() DateTime.TryParse() DateTime.TryParseExact()"
},
{
"answer_id": 162363,
"author": "John Ru... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5619/"
] |
162,338 | <p>Can I, using an address found in a map file, use windbg to alter a variable in memory while the app is running?</p>
<p>I'm really interested in turning on/off functionality in run-time maybe with a variable.</p>
<p>How would you do this? Does it require breaking the app through the debugger?</p>
| [
{
"answer_id": 9576175,
"author": "EdChum",
"author_id": 704848,
"author_profile": "https://Stackoverflow.com/users/704848",
"pm_score": 1,
"selected": false,
"text": "bp /1 012ABCDEF \"myVar=42;g\"\n"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/162338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8123/"
] |
162,399 | <p>Hi why doesn't this work in SQL Server 2005?</p>
<pre><code>select HALID, count(HALID) as CH from Outages.FaultsInOutages
where CH > 3
group by HALID
</code></pre>
<p>I get invalid column name 'CH'</p>
<hr>
<p>i think having was the right way to go but still receive the error:
Invalid column name 'CH'.</p>
... | [
{
"answer_id": 162406,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 2,
"selected": false,
"text": "select HALID, count(HALID) from Outages.FaultsInOutages \ngroup by HALID having count(HALID) > 3\n"
},
{
"an... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21004/"
] |
162,409 | <p>Can someone explain what are the benefits of using the @import syntax comparing to just including css using the standard link method?</p>
| [
{
"answer_id": 162437,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "<link> @import"
},
{
"answer_id": 162449,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_p... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24200/"
] |
162,421 | <p>Being lazy (and liking DRY code), I'm the kind of guy who's going to write a few little wrappers for recurring HTML markup. Those provided by Rails are good already, but sometimes I have something a little more specific that I know I'm going to repeat over and over.</p>
<p>In some situations a partial can be the so... | [
{
"answer_id": 162600,
"author": "Patrick McKenzie",
"author_id": 15046,
"author_profile": "https://Stackoverflow.com/users/15046",
"pm_score": 1,
"selected": false,
"text": " #I go in environment.db (presumably it will work in one of the per-environment files, too.)\n Dependencies... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6349/"
] |
162,444 | <p>We're trying to put together kiosk solution where we can charge people by hour for applications they use. As such, we need a way to figure out when an application is started, when it is closed and log this information for billing. I am a reasonably experienced .NET programmer so a managed code solution would be grea... | [
{
"answer_id": 162477,
"author": "Ian Jacobs",
"author_id": 22818,
"author_profile": "https://Stackoverflow.com/users/22818",
"pm_score": 0,
"selected": false,
"text": "static void Main() \n{ \n DateTime StartTime = DateTime.Now;\n Application.Run(new frmBilling());\n DateTime... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16671/"
] |
162,445 | <p>I wan't to know the real size of a web page (HTML + CSS + Javascript + Images + etc.) but from the browser side, maybe with a software, Firefox Add-On or similar?</p>
| [
{
"answer_id": 48386021,
"author": "Skippy le Grand Gourou",
"author_id": 812102,
"author_profile": "https://Stackoverflow.com/users/812102",
"pm_score": 0,
"selected": false,
"text": "tools"
}
] | 2008/10/02 | [
"https://Stackoverflow.com/questions/162445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24506/"
] |
162,459 | <p>I have 3 tables</p>
<ol>
<li><b>Links</b><br/>
Link ID<br/>
Link Name<br/>
GroupID (FK into Groups)<br/>
SubGroupID (FK into Subgroups)<br/>
<br/></li>
<li><p><b>Groups</b><br/>
GroupID<br/>
GroupName<br/></p></li>
<li><p><b>SubGroup</b><br/>
SubGroupID<br/>
SubGroupName<br/>
GroupID (FK into Groups)<br/></p></li>
... | [
{
"answer_id": 162478,
"author": "Danimal",
"author_id": 2757,
"author_profile": "https://Stackoverflow.com/users/2757",
"pm_score": 1,
"selected": false,
"text": "SELECT \n links.linkname\n , groups.groupname\n , subgroup.groupname\nFROM\n links \n JOIN groups ON links.groupid = gr... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
162,480 | <p>Consider:</p>
<pre><code>int testfunc1 (const int a)
{
return a;
}
int testfunc2 (int const a)
{
return a;
}
</code></pre>
<p>Are these two functions the same in every aspect or is there a difference?</p>
<p>I'm interested in an answer for the C language, but if there is something interesting in the C++ lang... | [
{
"answer_id": 162499,
"author": "prakash",
"author_id": 123,
"author_profile": "https://Stackoverflow.com/users/123",
"pm_score": 2,
"selected": false,
"text": "int int*"
},
{
"answer_id": 162504,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "http... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15955/"
] |
162,497 | <p>There is a select dropdown and I want to add "No selection" item to the list which should give me 'null' when submitted.
I'm using SimpleFormController derived controller.</p>
<pre><code>protected Map referenceData(HttpServletRequest httpServletRequest, Object o, Errors errors) throws Exception {
Map&l... | [
{
"answer_id": 171260,
"author": "Jacob Mattison",
"author_id": 1237,
"author_profile": "https://Stackoverflow.com/users/1237",
"pm_score": 6,
"selected": true,
"text": "<form:select path=\"country\" title=\"country\" >\n <form:option value=\"\"> </form:option>\n <form:optio... | 2008/10/02 | [
"https://Stackoverflow.com/questions/162497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.