qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
224,038
<p>My $SHELL is tcsh. I want to run a C shell script that will call a program many times with some arguments changed each time. The program I need to call is in Fortran. I do not want to edit it. The program only takes arguments once it is executed, but not on the command line. Upon calling the program in the script, t...
[ { "answer_id": 224045, "author": "freespace", "author_id": 8297, "author_profile": "https://Stackoverflow.com/users/8297", "pm_score": 0, "selected": false, "text": "tcsh stdin < & sleep ps grep awk kill SIGTERM" }, { "answer_id": 224068, "author": "Paul Tomblin", "author...
2008/10/22
[ "https://Stackoverflow.com/questions/224038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30181/" ]
224,040
<p>What is the most elegant way to calculate the previous business day in shell ksh script ?</p> <p>What I got until now is :</p> <pre><code>#!/bin/ksh set -x DAY_DIFF=1 case `date '+%a'` in "Sun") DAY_DIFF=2 ;; "Mon") DAY_DIFF=3 ;; esac PREV_DT=`perl -e '($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$...
[ { "answer_id": 224428, "author": "Jonathan Leffler", "author_id": 15168, "author_profile": "https://Stackoverflow.com/users/15168", "pm_score": 0, "selected": false, "text": "#!/bin/perl -w\nuse strict;\nuse POSIX;\nuse constant SECS_PER_DAY => 24 * 60 * 60;\nmy(@days) = (2, 3, 1, 1, 1, ...
2008/10/22
[ "https://Stackoverflow.com/questions/224040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,041
<p>So I have an Access database with a front and a back end. I will be distributing it to users soon, but I have no control over where exactly they will put the files on their computers. However, I think I can count on them putting front and back ends in the same folder.</p> <p>As such, when the front end opens, I w...
[ { "answer_id": 224943, "author": "Fionnuala", "author_id": 2548, "author_profile": "https://Stackoverflow.com/users/2548", "pm_score": 2, "selected": false, "text": "Me.Visible = False\n'Determines if the database window is displayed\nSetProp \"StartupShowDBWindow\", False, dbBoolean\n'H...
2008/10/22
[ "https://Stackoverflow.com/questions/224041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,043
<p>Can someone please point me to the easiest way to have a timer in a Win32 service?</p> <p>I suppose I could create a dummy window for this purpose or have a second thread do tick counts, but what's best? Is there a more elegant way?</p> <p>Thanks in advance.</p>
[ { "answer_id": 224055, "author": "Steve", "author_id": 1965047, "author_profile": "https://Stackoverflow.com/users/1965047", "pm_score": 1, "selected": false, "text": "{ \n\n case IDT_TIMER1: \n\n // Boom goes the dynamite\n" }, { "answer_id": 224061, "author": "180...
2008/10/22
[ "https://Stackoverflow.com/questions/224043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20208/" ]
224,049
<p>Regarding cross-site request forgery (CSRF) attacks, if cookies are most used authentication method, why do web browsers allow sending cookies of some domain (and to that domain) from a page generated from another domain?</p> <p>Isn't CSRF easily preventable in browser by disallowing such behavior? </p> <p>As far ...
[ { "answer_id": 224125, "author": "Jason Baker", "author_id": 2147, "author_profile": "https://Stackoverflow.com/users/2147", "pm_score": 2, "selected": false, "text": "<img src=\"http://domain.com/do_something_bad\" />\n <img src=\"http://domain.com/show_picture_if_authenticated\" />\n" ...
2008/10/22
[ "https://Stackoverflow.com/questions/224049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30187/" ]
224,059
<p>When I was taking CS in college (mid 80's), one of the ideas that was constantly repeated was to always write loops which test at the top (while...) rather than at the bottom (do ... while) of the loop. These notions were often backed up with references to studies which showed that loops which tested at the top were...
[ { "answer_id": 225472, "author": "Chris Marasti-Georg", "author_id": 96, "author_profile": "https://Stackoverflow.com/users/96", "pm_score": 2, "selected": false, "text": "try {\n someOperation();\n} catch (Exception e) {\n do {\n if (e instanceof ExceptionIHandleInAWierdWay...
2008/10/22
[ "https://Stackoverflow.com/questions/224059", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4086/" ]
224,072
<p>After much searching, I found the download for the <a href="http://sourceforge.net/project/showfiles.php?group_id=45216" rel="nofollow noreferrer">eclipse version of jalopy</a>. Is this compatible with Eclipse 3.4? It's dated 2006.</p> <p>I've copied the extracted folder to my plugins directory and run <code>eclip...
[ { "answer_id": 241842, "author": "tunaranch", "author_id": 27708, "author_profile": "https://Stackoverflow.com/users/27708", "pm_score": 0, "selected": false, "text": "Window > Jalopy Preferences" }, { "answer_id": 1437039, "author": "VonC", "author_id": 6309, "author...
2008/10/22
[ "https://Stackoverflow.com/questions/224072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27708/" ]
224,078
<p>I am trying to hide some divs before the user prints this giant form, then display the divs again afterward. Thus I want to ignore the rest of the page, and only print the form itself.</p> <p>Sure I <em>could</em> open a separate page when the user clicks the print button. The only thing is that the form is really ...
[ { "answer_id": 224084, "author": "Micky McQuade", "author_id": 12908, "author_profile": "https://Stackoverflow.com/users/12908", "pm_score": 5, "selected": false, "text": "<div class=\"someClass noPrint\">My Info</div>\n .someClass {font-family:arial;}\n@media print {\n .noPrint { dis...
2008/10/22
[ "https://Stackoverflow.com/questions/224078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/131/" ]
224,106
<p>How do I extend my parent's options array for child classes in PHP?</p> <p>I have something like this:</p> <pre><code>class ParentClass { public $options = array( 'option1'=&gt;'setting1' ); //The rest of the functions would follow } </code></pre> <p>I would like to append to that optio...
[ { "answer_id": 224121, "author": "Czimi", "author_id": 3906, "author_profile": "https://Stackoverflow.com/users/3906", "pm_score": 4, "selected": true, "text": "<?php\nclass ParentClass {\n\n public $options;\n public function __construct() {\n $this->options = array(\n ...
2008/10/22
[ "https://Stackoverflow.com/questions/224106", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13281/" ]
224,128
<p>Currently, if I want to apply a method to a group of ActiveRecord objects, I have to structure the call like so:</p> <pre><code>messages = Message.find(:all) csv = Message.to_csv(messages) </code></pre> <p>How can I define the method so it's structured like so?</p> <pre><code>messages = Message.find(:all) csv = m...
[ { "answer_id": 224140, "author": "mwilliams", "author_id": 23909, "author_profile": "https://Stackoverflow.com/users/23909", "pm_score": 0, "selected": false, "text": "@csv_file = Message.send_all_to_csv\n require 'fastercsv'\nclass Message < ActiveRecord::Base\n def send_all_to_csv\n ...
2008/10/22
[ "https://Stackoverflow.com/questions/224128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,138
<p>In the spirit of questions like <a href="https://stackoverflow.com/questions/224059/do-your-loops-test-at-the-top-or-bottom">Do your loops test at the top or bottom?</a>:</p> <p>Which style do you use for an <em>infinite</em> loop, and why?</p> <ul> <li>while (true) { }</li> <li>do { } while (true);</li> <li>for (...
[ { "answer_id": 224142, "author": "JPrescottSanders", "author_id": 19444, "author_profile": "https://Stackoverflow.com/users/19444", "pm_score": 5, "selected": false, "text": "while(true) {}\n" }, { "answer_id": 224144, "author": "Paul Nathan", "author_id": 26227, "aut...
2008/10/22
[ "https://Stackoverflow.com/questions/224138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28258/" ]
224,155
<p>I have something here that is really catching me off guard.</p> <p>I have an ObservableCollection of T that is filled with items. I also have an event handler attached to the CollectionChanged event.</p> <p>When you <strong>Clear</strong> the collection it causes an CollectionChanged event with e.Action set to Not...
[ { "answer_id": 225590, "author": "decasteljau", "author_id": 12082, "author_profile": "https://Stackoverflow.com/users/12082", "pm_score": 5, "selected": false, "text": "public static void RemoveAll(this IList list)\n{\n while (list.Count > 0)\n {\n list.RemoveAt(list.Count - 1)...
2008/10/22
[ "https://Stackoverflow.com/questions/224155", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22294/" ]
224,163
<p>I currently capture MiniDumps of unhandled exceptions using <Code>SetUnhandledExceptionFilter</Code> however at times I am getting "R6025: pure virtual function".</p> <p>I understand how a pure virtual function call happens I am just wondering if it is possible to capture them so I can create a MiniDump at that poi...
[ { "answer_id": 224176, "author": "1800 INFORMATION", "author_id": 3146, "author_profile": "https://Stackoverflow.com/users/3146", "pm_score": 4, "selected": false, "text": "int __cdecl _purecall(void)\n _set_purecall_handler()" }, { "answer_id": 224177, "author": "Brian R. Bo...
2008/10/22
[ "https://Stackoverflow.com/questions/224163", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1675/" ]
224,173
<p>Is it possible to use a variable from one page in a piece of code on another? e.g. submit a form on one page and on the second page use a PHP script to add the data from the form to a MySQL table</p> <p>Thanks for all the help </p>
[ { "answer_id": 224290, "author": "mrm", "author_id": 30191, "author_profile": "https://Stackoverflow.com/users/30191", "pm_score": 3, "selected": false, "text": "session_start();\n // set\n$_SESSION['varname'] = \"something\";\n// retrieve\n$somevar = $_SESSION['varname'];\n" }, { ...
2008/10/22
[ "https://Stackoverflow.com/questions/224173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29912/" ]
224,181
<p>When I add a reference to <strong>Microsoft.Office.Interop.Excel</strong> on my computer, Visual Studio adds this to the project file:</p> <pre><code>&lt;COMReference Include="Excel"&gt; &lt;Guid&gt;{00020813-0000-0000-C000-000000000046}&lt;/Guid&gt; &lt;VersionMajor&gt;1&lt;/VersionMajor&gt; &lt;VersionMinor...
[ { "answer_id": 317125, "author": "Dirk Vollmar", "author_id": 40347, "author_profile": "https://Stackoverflow.com/users/40347", "pm_score": 4, "selected": false, "text": "<WrapperTool>primary</WrapperTool>\n C:\\WINDOWS\\assembly\\GAC\\Microsoft.Office.Interop.Excel\\12.0.0.0__71e9bce111...
2008/10/22
[ "https://Stackoverflow.com/questions/224181", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10786/" ]
224,200
<p>Thanks a million everyone for everyone's response. Unfortunately, none of the solutions appear to be working on my end, and my guess is that the example I've provided is messed up.</p> <p>So let me try again.</p> <p>My table looks like this:</p> <pre><code> contract project activity row1 1000 8000 ...
[ { "answer_id": 224210, "author": "vfilby", "author_id": 24279, "author_profile": "https://Stackoverflow.com/users/24279", "pm_score": 4, "selected": false, "text": "DECLARE @T TABLE( [contract] INT, project INT, activity INT )\nINSERT INTO @T VALUES( 1000, 8000, 10 )\nINSERT INTO ...
2008/10/22
[ "https://Stackoverflow.com/questions/224200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,204
<p>Another poster asked about <a href="https://stackoverflow.com/questions/224138/infinite-loops-top-or-bottom">preferred syntax for infinite loops</a>.</p> <p>A follow-up question: <i>Why</i> do you use infinite loops in your code? I typically see a construct like this:</p> <pre><code>for (;;) { int scoped_variabl...
[ { "answer_id": 224215, "author": "Tony Meyer", "author_id": 4966, "author_profile": "https://Stackoverflow.com/users/4966", "pm_score": 6, "selected": true, "text": "while (true)\n{\n // do something\n if (something else) break;\n // do more\n}\n" }, { "answer_id": 22421...
2008/10/22
[ "https://Stackoverflow.com/questions/224204", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23786/" ]
224,225
<p>How would you program a C/C++ application that could run without opening a window or console? </p>
[ { "answer_id": 224226, "author": "Brian R. Bondy", "author_id": 3153, "author_profile": "https://Stackoverflow.com/users/3153", "pm_score": 4, "selected": false, "text": "#include <windows.h>\n\nint APIENTRY WinMain(HINSTANCE hInstance,\n HINSTANCE hPrevInstance,\n ...
2008/10/22
[ "https://Stackoverflow.com/questions/224225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27211/" ]
224,232
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/25458/how-costly-is-net-reflection">How costly is .NET reflection?</a> </p> </blockquote> <p>I am currently in a programming mentality that reflection is my best friend. I use it a lot for dynamic loading of co...
[ { "answer_id": 224280, "author": "Tom Anderson", "author_id": 13502, "author_profile": "https://Stackoverflow.com/users/13502", "pm_score": 2, "selected": false, "text": "[TableName(\"Table\")]\npublic class SomeDal : BaseDal\n{\n [FieldName(\"Field\")]\n public string Field\n}\n" ...
2008/10/22
[ "https://Stackoverflow.com/questions/224232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13502/" ]
224,236
<p>I have a string.</p> <pre><code>string strToProcess = "fkdfdsfdflkdkfk@dfsdfjk72388389@kdkfkdfkkl@jkdjkfjd@jjjk@"; </code></pre> <p>I need to add a newline after every occurence of "@" symbol in the string.</p> <p>My Output should be like this</p> <pre><code>fkdfdsfdflkdkfk@ dfsdfjk72388389@ kdkfkdfkkl@ jkdjkfjd...
[ { "answer_id": 224244, "author": "Christian C. Salvadó", "author_id": 5445, "author_profile": "https://Stackoverflow.com/users/5445", "pm_score": 10, "selected": true, "text": "Environment.NewLine string text = \"fkdfdsfdflkdkfk@dfsdfjk72388389@kdkfkdfkkl@jkdjkfjd@jjjk@\";\n\ntext = text...
2008/10/22
[ "https://Stackoverflow.com/questions/224236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22162/" ]
224,239
<p>I have an array of shorts (short[]) that I need to write out to a file. What's the quickest way to do this?</p>
[ { "answer_id": 224251, "author": "Jon B", "author_id": 27414, "author_profile": "https://Stackoverflow.com/users/27414", "pm_score": 5, "selected": true, "text": " static void WriteShorts(short[] values, string path)\n {\n using (FileStream fs = new FileStream(path, FileMode...
2008/10/22
[ "https://Stackoverflow.com/questions/224239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14606/" ]
224,253
<p>I want to change the order of XML using XDocument</p> <pre><code>&lt;root&gt; &lt;one&gt;1&lt;/one&gt; &lt;two&gt;2&lt;/two&gt; &lt;/root&gt; </code></pre> <p>I want to change the order so that 2 appears before 1. Is this capability baked in or do I have to do it myself. For example, remove then AddBeforeSe...
[ { "answer_id": 224299, "author": "smaclell", "author_id": 22914, "author_profile": "https://Stackoverflow.com/users/22914", "pm_score": 1, "selected": false, "text": "static void Main(string[] args)\n{\n XDocument doc = new XDocument(\n new XElement(\"root\",\n new X...
2008/10/22
[ "https://Stackoverflow.com/questions/224253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30210/" ]
224,295
<p>I have two tables, one that contains volunteers, and one that contains venues. <strong>Volunteers are assigned one venue each</strong>.</p> <p>The id of the venues table (venues.id) is placed within the volunteers table in the venue_id column (volunteers.venue_id).</p> <p>I know I could get a count of how many mat...
[ { "answer_id": 224304, "author": "Ignacio Vazquez-Abrams", "author_id": 20862, "author_profile": "https://Stackoverflow.com/users/20862", "pm_score": 1, "selected": false, "text": "SELECT venues.venue_name, COUNT(volunteers.*) AS cvolun\n FROM venues\n INNER JOIN volunteers\n ON ven...
2008/10/22
[ "https://Stackoverflow.com/questions/224295", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26130/" ]
224,297
<p>I have the following models.</p> <pre><code># app/models/domain/domain_object.rb class Domain::DomainObject &lt; ActiveRecord::Base has_many :links_from, :class_name =&gt; "Link", :as =&gt; :from, :dependent =&gt; :destroy end # app/models/link.rb class Link &lt; ActiveRecord::Base belongs_to :from, :polymorph...
[ { "answer_id": 231901, "author": "hoyhoy", "author_id": 3499, "author_profile": "https://Stackoverflow.com/users/3499", "pm_score": 4, "selected": true, "text": "include Domain DomainObject ActiveRecord::Base.store_full_sti_class = true config/environment.rb" }, { "answer_id": 37...
2008/10/22
[ "https://Stackoverflow.com/questions/224297", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3499/" ]
224,298
<p>We have just 'migrated' an SQL Server 2005 database from DEVEL into TEST. Somehow during the migration process the DB was changed from case insensitive to sensitive - so most SQL queries broke spectacularly.</p> <p>What I would like to know, is - are there any clear benefits to having a case sensitive schema? </p...
[ { "answer_id": 224357, "author": "Schwern", "author_id": 14660, "author_profile": "https://Stackoverflow.com/users/14660", "pm_score": 3, "selected": false, "text": "table_file = lc(table_name) this_table This_Table SELECT this, that FROM Table;\n" } ]
2008/10/22
[ "https://Stackoverflow.com/questions/224298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15052/" ]
224,301
<p>I have an Excel 2003 workbook that contains a macro to copy certain of its sheets across to a new workbook, then save and close the new workbook. It does this several dozen times, with slightly different sheet selections each time.</p> <p>I would like to add an extra step to the macro to export the secondary workb...
[ { "answer_id": 7766561, "author": "Diego Castro", "author_id": 193971, "author_profile": "https://Stackoverflow.com/users/193971", "pm_score": 2, "selected": false, "text": "Sub PDF_Print() \n Dim p \n p = ActivePrinter \n ActivePrinter = \"PDFCreator\" \n ActiveDocument.Prin...
2008/10/22
[ "https://Stackoverflow.com/questions/224301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27290/" ]
224,311
<p>Is there a better way to negate a boolean in Java than a simple if-else?</p> <pre><code>if (theBoolean) { theBoolean = false; } else { theBoolean = true; } </code></pre>
[ { "answer_id": 224314, "author": "Aaron Maenpaa", "author_id": 2603, "author_profile": "https://Stackoverflow.com/users/2603", "pm_score": 10, "selected": true, "text": "theBoolean = !theBoolean;\n" }, { "answer_id": 224380, "author": "Community", "author_id": -1, "au...
2008/10/22
[ "https://Stackoverflow.com/questions/224311", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26237/" ]
224,337
<p>I'm making a program that fits the wizard concept ideally; the user is walked through the steps to create a character for a game.</p> <p>However, I'm realizing that the limitations of the wizard are making it difficult to design "elegant" logic flow. For example, because all pages of the wizard are initalized at th...
[ { "answer_id": 224800, "author": "Toni Ruža", "author_id": 6267, "author_profile": "https://Stackoverflow.com/users/6267", "pm_score": 4, "selected": true, "text": "import wx\nimport wx.lib.newevent\n\n\n(PageChangeEvent, EVT_PAGE_CHANGE) = wx.lib.newevent.NewEvent()\n\n\nclass Data:\n ...
2008/10/22
[ "https://Stackoverflow.com/questions/224337", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18676/" ]
224,345
<p>I have been trying to learn how to add testing to existing code -- currently reading reading <a href="https://rads.stackoverflow.com/amzn/click/com/0131177052" rel="noreferrer" rel="nofollow noreferrer">Working Effectively With Legacy Code</a>. I have been trying to apply some of the principles in JavaScript, and n...
[ { "answer_id": 224377, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": false, "text": "function Implements(obj, inter)\n{\n var len = inter.length, i = 0;\n for (; i < len; ++i)\n {\n if (!obj[inte...
2008/10/22
[ "https://Stackoverflow.com/questions/224345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/525/" ]
224,359
<p>What is the best way to delete a database record using LINQ when I have the primary key? </p>
[ { "answer_id": 224401, "author": "stimms", "author_id": 361, "author_profile": "https://Stackoverflow.com/users/361", "pm_score": 1, "selected": false, "text": "var products = from p in db.Products select p;\ndb.Products.DeleteOnSubmit(products.Take(1).Single()); <--seemed nasty\ndb.Subm...
2008/10/22
[ "https://Stackoverflow.com/questions/224359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/361/" ]
224,379
<p>I see this all the time in Ruby:</p> <pre><code>require File.dirname(__FILE__) + "/../../config/environment" </code></pre> <p>What does <code>__FILE__</code> mean?</p>
[ { "answer_id": 224383, "author": "Geoff", "author_id": 10427, "author_profile": "https://Stackoverflow.com/users/10427", "pm_score": 8, "selected": true, "text": "foo.rb __FILE__ \"foo.rb\" # test.rb\nputs __FILE__\nrequire './dir2/test.rb'\n # dir2/test.rb\nputs __FILE__\n ruby test.rb ...
2008/10/22
[ "https://Stackoverflow.com/questions/224379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5004/" ]
224,397
<p>I was taking a look through some open-source C++ code and I noticed a lot of double underscores used within in the code, mainly at the start of variable names.</p> <pre><code>return __CYGWIN__; </code></pre> <p>Just wondering: Is there a reason for this, or is it just some people's code styles? I would think that i...
[ { "answer_id": 224426, "author": "bog", "author_id": 20909, "author_profile": "https://Stackoverflow.com/users/20909", "pm_score": 4, "selected": false, "text": "__Symbol__ __FILE__ __LINE__" }, { "answer_id": 56388858, "author": "RemarkableBucket", "author_id": 8453543, ...
2008/10/22
[ "https://Stackoverflow.com/questions/224397", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6335/" ]
224,408
<p>Is there a better/simpler way to find the number of images in a directory and output them to a variable?</p> <pre><code>function dirCount($dir) { $x = 0; while (($file = readdir($dir)) !== false) { if (isImage($file)) {$x = $x + 1} } return $x; } </code></pre> <p>This seems like such a long way of doin...
[ { "answer_id": 224439, "author": "bbxbby", "author_id": 29230, "author_profile": "https://Stackoverflow.com/users/29230", "pm_score": 6, "selected": true, "text": "$dir = new DirectoryIterator('/path/to/dir');\nforeach($dir as $file ){\n $x += (isImage($file)) ? 1 : 0;\n}\n" }, { ...
2008/10/22
[ "https://Stackoverflow.com/questions/224408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27025/" ]
224,410
<p>I'm having some trouble getting log4net to work from ASP.NET 3.5. This is the first time I've tried to use log4net, I feel like I'm missing a piece of the puzzle.</p> <p>My project references the log4net assembly, and as far as I can tell, it is being deployed successfully on my server.</p> <p>My web.config contai...
[ { "answer_id": 289160, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": -1, "selected": false, "text": "<%@ Application Language=\"C#\" %>\n\n<script runat=\"server\">\n\n void Application_Start(object sender, EventArgs e) \n ...
2008/10/22
[ "https://Stackoverflow.com/questions/224410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18505/" ]
224,421
<p>In a <a href="https://stackoverflow.com/questions/224138/infinite-loops-top-or-bottom">coding style question about infinite loops</a>, some people mentioned they prefer the for(;;) style because the while(true) style gives warning messages on MSVC about a conditional expression being constant.</p> <p>This surprised...
[ { "answer_id": 224427, "author": "James Curran", "author_id": 12725, "author_profile": "https://Stackoverflow.com/users/12725", "pm_score": 2, "selected": false, "text": " if( x=0 )\n if( x==0 )\n" }, { "answer_id": 224435, "author": "bog", "author_id": 20909, "autho...
2008/10/22
[ "https://Stackoverflow.com/questions/224421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28258/" ]
224,422
<p>My Flash (AS3/AIR) application is currently using a slightly unusual architecture (for a Flash app) to provide particular base classes for loaded content at runtime. The external content is published with 'stub' base classes, which are eclipsed by the 'real' base classes at runtime when it is loaded. I've heard this...
[ { "answer_id": 224427, "author": "James Curran", "author_id": 12725, "author_profile": "https://Stackoverflow.com/users/12725", "pm_score": 2, "selected": false, "text": " if( x=0 )\n if( x==0 )\n" }, { "answer_id": 224435, "author": "bog", "author_id": 20909, "autho...
2008/10/22
[ "https://Stackoverflow.com/questions/224422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26331/" ]
224,430
<p>I'm currently using Subversion to manage my ASP.NET website. I'm finding that whenever I go to upload my website to my server, I'm copying a large number of hidden .svn folders and whatever contents may lie within them.</p> <p>Does anyone have any suggestions for avoiding this? I don't particularly want those hidde...
[ { "answer_id": 224438, "author": "craigb", "author_id": 18590, "author_profile": "https://Stackoverflow.com/users/18590", "pm_score": 2, "selected": false, "text": ".svn svn export .svn" }, { "answer_id": 224448, "author": "Franci Penov", "author_id": 17028, "author_p...
2008/10/22
[ "https://Stackoverflow.com/questions/224430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18505/" ]
224,453
<p>I have a string encrypted in PHP that I would like to decrypt in C#. I used the tutorial below to do the encryption, but am having problems decrypting. Can anyone post an example on how to do this? </p> <p><a href="http://www.sanity-free.org/131/triple_des_between_php_and_csharp.html" rel="noreferrer">http://www...
[ { "answer_id": 224524, "author": "deepcode.co.uk", "author_id": 20524, "author_profile": "https://Stackoverflow.com/users/20524", "pm_score": 5, "selected": true, "text": "class Program\n{\n static void Main(string[] args)\n {\n Console.WriteLine(Decrypt(\"47794945c0230c3d\"...
2008/10/22
[ "https://Stackoverflow.com/questions/224453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3291/" ]
224,462
<p>I'm using a decimal column to store money values on a database, and today I was wondering what precision and scale to use.</p> <p>Since supposedly char columns of a fixed width are more efficient, I was thinking the same could be true for decimal columns. Is it?</p> <p>And what precision and scale should I use? I ...
[ { "answer_id": 224866, "author": "onedaywhen", "author_id": 15354, "author_profile": "https://Stackoverflow.com/users/15354", "pm_score": 9, "selected": true, "text": "DECIMAL(19, 4) Decimal Currency DECIMAL(19, 4) Currency DECIMAL(p, s) DECIMAL DECIMAL(24, 8) DECIMAL(p, 6) MONEY" }, ...
2008/10/22
[ "https://Stackoverflow.com/questions/224462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16957/" ]
224,466
<p>Today someone asked me what was wrong with their source code. It was obvious. "Use double equals in place of that single equal in that if statement. Um, I think..." As I remember some languages actually take a single equals for comparison. Since I sometimes forget or mix up the syntax details among the several l...
[ { "answer_id": 224650, "author": "PhiLho", "author_id": 15459, "author_profile": "https://Stackoverflow.com/users/15459", "pm_score": 0, "selected": false, "text": "if (a = b) var v" } ]
2008/10/22
[ "https://Stackoverflow.com/questions/224466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10468/" ]
224,467
<p>I'm using Microsoft WebTest and want to be able to do something similar to NUnit's <code>Assert.Fail()</code>. The best i have come up with is to <code>throw new webTestException()</code> but this shows in the test results as an <code>Error</code> rather than a <code>Failure</code>. </p> <p>Other than reflecting on...
[ { "answer_id": 224472, "author": "Mark Cidade", "author_id": 1659, "author_profile": "https://Stackoverflow.com/users/1659", "pm_score": 2, "selected": false, "text": "Outcome = Outcome.Fail;\n Assert.Fail()" }, { "answer_id": 2782006, "author": "nathandelane", "author_id...
2008/10/22
[ "https://Stackoverflow.com/questions/224467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18590/" ]
224,471
<p>Uhm I'm not sure if anyone has encountered this problem <br> a brief description is on IE6 any <code>&lt;select&gt;</code> objects get displayed over any other item, even div's... meaning if you have a fancy javascript effect that displays a div that's supposed to be on top of everything (e.g: lightbox, multibox etc...
[ { "answer_id": 224793, "author": "pawel", "author_id": 4879, "author_profile": "https://Stackoverflow.com/users/4879", "pm_score": 4, "selected": true, "text": "select * html .hideSelects select { visibility: hidden; }\n //hide:\ndocument.body.className +=' hideSelects'\n\n//show:\ndocum...
2008/10/22
[ "https://Stackoverflow.com/questions/224471", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24744/" ]
224,473
<p>I am new to creating Java web applications and came across this problem when trying to interact with my database (called ccdb) through my application:</p> <p><code>java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/ccdb/</code></p> <p>My application runs on JBoss and uses Hibernate to inter...
[ { "answer_id": 224793, "author": "pawel", "author_id": 4879, "author_profile": "https://Stackoverflow.com/users/4879", "pm_score": 4, "selected": true, "text": "select * html .hideSelects select { visibility: hidden; }\n //hide:\ndocument.body.className +=' hideSelects'\n\n//show:\ndocum...
2008/10/22
[ "https://Stackoverflow.com/questions/224473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20177/" ]
224,475
<p>I wonder if is possible to use FTS with LINQ using .NET Framework 3.5. I'm searching around the documentation that I didn't find anything useful yet.</p> <p>Does anyone have any experience on this?</p>
[ { "answer_id": 224483, "author": "Glenn Slaven", "author_id": 2975, "author_profile": "https://Stackoverflow.com/users/2975", "pm_score": 3, "selected": false, "text": "LIKE" }, { "answer_id": 385808, "author": "John", "author_id": 33, "author_profile": "https://Stack...
2008/10/22
[ "https://Stackoverflow.com/questions/224475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18623/" ]
224,485
<p>I am using a Cursor in my stored procedure. It works on a database that has a huge number of data. for every item in the cursor i do a update operation. This is taking a huge amount of time to complete. Almost 25min. :( .. Is there anyway i can reduce the time consumed for this?</p>
[ { "answer_id": 224738, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 4, "selected": true, "text": "UPDATE\n MyTable\nSET\n Col1 = CASE WHEN b.Foo = \"Bar\" THEN LOWER(b.Baz) ELSE \"\" END,\n Col2 = ISNULL(c.Bling, 0) * ...
2008/10/22
[ "https://Stackoverflow.com/questions/224485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20951/" ]
224,499
<p>There are some good examples on how to calculate word frequencies in C#, but none of them are comprehensive and I really need one in VB.NET.</p> <p>My current approach is limited to one word per frequency count. What is the best way to change this so that I can get a completely accurate word frequency listing?</p> ...
[ { "answer_id": 224514, "author": "Nathan W", "author_id": 6335, "author_profile": "https://Stackoverflow.com/users/6335", "pm_score": 2, "selected": false, "text": " Dim Words = \"Hello World ))))) This is a test Hello World\"\n Dim CountTheWords = From str In Words.Split(\" \") _\...
2008/10/22
[ "https://Stackoverflow.com/questions/224499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4965/" ]
224,503
<p>Short of putting a UIWebView as the back-most layer in my nib file, how can I add a repeating background image to an iPhone app (like the corduroy look in the background of a grouped UITableView)?</p> <p>Do I need to create an image that's the size of the iPhone's screen and manually repeat it using copy and paste?...
[ { "answer_id": 224513, "author": "Frank Schmitt", "author_id": 27951, "author_profile": "https://Stackoverflow.com/users/27951", "pm_score": 8, "selected": true, "text": "- (void)viewDidLoad {\n [super viewDidLoad];\n self.view.backgroundColor = [UIColor colorWithPatternImage: [UII...
2008/10/22
[ "https://Stackoverflow.com/questions/224503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27951/" ]
224,504
<p>Ok, so I have a Rails app set up on DreamHost and I had it working a while ago and now it's broken. I don't know a lot about deployment environments or anything like that so please forgive my ignorance. Anyway, it looks like the app is crashing at this line in config/environment.rb:</p> <pre><code>require File.jo...
[ { "answer_id": 885592, "author": "alex", "author_id": 71953, "author_profile": "https://Stackoverflow.com/users/71953", "pm_score": 2, "selected": false, "text": "rake rails:freeze:gems\nrake gems:unpack:dependencies\n" }, { "answer_id": 2433057, "author": "Taryn East", "...
2008/10/22
[ "https://Stackoverflow.com/questions/224504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12448/" ]
224,512
<p>I am working on creating a daemon in Ruby using the daemons gem. I want to add output from the daemon into a log file. I am wondering what is the easiest way to redirect <code>puts</code> from the console to a log file.</p>
[ { "answer_id": 224523, "author": "Pistos", "author_id": 28558, "author_profile": "https://Stackoverflow.com/users/28558", "pm_score": 4, "selected": false, "text": "$stdout = File.new( '/tmp/output', 'w' )\n $stdout = STDOUT\n" }, { "answer_id": 224659, "author": "Vitalie", ...
2008/10/22
[ "https://Stackoverflow.com/questions/224512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5004/" ]
224,541
<p>On my website, I have several html files I do not link off the main portal page. Without other people linking to them, is it possible for Jimmy Evil Hacker to find them?</p>
[ { "answer_id": 225069, "author": "S.Lott", "author_id": 10661, "author_profile": "https://Stackoverflow.com/users/10661", "pm_score": 2, "selected": false, "text": ".htaccess Options -Indexes\n" } ]
2008/10/22
[ "https://Stackoverflow.com/questions/224541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26227/" ]
224,553
<p>I want to know how events are used in embedded system code.</p> <p>Main intention is to know how exactly event flags are set/reset in code. and how to identify which task is using which event flag and which bits of the flag are getting set/reset by each task.</p> <p>Please put your suggestion or comments about it....
[ { "answer_id": 226698, "author": "JayG", "author_id": 5823, "author_profile": "https://Stackoverflow.com/users/5823", "pm_score": 2, "selected": false, "text": " #define EVENT1 0x00000001\n #define EVENT2 0x00000002\n #define EVENT3 0x00000004\n ...\n #define EVENT_EXIT...
2008/10/22
[ "https://Stackoverflow.com/questions/224553", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,562
<p>I am reading over the K&amp;R book, and am a little stuck.</p> <p>What is wrong with the following?</p> <pre><code>void getInput(int* output) { int c, i; for(i=0; (c = getchar()) != '\n'; i++) output[i] = c; // printf("%c", c) prints the c value as expected output[++i] = '\0'; } </code></pre> <p>Whe...
[ { "answer_id": 224600, "author": "Sundar R", "author_id": 8127, "author_profile": "https://Stackoverflow.com/users/8127", "pm_score": 4, "selected": true, "text": "1. void getInput(int* output) {\n void getInput(char* output) {\n 5. output[++i] = '\\0';\n output[i] = '\\0';\n int main...
2008/10/22
[ "https://Stackoverflow.com/questions/224562", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26849/" ]
224,569
<p>What is difference between <code>Server.Transfer</code> and <code>Response.Redirect</code>?</p> <ul> <li>What are advantages and disadvantages of each?</li> <li>When is one appropriate over the other?</li> <li>When is one not appropriate?</li> </ul>
[ { "answer_id": 224577, "author": "Christian C. Salvadó", "author_id": 5445, "author_profile": "https://Stackoverflow.com/users/5445", "pm_score": 9, "selected": true, "text": "Response.Redirect Server.Transfer" }, { "answer_id": 224586, "author": "Christian Payne", "autho...
2008/10/22
[ "https://Stackoverflow.com/questions/224569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18709/" ]
224,576
<p>I'm considering altering some tables to use nvarchar(50) as primary key instead of an int primary key. Using an int ID for a key really is irrelevant data, it's the string I'm interested in. What sort of performance hit will occur, or where do you research this? Other than cut and try that is.</p>
[ { "answer_id": 225195, "author": "onedaywhen", "author_id": 15354, "author_profile": "https://Stackoverflow.com/users/15354", "pm_score": -1, "selected": false, "text": "NVARCHAR(50)" }, { "answer_id": 225407, "author": "Philippe Grondier", "author_id": 11436, "author...
2008/10/22
[ "https://Stackoverflow.com/questions/224576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28343/" ]
224,602
<p>Given this HTML:</p> <pre><code>&lt;div&gt;foo&lt;/div&gt;&lt;div&gt;bar&lt;/div&gt;&lt;div&gt;baz&lt;/div&gt; </code></pre> <p>How do you make them display inline like this:</p> <blockquote> <p>foo bar baz</p> </blockquote> <p>not like this:</p> <blockquote> <p>foo<br> bar<br> baz </p> </blockquote>
[ { "answer_id": 224612, "author": "Randy Sugianto 'Yuku'", "author_id": 11238, "author_profile": "https://Stackoverflow.com/users/11238", "pm_score": 8, "selected": false, "text": "div { border: 1px solid #CCC; } <div style=\"display: inline\">a</div>\n <div style=\"display: inline...
2008/10/22
[ "https://Stackoverflow.com/questions/224602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21559/" ]
224,617
<p>i have a 3 column datafile and i wanted to use splot to plot the same. But what i want is that gnuplot plots first row (in some colour, say red) and then pauses for say 0.3 secs and then moves on to plotting next row (in other colour, not in red, say in green), pauses for 0.3 secs and then proceeds to next row....so...
[ { "answer_id": 224680, "author": "ADEpt", "author_id": 10105, "author_profile": "https://Stackoverflow.com/users/10105", "pm_score": 2, "selected": false, "text": "file=\"your input file.dat\"\nlines=$(wc -l $file)\ni=1\nwhile [ $i -le $lines ] ; do\n head -${i} ${file} > ${file%.dat}-$...
2008/10/22
[ "https://Stackoverflow.com/questions/224617", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,635
<p>I'm trying to program ARM using Eclipse + CDT + yagarto (gnu toolchain) + OpenOCD. In several sample projects (from yagarto site for example) I found linker scripts (*.ld) where a lot of linking information specified (along with sections definitions). Actually I haven't faced this files before (IAR doesn't need them...
[ { "answer_id": 871532, "author": "old_timer", "author_id": 16007, "author_profile": "https://Stackoverflow.com/users/16007", "pm_score": 3, "selected": true, "text": "MEMORY\n{\n bob (RX) : ORIGIN = 0x0000000, LENGTH = 32K\n joe (WAIL) : ORIGIN = 0x2000000, LENGTH = 256K\n}\n\nSECT...
2008/10/22
[ "https://Stackoverflow.com/questions/224635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14535/" ]
224,637
<p>I'm trying to use multiple attributes in my custom tag, e.g.:</p> <pre><code>&lt;mytaglib:mytag firstname="Thadeus" lastname="Jones" /&gt; </code></pre> <p>How can I access the attributes in the TagHandler code?</p>
[ { "answer_id": 224690, "author": "LizB", "author_id": 13616, "author_profile": "https://Stackoverflow.com/users/13616", "pm_score": 2, "selected": false, "text": "public class TagHandler extends TagSupport {\n private String firstName;\n private String lastName;\n\n public void ...
2008/10/22
[ "https://Stackoverflow.com/questions/224637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28557/" ]
224,643
<p>Recently I wrote an extremely basic Java Swing program with a couple of text fields and buttons. The program works fine for me on Ubuntu with Java 1.5. But when I try to run it on OSX (10.4), the main window is displayed correctly but the program seems unresponsive. Nothing seems to happen, no matter which button I ...
[ { "answer_id": 224847, "author": "oxbow_lakes", "author_id": 16853, "author_profile": "https://Stackoverflow.com/users/16853", "pm_score": 2, "selected": false, "text": "JTextArea main" } ]
2008/10/22
[ "https://Stackoverflow.com/questions/224643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1428/" ]
224,646
<pre><code>Double out = otherTypes.someMethod(c, c2); assertEquals((Double)-1.0D, out); </code></pre> <p>I get error "Double cannot be resolved" (the Double in assertEquals), is there any way to hack around it except extracting variable?</p> <p>Is this bug in Java or just very usefull feature that wont be fix?</p>
[ { "answer_id": 224685, "author": "Johann Zacharee", "author_id": 24290, "author_profile": "https://Stackoverflow.com/users/24290", "pm_score": 2, "selected": false, "text": "assertEquals(Double.valueOf(-1.0D), out)\n" }, { "answer_id": 224757, "author": "WMR", "author_id"...
2008/10/22
[ "https://Stackoverflow.com/questions/224646", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,648
<p>What is an external and internal iterator in Java ?</p>
[ { "answer_id": 224663, "author": "Chris Kimpton", "author_id": 48310, "author_profile": "https://Stackoverflow.com/users/48310", "pm_score": 4, "selected": false, "text": "// using iterators for a clloection of String objects:\n// using in a for loop\nfor (Iterator it = options.iterator(...
2008/10/22
[ "https://Stackoverflow.com/questions/224648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,658
<p>I implemented a small OOP library in Lua, and two things are not quite right yet. I need your advice!</p> <h2>How to call super()?</h2> <p>I need to make a choice. The three arguments I need to resolve a call to super() are:</p> <ul> <li>The class from where the call is being made (CallerClass)</li> <li>The instance...
[ { "answer_id": 224682, "author": "Chris Kimpton", "author_id": 48310, "author_profile": "https://Stackoverflow.com/users/48310", "pm_score": 2, "selected": true, "text": "--# Python style, which is nice too:\nsuper(CallerClass, self):method()\n" } ]
2008/10/22
[ "https://Stackoverflow.com/questions/224658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2797/" ]
224,660
<p>Hi Guys could you please help me refactor this so that it is sensibly pythonic.</p> <pre><code>import sys import poplib import string import StringIO, rfc822 import datetime import logging def _dump_pop_emails(self): self.logger.info("open pop account %s with username: %s" % (self.account[0], self.account[1]))...
[ { "answer_id": 224713, "author": "John Millikin", "author_id": 3560, "author_profile": "https://Stackoverflow.com/users/3560", "pm_score": 2, "selected": false, "text": "logger.info (\"foo %s %s\" % (bar, baz)) \"foo %s %s\", bar, baz try...finally emailpath '\\n'.join (body) string.join...
2008/10/22
[ "https://Stackoverflow.com/questions/224660", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21537/" ]
224,662
<p>I have a composite control that adds a TextBox and a Label control to its Controls collection. When i try to set the Label's AssociatedControlID to the ClientID of the Textbox i get this error</p> <pre><code>Unable to find control with id 'ctl00_MainContentPlaceholder_MatrixSetControl_mec50_tb' that is associated ...
[ { "answer_id": 224710, "author": "splattne", "author_id": 6461, "author_profile": "https://Stackoverflow.com/users/6461", "pm_score": 4, "selected": true, "text": "ElementLabel.AssociatedControlID = ElementTextBox.ID;\n" }, { "answer_id": 292789, "author": "Patrick de Kleijn"...
2008/10/22
[ "https://Stackoverflow.com/questions/224662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11619/" ]
224,664
<p>What is the difference between a proxy server and a reverse proxy server?</p>
[ { "answer_id": 366212, "author": "qyb2zm302", "author_id": 44862, "author_profile": "https://Stackoverflow.com/users/44862", "pm_score": 12, "selected": false, "text": "X --> Z. Y --> Z X X --> Y --> Z X Z familypostcards2008.com facebook.com playboy.com wikipedia.org Z X X X --> Z. Z Y ...
2008/10/22
[ "https://Stackoverflow.com/questions/224664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,665
<p>i want to get datetime for 2days before. i.e) how to subtract 2 days from datetime.now</p>
[ { "answer_id": 224667, "author": "DocMax", "author_id": 6234, "author_profile": "https://Stackoverflow.com/users/6234", "pm_score": 5, "selected": false, "text": "DateTime.Now.AddDays(-2);\n" }, { "answer_id": 224673, "author": "Joachim Kerschbaumer", "author_id": 20227, ...
2008/10/22
[ "https://Stackoverflow.com/questions/224665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,687
<p>This is sort of a follow-up to <a href="https://stackoverflow.com/questions/223678">this question</a>.</p> <p>If there are multiple blobs with the same contents, they are only stored once in the git repository because their SHA-1's will be identical. How would one go about finding all duplicate files for a given t...
[ { "answer_id": 224948, "author": "CB Bailey", "author_id": 19563, "author_profile": "https://Stackoverflow.com/users/19563", "pm_score": 2, "selected": false, "text": "git ls-tree -r HEAD\n git ls-tree -r" }, { "answer_id": 225041, "author": "lmop", "author_id": 22260, ...
2008/10/22
[ "https://Stackoverflow.com/questions/224687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4883/" ]
224,689
<p>What are the best practices to do transactions in C# .Net 2.0. What are the classes that should be used? What are the pitfalls to look out for etc. All that commit and rollback stuff. I'm just starting a project where I might need to do some transactions while inserting data into the DB. Any responses or links for e...
[ { "answer_id": 224702, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 9, "selected": true, "text": "using (IDbTransaction tran = conn.BeginTransaction()) {\n try {\n // your code\n tran.Commit();\n ...
2008/10/22
[ "https://Stackoverflow.com/questions/224689", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1688440/" ]
224,698
<p>I have a page which dynamically loads a section of content via AJAX. I'm concerned that this means the content will not be found by search engines.</p> <p>To show you what I mean, the site is at <a href="http://www.gold09.net" rel="nofollow noreferrer">http://www.gold09.net</a> and the dynamic content is at <a href...
[ { "answer_id": 224728, "author": "lock", "author_id": 24744, "author_profile": "https://Stackoverflow.com/users/24744", "pm_score": 0, "selected": false, "text": "index.php?ajaxpageneeded=page1\n <body onload=\"ajaxloaderscript(<?=page1?>);\" >\n" }, { "answer_id": 224973, "a...
2008/10/22
[ "https://Stackoverflow.com/questions/224698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9021/" ]
224,704
<p>I ran into a problem while cleaning up some old code. This is the function:</p> <pre><code>uint32_t ADT::get_connectivity_data( std::vector&lt; std::vector&lt;uint8_t&gt; &gt; &amp;output ) { output.resize(chunks.size()); for(chunk_vec_t::iterator it = chunks.begin(); it &lt; chunks.end(); ++it) { ...
[ { "answer_id": 224739, "author": "1800 INFORMATION", "author_id": 3146, "author_profile": "https://Stackoverflow.com/users/3146", "pm_score": 1, "selected": false, "text": "typedef std::vector<uint8_t> Chunks;\ntypedef std::vector<Chunks> Output;\nuint32_t ADT::get_connectivity_data( Out...
2008/10/22
[ "https://Stackoverflow.com/questions/224704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29049/" ]
224,712
<p>I had setup my clients &amp; server for passwordless login. Like passwordless login by copying RSA key of server to all client's /root/.ssh/id-rsa.pub. but this, I have done manually. I like to automate this process using shell script and providing password to the machines through script. If this problem is solved t...
[ { "answer_id": 224716, "author": "Vinko Vrsalovic", "author_id": 5190, "author_profile": "https://Stackoverflow.com/users/5190", "pm_score": 3, "selected": true, "text": "ssh-copy-id [-i identity_file] [user@]machine\n #!/bin/sh\n\n# Shell script to install your identity.pub on a remote ...
2008/10/22
[ "https://Stackoverflow.com/questions/224712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24813/" ]
224,714
<p>I just read a post mentioning "full text search" in SQL. </p> <p>I was just wondering what the difference between FTS and LIKE are. I did read a couple of articles but couldn't find anything that explained it well.</p>
[ { "answer_id": 29383200, "author": "Kingz", "author_id": 1642266, "author_profile": "https://Stackoverflow.com/users/1642266", "pm_score": 4, "selected": false, "text": "Document sets = {d1, d2, d3, d4, ... dn}\nTerm sets = {t1, t2, t3, .. tn}\n t1 -> {d1, d5, d9,.. dn}\nt2 -> {d11, d50,...
2008/10/22
[ "https://Stackoverflow.com/questions/224714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6335/" ]
224,721
<p>I have the following class:</p> <pre><code>public abstract class AbstractParent { static String method() { return "OriginalOutput"; } } </code></pre> <p>I want to mock this method. I decide to use <a href="http://jmockit.dev.java.net" rel="noreferrer">JMockit</a>. So I create a mock class:</p> <pr...
[ { "answer_id": 224773, "author": "Epaga", "author_id": 6583, "author_profile": "https://Stackoverflow.com/users/6583", "pm_score": 4, "selected": true, "text": "public class MockParent {\n public static String method() {\n return \"MOCK\";\n }\n}\n" }, { "answer_id":...
2008/10/22
[ "https://Stackoverflow.com/questions/224721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6583/" ]
224,730
<p>I'm after some good tips for fluent interfaces in C#. I'm just learning about it myself but keen to hear what others think outside of the articles I am reading. In particular I'm after:</p> <ol> <li>when is fluent too much?</li> <li>are there any fluent patterns?</li> <li>what is in C# that makes fluent interfaces ...
[ { "answer_id": 224790, "author": "Mendelt", "author_id": 3320, "author_profile": "https://Stackoverflow.com/users/3320", "pm_score": 3, "selected": false, "text": "using(var transaction = new Transaction())\n{\n // ..\n // ..\n}\n (new Transaction()).Run( () => mycode(); );\n class Run...
2008/10/22
[ "https://Stackoverflow.com/questions/224730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26625/" ]
224,732
<p>I have a database with <code>account numbers</code> and <code>card numbers</code>. I match these to a file to <code>update</code> any card numbers to the account number so that I am only working with account numbers.</p> <p>I created a view linking the table to the account/card database to return the <code>Table ID<...
[ { "answer_id": 224740, "author": "Mark S. Rasmussen", "author_id": 12469, "author_profile": "https://Stackoverflow.com/users/12469", "pm_score": 11, "selected": false, "text": "UPDATE FROM JOIN UPDATE\n Sales_Import\nSET\n Sales_Import.AccountNumber = RAN.AccountNumber\nFROM\n S...
2008/10/22
[ "https://Stackoverflow.com/questions/224732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,748
<p>I'm having trouble with a custom tag:-</p> <p>org.apache.jasper.JasperException: /custom_tags.jsp(1,0) Unable to find setter method for attribute : firstname</p> <p>This is my TagHandler class:</p> <pre><code>package com.cg.tags; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import j...
[ { "answer_id": 224833, "author": "John Topley", "author_id": 1450, "author_profile": "https://Stackoverflow.com/users/1450", "pm_score": 2, "selected": false, "text": "<tag>\n <name>...</name>\n <tag-class>...</tag-class>\n <body-content>...</body-content>\n <display-name>...</displa...
2008/10/22
[ "https://Stackoverflow.com/questions/224748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28557/" ]
224,756
<p>Our customers application seems to hang with the following stack trace:</p> <pre><code> java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(Unknown Source) at java.io.File.isFile(Unknown Source) at org.tmates...
[ { "answer_id": 224838, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 3, "selected": false, "text": "getBooleanAttributes0 stat stat64 jdk/src/solaris/native/java/io/UnixFileSystem_md.c stat strace stat" }, { "answer_...
2008/10/22
[ "https://Stackoverflow.com/questions/224756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,765
<p>I am trying to create a user interface using XAML. However, the file is quickly becoming very large and difficult to work with. What is the best way for splitting it across several files.</p> <p>I would like to be able to set the content of an element such as a ComboBox to an element that is defined in a different ...
[ { "answer_id": 224803, "author": "EFrank", "author_id": 28572, "author_profile": "https://Stackoverflow.com/users/28572", "pm_score": 5, "selected": false, "text": "<Page.Resources>\n <ResourceDictionary>\n <ResourceDictionary.MergedDictionaries>\n <ResourceDictionary Source=\"m...
2008/10/22
[ "https://Stackoverflow.com/questions/224765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18966/" ]
224,771
<p>In python how do you read multiple files from a mysql database using the cursor or loop one by one and store the output in a separate table?</p>
[ { "answer_id": 224801, "author": "Vinko Vrsalovic", "author_id": 5190, "author_profile": "https://Stackoverflow.com/users/5190", "pm_score": 1, "selected": false, "text": ">>> import MySQLdb\n>>> conn = MySQLdb.connect(host=\"localhost\",\n user=\"root\",\n ...
2008/10/22
[ "https://Stackoverflow.com/questions/224771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17451/" ]
224,797
<p>I've got the following code to end a process, but I still receive an error code 2 (Access Denied).</p> <pre><code>strComputer = "." Set objWMIService = GetObject("winmgmts:\\" &amp; strComputer &amp; "\root\cimv2") Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'MSSEARCH.exe...
[ { "answer_id": 224858, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 0, "selected": false, "text": "WScript.Shell net stop sc.exe Win32_Service Set Services = objWMIService.ExecQuery _\n (\"SELECT * FROM Win3...
2008/10/22
[ "https://Stackoverflow.com/questions/224797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28139/" ]
224,799
<p>I've noticed that plenty of opensource project doesn't use BITWISE flags anymore, even if it's fully supported by programming enviroment common for web ( php/Mysql). It's that a "lost practise" for some effective problem, or is just that a lot of php programmers don't know how to handle this type of implementation?<...
[ { "answer_id": 225292, "author": "Ferruccio", "author_id": 4086, "author_profile": "https://Stackoverflow.com/users/4086", "pm_score": 3, "selected": false, "text": "OpenFile(\"...\", true, false)\n OpenFile(\"...\", writeonly | append)\n" }, { "answer_id": 6473736, "author":...
2008/10/22
[ "https://Stackoverflow.com/questions/224799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15392/" ]
224,820
<p>I'm trying to figure out how to pass arguments to an anonymous function in JavaScript.</p> <p>Check out this sample code and I think you will see what I mean:</p> <pre><code>&lt;input type="button" value="Click me" id="myButton" /&gt; &lt;script type="text/javascript"&gt; var myButton = document.getElementByI...
[ { "answer_id": 224834, "author": "Sergey Ilinsky", "author_id": 23815, "author_profile": "https://Stackoverflow.com/users/23815", "pm_score": 7, "selected": true, "text": "<script type=\"text/javascript\">\n var myButton = document.getElementById(\"myButton\");\n var myMessage = \"it's...
2008/10/22
[ "https://Stackoverflow.com/questions/224820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29886/" ]
224,830
<p>I have a large script file (nearly 300MB, and feasibly bigger in the future) that I am trying to run. It has been suggested in the comments of Gulzar's answer to my <a href="https://stackoverflow.com/questions/222442/sql-server-running-large-script-files">question about it</a> that I should change the script timeou...
[ { "answer_id": 224955, "author": "splattne", "author_id": 6461, "author_profile": "https://Stackoverflow.com/users/6461", "pm_score": 2, "selected": false, "text": "exec sp_configure 'remote query timeout', 0 \ngo \nreconfigure with override \ngo \n" }, { "answer_id": 224956, ...
2008/10/22
[ "https://Stackoverflow.com/questions/224830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/192/" ]
224,845
<p>I am using the ruby daemons gem to create a custom daemon for my rails project. The only problem is that when I try to start the daemons <code>ruby lib/daemons/test_ctl start</code> that it fails and will not start. The log file has this output.</p> <pre><code># Logfile created on Wed Oct 22 16:14:23 +0000 2008 by...
[ { "answer_id": 224990, "author": "Josh Moore", "author_id": 5004, "author_profile": "https://Stackoverflow.com/users/5004", "pm_score": 3, "selected": true, "text": "config/environment.rb" }, { "answer_id": 366241, "author": "Dave Smylie", "author_id": 1505600, "autho...
2008/10/22
[ "https://Stackoverflow.com/questions/224845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5004/" ]
224,865
<p>I'm wondering if there are any simple ways to get a list of all fixed-width (monospaced) fonts installed on a user's system in C#?</p> <p>I'm using .net 3.5 so have access to the WPF System.Windows.Media namespace and LINQ to get font information, but I'm not sure what I'm looking for.</p> <p>I want to be able to ...
[ { "answer_id": 225027, "author": "Tim Ebenezer", "author_id": 30273, "author_profile": "https://Stackoverflow.com/users/30273", "pm_score": 5, "selected": true, "text": "foreach (FontFamily ff in System.Drawing.FontFamily.Families)\n{\n if (ff.IsStyleAvailable(FontStyle.Regular))\n ...
2008/10/22
[ "https://Stackoverflow.com/questions/224865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/483/" ]
224,868
<p>I know it's simple to implement, but I want to reuse something that already exist.</p> <p>Problem I want to solve is that I load configuration (from XML so I want to cache them) for different pages, roles, ... so the combination of inputs can grow quite much (but in 99% will not). To handle this 1%, I want to have ...
[ { "answer_id": 224886, "author": "Guido", "author_id": 12388, "author_profile": "https://Stackoverflow.com/users/12388", "pm_score": 8, "selected": true, "text": "// Create cache\nfinal int MAX_ENTRIES = 100;\nMap cache = new LinkedHashMap(MAX_ENTRIES+1, .75F, true) {\n // This method...
2008/10/22
[ "https://Stackoverflow.com/questions/224868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1128722/" ]
224,875
<p>Is it possible to do the equivalent of the following in xslt:</p> <pre><code>.//TagA[./TagB/[@AttrA='AttrAValue'] = 'TagBValue'] </code></pre> <p>This is failing within Visual Studio 2008 with the following error:</p> <pre><code>error: Unexpected token '[' in the expression. .//TagA[./TagB/ --&gt;[&lt;-- @AttrA='...
[ { "answer_id": 224886, "author": "Guido", "author_id": 12388, "author_profile": "https://Stackoverflow.com/users/12388", "pm_score": 8, "selected": true, "text": "// Create cache\nfinal int MAX_ENTRIES = 100;\nMap cache = new LinkedHashMap(MAX_ENTRIES+1, .75F, true) {\n // This method...
2008/10/22
[ "https://Stackoverflow.com/questions/224875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30273/" ]
224,878
<p>What is the best way to find out whether two number ranges intersect?</p> <p>My number range is <strong>3023-7430</strong>, now I want to test which of the following number ranges intersect with it: &lt;3000, 3000-6000, 6000-8000, 8000-10000, >10000. The answer should be <strong>3000-6000</strong> and <strong>6000-...
[ { "answer_id": 224897, "author": "Chris Kimpton", "author_id": 48310, "author_profile": "https://Stackoverflow.com/users/48310", "pm_score": 5, "selected": true, "text": "Set<Range> determineIntersectedRanges(Range range, Set<Range> setofRangesToTest)\n{\n Set<Range> results;\n foreach...
2008/10/22
[ "https://Stackoverflow.com/questions/224878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/476/" ]
224,926
<p>for example, I have the following xml document:</p> <pre><code>def CAR_RECORDS = ''' &lt;records&gt; &lt;car name='HSV Maloo' make='Holden' year='2006'/&gt; &lt;car name='P50' make='Peel' year='1962'/&gt; &lt;car name='Royale' make='Bugatti' year='1931'/&gt; &lt;/records&gt; ''' </code></p...
[ { "answer_id": 227467, "author": "danb", "author_id": 2031, "author_profile": "https://Stackoverflow.com/users/2031", "pm_score": 2, "selected": false, "text": "Node root = new XmlParser().parseText(CAR_RECORDS)\nNodeList carNodes = root.car\nNode royale = carNodes[2]\ncarNodes.remove(ro...
2008/10/22
[ "https://Stackoverflow.com/questions/224926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30275/" ]
224,933
<p>Imagine you're creating a presentation that will be translated into a dozen different languages, including ones with non-latin characters (Chinese, for instance). The client's branding style guide dictates that certain fonts are acceptable for certain languages. The content itself is required to be externalized, so ...
[ { "answer_id": 224975, "author": "Antti", "author_id": 6037, "author_profile": "https://Stackoverflow.com/users/6037", "pm_score": 0, "selected": false, "text": "[Embed(src=\"someFont.ttf\", fontFamily=\"myFont\", mimeType=\"application/x-font\")]\nprivate var fontClass:Class;\n\n...\n\n...
2008/10/22
[ "https://Stackoverflow.com/questions/224933", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14026/" ]
224,952
<p>What ist most concise way to read the contents of a file or input stream in Java? Do I always have to create a buffer, read (at most) line by line and so on or is there a more concise way? I wish I could do just</p> <pre><code>String content = new File("test.txt").readFully(); </code></pre>
[ { "answer_id": 224970, "author": "Lars Westergren", "author_id": 15627, "author_profile": "https://Stackoverflow.com/users/15627", "pm_score": 1, "selected": false, "text": "String content = (new RandomAccessFile(new File(\"test.txt\"))).readUTF();\n" }, { "answer_id": 225268, ...
2008/10/22
[ "https://Stackoverflow.com/questions/224952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18722/" ]
224,966
<p>What is the difference between <code>private</code> and <code>protected</code> members in C++ classes?</p> <p>I understand from best practice conventions that variables and functions which are not called outside the class should be made <code>private</code>—but looking at my MFC project, MFC seems to favor <code>pro...
[ { "answer_id": 224980, "author": "fhe", "author_id": 4445, "author_profile": "https://Stackoverflow.com/users/4445", "pm_score": 3, "selected": false, "text": "protected private" }, { "answer_id": 224992, "author": "Roddy", "author_id": 1737, "author_profile": "https:...
2008/10/22
[ "https://Stackoverflow.com/questions/224966", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18664/" ]
224,969
<p>I have a string (char) and I want to extract numbers out of it.</p> <p>So I have string: <code>1 2 3 4 /0</code><br> And now I want some variables, so I can use them as integer: <code>a=1, a=2, a=3, a=4</code></p> <p>How can I do that?</p>
[ { "answer_id": 224994, "author": "Ignacio Vazquez-Abrams", "author_id": 20862, "author_profile": "https://Stackoverflow.com/users/20862", "pm_score": 2, "selected": false, "text": "#include <stdio.h>\n\nint main(void)\n{\n int a, b, c, d;\n sscanf(\"1 2 3 4\", \"%d %d %d %d\", &a, &b, ...
2008/10/22
[ "https://Stackoverflow.com/questions/224969", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
224,996
<p>Some of us still "live" in a programming environment where unit testing has not yet been embraced. To get started, the obvious first step would be to try to implement a decent framework for unit testing, and I guess xUnit is the "standard".</p> <p>So what is a good starting point for implementing xUnit in a new pro...
[ { "answer_id": 225082, "author": "Hallgrim", "author_id": 15454, "author_profile": "https://Stackoverflow.com/users/15454", "pm_score": 2, "selected": false, "text": "void Main() \n{\n var algorithmToTest = MyUniversalQuestionSolver();\n var question = Answer to { Life, Universe && Eve...
2008/10/22
[ "https://Stackoverflow.com/questions/224996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18651/" ]
225,030
<p>When debugging in Internet Explorer, I first get an alert box with extremely limited if not useless information (sorry IE) and choose to debug it. After selecting yes, I get another option <em>every time</em> to choose between 'New instance of Microsoft script debugger' and 'New instance of Visual Studio'. I'm fed u...
[ { "answer_id": 225676, "author": "Chase Seibert", "author_id": 7679, "author_profile": "https://Stackoverflow.com/users/7679", "pm_score": 0, "selected": false, "text": "Options -> Advanced -> Browsing -> Disable script debugging.\n" } ]
2008/10/22
[ "https://Stackoverflow.com/questions/225030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24525/" ]
225,032
<p>I am using a native library which returns an IntPtr to a memory location, which contains the value of an attribute. I know what the type of the attribute is and I have a method for marshalling a value (taking the IntPtr and the type of the attribute) from the memory pointed at by the pointer. This method either ca...
[ { "answer_id": 225200, "author": "orj", "author_id": 20480, "author_profile": "https://Stackoverflow.com/users/20480", "pm_score": 0, "selected": false, "text": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Runtime.InteropServices...
2008/10/22
[ "https://Stackoverflow.com/questions/225032", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
225,034
<p>I'm currently looking for a possibility in Java to identify a font as symbolic like OpenOffice does. Characters with the font Windings or Webdings and so on should be rendered with the correct "pictures".</p> <p>Anyone an idea how to distinguish between normal fonts and fonts with symbols?</p>
[ { "answer_id": 5084272, "author": "Geoffrey Zheng", "author_id": 62479, "author_profile": "https://Stackoverflow.com/users/62479", "pm_score": 0, "selected": false, "text": "SYMBOL_CHARSET if( !java.awt.Font#canDisplay('a') )" } ]
2008/10/22
[ "https://Stackoverflow.com/questions/225034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18633/" ]
225,045
<p>I've been reading up on conditional-style expressions in ruby. However I came across one I couldn't quite understand to define the classic FizzBuzz problem. I understand the FizzBuzz problem and even wrote my own before finding the following quick solution utilising the ternary operator. If someone can explain to me...
[ { "answer_id": 225055, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 5, "selected": true, "text": "puts (i%3 == 0) ? ((i%5 == 0) ? \"FizzBuzz\" : \"Buzz\") : ((i%5 == 0) ? \"Fizz\" : i)\n" }, { "answer_id": 225056...
2008/10/22
[ "https://Stackoverflow.com/questions/225045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2294/" ]
225,052
<p>How do I get the KeyDown event to work in a Delphi (2007) MDI Applications Parent window, even if a Child window has focus?</p> <p>I would like to implement a shortcut key (F1) that brings up a help screen in a MDI application, I have added the KeyDown procedure to the MDI Parent window and enabled KeyPreview in b...
[ { "answer_id": 225996, "author": "Jeremy Mullin", "author_id": 7893, "author_profile": "https://Stackoverflow.com/users/7893", "pm_score": 2, "selected": false, "text": "Application.OnMessage := AppMessage;\n\nprocedure TMainForm.Appmessage(var Msg: TMsg; var Handled: Boolean);\nvar\n m...
2008/10/22
[ "https://Stackoverflow.com/questions/225052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2098/" ]
225,071
<p>I am making an web based appliaction in java (using jsp). When the appliaction is invoked login page will come, when the user enter the valid credientials, he will be taken to the index page. But the problem is, when the login is success, the index page is coming but it is opening behind the login page. (means login...
[ { "answer_id": 225996, "author": "Jeremy Mullin", "author_id": 7893, "author_profile": "https://Stackoverflow.com/users/7893", "pm_score": 2, "selected": false, "text": "Application.OnMessage := AppMessage;\n\nprocedure TMainForm.Appmessage(var Msg: TMsg; var Handled: Boolean);\nvar\n m...
2008/10/22
[ "https://Stackoverflow.com/questions/225071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]