qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
275,544
<p>I know in a lot of asynchronous communication, the packet begins starts with a start bit.</p> <p>But a start bit is just a 1 or 0. How do you differentiate a start bit from the end bit from the last packet?</p> <p>Ex. If I choose my start bit to be 0 and my end bit to be 1. and I receive 0 (data stream A) 1 0 (da...
[ { "answer_id": 275554, "author": "Adam Liss", "author_id": 29157, "author_profile": "https://Stackoverflow.com/users/29157", "pm_score": 3, "selected": false, "text": "ABC A = 65 = 0x41 = 0100 0001\nB = 66 = 0x42 = 0100 0010\nC = 67 = 0x43 = 0100 0011\n 0 1 1 Data: ....1111 0010000011 ...
2008/11/09
[ "https://Stackoverflow.com/questions/275544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28462/" ]
275,550
<p>I know how to include files that are in folders further down the heirachy but I have trouble finding my way back up. I decided to go with the set_include_path to default all further includes relative to a path 2 levels up but don't have the slightest clue how to write it out.</p> <p>Is there a guide somewhere that ...
[ { "answer_id": 275556, "author": "Owen", "author_id": 4853, "author_profile": "https://Stackoverflow.com/users/4853", "pm_score": 1, "selected": false, "text": "set_include_path('/path/to/files');\n /home/files index.php\ntest/\n test.php\ntest2/\n test2.php\n\n// /home/files/index.php...
2008/11/09
[ "https://Stackoverflow.com/questions/275550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24416/" ]
275,562
<p>I'm writing a simple time tracking program to manage my own projects. I'm a big fan of keeping reporting code in the database, so I've been attempting to create a few sprocs that generate the invoices and timesheets etc.</p> <p>I have a table that contains Clock Actions, IE "Punch In", and "Punch Out". It also cont...
[ { "answer_id": 275615, "author": "Michael Haren", "author_id": 29, "author_profile": "https://Stackoverflow.com/users/29", "pm_score": 2, "selected": true, "text": "DECLARE @clock TABLE (ClockActionID INT PRIMARY KEY IDENTITY, ActionType INT, ActionDateTime DATETIME)\n\nINSERT INTO @cloc...
2008/11/09
[ "https://Stackoverflow.com/questions/275562", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1965/" ]
275,569
<p>This is kind of a brainteaser question, since the code works perfectly fine as-is, it just irritates my aesthetic sense ever so slightly. I'm turning to Stack Overflow because my own brain is failing me right now.</p> <p>Here's a snippet of code that looks up an address using the Google Maps JS API and places a mar...
[ { "answer_id": 275582, "author": "Jay Kominek", "author_id": 32878, "author_profile": "https://Stackoverflow.com/users/32878", "pm_score": 1, "selected": false, "text": "function place_point(mapstrings,idx)\n{\n if(idx>=mapstrings.length) return;\n geocoder.getLatLng(mapstrings[idx...
2008/11/09
[ "https://Stackoverflow.com/questions/275569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/56817/" ]
275,571
<p>I want to write a simple utility to upload images to various free image hosting websites like TinyPic or Imageshack via a right-click context menu for the file.</p> <p>How can I do this using .NET? I've seen some linux scripts that use cURL to post images to these website but I'm not sure how I could create the po...
[ { "answer_id": 275586, "author": "Jeff Hillman", "author_id": 3950, "author_profile": "https://Stackoverflow.com/users/3950", "pm_score": 2, "selected": false, "text": "// http://www.flickr.com/services/api/misc.api_keys.html\nstring flickrApiKey = \"<api key>\";\nstring flickrApiSharedS...
2008/11/09
[ "https://Stackoverflow.com/questions/275571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
275,577
<p>If I have a char which holds a hex value such has 0x53, (S), how can I display this as "S"?</p> <p>Code:</p> <pre><code>char test = 0x53; cout &lt;&lt; test &lt;&lt; endl; </code></pre> <p>Thanks!</p>
[ { "answer_id": 275646, "author": "Paige Ruten", "author_id": 813, "author_profile": "https://Stackoverflow.com/users/813", "pm_score": 3, "selected": false, "text": "test = 0x53; // hex\ntest = 'S'; // literal constant\ntest = 83; // decimal\ntest = 0123; // octal\n" }, { "ans...
2008/11/09
[ "https://Stackoverflow.com/questions/275577", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33481/" ]
275,593
<p>I'm having trouble converting my Cocoa project from a manually-synched interface model to a bindings model so that I don't have to worry about interface glue code.</p> <p>I followed the CocoaDevCentral <a href="http://cocoadevcentral.com/articles/000080.php" rel="nofollow noreferrer">Cocoa Bindings tutorial</a> to ...
[ { "answer_id": 275616, "author": "Peter Hosey", "author_id": 30461, "author_profile": "https://Stackoverflow.com/users/30461", "pm_score": 0, "selected": false, "text": "NSMutableArray" }, { "answer_id": 275666, "author": "Community", "author_id": -1, "author_profile"...
2008/11/09
[ "https://Stackoverflow.com/questions/275593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
275,625
<pre><code>var pattern = /^0+$/; </code></pre> <p>My guess is this:</p> <p>"Take a look at both the beginning and the end of the string, and if there's a pattern of one or more zeros at the beginning and the end, then return that pattern."</p> <p>I'm sure that's wrong, though, because when I run the expression with ...
[ { "answer_id": 275636, "author": "Nate Parsons", "author_id": 34910, "author_profile": "https://Stackoverflow.com/users/34910", "pm_score": 2, "selected": false, "text": "var pattern = /^0+.*0+$/\n" }, { "answer_id": 275638, "author": "Rob", "author_id": 3542, "author...
2008/11/09
[ "https://Stackoverflow.com/questions/275625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
275,630
<p>I'm trying to automate some stuff in MS Excel. When I try to set the Calculation property I get the following error message: 'Unable to set the Calculation property of the Application class'</p> <p>I believe this property should be settable.</p> <p>Any advice appreciated!</p>
[ { "answer_id": 275635, "author": "BradC", "author_id": 21398, "author_profile": "https://Stackoverflow.com/users/21398", "pm_score": 1, "selected": false, "text": " Application.Calculation = xlCalculationManual\n" }, { "answer_id": 275743, "author": "dbb", "author_id": 25...
2008/11/09
[ "https://Stackoverflow.com/questions/275630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
275,631
<p>There are <code>&lt;meta&gt;</code> tags and other things you can place in the <code>&lt;head&gt;</code> of your HTML document. What <code>&lt;meta&gt;</code> tags etc. and best practices do you make use of in your HTML document to make it more accessible, searchable, optimized etc.</p>
[ { "answer_id": 275665, "author": "andyk", "author_id": 26721, "author_profile": "https://Stackoverflow.com/users/26721", "pm_score": 5, "selected": true, "text": "Content-type description keywords media=\"\" <script> <head>" }, { "answer_id": 275673, "author": "eyelidlessness...
2008/11/09
[ "https://Stackoverflow.com/questions/275631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21406/" ]
275,683
<p>Using <a href="http://imdbpy.sourceforge.net" rel="noreferrer">IMDbPy</a> it is painfully easy to access movies from the IMDB site:</p> <pre><code>import imdb access = imdb.IMDb() movie = access.get_movie(3242) # random ID print "title: %s year: %s" % (movie['title'], movie['year']) </code></pre> <p>However I se...
[ { "answer_id": 275774, "author": "Tim Kersten", "author_id": 33514, "author_profile": "https://Stackoverflow.com/users/33514", "pm_score": 4, "selected": true, "text": "import imdb\n\naccess = imdb.IMDb()\nmovie = access.get_movie(1132626)\n\nprint \"title: %s year: %s\" % (movie['title'...
2008/11/09
[ "https://Stackoverflow.com/questions/275683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/432/" ]
275,689
<p>There's a part in my apps that displays the file path loaded by the user through OpenFileDialog. It's taking up too much space to display the whole path, but I don't want to display only the filename as it might be ambiguous. So I would prefer to show the file path relative to the assembly/exe directory.</p> <p>For...
[ { "answer_id": 275691, "author": "Kevin", "author_id": 40, "author_profile": "https://Stackoverflow.com/users/40", "pm_score": 2, "selected": false, "text": "RelPath = AbsPath.Replace(ApplicationPath, \".\")\n" }, { "answer_id": 275740, "author": "DavidK", "author_id": 31...
2008/11/09
[ "https://Stackoverflow.com/questions/275689", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20007/" ]
275,701
<p>I'm playing around with CodeIgniter; hoping to convert some of my old, ugly PHP into a more maintainable framework. However, I've come across a rather frustrating roadblock - I can't seem to define methods in my views. Any time I try I get a completely blank page, and when I look in the debug log the processing seem...
[ { "answer_id": 275729, "author": "Josh", "author_id": 10902, "author_profile": "https://Stackoverflow.com/users/10902", "pm_score": 0, "selected": false, "text": "if (!function_exists('myfunc'))\n{\n function myfunc() {}\n}\n while(ob_end_flush()){}\nerror_reporting(E_ALL);\nini_set('...
2008/11/09
[ "https://Stackoverflow.com/questions/275701", "https://Stackoverflow.com", "https://Stackoverflow.com/users/658/" ]
275,707
<p>Create a file called Valid[File].txt and stick some text in it. Start powershell and go to the directory.<br> <PRE> gc Valid[File].txt </PRE> should display the value in the file. It returns blank. If you use tab auto-completion it escapes the name: <PRE> gc 'Valid<code>[File</code>].txt' </PRE> but still returns...
[ { "answer_id": 275719, "author": "Brian Adams", "author_id": 32992, "author_profile": "https://Stackoverflow.com/users/32992", "pm_score": 4, "selected": true, "text": "-literalpath" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/275707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32992/" ]
275,711
<p>Is there a better way of getting this result? This function fails if num has more digits than digits, and I feel like it should be in the library somewhere (like Integer.toString(x,"%3d") or something)</p> <pre><code>static String intToString(int num, int digits) { StringBuffer s = new StringBuffer(digits); ...
[ { "answer_id": 275715, "author": "begray", "author_id": 12123, "author_profile": "https://Stackoverflow.com/users/12123", "pm_score": 12, "selected": true, "text": "String formatted = String.format(\"%03d\", num);\n" }, { "answer_id": 275716, "author": "Jason Coco", "auth...
2008/11/09
[ "https://Stackoverflow.com/questions/275711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34910/" ]
275,717
<p>I have a very weird problem which I cannot seem to figure out. Unfortunately, I'm not even sure how to describe it without describing my entire application. What I am trying to do is:</p> <pre> 1) read a byte from the serial port 2) store each char into tagBuffer as they are read 3) run a query using tagBuffer to...
[ { "answer_id": 275725, "author": "1800 INFORMATION", "author_id": 3146, "author_profile": "https://Stackoverflow.com/users/3146", "pm_score": 1, "selected": false, "text": "buf tagBuffer" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/275717", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28462/" ]
275,736
<p>I use the dark-blue2 color theme but it seems ugly under console. So I want to use no color theme under terminal, what can I do then?</p>
[ { "answer_id": 275755, "author": "Samuel Tardieu", "author_id": 22890, "author_profile": "https://Stackoverflow.com/users/22890", "pm_score": 2, "selected": true, "text": "TERM=xterm-mono emacs -nw\n" }, { "answer_id": 276586, "author": "quodlibetor", "author_id": 25616, ...
2008/11/09
[ "https://Stackoverflow.com/questions/275736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34924/" ]
275,737
<pre><code>DECLARE @p_date DATETIME SET @p_date = CONVERT( DATETIME, '14 AUG 2008 10:45:30',?) SELECT * FROM table1 WHERE column_datetime = @p_date </code></pre> <p>I need to compare date time like:</p> <pre><code>@p_date=14 AUG 2008 10:45:30 column_datetime=14 AUG 2008 10:45:30 </code></pre> <p>How ...
[ { "answer_id": 275776, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 1, "selected": false, "text": "DECLARE @end datetime\nSET @end = DATEADD(ss,1,@p_date)\n WHERE column_datetime >= @p_date AND column_datetime < @end...
2008/11/09
[ "https://Stackoverflow.com/questions/275737", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
275,756
<p>I was looking at the <a href="http://www.python.org/doc/2.5.2/lib/module-popen2.html" rel="noreferrer">Python documentation</a> and saw that there are 4-5 different versions of popen(), e.g. os.popen(), os.popen2(), etc. </p> <p>Apart from the fact that some include <em>stderr</em> while others don't, what are the ...
[ { "answer_id": 275817, "author": "J S", "author_id": 25676, "author_profile": "https://Stackoverflow.com/users/25676", "pm_score": 4, "selected": false, "text": "subprocess" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/275756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18676/" ]
275,761
<p>I have a textbox and a link button. When I write some text, select some of it and then click the link button, the selected text from textbox must be show with a message box.</p> <p>How can I do it?</p> <hr /> <p>When I click the submit button for the textbox below, the message box must show <em>Lorem ipsum</em>. Bec...
[ { "answer_id": 275797, "author": "Shadow2531", "author_id": 1697, "author_profile": "https://Stackoverflow.com/users/1697", "pm_score": 2, "selected": false, "text": "function getTextFieldSelection(textField) {\n return textField.value.substring(textField.selectionStart, textField.sel...
2008/11/09
[ "https://Stackoverflow.com/questions/275761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/439507/" ]
275,771
<p>I need to get the values in the registers with GCC.</p> <p>Something similar to this:</p> <pre> EAX=00000002 EBX=00000001 ECX=00000005 EDX=BFFC94C0 ESI=8184C544 EDI=00000000 EBP=0063FF78 ESP=0063FE3C CF=0 SF=0 ZF=0 OF=0 </pre> <p>Getting the 32-bit registers is easy enough, but I'm not sure what the simp...
[ { "answer_id": 275837, "author": "Nils Pipenbrinck", "author_id": 15955, "author_profile": "https://Stackoverflow.com/users/15955", "pm_score": 3, "selected": true, "text": " PUSHFD\n POP EAX \n , eax now contains the EFLAG data\n" }, { "answer_id": 6405090, "author": "jw...
2008/11/09
[ "https://Stackoverflow.com/questions/275771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30626/" ]
275,778
<p>How can I draw something in JPanel that will stay the same and not be repainted, I am doing a traffic simulation program and I want the road to be drawn once because It will not change. Thanks </p>
[ { "answer_id": 275785, "author": "Dan Vinton", "author_id": 21849, "author_profile": "https://Stackoverflow.com/users/21849", "pm_score": 3, "selected": true, "text": "public class RoadPanel extends JPanel {\n\n @Override\n public void paintComponent(Graphics g) {\n super.pa...
2008/11/09
[ "https://Stackoverflow.com/questions/275778", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4885/" ]
275,781
<p>Can anyone explain the difference between <code>Server.MapPath(".")</code>, <code>Server.MapPath("~")</code>, <code>Server.MapPath(@"\")</code> and <code>Server.MapPath("/")</code>?</p>
[ { "answer_id": 275791, "author": "splattne", "author_id": 6461, "author_profile": "https://Stackoverflow.com/users/6461", "pm_score": 11, "selected": true, "text": "Server.MapPath(\".\") Server.MapPath(\"..\") Server.MapPath(\"~\") Server.MapPath(\"/\") http://www.example.com/ C:\\Inetpu...
2008/11/09
[ "https://Stackoverflow.com/questions/275781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2133/" ]
275,795
<p>E.g.</p> <p>What's best out of these:</p> <pre><code>std::string f() {} </code></pre> <p>or </p> <pre><code>const std::string&amp; f() {} </code></pre>
[ { "answer_id": 275811, "author": "Nicola Bonelli", "author_id": 19630, "author_profile": "https://Stackoverflow.com/users/19630", "pm_score": 5, "selected": false, "text": "operator<< std::ostream & operator<<(std::ostream &out, const object &obj)\n{\n out << obj.data();\n return out...
2008/11/09
[ "https://Stackoverflow.com/questions/275795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
275,810
<p>Is anyone using Castle MonoRail and ELMAH with success?</p> <p>We are using a number of Resuces to present users with friendly error messages, but if we do this the exceptions never get as far as ELMAH as the MonoRail rescue intercepts them.</p> <p>Ideally we want the user to see the rescue, but for the exception ...
[ { "answer_id": 620066, "author": "Mauricio Scheffer", "author_id": 21239, "author_profile": "https://Stackoverflow.com/users/21239", "pm_score": 3, "selected": true, "text": "public class ElmahExceptionHandler : AbstractExceptionHandler {\n public override void Process(IRailsEngineCon...
2008/11/09
[ "https://Stackoverflow.com/questions/275810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8542/" ]
275,824
<p>I am getting an 'Access to the path is denied" error message when running in debug mode. I have tried granting permissions to {MACHINENAME}\ASPNET and to NETWORK SERVICE but this hasn't made any difference. I have also tried &lt; impersonate = true /> using an admin account, this also made no difference. So how do I...
[ { "answer_id": 275830, "author": "mdb", "author_id": 8562, "author_profile": "https://Stackoverflow.com/users/8562", "pm_score": 5, "selected": true, "text": " Dim User = System.Security.Principal.WindowsIdentity.GetCurrent.User\n Dim UserName = User.Translate(GetType(System.Securi...
2008/11/09
[ "https://Stackoverflow.com/questions/275824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27805/" ]
275,836
<p>I'm looking for a way to display multiple colors in a single C#/.NET label. E.g the label is displaying a series of csv separated values that each take on a color depending on a bucket they fall into. I would prefer not to use multiple labels, as the values are variable length and I don't want to play with dynamic...
[ { "answer_id": 275876, "author": "MusiGenesis", "author_id": 14606, "author_profile": "https://Stackoverflow.com/users/14606", "pm_score": 7, "selected": true, "text": "public void RenderRainbowText(string Text, PictureBox pb)\n{\n // PictureBox needs an image to draw on\n pb.Image...
2008/11/09
[ "https://Stackoverflow.com/questions/275836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8207/" ]
275,842
<p>Frequently, I've dug into apropos and docs looking for something like the following only to give up to get back to the task at hand:</p> <p>(repeat-last-command)</p> <p>do the last C- or M- command I just executed (to be rebound to a fn key)</p> <p>or sometimes the related: </p> <p>(describe-last-function)</p> ...
[ { "answer_id": 275861, "author": "Emerick Rogul", "author_id": 33837, "author_profile": "https://Stackoverflow.com/users/33837", "pm_score": 7, "selected": false, "text": "repeat.el repeat.el" }, { "answer_id": 275862, "author": "echox", "author_id": 35915, "author_pr...
2008/11/09
[ "https://Stackoverflow.com/questions/275842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35911/" ]
275,853
<p>I myself am convinced that in a project I'm working on signed integers are the best choice in the majority of cases, even though the value contained within can never be negative. (Simpler reverse for loops, less chance for bugs, etc., in particular for integers which can only hold values between 0 and, say, 20, anyw...
[ { "answer_id": 275873, "author": "Johannes Schaub - litb", "author_id": 34509, "author_profile": "https://Stackoverflow.com/users/34509", "pm_score": 3, "selected": true, "text": "'int' for(std::vector<int>::size_type i = 0; i < someVector.size(); i++) {\n /* ... */\n}\n for(std::vect...
2008/11/09
[ "https://Stackoverflow.com/questions/275853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5422/" ]
275,855
<p>I have a custom attribute which can be assigned to a class, <code>[FooAttribute]</code>. What I would like to do, from within the attribute, is determine which type has actually used me. e.g. If I have:</p> <pre><code>[FooAttribute] public class Bar { } </code></pre> <p>In the code for FooAttribute, how can I dete...
[ { "answer_id": 275921, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 4, "selected": true, "text": "[DisplayName] [Foo(\"Some name\", typeof(Bar)]\n DisplayNameAttribute DisplayName" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/275855", "https://Stackoverflow.com", "https://Stackoverflow.com/users/986/" ]
275,868
<p>How would I go about having a CMake buildsystem, which scans for source files now using <a href="http://www.cmake.org/cmake/help/cmake2.6docs.html#command:aux_source_directory" rel="noreferrer">AUX_SOURCE_DIRECTORY</a>, scan for header files too in the same directory, preferably using a similar command?</p> <p>I di...
[ { "answer_id": 309455, "author": "David", "author_id": 28275, "author_profile": "https://Stackoverflow.com/users/28275", "pm_score": 5, "selected": true, "text": "set(dir my_search_dir)\nfile (GLOB headers \"${dir}/*.h\")\nmessage(\"My headers: \" ${headers})\n" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/275868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5422/" ]
275,871
<p>Suppose I have code like this:</p> <pre><code>template&lt;class T, T initial_t&gt; class Bar { // something } </code></pre> <p>And then try to use it like this:</p> <pre><code>Bar&lt;Foo*, NULL&gt; foo_and_bar_whatever_it_means_; </code></pre> <p>GCC bails out with error (on the above line):</p> <blockquote> ...
[ { "answer_id": 275884, "author": "Assaf Lavie", "author_id": 11208, "author_profile": "https://Stackoverflow.com/users/11208", "pm_score": 0, "selected": false, "text": "Bar<Foo*, (Foo*)NULL> foo_and_bar_whatever_it_means_;\n" }, { "answer_id": 277934, "author": "MSalters", ...
2008/11/09
[ "https://Stackoverflow.com/questions/275871", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9403/" ]
275,878
<p>My client gets a <code>sec_error_unknown_issuer</code> error message when visiting <a href="https://mediant.ipmail.nl" rel="noreferrer">https://mediant.ipmail.nl</a> with Firefox. I can't reproduce the error myself. I installed FF on a Vista and a XP machine and had no problems. FF on Ubuntu also works fine.</p> <p...
[ { "answer_id": 1026287, "author": "user126810", "author_id": 126810, "author_profile": "https://Stackoverflow.com/users/126810", "pm_score": 5, "selected": false, "text": "SSLCertificateChainFile /etc/ssl/crt/yourSERVERNAME.ca-bundle\n" }, { "answer_id": 14721055, "author": "...
2008/11/09
[ "https://Stackoverflow.com/questions/275878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21238/" ]
275,885
<p>Although a DataTable is a memory hog, wouldn't a DataTable be the best choice to implement and IdentityMap if the set of objects is very large since retrieval time is O(1)?</p> <p><strong>Update</strong></p> <p>If I decide to use IDictionary, do I sacrifice speed when retrieving my objects?</p>
[ { "answer_id": 275915, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 4, "selected": true, "text": "Dictionary<,> SortedList<,> SortedDictionary<,> Dictionary<,> Collection<T> Dictionary<,> SortedList<,>" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/275885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19799/" ]
275,888
<p>Use HttpWebRequest to download web pages without key sensitive issues</p>
[ { "answer_id": 275905, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": false, "text": "WebClient using (WebClient wc = new WebClient())\n {\n string page1 = wc.DownloadString(\"h...
2008/11/09
[ "https://Stackoverflow.com/questions/275888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35917/" ]
275,891
<p>I wan't to change the background color of a div dynamicly using the following HTML, CSS and javascript. HTML:</p> <pre><code>&lt;div id=&quot;menu&quot;&gt; &lt;div class=&quot;menuItem&quot;&gt;&lt;a href=#&gt;Bla&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;menuItem&quot;&gt;&lt;a href=#&gt;Bla&lt;/a&gt;&lt;/...
[ { "answer_id": 275912, "author": "foxy", "author_id": 30119, "author_profile": "https://Stackoverflow.com/users/30119", "pm_score": 7, "selected": true, "text": "$(function() {\n $('.menuItem').hover( function(){\n $(this).css('background-color', '#F00');\n },\n function(){\n ...
2008/11/09
[ "https://Stackoverflow.com/questions/275891", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35197/" ]
275,920
<p>I have been trying to set up my Beta 1 MVC app on IIS 6 and cannot get it to run correctly. I have added a Wildcard mapping to the .net isapi DLL as suggested in other blog posts but get the following error when I access the root of the website:</p> <pre><code>The incoming request does not match any route. .. [Http...
[ { "answer_id": 275928, "author": "TheCodeJunkie", "author_id": 25319, "author_profile": "https://Stackoverflow.com/users/25319", "pm_score": 1, "selected": false, "text": "routes.IgnoreRoute(\"{resource}.axd/{*pathInfo}\");\n\nSimplyRestfulRouteHandler.BuildRoutes(routes);\n\nroutes.MapR...
2008/11/09
[ "https://Stackoverflow.com/questions/275920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31412/" ]
275,926
<p>We are developing a WCF based system. In the process we are trying to lock some data from being modified by more than one users. So we decided to have a data structure that will contain the necessary information for the locking logic to execute (by for example storing the ID of the locked objects)</p> <p>The proble...
[ { "answer_id": 430569, "author": "Matt Davis", "author_id": 51170, "author_profile": "https://Stackoverflow.com/users/51170", "pm_score": 2, "selected": false, "text": "[ServiceContract]\npublic interface IMyService\n{\n [OperationContract]\n void Start(IPAddress address);\n}\n\n[S...
2008/11/09
[ "https://Stackoverflow.com/questions/275926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28212/" ]
275,931
<p>I'm brand new to jQuery and have some experience using Prototype. In Prototype, there is a method to "flash" an element &mdash; ie. briefly highlight it in another color and have it fade back to normal so that the user's eye is drawn to it. Is there such a method in jQuery? I see fadeIn, fadeOut, and animate, but I ...
[ { "answer_id": 275953, "author": "okoman", "author_id": 35903, "author_profile": "https://Stackoverflow.com/users/35903", "pm_score": 4, "selected": false, "text": "jQuery.fn.flash = function( color, duration )\n{\n\n var current = this.css( 'color' );\n\n this.animate( { color: 'r...
2008/11/09
[ "https://Stackoverflow.com/questions/275931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7961/" ]
275,944
<p>I have the string </p> <pre><code>a.b.c.d </code></pre> <p>I want to count the occurrences of '.' in an idiomatic way, preferably a one-liner.</p> <p>(Previously I had expressed this constraint as "without a loop", in case you're wondering why everyone's trying to answer without using a loop).</p>
[ { "answer_id": 275969, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 8, "selected": false, "text": "split public static int countOccurrences(String haystack, char needle)\n{\n int count = 0;\n for (int i=0; i < hay...
2008/11/09
[ "https://Stackoverflow.com/questions/275944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4343/" ]
275,957
<p>I am working on a background program that will be running for a long time, and I have a external logging program (<a href="http://www.gurock.com/products/smartinspect/" rel="noreferrer">SmartInspect</a>) that I want to feed with some values periodically, to monitor it in realtime when debugging.</p> <p>I know I can...
[ { "answer_id": 275963, "author": "Sunlight", "author_id": 33650, "author_profile": "https://Stackoverflow.com/users/33650", "pm_score": 3, "selected": false, "text": "System.Diagnostics.PerformanceCounter perfmon.exe" }, { "answer_id": 276181, "author": "sundar venugopal", ...
2008/11/09
[ "https://Stackoverflow.com/questions/275957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/267/" ]
275,958
<p>I have a list of say 100 unsorted items. Each item belongs to a group. The group the item belongs to is simply a member of the item class.</p> <p>Using C/C++ I'm looking for the most efficient way of scanning through the list of items, checking which group they are in and printing the item to the screen. Here's the...
[ { "answer_id": 275961, "author": "Kasprzol", "author_id": 5957, "author_profile": "https://Stackoverflow.com/users/5957", "pm_score": 1, "selected": false, "text": "#include <unordered_map>\n#include <string>\n#include <iostream>\n\nstd::string getGroupForNumber( int num )\n{\n//\n}\n\ni...
2008/11/09
[ "https://Stackoverflow.com/questions/275958", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7129/" ]
275,994
<p>I need to move backwards through an array, so I have code like this:</p> <pre><code>for (int i = myArray.Length - 1; i &gt;= 0; i--) { // Do something myArray[i] = 42; } </code></pre> <p>Is there a better way of doing this?</p> <p>Update: I was hoping that maybe C# had some built-in mechanism for this like:<...
[ { "answer_id": 275996, "author": "Adam Rosenfield", "author_id": 9530, "author_profile": "https://Stackoverflow.com/users/9530", "pm_score": 4, "selected": false, "text": "std::vector for(size_t i = myArray.size() - 1; i != (size_t)-1; i--)\n // blah\n i >= 0" }, { "answer_id"...
2008/11/09
[ "https://Stackoverflow.com/questions/275994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14606/" ]
276,022
<p>Do you follow a standard for wrapping long lines in source code? What line length do you find most comfortable to read?</p> <p>Sometimes I find people who program on wide-screen monitors and like to use its full width for displaying source code. I prefer shorter lines, around 80-100 characters, but I have a hard ti...
[ { "answer_id": 276048, "author": "Ilya", "author_id": 6807, "author_profile": "https://Stackoverflow.com/users/6807", "pm_score": 2, "selected": false, "text": "status = do_something(); \nif (status == error)\n{\n do_error_handling();\n return;\n} \n/* do you regular flow */\nstatu...
2008/11/09
[ "https://Stackoverflow.com/questions/276022", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23193/" ]
276,029
<p>I want to write a regular expression that will replace the word Paris by a link, for only the word is not ready a part of a link.</p> <p>Example:</p> <pre><code> i'm living &lt;a href="Paris" atl="Paris link"&gt;in Paris&lt;/a&gt;, near Paris &lt;a href="gare"&gt;Gare du Nord&lt;/a&gt;, i love Paris. </code></...
[ { "answer_id": 276073, "author": "okoman", "author_id": 35903, "author_profile": "https://Stackoverflow.com/users/35903", "pm_score": 0, "selected": false, "text": "!(<a.*</a>.*)*Paris!isU\n $1<a href=\"Paris\">Paris</a>\n <?php\n$s = 'i\\'m living <a href=\"Paris\" atl=\"Paris link\">in...
2008/11/09
[ "https://Stackoverflow.com/questions/276029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35937/" ]
276,030
<p>As we all know, global data, like the locale settings affecting the numeric decimal point printf() and strtod() are using, is evil. Fortunately, MSVC++ 9 allows to use per-thread locales by a <code>_configthreadlocale(_ENABLE_PER_THREAD_LOCALE)</code> call. Unfortunately, it seems that the localeconv() function does...
[ { "answer_id": 7516333, "author": "rubenvb", "author_id": 256138, "author_profile": "https://Stackoverflow.com/users/256138", "pm_score": 0, "selected": false, "text": "_configthreadlocale" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/276030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34911/" ]
276,033
<p>How would one go about deleting all of the directories in a directory tree that have a certain name if the only access to the server available is via FTP?</p> <p>To clarify, I would like to iterate over a directory tree and delete every directory whose name matches a certain string via FTP. A way to implement this...
[ { "answer_id": 276407, "author": "Tom Haigh", "author_id": 22224, "author_profile": "https://Stackoverflow.com/users/22224", "pm_score": 3, "selected": true, "text": "function scan_ftp_dir($conn, $dir, $pattern) {\n $files = ftp_nlist($conn, $dir);\n if (!$files) {\n return;...
2008/11/09
[ "https://Stackoverflow.com/questions/276033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3831/" ]
276,040
<p>Generally I connect and retrieve data using the standard way (error checking removed for simplicity):</p> <pre><code>$db = mysql_select_db("dbname", mysql_connect("host","username","passord")); $items = mysql_query("SELECT * FROM $db"); while($item = mysql_fetch_array($items)) { my_function($item[rowname]); } ...
[ { "answer_id": 276065, "author": "I GIVE TERRIBLE ADVICE", "author_id": 35344, "author_profile": "https://Stackoverflow.com/users/35344", "pm_score": 3, "selected": true, "text": "$dbh = new PDO(\"mysql:host=$hostname;dbname=$db\", $username, $password); //connect to the database\n//each...
2008/11/09
[ "https://Stackoverflow.com/questions/276040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16511/" ]
276,052
<p>How can I get the current system status (current CPU, RAM, free disk space, etc.) in Python? Ideally, it would work for both Unix and Windows platforms.</p> <p>There seems to be a few possible ways of extracting that from my search:</p> <ol> <li><p>Using a library such as <a href="http://www.psychofx.com/psi/trac/wi...
[ { "answer_id": 276934, "author": "monkut", "author_id": 24718, "author_profile": "https://Stackoverflow.com/users/24718", "pm_score": 4, "selected": false, "text": "'''\nMonitor window processes\n\nderived from:\n>for sys available mem\nhttp://msdn2.microsoft.com/en-us/library/aa455130.a...
2008/11/09
[ "https://Stackoverflow.com/questions/276052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35935/" ]
276,066
<p>I need a function count_permutations() that returns the number of permutations of a given range. <em>Assuming that the range is allowed to be modified, and starts at the first permutation,</em> I could naively implement this as repeated calls to next_permutation() as below:</p> <pre><code>template&lt;class Ret, cla...
[ { "answer_id": 276077, "author": "Nicola Bonelli", "author_id": 19630, "author_profile": "https://Stackoverflow.com/users/19630", "pm_score": 0, "selected": false, "text": "// generic factorial implementation...\n\nint factorial(int number) {\n int temp;\n if(number <= 1) return 1;...
2008/11/09
[ "https://Stackoverflow.com/questions/276066", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5963/" ]
276,072
<p>I just picked up Agile Web Development with Rails 3rd Ed., and I'm going thru the Depot Application chapters, and I have a question about Product/Item options.</p> <p>If I wanted to modify the product catalog and store so that products could have options (size, color, whatever), where/how would I do that?</p> <p>Let...
[ { "answer_id": 276083, "author": "Can Berk Güder", "author_id": 2119, "author_profile": "https://Stackoverflow.com/users/2119", "pm_score": 0, "selected": false, "text": "button_to add_to_cart <% form_for(@product) do |f| %>\n<%= f.select :size, ['S', 'M', 'L', 'XL', 'XXL'] %>\n# other p...
2008/11/09
[ "https://Stackoverflow.com/questions/276072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
276,087
<p>I am working on a web application that is designed to display a bunch of data that is updated periodically with AJAX. The general usage scenario would be that a user would leave it open all day and take a glance at it now and then.</p> <p>I am encountering a problem where the browsers memory footprint is growing ...
[ { "answer_id": 276124, "author": "eyelidlessness", "author_id": 17964, "author_profile": "https://Stackoverflow.com/users/17964", "pm_score": 5, "selected": true, "text": "<div id=\"ajaxResponseTarget\">\n ...\n</div>\n<script type=\"text/javascript\">\n $(someButton).observe('clic...
2008/11/09
[ "https://Stackoverflow.com/questions/276087", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12983/" ]
276,088
<p>My ASP.NET application allows users to upload and download large files. Both procedures involve reading and writing filestreams. What should I do to ensure the application doesn't hang or crash when it handles a large file? Should the file operations be handled on a worker thread for example?</p>
[ { "answer_id": 276098, "author": "Turnkey", "author_id": 13144, "author_profile": "https://Stackoverflow.com/users/13144", "pm_score": 2, "selected": true, "text": "// Read the data in buffer.\nlength = iStream.Read(buffer, 0, bufferSize);\n\n// Write the data to the current output strea...
2008/11/09
[ "https://Stackoverflow.com/questions/276088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27805/" ]
276,099
<p>I want to read a mac id from command line and convert it to an array of <code>uint8_t</code> values to use it in a struct. I can not get it to work. I have a vector of string for the mac id split about <code>:</code> and I want to use <code>stringstream</code> to convert them with no luck. What I am missing?</p> <...
[ { "answer_id": 276149, "author": "Martin York", "author_id": 14065, "author_profile": "https://Stackoverflow.com/users/14065", "pm_score": 0, "selected": false, "text": "#include <sstream>\n#include <iostream>\n\nint main()\n{\n std::string h(\"a5\");\n std::stringstream s(h)...
2008/11/09
[ "https://Stackoverflow.com/questions/276099", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29742/" ]
276,102
<p>Is there some way to catch exceptions which are otherwise unhandled (including those thrown outside the catch block)?</p> <p>I'm not really concerned about all the normal cleanup stuff done with exceptions, just that I can catch it, write it to log/notify the user and exit the program, since the exceptions in these...
[ { "answer_id": 276110, "author": "EvilTeach", "author_id": 7734, "author_profile": "https://Stackoverflow.com/users/7734", "pm_score": 6, "selected": true, "text": "catch (...)\n{\n std::cout << \"OMG! an unexpected exception has been caught\" << std::endl;\n}\n" }, { "answer_...
2008/11/09
[ "https://Stackoverflow.com/questions/276102", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6266/" ]
276,113
<p>Do bubble sorts have any real world use? Every time I see one mentioned, it's always either:</p> <ol> <li>A sorting algorithm to learn with.</li> <li>An example of a sorting algorithm <em>not</em> to use.</li> </ol>
[ { "answer_id": 276156, "author": "buti-oxa", "author_id": 2515, "author_profile": "https://Stackoverflow.com/users/2515", "pm_score": 1, "selected": false, "text": "// Use sort of stooge to sort the three elements by cpFirst\n\nSwapElementsIfNeeded(&elementTop, &elementBottom);\nSwapElem...
2008/11/09
[ "https://Stackoverflow.com/questions/276113", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2147/" ]
276,121
<p>I have been using netbeans as a tool for my java, and i have a problem. I read <a href="http://www.netbeans.org/kb/61/java/gui-db-custom.html" rel="nofollow noreferrer">this tutorial</a> and then i tried to create a table using this SQL:</p> <pre><code>CREATE TABLE CUSTOMERS ( ID INTEGER NOT NULL AUTO_INCREMENT...
[ { "answer_id": 276129, "author": "fmsf", "author_id": 26004, "author_profile": "https://Stackoverflow.com/users/26004", "pm_score": 1, "selected": false, "text": "CREATE TABLE CUSTOMERS \n( ID INTEGER NOT NULL auto_increment,\nFIRST_NAME VARCHAR(20), \nLAST_NAME VARCHAR(30), \nADDRESS VA...
2008/11/09
[ "https://Stackoverflow.com/questions/276121", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
276,126
<p>Using ASP.net 2.0, how do I present the information to the user similar to the Questions list on SO where each question has some child items (like the tags).</p> <p>I would probably be making two separate queries, one to first find the list of questions, then another query to find all tags which belonged to the lis...
[ { "answer_id": 276240, "author": "flesh", "author_id": 27805, "author_profile": "https://Stackoverflow.com/users/27805", "pm_score": 3, "selected": true, "text": "<asp:DataList ID=\"dlMenuOne\" runat=\"server\" onitemdatabound=\"dlMenu_ItemDataBound\" >\n <ItemTemplate>\n ...
2008/11/09
[ "https://Stackoverflow.com/questions/276126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32372/" ]
276,132
<p>I'm setting up an Internet-facing ASP.NET MVC application, on Windows 2008. It uses SQL Server 2008 for its database. I'm looking for best-practices for securing it.</p> <p>I found <a href="http://www.enterprisenetworkingplanet.com/netsecur/article.php/3552711" rel="nofollow noreferrer">this article</a>, but it's a...
[ { "answer_id": 276240, "author": "flesh", "author_id": 27805, "author_profile": "https://Stackoverflow.com/users/27805", "pm_score": 3, "selected": true, "text": "<asp:DataList ID=\"dlMenuOne\" runat=\"server\" onitemdatabound=\"dlMenu_ItemDataBound\" >\n <ItemTemplate>\n ...
2008/11/09
[ "https://Stackoverflow.com/questions/276132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8446/" ]
276,166
<p>table data of 2 columns "category" and "subcategory"</p> <p>i want to get a collection of "category", [subcategories] using code below i get duplicates. Puting .Distinct() after outer "from" does not help much. What do i miss?</p> <pre><code> var rootcategories = (from p in sr.products ...
[ { "answer_id": 276171, "author": "chakrit", "author_id": 3055, "author_profile": "https://Stackoverflow.com/users/3055", "pm_score": 2, "selected": false, "text": "var mainCategories = (from p in products select p.category).Distinct();\n\nvar rootCategories =\n from c in mainCategorie...
2008/11/09
[ "https://Stackoverflow.com/questions/276166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35954/" ]
276,173
<p>What are your favorite C++ coding style idioms? I'm asking about style or coding typography such as where you put curly braces, are there spaces after keywords, the size of indents, etc. This is opposed to best-practices or requirements such as always deleting arrays with <code>delete[]</code>. </p> <p>Here is a...
[ { "answer_id": 276201, "author": "Ather", "author_id": 1065163, "author_profile": "https://Stackoverflow.com/users/1065163", "pm_score": 1, "selected": false, "text": "int ReturnMaxValue(\n int* inputList, /* the list of integer values from which to get the maximum */\n long size...
2008/11/09
[ "https://Stackoverflow.com/questions/276173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18256/" ]
276,177
<p>In my ASP.NET 1.1 application, I am compressing and replacing the hidden Viewstate variable with an alternate compressed value, stored in a hidden field called __VSTATE. This works well but on a few occasions, submitting a page causes the common "potentially dangerous Request.Form value ..." error.</p> <p>I examine...
[ { "answer_id": 276270, "author": "chakrit", "author_id": 3055, "author_profile": "https://Stackoverflow.com/users/3055", "pm_score": 1, "selected": false, "text": "<input type=\"hidden\" id=\"__VSTATE\" runat=\"server\" value=\"vOnw=\" />\n" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/276177", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35955/" ]
276,179
<p>Does anyone know which property sets the text color for disabled control? I have to display some text in a disabled <code>TextBox</code> and I want to set its color to black.</p>
[ { "answer_id": 276193, "author": "Eric Schoonover", "author_id": 3957, "author_profile": "https://Stackoverflow.com/users/3957", "pm_score": 7, "selected": true, "text": "BackColor TextBox TextBox ReadOnly true TextBox OnPaint ReadOnly !Enabled TextBox TextBox TextBox Label TextBox" },...
2008/11/09
[ "https://Stackoverflow.com/questions/276179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22996/" ]
276,180
<p>What software does everyone use to monitor hardware? I know about nagios and cacti, but does anyone use any other software?</p>
[ { "answer_id": 3765800, "author": "VxJasonxV", "author_id": 106813, "author_profile": "https://Stackoverflow.com/users/106813", "pm_score": 0, "selected": false, "text": "god" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/276180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
276,184
<p>Is there any example code of a <a href="http://www.python.org/" rel="noreferrer">cpython</a> (not IronPython) client which can call Windows Communication Foundation (WCF) service?</p>
[ { "answer_id": 3865315, "author": "r3nrut", "author_id": 373428, "author_profile": "https://Stackoverflow.com/users/373428", "pm_score": 4, "selected": false, "text": "from suds.client import Client\n\nprint \"Connecting to Service...\"\nwsdl = \"http://serviceurl.com/service.svc?WSDL\"\...
2008/11/09
[ "https://Stackoverflow.com/questions/276184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30289/" ]
276,188
<p>C++0x will allow template to take an arbitrary number of arguments. What is the best use of this feature other than implementing tuples ?</p>
[ { "answer_id": 276197, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 2, "selected": false, "text": "printf" }, { "answer_id": 277487, "author": "Johannes Schaub - litb", "author_id": 34509, "author...
2008/11/09
[ "https://Stackoverflow.com/questions/276188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19630/" ]
276,198
<p>What would be the best way to manage large number of instances of the same class in MATLAB?</p> <p>Using the naive way produces absymal results:</p> <pre><code>classdef Request properties num=7; end methods function f=foo(this) f = this.num + 4; end end end &gt;...
[ { "answer_id": 276530, "author": "Marc", "author_id": 8478, "author_profile": "https://Stackoverflow.com/users/8478", "pm_score": 2, "selected": false, "text": "repmat b = repmat(Request, 1000, 1);\n\nElapsed time is 0.056720 seconds\n\n\nb = repmat(RequestH, 1000, 1);\nElapsed time is 0...
2008/11/09
[ "https://Stackoverflow.com/questions/276198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28772/" ]
276,206
<p>I have a form made up of multiple, optional subparts - each of which is enclosed in a</p> <pre><code>&lt;div class="details"&gt;&lt;/div&gt; </code></pre> <p>When editing the form I would like to hide those subparts which aren't as yet completed, and obviously I would like to do it unobtrusively. To simplify thing...
[ { "answer_id": 276221, "author": "Cristian Libardo", "author_id": 16526, "author_profile": "https://Stackoverflow.com/users/16526", "pm_score": 4, "selected": true, "text": "<div class=\"details\">\n <input type=\"text\" name=\"surname\" />\n</div>\n\n<script type=\"text/javascript\">...
2008/11/09
[ "https://Stackoverflow.com/questions/276206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35961/" ]
276,212
<p>I have a table in a database that represents dates textually (i.e. "2008-11-09") and I would like to replace them with the UNIX timestamp. However, I don't think that MySQL is capable of doing the conversion on its own, so I'd like to write a little script to do the conversion. The way I can think to do it involves ...
[ { "answer_id": 276226, "author": "Dana the Sane", "author_id": 2567, "author_profile": "https://Stackoverflow.com/users/2567", "pm_score": 1, "selected": false, "text": "ALTER TABLE t ADD COLUMN dates DATETIME;\nUPDATE t set t.dates=t.olddate;\n" }, { "answer_id": 276228, "au...
2008/11/09
[ "https://Stackoverflow.com/questions/276212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/658/" ]
276,249
<p>I have this form:</p> <pre><code>&lt;form name="customize"&gt; Only show results within &lt;select name="distance" id="slct_distance"&gt; &lt;option&gt;25&lt;/option&gt; &lt;option&gt;50&lt;/option&gt; &lt;option&gt;100&lt;/option&gt; &lt;option value="10...
[ { "answer_id": 276267, "author": "okoman", "author_id": 35903, "author_profile": "https://Stackoverflow.com/users/35903", "pm_score": 2, "selected": false, "text": "form[name='customize'] select, form[name='customize'] input\n $(\"form[name='customize'] select, input\").css( 'font-size',...
2008/11/09
[ "https://Stackoverflow.com/questions/276249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13009/" ]
276,253
<p>C#: How do you pass an object in a function parameter?</p> <pre><code>public void MyFunction(TextBox txtField) { txtField.Text = "Hi."; } </code></pre> <p>Would the above be valid? Or?</p>
[ { "answer_id": 276279, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": false, "text": "public void MyFunction(ref MyMutableStruct whatever)\n{\n whatever.Value = \"Hi.\"; // but avoid mutable structs in ...
2008/11/09
[ "https://Stackoverflow.com/questions/276253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
276,254
<p>I have a window (derived from JFrame) and I want to disable the close button during certain operations which are not interruptible. I know I can make the button not do anything (or call a handler in a WindowListener) by calling</p> <pre><code>setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); </code></pre> <p>...
[ { "answer_id": 279826, "author": "Malfist", "author_id": 12243, "author_profile": "https://Stackoverflow.com/users/12243", "pm_score": 5, "selected": false, "text": "setUndecorated(true);\ngetRootPane().setWindowDecorationStyle(JRootPane.NONE);\n" }, { "answer_id": 27587807, ...
2008/11/09
[ "https://Stackoverflow.com/questions/276254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18308/" ]
276,266
<p>I tried playing a .wav file using pyaudio. It works great on windows, but doesn't work in Ubuntu when another device is using sound.</p> <blockquote> <p>The error is "IOError: [Errorno Invalid output device (no default output device)] -9996</p> </blockquote> <p>Is there another library I could try to use? An...
[ { "answer_id": 276322, "author": "lpfavreau", "author_id": 35935, "author_profile": "https://Stackoverflow.com/users/35935", "pm_score": 2, "selected": false, "text": "import time, wave, pymedia.audio.sound as sound\nf= wave.open('YOUR FILE NAME', 'rb')\nsampleRate= f.getframerate()\ncha...
2008/11/09
[ "https://Stackoverflow.com/questions/276266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14520/" ]
276,278
<p>Comparing LinkedLists and Arrays while also comparing their differences with sorted and unsorted data</p> <ul> <li>Adding </li> <li>Removing</li> <li>Retrieving </li> <li>Sorting</li> <li>Overall speed</li> <li>Overall memory usage</li> </ul> <p>Actual questions</p> <blockquote> <p>Discuss the feasibility of im...
[ { "answer_id": 276361, "author": "The Archetypal Paul", "author_id": 21755, "author_profile": "https://Stackoverflow.com/users/21755", "pm_score": 3, "selected": true, "text": "* Adding\n * Removing\n* Retrieving\n* Sorting\n* Overall speed\n* Overall memory usage\n" }, { "answer...
2008/11/09
[ "https://Stackoverflow.com/questions/276278", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27570/" ]
276,281
<p>Is it possible for me to see the amount of processor usage (% of maximum) that the current, python, app is using?</p> <p>Scenario: My host will allow me to run my app as long as it does not consume more then X% of the CPU power, so I would like it to 'keep an eye on itself' and slowdown. So how can I know how muc...
[ { "answer_id": 276289, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 3, "selected": false, "text": "resource getrusage os.times" }, { "answer_id": 276295, "author": "gimel", "author_id": 6491, "author_...
2008/11/09
[ "https://Stackoverflow.com/questions/276281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/115/" ]
276,286
<p>When a webpage has moved to a new location, how do I show the moved web page AND return a 301 permanent redirect HTTP response status code in <a href="http://djangoproject.com/" rel="nofollow noreferrer">Django</a>?</p>
[ { "answer_id": 276326, "author": "Owen", "author_id": 4853, "author_profile": "https://Stackoverflow.com/users/4853", "pm_score": 4, "selected": true, "text": " from django import http\n\n return http.HttpResponsePermanentRedirect('/yournewpage.html')\n /yournewpage.html Browser ...
2008/11/09
[ "https://Stackoverflow.com/questions/276286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11452/" ]
276,292
<p>How can I continuously capture images from a webcam?</p> <p>I want to experiment with object recognition (by maybe using java media framework). </p> <p>I was thinking of creating two threads</p> <p>one thread:</p> <ul> <li>Node 1: capture live image</li> <li>Node 2: save image as "1.jpg"</li> <li>Node 3: wait 5 ...
[ { "answer_id": 971686, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "import javax.media.*;\nimport javax.swing.*;\nimport java.awt.*;\nimport java.net.*;\nimport java.awt.event.*;\nimport javax.s...
2008/11/09
[ "https://Stackoverflow.com/questions/276292", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35962/" ]
276,310
<p>I am using sfOpenID plugin for Symfony, which doesn't support OpenID 2.0. That means, for example, that people using Yahoo! OpenID can't login to my site.</p> <p>There is an OpenID 2.0 plugin that works with sfGuard, but I am not using nor planning to use sfGuard. Plus, it requires to install Zend framework, too, w...
[ { "answer_id": 276339, "author": "lpfavreau", "author_id": 35935, "author_profile": "https://Stackoverflow.com/users/35935", "pm_score": 4, "selected": true, "text": "sfUser" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/276310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2706/" ]
276,319
<p>Is there a way to create a Zip archive that contains multiple files, when the files are currently in memory? The files I want to save are really just text only and are stored in a string class in my application. But I would like to save multiple files in a single self-contained archive. They can all be in the roo...
[ { "answer_id": 276330, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": false, "text": "MemoryStream" }, { "answer_id": 276347, "author": "Cory", "author_id": 8207, "author_profile": "http...
2008/11/09
[ "https://Stackoverflow.com/questions/276319", "https://Stackoverflow.com", "https://Stackoverflow.com/users/194/" ]
276,324
<p>I'm trying to create a horizontal navigation bar in css with 5 evenly spaced links. The html hopefully will remain like this:</p> <pre><code>&lt;div id="footer"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="one.html"&gt;One&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="two.html"&gt;Two&lt;/a&gt;&lt;/li&gt; ...
[ { "answer_id": 276333, "author": "mercutio", "author_id": 1951, "author_profile": "https://Stackoverflow.com/users/1951", "pm_score": 4, "selected": false, "text": "div#footer li{\n width:160px;\n display:block;\n float: left;\n text-align:center;\n}\n" }, { "answer_id": 2763...
2008/11/09
[ "https://Stackoverflow.com/questions/276324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
276,336
<p>This is what I am working with to get back to the web dev world</p> <p>ASP.Net with VS2008</p> <p>Subsonic as Data Access Layer</p> <p>SqlServer DB</p> <p>Home Project description: I have a student registration system. I have a web page which should display the student records. </p> <p>At present I have a grid...
[ { "answer_id": 276405, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 1, "selected": false, "text": "SET @today = GETDATE()\nSET @today = CAST(FLOOR(CAST(@today as float)) as datetime)\n var query = from row in ctx.Som...
2008/11/09
[ "https://Stackoverflow.com/questions/276336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
276,345
<p>I'm trying to do the following in my Django template:</p> <pre><code> {% for embed in embeds %} {% embed2 = embed.replace("&amp;lt;", "&lt;") %} {{embed2}}&lt;br /&gt; {% endfor %} </code></pre> <p>However, I always get an invalid block or some syntax error when I do anything like that...
[ { "answer_id": 276387, "author": "vincent", "author_id": 34871, "author_profile": "https://Stackoverflow.com/users/34871", "pm_score": 2, "selected": false, "text": "embed_list.append(embed.replace(\"&lt;\", \"<\"))\n {{embed|safe}}" }, { "answer_id": 276394, "author": "lacke...
2008/11/09
[ "https://Stackoverflow.com/questions/276345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23695/" ]
276,355
<p>I could really do with updating a user's session variables from within my HTTPModule, but from what I can see, it isn't possible.</p> <p><em>UPDATE:</em> My code is currently running inside the <code>OnBeginRequest ()</code> event handler.</p> <p><em>UPDATE:</em> Following advice received so far, I tried adding th...
[ { "answer_id": 276373, "author": "Jim Harte", "author_id": 4544, "author_profile": "https://Stackoverflow.com/users/4544", "pm_score": 7, "selected": true, "text": "using System;\nusing System.Web;\nusing System.Web.Security;\nusing System.Web.SessionState;\nusing System.Diagnostics;\n\n...
2008/11/09
[ "https://Stackoverflow.com/questions/276355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/475/" ]
276,360
<p>Optimization of PHP code via runtime benchmarking is straight forward. Keep track of $start and $end times via microtime() around a code block - I am not looking for an answer that involves microtime() usage.</p> <p>What I would like to do is measure the time it takes PHP to get prepared to run it's code - code-pa...
[ { "answer_id": 276366, "author": "mercutio", "author_id": 1951, "author_profile": "https://Stackoverflow.com/users/1951", "pm_score": 2, "selected": false, "text": "$ time php5 -r 'echo \"Hello world\";'\nHello world\nreal 0m1.565s\nuser 0m0.036s\nsys 0m0.024s\n" }, { "...
2008/11/09
[ "https://Stackoverflow.com/questions/276360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12694/" ]
276,362
<p>I'm working on a project for OSX where the user can pick a collection of documents (from any application) which I need to generate PDF's from. The standard Macintosh Print dialog has a PDF button which has a number of PDF-related commands including "Save as PDF...". However, I need to generate the PDF file without ...
[ { "answer_id": 277015, "author": "Timour", "author_id": 21105, "author_profile": "https://Stackoverflow.com/users/21105", "pm_score": 4, "selected": true, "text": "tell application \"System Events\"\n tell window of process \"Safari\"\n set foremost to true\n ...
2008/11/09
[ "https://Stackoverflow.com/questions/276362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35958/" ]
276,382
<p>In my app users need to be able to enter numeric values with decimal places. The iPhone doesn't provides a keyboard that's specific for this purpose - only a number pad and a keyboard with numbers and symbols.</p> <p>Is there an easy way to use the latter and prevent any non-numeric input from being entered without...
[ { "answer_id": 321605, "author": "shek", "author_id": 40618, "author_profile": "https://Stackoverflow.com/users/40618", "pm_score": 7, "selected": true, "text": "NSNumberFormatter *currencyFormatter = [[NSNumberFormatter alloc] init];\n[currencyFormatter setNumberStyle:NSNumberFormatterC...
2008/11/09
[ "https://Stackoverflow.com/questions/276382", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043/" ]
276,383
<p>I have a Dictionary that when I add multiple values to it, the items that were entered before take the values of the item added. I am using the .Net 3.5 Here is the code:</p> <pre><code>public static Dictionary&lt;string, Neighborhoods&gt; Families() { if (File.Exists(calculatePath() + "Family.txt")){} ...
[ { "answer_id": 276411, "author": "FlySwat", "author_id": 1965, "author_profile": "https://Stackoverflow.com/users/1965", "pm_score": 2, "selected": false, "text": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<families>\n <family>\n <name>Smith</name>\n <neighborhood>true</neighbor...
2008/11/09
[ "https://Stackoverflow.com/questions/276383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35984/" ]
276,386
<p>Say I have a C program which is broken to a set of *.c and *.h files. If code from one file uses functions from another file, where should I include the header file? Inside the *.c file that used the function, or inside the header of that file?</p> <p>E.g. file <code>foo.c</code> includes <code>foo.h</code>, which ...
[ { "answer_id": 276391, "author": "mipadi", "author_id": 28804, "author_profile": "https://Stackoverflow.com/users/28804", "pm_score": 2, "selected": false, "text": ".h .c foo.h bar.h foo.h bar.h bar.h" }, { "answer_id": 276573, "author": "Adam Liss", "author_id": 29157, ...
2008/11/09
[ "https://Stackoverflow.com/questions/276386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35324/" ]
276,400
<p>I'm trying to make a webpage that allows the uploading of multiple files at the same times. I will limit the file extensions to the most common images like JPG, JPEG, PNG and GIF.</p> <p>I've done some research on this and everywhere I look it's flash this and flash that.</p> <p>I don't want to use flash really. E...
[ { "answer_id": 276414, "author": "Tom Haigh", "author_id": 22224, "author_profile": "https://Stackoverflow.com/users/22224", "pm_score": 4, "selected": false, "text": "<input type=\"file\" name=\"upload[]\">\n foreach ($_FILES['upload'] as $file) {\n echo $file['size'];\n}\n" } ]
2008/11/09
[ "https://Stackoverflow.com/questions/276400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11795/" ]
276,433
<p>With LINQ to SQL most likely going to not get as much active development as Entity Framework do you think it's best to switch to Entity Framework?</p> <p>I've personally found EF to be very clunky and hard to use compared to LINQ to SQL which feels very natural.</p> <p>EDIT: I recently posted an article on my blog...
[ { "answer_id": 506433, "author": "LaserJesus", "author_id": 45207, "author_profile": "https://Stackoverflow.com/users/45207", "pm_score": 3, "selected": false, "text": "foo.Foreign_TypeReference.EntityKey = \n new EntityKey(\"DataContextName.Foreign_Type\", \"Foreign_Type_Id\", Forei...
2008/11/09
[ "https://Stackoverflow.com/questions/276433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25416/" ]
276,443
<p>I'm developing a PHP website that uses url routing. I'd like the site to be directory independent, so that it could be moved from <a href="http://site.example.com/" rel="noreferrer">http://site.example.com/</a> to <a href="http://example.com/site/" rel="noreferrer">http://example.com/site/</a> without having to chan...
[ { "answer_id": 276444, "author": "Tom Haigh", "author_id": 22224, "author_profile": "https://Stackoverflow.com/users/22224", "pm_score": 4, "selected": true, "text": "<base href=\"<?php echo url::base(); ?>\" /> \n" }, { "answer_id": 276583, "author": "da5id", "author_id"...
2008/11/09
[ "https://Stackoverflow.com/questions/276443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35951/" ]
276,479
<p>I saw a potential answer here but that was for YYYY-MM-DD: <a href="http://paulschreiber.com/blog/2007/03/02/javascript-date-validation/" rel="noreferrer">JavaScript date validation</a></p> <p>I modified the code code above for MM-DD-YYYY like so but I still can't get it to work:</p> <pre><code>String.prototype.is...
[ { "answer_id": 276488, "author": "Kevin Gorski", "author_id": 35806, "author_profile": "https://Stackoverflow.com/users/35806", "pm_score": 1, "selected": false, "text": "var matches = this.match(/^([0-9]{2})\\/([0-9]{2})\\/([0-9]{4})$/);\n ^([0-9]{2})\\/([0-9]{2})\\/([0-9]{4})$\n" }, ...
2008/11/09
[ "https://Stackoverflow.com/questions/276479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3401/" ]
276,489
<p>We'll soon be embarking on the development of a new mobile application. This particular app will be used for heavy searching of text based fields. Any suggestions from the group at large for what sort of database engine is best suited to allowing these types of searches on a mobile platform?</p> <p>Specifics includ...
[ { "answer_id": 451671, "author": "Jason Down", "author_id": 9732, "author_profile": "https://Stackoverflow.com/users/9732", "pm_score": 4, "selected": true, "text": "public class SmallItem\n{\n private int _sku;\n public int Sku\n {\n get { return _sku; }\n set { _...
2008/11/09
[ "https://Stackoverflow.com/questions/276489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26853/" ]
276,499
<p>I have a custom UILabel subclass for displaying currency values. I only want the user to be able to enter digits and let the view format those digits into a currency value -- like a cash register. This makes UITextField an inappropriate choice for this kind of input.</p> <p>I've already overridden hitTest: so that ...
[ { "answer_id": 451671, "author": "Jason Down", "author_id": 9732, "author_profile": "https://Stackoverflow.com/users/9732", "pm_score": 4, "selected": true, "text": "public class SmallItem\n{\n private int _sku;\n public int Sku\n {\n get { return _sku; }\n set { _...
2008/11/09
[ "https://Stackoverflow.com/questions/276499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35999/" ]
276,512
<p>I have seen some very weird <code>for</code> loops when reading other people's code. I have been trying to search for a full syntax explanation for the <code>for</code> loop in C but it is very hard because the word "for" appears in unrelated sentences making the search almost impossible to Google effectively.</p> ...
[ { "answer_id": 276518, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 3, "selected": false, "text": "for false" }, { "answer_id": 276519, "author": "CesarB", "author_id": 28258, "author_profile": "h...
2008/11/09
[ "https://Stackoverflow.com/questions/276512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26004/" ]
276,514
<p>I am trying to install SQL server express 2008 on my machine. I get an error message that says that older version of VS 2008 in installed on the computer. Upgrade to VS2008 SP1 before installing Sql server 2008. </p> <p>I tried to install sp1 but I get an error message that a compatible version of vs2008 is not det...
[ { "answer_id": 2397422, "author": "sergiopereira", "author_id": 21420, "author_profile": "https://Stackoverflow.com/users/21420", "pm_score": 2, "selected": false, "text": "HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\DevDiv\\VS\\Servicing\\9.0\\IDE\\1033 SP = dword:00000001\nSPIndex = dword:...
2008/11/09
[ "https://Stackoverflow.com/questions/276514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35948/" ]
276,516
<p>I need to build a function which parses the domain from a URL.</p> <p>So, with</p> <pre><code>http://google.com/dhasjkdas/sadsdds/sdda/sdads.html </code></pre> <p>or</p> <pre><code>http://www.google.com/dhasjkdas/sadsdds/sdda/sdads.html </code></pre> <p>it should return <code>google.com</code></p> <p>with</p> <pre><...
[ { "answer_id": 276525, "author": "Owen", "author_id": 4853, "author_profile": "https://Stackoverflow.com/users/4853", "pm_score": 10, "selected": true, "text": "parse_url() $url = 'http://google.com/dhasjkdas/sadsdds/sdda/sdads.html';\n$parse = parse_url($url);\necho $parse['host']; // p...
2008/11/09
[ "https://Stackoverflow.com/questions/276516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26823/" ]
276,531
<p>If I have the LINQ objects:</p> <pre><code>public class SampleDataContext : DataContext { public Table&lt;Customer&gt; Customers { get { return this.GetTable&lt;Customer&gt;(); } } public SampleDataContext( string connectionString ) : base( connectionString ) { } } [Table( Name="dbo.tblCustomers" )] public...
[ { "answer_id": 986109, "author": "Mark", "author_id": 64084, "author_profile": "https://Stackoverflow.com/users/64084", "pm_score": 4, "selected": true, "text": "Private Const StandardChangeTrackerName As String = \"System.Data.Linq.ChangeTracker+StandardChangeTracker\"\n\nPrivate _conte...
2008/11/09
[ "https://Stackoverflow.com/questions/276531", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20382/" ]
276,546
<p>Let's say you have a text file like this one: <a href="http://www.gutenberg.org/files/17921/17921-8.txt" rel="noreferrer">http://www.gutenberg.org/files/17921/17921-8.txt</a></p> <p>Does anyone has a good algorithm, or open-source code, to extract words from a text file? How to get all the words, while avoiding spe...
[ { "answer_id": 276559, "author": "Claudiu", "author_id": 15055, "author_profile": "https://Stackoverflow.com/users/15055", "pm_score": 2, "selected": false, "text": "create words, a list of words, by splitting the input by whitespace\nfor every word, strip out whitespace and punctuation ...
2008/11/09
[ "https://Stackoverflow.com/questions/276546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25645/" ]
276,555
<p>I'm looking to implement something in Java along the lines of:</p> <pre><code>class Foo{ private int lorem; // private int ipsum; public setAttribute(String attr, int val){ //sets attribute based on name } public static void main(String [] args){ Foo f = new Foo(); f.setAttribute("lorem",1); f....
[ { "answer_id": 276576, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 6, "selected": true, "text": "setAttribute public void setIntField(String fieldName, int value)\n throws NoSuchFieldException, IllegalAccessExceptio...
2008/11/09
[ "https://Stackoverflow.com/questions/276555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25985/" ]