qid
int64
4
22.2M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
374,709
<p>When I use A.column name, B.Column name where A = Table A and B = Table B , what is the technical name for the A.Column name? Is it a prefix, identifier or what else? </p>
[ { "answer_id": 374871, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "correlation" }, { "answer_id": 375216, "author": "Bill Karwin", "author_id": 20860, "author_profile": "htt...
2008/12/17
[ "https://Stackoverflow.com/questions/374709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,715
<p>I am trying to add enhancements to a 4 year old VC++ 6.0 program. The debug build runs from the command line but not in the debugger: it crashes with an access violation inside printf(). If I skip the printf, then it crashes in malloc() (called from within fopen()) and I can't skip over that.</p> <p>This means I ca...
[ { "answer_id": 374820, "author": "jmatthias", "author_id": 2768, "author_profile": "https://Stackoverflow.com/users/2768", "pm_score": 1, "selected": false, "text": "open_new_log()" }, { "answer_id": 374916, "author": "Adam Rosenfield", "author_id": 9530, "author_prof...
2008/12/17
[ "https://Stackoverflow.com/questions/374715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41013/" ]
374,734
<p>I'm calling a WebService exposed by Oracle that accepts an input of an ItemID and returns to me the corresponding Item Number. I want to grab the Item Number that has been returned out of the XML contained in the response.</p> <p>The XML looks like this:</p> <pre><code>&lt;env:Envelope xmlns:env="http://schemas....
[ { "answer_id": 374750, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 5, "selected": true, "text": "XNamespace ns0 = \"http://dev1/MyWebService1.wsdl\";\n\nString result = doc.Descendants(ns0 + \"result\").First().Value;\...
2008/12/17
[ "https://Stackoverflow.com/questions/374734", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26853/" ]
374,740
<p>I need to write a unit test for a method that will print a document. Is there an easy way to send the output to the Windows equivalent of /dev/null? I'm guessing that having our build server print a document on every check in is going to get expensive quickly. ;)</p> <p>Ideally, this would work on both our build...
[ { "answer_id": 374765, "author": "Campbell", "author_id": 942, "author_profile": "https://Stackoverflow.com/users/942", "pm_score": 2, "selected": true, "text": "Mock mock = MockManager.Mock<PrintManager>();\nmock.ExpectCall(\"Print\");\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/549/" ]
374,746
<p>I understand the best way to count the number of rows in an SQL table is count(*) (or equivalently count(PrimaryKey)).</p> <ol> <li>Is this O(1)?</li> <li>If not, why not?</li> </ol> <p>Why not just implement a counter and return it for this specific query? Is it because this query is not a common use case?</p> <...
[ { "answer_id": 374815, "author": "James Curran", "author_id": 12725, "author_profile": "https://Stackoverflow.com/users/12725", "pm_score": 0, "selected": false, "text": "select count(*) From MyTable" }, { "answer_id": 374844, "author": "mmx", "author_id": 33708, "aut...
2008/12/17
[ "https://Stackoverflow.com/questions/374746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11236/" ]
374,760
<p>I say properly because everyone I have spoken to in the past said running Django on IIS was a hack. I had it working somewhat but it never did quite right and did feel like a hack. I like python but had to give it up because I could never make Django work with IIS and Django was my excuse to use Python in producti...
[ { "answer_id": 1349946, "author": "Nick Bolton", "author_id": 47775, "author_profile": "https://Stackoverflow.com/users/47775", "pm_score": 1, "selected": false, "text": "PyISAPIe\n0x8007007e\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28045/" ]
374,761
<p>I'm using Visual C++ (VS2005) and compiling the project in Multibyte Character Set (MBCS). However, the program needs to communicate with a webapp (which is in utf-8) via XMLRPC. So I'm thinking maybe I can use MBCS internally and convert the strings to utf-8 before sending them to the xmlrpc module and converting t...
[ { "answer_id": 375122, "author": "Rob", "author_id": 9236, "author_profile": "https://Stackoverflow.com/users/9236", "pm_score": 1, "selected": false, "text": "CT2A pszUTF8(_T(\"My DBCS string\"), CP_UTF8);\n// pszUTF8.m_psz contains the UTF8 string.\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,762
<p>I am looking to export a few files into Excel from MS Access based on querying a table.</p> <p>It's like this the query will be </p> <pre><code>select * from table where field = 0 </code></pre> <p>I would like to loop the query till field is 9 and I want to save each result in a different name like field...
[ { "answer_id": 374835, "author": "LeppyR64", "author_id": 16592, "author_profile": "https://Stackoverflow.com/users/16592", "pm_score": 1, "selected": false, "text": "DoCmd.TransferSpreadsheet acExport, _\n acSpreadsheetTypeExcel9, _\n ...
2008/12/17
[ "https://Stackoverflow.com/questions/374762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31132/" ]
374,763
<p>In Python properties are used instead of the Java-style getters, setters. So one rarely sees get... or set.. methods in the public interfaces of classes.</p> <p>But in cases were a property is not appropriate one might still end up with methods that behave like getters or setters. Now my questions: Should these met...
[ { "answer_id": 374860, "author": "mipadi", "author_id": 28804, "author_profile": "https://Stackoverflow.com/users/28804", "pm_score": 1, "selected": false, "text": "foo()/set_foo()" }, { "answer_id": 375160, "author": "Jeremy Cantrell", "author_id": 18866, "author_pro...
2008/12/17
[ "https://Stackoverflow.com/questions/374763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11992/" ]
374,768
<p>I have the following code (adapted from an example given in <a href="http://diveintopython.net/file_handling/file_objects.html#d0e14928" rel="nofollow noreferrer">Dive Into Python</a>) that reads the entire contents of a file into a buffer.</p> <pre><code>buffer = "" try: file = open(postFileName, 'rU') tr...
[ { "answer_id": 374821, "author": "Oli", "author_id": 22035, "author_profile": "https://Stackoverflow.com/users/22035", "pm_score": 0, "selected": false, "text": "try:\n non_existing_var\nexcept:\n print 'error'\nfinally:\n print 'finished'\n" }, { "answer_id": 374895, "aut...
2008/12/17
[ "https://Stackoverflow.com/questions/374768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1288/" ]
374,770
<p>Imagine this case where I have an object that I need to check a property. However, the object can currently have a null value.</p> <p>How can I check these two conditions in a single &quot;if&quot; condition?</p> <p>Currently, I have to do something like this:</p> <pre class="lang-cs prettyprint-override"><code>if (...
[ { "answer_id": 374776, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 6, "selected": true, "text": "if (myObject != null && myObject.Id != pId)\n{\n myObject.Id = pId;\n myObject.Order = pOrder;\n}\n" }, { ...
2008/12/17
[ "https://Stackoverflow.com/questions/374770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29544/" ]
374,786
<p>I've been at this for several days and searches including here haven't give me any solutions yet.</p> <p>I am creating a Bookmarklet which is to interact with a POST API. I've gotten most of it working except the most important part; the sending of data from the iframe (I know horrible! If anyone knows a better sol...
[ { "answer_id": 375311, "author": "singpolyma", "author_id": 8611, "author_profile": "https://Stackoverflow.com/users/8611", "pm_score": 0, "selected": false, "text": "DATA_FOR_IFRAME = ({'whatever': 'stuff'});\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374786", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,790
<p>I understand that boxing and unboxing is about casting (real type to object... object to real type). But I do not understand what the MSDN say about it with the Nullable. Here is the text I do not understand:</p> <blockquote> <p>When a nullable type is boxed, the common language runtime automatically boxes the un...
[ { "answer_id": 374801, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 5, "selected": true, "text": "int? x = 5;\nobject y = x; // Boxing\n" }, { "answer_id": 374804, "author": "Marc Gravell", "author_id": ...
2008/12/17
[ "https://Stackoverflow.com/questions/374790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46827/" ]
374,791
<p>I've had to move my page title into my node to accommodate a client need, but I'm unable to now get a title to display on a page view of my views list. The argument I have to display title on edit, admin and track pages is:</p> <pre><code>&lt;?php if ($title &amp;&amp; ((arg(2) == 'track') || (arg(2) == 'edit') || ...
[ { "answer_id": 375387, "author": "Steve Perks", "author_id": 16124, "author_profile": "https://Stackoverflow.com/users/16124", "pm_score": 3, "selected": true, "text": "!node->type" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16124/" ]
374,797
<p>I'm using Zend Studio 6.1 for Eclipse, which comes bundled with the Subversive plug-in.</p> <p>My repo layout is:</p> <pre><code>/trunk/ /branches/ /tags/ </code></pre> <p>My application code is in:</p> <pre><code>/trunk/application </code></pre> <p>I'm trying to add some view templates in:</p> <pre><code>/tru...
[ { "answer_id": 374810, "author": "RB.", "author_id": 15393, "author_profile": "https://Stackoverflow.com/users/15393", "pm_score": 4, "selected": false, "text": "/trunk\n/tags\n/branches\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3407/" ]
374,818
<p>I have a .net project in subversion which is contineously integrated with Cruisecontrol.net.</p> <p>i use Svn source control CCNET task.</p> <p>The .net project library directory with set of reusable components configured as subversion externals.</p> <p>ProjectA\libraries {reusable components directory} ProjectA...
[ { "answer_id": 374880, "author": "Alex", "author_id": 26564, "author_profile": "https://Stackoverflow.com/users/26564", "pm_score": 4, "selected": true, "text": "<checkExternals>True</checkExternals>\n<checkExternalsRecursive>True</checkExternalsRecursive>\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32670/" ]
374,824
<p>Here is classical object model:</p> <pre><code> class ViewBase { void DoSomethingForView() { } //May be virtual } class View1 : ViewBase //(derived class from ViewBase) { void DoSomethingForView() { } void DoSomethingForView1Special() { } } class View2: ViewBase //(another derived class from ViewB...
[ { "answer_id": 376250, "author": "Axeman", "author_id": 11289, "author_profile": "https://Stackoverflow.com/users/11289", "pm_score": 3, "selected": true, "text": "do_something_for_view" }, { "answer_id": 2629887, "author": "Donato Azevedo", "author_id": 119958, "auth...
2008/12/17
[ "https://Stackoverflow.com/questions/374824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43056/" ]
374,833
<p>I just want to know how I can start derby in network server mode and still be able to get an embedded connection?</p> <p>Thank you.</p>
[ { "answer_id": 22641222, "author": "trooper", "author_id": 975741, "author_profile": "https://Stackoverflow.com/users/975741", "pm_score": 2, "selected": false, "text": " derby.jar derbynet.jar\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,841
<p>I have a coldfusion web site I need to change. Have no idea or experience with this environment (I do know ASP.NET). All I need to do is to write a condition based on the referral value (the URL) of the page, and redirect to another page in some cases. Can anyone give me an example of the syntax that would perform t...
[ { "answer_id": 374892, "author": "DanSingerman", "author_id": 43965, "author_profile": "https://Stackoverflow.com/users/43965", "pm_score": 1, "selected": false, "text": "<cfif some_condition_based_on_your_url>\n <cflocation url=\"http://where_your_referrals_go\">\n</cfif>\n<!--- contin...
2008/12/17
[ "https://Stackoverflow.com/questions/374841", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1363/" ]
374,843
<p><strong>The cause was probably that I ran out of disk space, causing everything to work strangely. I will leave this question up anyways in case anyone else has a similar issue.</strong></p> <p>I have a few PHP scripts that have hung for a long time, but apparently they are not really using much CPU time as they do...
[ { "answer_id": 374892, "author": "DanSingerman", "author_id": 43965, "author_profile": "https://Stackoverflow.com/users/43965", "pm_score": 1, "selected": false, "text": "<cfif some_condition_based_on_your_url>\n <cflocation url=\"http://where_your_referrals_go\">\n</cfif>\n<!--- contin...
2008/12/17
[ "https://Stackoverflow.com/questions/374843", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8005/" ]
374,846
<p>I have a 3 table SQLServer Database.</p> <pre><code>Project ProjectID ProjectName Thing ThingID ThingName ProjectThingLink ProjectID ThingID CreatedDate </code></pre> <p>When a Thing is ascribed to a Project an entry is put in the ProjectThingLink table. Things can move between Projects. The CreatedDate is used to...
[ { "answer_id": 374868, "author": "Tony Andrews", "author_id": 18747, "author_profile": "https://Stackoverflow.com/users/18747", "pm_score": 3, "selected": true, "text": "select p.projectName, t.ThingName\nfrom projects p\njoin projectThingLink l on l.projectId = p.projectId\njoin thing t...
2008/12/17
[ "https://Stackoverflow.com/questions/374846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5552/" ]
374,885
<p>I'm looking into a restful design and would like to use the HTTP methods (<code>POST</code>, <code>GET</code>, ...) and HTTP headers as much as possible. I already found out that the HTTP methods <code>PUT</code> and <code>DELETE</code> are not supported from the browser.</p> <p>Now I'm looking to get different rep...
[ { "answer_id": 374957, "author": "Milan Novota", "author_id": 26123, "author_profile": "https://Stackoverflow.com/users/26123", "pm_score": 4, "selected": true, "text": "/resources/resource\n" }, { "answer_id": 398156, "author": "Shonzilla", "author_id": 31625, "autho...
2008/12/17
[ "https://Stackoverflow.com/questions/374885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15490/" ]
374,886
<p>I'm trying to setup Spring using Hibernate and JPA, but when trying to persist an object, nothing seems to be added to the database.</p> <p>Am using the following:</p> <pre><code>&lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"&gt; &lt;property name="url" value="${jdbc.url}"/&gt; &l...
[ { "answer_id": 374913, "author": "Juan Manuel", "author_id": 47033, "author_profile": "https://Stackoverflow.com/users/47033", "pm_score": 1, "selected": false, "text": "@TransactionManagement(TransactionManagementType.BEAN)\npublic class AccountManager implements IAccountManager { ..}\n...
2008/12/17
[ "https://Stackoverflow.com/questions/374886", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32713/" ]
374,906
<p>We use a customized installation of SugarCRM and I need to make a change to the "Convert Lead to Contact" form. On the form, only "last name" is marked as required, but if the user does not enter a salutation or first name, Sugar will throw an SQL error on the insert (because salutation and first name are required f...
[ { "answer_id": 375729, "author": "Ed Schwehm", "author_id": 1206, "author_profile": "https://Stackoverflow.com/users/1206", "pm_score": 2, "selected": true, "text": "<?php\n$dictionary['Contact']['fields']['salutation']['required'] = true;\n$dictionary['Contact']['fields']['first_name'][...
2008/12/17
[ "https://Stackoverflow.com/questions/374906", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1206/" ]
374,930
<p>I have a .NET webform that has a file upload control that is tied to a regular expression validator. This validator needs to validate that only certain filetypes should be allowed for upload (jpg,gif,doc,pdf)</p> <p>The current regular expression that does this is:</p> <pre> <code> ^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(...
[ { "answer_id": 374956, "author": "Dario Solera", "author_id": 16026, "author_profile": "https://Stackoverflow.com/users/16026", "pm_score": 9, "selected": true, "text": "^.*\\.(jpg|JPG|gif|GIF|doc|DOC|pdf|PDF)$\n" }, { "answer_id": 374985, "author": "Joseph Ferris", "auth...
2008/12/17
[ "https://Stackoverflow.com/questions/374930", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1638/" ]
374,940
<p>As input I get an int (well, actually a string I should convert to an int).<br> This int should be converted to bits.<br> For each bit position that has a 1, I should get the position.<br> In my database, I want all records that have an int value field that has this position as value.<br> I currently have the follow...
[ { "answer_id": 374955, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 2, "selected": false, "text": "for (int i=0; i < 32; i++)\n{\n if ((value & (1 << i)) != 0)\n {\n Console.WriteLine(\"Bit {0} was set!\", ...
2008/12/17
[ "https://Stackoverflow.com/questions/374940", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11333/" ]
374,943
<p>I have a question about <a href="https://stackoverflow.com/questions/372812/how-do-get-some-of-the-object-from-a-list-without-linq">this question</a>. I posted a reply there but since it's been marked as answered, I don't think I'll get a response to my post there.</p> <blockquote> <p>I am running C# framework 2...
[ { "answer_id": 376613, "author": "Patrick Desjardins", "author_id": 13913, "author_profile": "https://Stackoverflow.com/users/13913", "pm_score": 1, "selected": false, "text": " list = list.FindAll(yourFilterCriteria);\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374943", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4068/" ]
374,946
<p>I wonder what the best approach is for a situation where I want to have the user type in</p> <p><a href="http://myserver/something/20" rel="nofollow noreferrer">http://myserver/something/20</a></p> <p>and get redirected (301 or 302) to </p> <p><a href="http://someotherserver/applications/something/modules/default...
[ { "answer_id": 375144, "author": "AnthonyWJones", "author_id": 17516, "author_profile": "https://Stackoverflow.com/users/17516", "pm_score": 1, "selected": false, "text": "<%\n\nDim id : id = CLng(Mid(Request.QueryString, InStrRev(Request.QueryString, \"/\")+1))\nResponse.Redirect \"http...
2008/12/17
[ "https://Stackoverflow.com/questions/374946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91/" ]
374,952
<p>I'm trying to use Live Search 2.0 but even a simple example doesn't seem to work. Microsoft only has example code for 1.1 and they're not giving out AppIDs for that version.</p> <p>Here's what I'm trying with:</p> <pre><code>&lt;?php $server = new SoapClient('http://soap.search.msn.com/webservices.asmx?wsdl'); cl...
[ { "answer_id": 385399, "author": "Marek", "author_id": 34452, "author_profile": "https://Stackoverflow.com/users/34452", "pm_score": 3, "selected": true, "text": "$appid = 'Your app id';\n$searchitem = 'PHP Manual';\n $request = 'http://api.search.live.net/json.aspx?Appid=' . $appid ....
2008/12/17
[ "https://Stackoverflow.com/questions/374952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27736/" ]
374,997
<p>I've a process name and I've to send a <code>kill()</code> signal to that process but I need its PID to call <code>kill()</code>. I would only like to use:</p> <pre><code>popen("pidof process_name"); </code></pre> <p>as the last thing. Is there any other way to find out the process' PID? One way I could think of i...
[ { "answer_id": 375096, "author": "partoa", "author_id": 23857, "author_profile": "https://Stackoverflow.com/users/23857", "pm_score": 0, "selected": false, "text": "system(\"killall -s 9 process_name\");\n" }, { "answer_id": 891381, "author": "cjs", "author_id": 107294, ...
2008/12/17
[ "https://Stackoverflow.com/questions/374997", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7205/" ]
375,009
<p>I have simple regex</p> <pre><code>"\".*\"" </code></pre> <p>for me its says select everything between " and ", but it also catches</p> <pre><code>"text") != -1 || file.indexOf(".exe" </code></pre> <p>for me its two strings, for regex its one. how can i make regex to see that its two strings?</p> <p>P.S. I'm us...
[ { "answer_id": 375024, "author": "Paul Tomblin", "author_id": 3333, "author_profile": "https://Stackoverflow.com/users/3333", "pm_score": 3, "selected": false, "text": "\"\\\"[^\\\"]*\\\"\"\n" }, { "answer_id": 375030, "author": "Douglas Leeder", "author_id": 3978, "a...
2008/12/17
[ "https://Stackoverflow.com/questions/375009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
375,014
<p>I would like to be able to refactor out the <strong>OrderBy</strong> clause in a linq expression. </p> <p>Here is an example of a refactor of the <strong>where</strong> clause </p> <p>before:</p> <pre><code>results = ctx.ActiveUsers .Where(u =&gt; u.CompanyID != 1 &amp;&amp; (u.LastName.ToLower()....
[ { "answer_id": 375074, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": true, "text": "var unordered = ctx.ActiveUsers\n .Where(Employee.GetExpression(searchString))\n .Ord...
2008/12/17
[ "https://Stackoverflow.com/questions/375014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31470/" ]
375,053
<p>The goal is to take the current working directory split it at <code>/clients/</code> and see if the user is in</p> <pre>[something]/clients/[their username]/[something]</pre> <p>for example, the goal would be for input:</p> <pre><code>cwd = "/volumes/raid0/www/clients/mikey/test_folder/" $session-&gt;username = "...
[ { "answer_id": 375089, "author": "Ruben Vermeersch", "author_id": 32713, "author_profile": "https://Stackoverflow.com/users/32713", "pm_score": 1, "selected": false, "text": "<?php\n$regex = '%(.+)(/|\\\\\\\\)clients(/|\\\\\\\\)(.+)(/|\\\\\\\\)(.+)(/|\\\\\\\\)%';\n\npreg_match($regex, \"...
2008/12/17
[ "https://Stackoverflow.com/questions/375053", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
375,066
<p>I'm working with an application that logs to Windows Application Log regularly (viewable through the Event Viewer administrative tool), and I'm looking for a way to back it up on a daily basis. This is important because we sometimes discover a problem with the application - and to investigate further we need informa...
[ { "answer_id": 375131, "author": "Stanislas Biron", "author_id": 43311, "author_profile": "https://Stackoverflow.com/users/43311", "pm_score": 3, "selected": true, "text": "dim strComputer = \".\" 'Define here the Remote IP Address or Computername\ndim objWMIService\ndim colLogFiles\ndim...
2008/12/17
[ "https://Stackoverflow.com/questions/375066", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21263/" ]
375,068
<p>Right now we just use something like this</p> <pre><code> stopWatch.Start(); try { method(); } finally { stopWatch.Stop(); } </code></pre> <p>Which works fine for synchronous methods, but some are executing asynchronously, s...
[ { "answer_id": 375225, "author": "Neil Barnwell", "author_id": 26414, "author_profile": "https://Stackoverflow.com/users/26414", "pm_score": 1, "selected": false, "text": "ThreadStatic" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375068", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23822/" ]
375,079
<p>How do I create an asp:Menu that has a horizontal submenu rather then a vertical one while keeping the top menu horizontal?</p>
[ { "answer_id": 375740, "author": "slf", "author_id": 13263, "author_profile": "https://Stackoverflow.com/users/13263", "pm_score": 0, "selected": false, "text": "<div id=\"nav\"><asp:menu .... /></div>\n" }, { "answer_id": 2972875, "author": "sumit", "author_id": 358291, ...
2008/12/17
[ "https://Stackoverflow.com/questions/375079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34281/" ]
375,083
<p>Hey all, I have something of an interesting requirement for my project. I need a <code>has_one</code> relationship where it is either one class or the other, but without inheritance. I could get away with inheritance if it is the only way, but the two associate records have completely different data and aren't rel...
[ { "answer_id": 375167, "author": "Bill Karwin", "author_id": 20860, "author_profile": "https://Stackoverflow.com/users/20860", "pm_score": 4, "selected": true, "text": "has_one" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24950/" ]
375,086
<p>I am trying to use the actual numerical value for the month on a sql query to pull results. Is there any way to do this without having a function to change the numbers to actual month names, then back to month numbers? The following code works for Names, what works for numbers?</p> <blockquote> <p>datename(mont...
[ { "answer_id": 376402, "author": "Jamal Hansen", "author_id": 2035722, "author_profile": "https://Stackoverflow.com/users/2035722", "pm_score": 0, "selected": false, "text": "DATEPART(mm, convert(datetime,DTSTAMP))\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375086", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
375,093
<p>I'm trying to achieve something google isn't able to give answer. I'm trying to create an asp.net usercontrol that when I put content into it's open close tag will include it for me to be still able to acess it's content by ID from the Parent. Here is an exemple of what I want to achieve.</p> <p>Usercontrol:</p> <...
[ { "answer_id": 376304, "author": "jpsimard-nyx", "author_id": 47109, "author_profile": "https://Stackoverflow.com/users/47109", "pm_score": 3, "selected": true, "text": "<asp:PlaceHolder runat=\"server\" ID=\"plhContent\" />\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47109/" ]
375,100
<p>When I set a component to visible=false the component hides, but how do I get it to take no space (get the container it belongs to to resize??)</p> <p></p> <pre><code>&lt;mx:HBox width="100%" height="100%"&gt; ... &lt;/mx:HBox&gt; &lt;mx:HBox width="100%" id="boxAddComment" visible="false" &gt; &lt;mx:TextAre...
[ { "answer_id": 375123, "author": "mmattax", "author_id": 1638, "author_profile": "https://Stackoverflow.com/users/1638", "pm_score": 6, "selected": true, "text": "\n<mx:HBox width=\"100%\" height=\"100%\">\n...\n</mx:HBox>\n\n<mx:HBox width=\"100%\" id=\"boxAddComment\" visible=\"false\"...
2008/12/17
[ "https://Stackoverflow.com/questions/375100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/40939/" ]
375,104
<p>If I'm trying to match a quote-delimited string with a regex, which of the following is "better" (where "better" means both more efficient and less likely to do something unexpected):</p> <pre><code>/"[^"]+"/ # match quote, then everything that's not a quote, then a quote </code></pre> <p>or</p> <pre><code>/".+?"...
[ { "answer_id": 375126, "author": "PEZ", "author_id": 44639, "author_profile": "https://Stackoverflow.com/users/44639", "pm_score": 2, "selected": false, "text": "/\".*?\"/\n" }, { "answer_id": 375146, "author": "Douglas Leeder", "author_id": 3978, "author_profile": "h...
2008/12/17
[ "https://Stackoverflow.com/questions/375104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1821/" ]
375,129
<p>I am writing a client for a backup server. My client schedules some folders for backup. (ex: every friday at hour X). I am using for scheduling <strong>cron4j</strong> (a port of Linux cron to java).</p> <p>Everything works nice until i schedule at the same time multiple upload jobs, then due to the multiple thread...
[ { "answer_id": 3686160, "author": "brown.2179", "author_id": 443434, "author_profile": "https://Stackoverflow.com/users/443434", "pm_score": 0, "selected": false, "text": "public class ServerConnection extends Thread {\n\n// the connection to the ftp server\nprivate final Ftp connection...
2008/12/17
[ "https://Stackoverflow.com/questions/375129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47117/" ]
375,132
<p>I have a page generated by php which includes two drop-down lists (SELECTs) which contain a lot of items (about 2,000 each). The page is fine, but when it loads in Firefox, there's a delay during the load, and then it seems to refresh the entire page. If a user tries to click on anything before the "reload" occurs, ...
[ { "answer_id": 3686160, "author": "brown.2179", "author_id": 443434, "author_profile": "https://Stackoverflow.com/users/443434", "pm_score": 0, "selected": false, "text": "public class ServerConnection extends Thread {\n\n// the connection to the ftp server\nprivate final Ftp connection...
2008/12/17
[ "https://Stackoverflow.com/questions/375132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11522/" ]
375,133
<p>If I have the following nvarchar variable - BTA200, how can I extract just the BTA from it?</p> <p>Also, if I have varying lengths such as BTA50, BTA030, how can I extract just the numeric part?</p>
[ { "answer_id": 375145, "author": "RB.", "author_id": 15393, "author_profile": "https://Stackoverflow.com/users/15393", "pm_score": 2, "selected": false, "text": "SELECT LEFT(MyField, 3)\nFROM MyTable\n" }, { "answer_id": 375174, "author": "George Mastros", "author_id": 14...
2008/12/17
[ "https://Stackoverflow.com/questions/375133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33690/" ]
375,141
<p>I've trying to achieve something like this:</p> <pre><code>class Base { public: Base(string S) { ... }; } class Derived: Base { public: int foo; string bar() { return stringof(foo); // actually, something more complex }; Derived(int f) : foo(f), Base(bar()) { }; } </code></pre> <p>...
[ { "answer_id": 375171, "author": "Judge Maygarden", "author_id": 1491, "author_profile": "https://Stackoverflow.com/users/1491", "pm_score": 3, "selected": true, "text": "Derived(int f) : Base(stringof(f)), foo(f) {}\n" }, { "answer_id": 375195, "author": "Johannes Schaub - l...
2008/12/17
[ "https://Stackoverflow.com/questions/375141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1737/" ]
375,150
<p>As the title says, whats the difference between</p> <pre><code>MyFunction = function() { } </code></pre> <p>and</p> <pre><code>function MyFunction() { } </code></pre> <p>Nothing?</p> <p><strong>Duplicate:</strong> <a href="https://stackoverflow.com/questions/336859/javascript-var-functionname-function-vs-func...
[ { "answer_id": 375162, "author": "singpolyma", "author_id": 8611, "author_profile": "https://Stackoverflow.com/users/8611", "pm_score": 0, "selected": false, "text": "var MyFunction = function() {\n}\n" }, { "answer_id": 375180, "author": "Jimmy", "author_id": 4435, "...
2008/12/17
[ "https://Stackoverflow.com/questions/375150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39655/" ]
375,154
<p>Assuming the file exists (using <code>os.path.exists(filename)</code> to first make sure that it does), how do I display the time a file was last modified? This is on Linux if that makes any difference.</p>
[ { "answer_id": 375168, "author": "Douglas Leeder", "author_id": 3978, "author_profile": "https://Stackoverflow.com/users/3978", "pm_score": 7, "selected": true, "text": "import os\nfilename = \"/etc/fstab\"\nstatbuf = os.stat(filename)\nprint(\"Modification time: {}\".format(statbuf.st_m...
2008/12/17
[ "https://Stackoverflow.com/questions/375154", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1288/" ]
375,164
<p>I am using jqGrid of which I downloaded from here <a href="http://www.trirand.com/blog" rel="nofollow noreferrer">http://www.trirand.com/blog</a> . I followed the tutorial word by word to test out the grid. Now the alterations I did is that the page from which the grid gets the data is in asp.net instead of php. </p...
[ { "answer_id": 376774, "author": "Christian Payne", "author_id": 5188, "author_profile": "https://Stackoverflow.com/users/5188", "pm_score": 1, "selected": false, "text": "<script src=\"grid/js/jqDnR.js\" type=\"text/javascript\">\n</script>\n" }, { "answer_id": 530598, "auth...
2008/12/17
[ "https://Stackoverflow.com/questions/375164", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45471/" ]
375,165
<p>I would like to create a visual effect when an item in a listbox is double clicked. So far I have drag and drop functionality where the item is visually attached to the mouse and can be moved to a drop target. From that functionality I am able to animate the item using the same logic of getting the item container, h...
[ { "answer_id": 418918, "author": "jlew", "author_id": 7450, "author_profile": "https://Stackoverflow.com/users/7450", "pm_score": 3, "selected": true, "text": " public static BitmapSource CreateBitmapFromElement(FrameworkElement element, Double dpiX, Double dpiY)\n {\n ...
2008/12/17
[ "https://Stackoverflow.com/questions/375165", "https://Stackoverflow.com", "https://Stackoverflow.com/users/42858/" ]
375,178
<p>I can't find any post regarding the cache on logout so I'm going to ask this question. If there is a similar question. Please let me know.</p> <p>I have a Logout page that basically call FormAuthentications signout method then redirect the user to the login page. It work fine but the problem is user can click on th...
[ { "answer_id": 375686, "author": "Darin Dimitrov", "author_id": 29407, "author_profile": "https://Stackoverflow.com/users/29407", "pm_score": 2, "selected": false, "text": "// Prevent the browser from caching the ASPX page\nResponse.Cache.SetNoStore();\n" }, { "answer_id": 376485...
2008/12/17
[ "https://Stackoverflow.com/questions/375178", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28647/" ]
375,194
<p>suppose that I have this RDBM table (<a href="http://en.wikipedia.org/wiki/Entity-attribute-value_model" rel="nofollow noreferrer">Entity-attribute-value_model</a>):</p> <pre><code>col1: entityID col2: attributeName col3: value </code></pre> <p>and I want to use HBase due to scaling issues.</p> <p>I know that the...
[ { "answer_id": 16921162, "author": "Suman", "author_id": 1203129, "author_profile": "https://Stackoverflow.com/users/1203129", "pm_score": 0, "selected": false, "text": "entityID1 {\n attribute1: value1;\n attribute2: value2;\n ...\n}\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20065/" ]
375,203
<p>my ruby (on rails) class looks like:</p> <p>class Foo def self.method1 someAction end</p> <p>def self.method2 someAction end</p> <p>def someAction //doSmth end end</p> <p>any ideas how to make this work or achieve the same behavior some other way?</p> <p>thanks!</p>
[ { "answer_id": 375224, "author": "Hates_", "author_id": 3410, "author_profile": "https://Stackoverflow.com/users/3410", "pm_score": 1, "selected": false, "text": "class Foo \n\n def self.method1 \n myFoo = Foo.new\n myFoo.someAction \n end\n\n def someAction \n ...
2008/12/17
[ "https://Stackoverflow.com/questions/375203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47124/" ]
375,204
<p>I have a problem. I built a script to make a request to an internal link that sends back a response. This is what the script looks like:</p> <pre><code>jQuery.get(callUrl, function(data) { console.log(typeof data); jQuery.each(data.items, function(i, item) { console.log(i); }); }, 'json'); </code></pre> ...
[ { "answer_id": 375236, "author": "Mark Bell", "author_id": 43140, "author_profile": "https://Stackoverflow.com/users/43140", "pm_score": 4, "selected": true, "text": "({\"items\":[ \n {\n \"src\": \"gallery_item_data_Jc4EaLP6vlwd_large.jpg\",\n \"id\": \"83\",\n \"galle...
2008/12/17
[ "https://Stackoverflow.com/questions/375204", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32816/" ]
375,221
<p>In the unmanaged development world, you could observe the DWORD return value of a method by typing '@eax' into the watch window of the debugger.</p> <p>Does anyone know of an equivalent shortcut in managed code?</p> <p>Related point: I have learned that VS2008 SP1 supports <b>$exception</b> as a magic word in the ...
[ { "answer_id": 375396, "author": "John Mulder", "author_id": 2242, "author_profile": "https://Stackoverflow.com/users/2242", "pm_score": 2, "selected": false, "text": " $ADDRESS address of current instruction\n $CALLER name of the previous function on the call stack\n $CALL...
2008/12/17
[ "https://Stackoverflow.com/questions/375221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47114/" ]
375,223
<p>I have a Panel with a collection of controls in it. How can I get the index of a specific control when iterating through them? I'm using <code>foreach</code> to iterate, but there's no Index property. Should I use <code>for x = 0...</code> and return <code>x</code> when my match is made, or what?</p>
[ { "answer_id": 375242, "author": "Steven Behnke", "author_id": 42588, "author_profile": "https://Stackoverflow.com/users/42588", "pm_score": 3, "selected": false, "text": "panel.Controls.IndexOf(control);\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375223", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28240/" ]
375,248
<p>I came across a problem in my current application that required fiddling with the query string in a base <code>Page</code> class (which all my pages inherit from) to solve the problem. Since some of my pages use the query string I was wondering if there is any class that provides clean and simple query string manipu...
[ { "answer_id": 375304, "author": "technophile", "author_id": 23029, "author_profile": "https://Stackoverflow.com/users/23029", "pm_score": 3, "selected": true, "text": "HttpUtility.ParseQueryString" }, { "answer_id": 375354, "author": "Yona", "author_id": 40007, "auth...
2008/12/17
[ "https://Stackoverflow.com/questions/375248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/40007/" ]
375,252
<p>I have a java applet that is embedded in html using the <code>object-comment-embed</code> method. I would like to resize the applet whenever the browser window is resized. I have found solutions around the internet, but they all work based on the deprecated <code>applet</code> tag.</p> <p>Also, when trying a <code>...
[ { "answer_id": 375290, "author": "Jack", "author_id": 24998, "author_profile": "https://Stackoverflow.com/users/24998", "pm_score": 2, "selected": false, "text": "document.getElementById('MyApplet1').setSize(applet_width, applet_height);\ndocument.getElementById('MyApplet2').setSize(appl...
2008/12/17
[ "https://Stackoverflow.com/questions/375252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7161/" ]
375,259
<p>I'm working on an embedded device that does not support unaligned memory accesses. </p> <p>For a video decoder I have to process pixels (one byte per pixel) in 8x8 pixel blocks. The device has some SIMD processing capabilities that allow me to work on 4 bytes in parallel.</p> <p>The problem is, that the 8x8 pixel ...
[ { "answer_id": 375693, "author": "strager", "author_id": 39992, "author_profile": "https://Stackoverflow.com/users/39992", "pm_score": 2, "selected": false, "text": "memcpy" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15955/" ]
375,262
<p>Let's say I have a payments table like so:</p> <pre><code>CREATE TABLE Payments ( PaymentID INT, CustomerID INT, Value INT, PaidOn DATE ); INSERT INTO Payments VALUES (1, 1, 5, '2000-01-01'), (2, 1, 10, '2000-02-01'), (3, 2, 10, '2000-01-02'), (4, 2, 10, '2000-01-20'), (5, 2, 5, '2000-02-02'), </code></pr...
[ { "answer_id": 375271, "author": "RB.", "author_id": 15393, "author_profile": "https://Stackoverflow.com/users/15393", "pm_score": 3, "selected": true, "text": "SELECT *\nFROM payments p\nWHERE NOT EXISTS (\n SELECT *\n FROM payments p2\n WHERE p2.CustomerID = p.CustomerId\n ...
2008/12/17
[ "https://Stackoverflow.com/questions/375262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/420/" ]
375,265
<p>I've implemented my own event handler and added it to the selection model of the table:</p> <pre><code>table.getSelectionModel().addListSelectionListener(event); </code></pre> <p>And implemented the method for "event" (mentioned above):</p> <pre><code>public void valueChanged(ListSelectionEvent e) { log.debug...
[ { "answer_id": 10186239, "author": "Think Force", "author_id": 1337987, "author_profile": "https://Stackoverflow.com/users/1337987", "pm_score": 4, "selected": false, "text": "vMachinesTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n\n public void val...
2008/12/17
[ "https://Stackoverflow.com/questions/375265", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33429/" ]
375,273
<p>I've long used cygwin's nm command for all my .lib symbol debugging needs, but recently I thought about referring to it in a SO answer and realized that most Windows developers don't have cygwin installed.</p> <p>So what is the Microsoft equivalent to nm, i.e., what command will list the symbols exported by a .lib ...
[ { "answer_id": 53478427, "author": "rashok", "author_id": 596370, "author_profile": "https://Stackoverflow.com/users/596370", "pm_score": 3, "selected": false, "text": "vcvarsall.bat" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34502/" ]
375,287
<p>Is there a way to determine in the child page's code behind that is was opened by the window.open() javascript command from the parent page?</p> <p>The pop-up page contains a user control that is used by other pages that are not spawned from a window.open() command and I want to dynamically add functionality to clo...
[ { "answer_id": 375307, "author": "Ates Goral", "author_id": 23501, "author_profile": "https://Stackoverflow.com/users/23501", "pm_score": 1, "selected": false, "text": "Referer" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26327/" ]
375,291
<p>I am using a ScrollViewer as part of my Silverlight application. It has a horizontal orientation, and I would like it to appear such that only the scroll buttons appear, but not the scroll bar itself. Something like this crude ASCII rendering:</p> <pre><code>------------------------------------------------------ ...
[ { "answer_id": 375794, "author": "Bryant", "author_id": 10893, "author_profile": "https://Stackoverflow.com/users/10893", "pm_score": 1, "selected": false, "text": "<Canvas x:Name=\"root\">\n <Button x:Name=\"left\" Content=\"<\"/>\n <Button x:Name=\"right\" Content=\">\"/>\n <ScrollV...
2008/12/17
[ "https://Stackoverflow.com/questions/375291", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22407/" ]
375,300
<p>I want to decode all the HTML entities in a complicated data structure. Basically I'm looking for a "super map()" function. Here's what I have so far:</p> <pre><code>sub _html_decode { my $self = shift; my $ref = shift; if (ref($ref) eq "HASH") { $self-&gt;_html_decode_hash($ref) } if (...
[ { "answer_id": 375342, "author": "Leon Timmermans", "author_id": 4727, "author_profile": "https://Stackoverflow.com/users/4727", "pm_score": 2, "selected": false, "text": "sub _html_decode {\n my ($self, $ref) = @_;\n\n if (ref($ref) eq \"HASH\") {\n for my $value (values %{...
2008/12/17
[ "https://Stackoverflow.com/questions/375300", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25068/" ]
375,316
<p>Okay, so basically I want to be able to retrieve keyboard text. Like entering text into a text field or something. I'm only writing my game for windows. I've disregarded using Guide.BeginShowKeyboardInput because it breaks the feel of a self contained game, and the fact that the Guide always shows XBOX buttons doesn...
[ { "answer_id": 647273, "author": "Sekhat", "author_id": 1610, "author_profile": "https://Stackoverflow.com/users/1610", "pm_score": 3, "selected": false, "text": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Runtime.InteropService...
2008/12/17
[ "https://Stackoverflow.com/questions/375316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1610/" ]
375,320
<p><img src="https://farm4.static.flickr.com/3200/3116366800_570cc971b9_m.jpg" alt="Screenshot of Drop Down" /></p> <p>This would be my issue I have a drop down that's not displaying fully. I'm not sure even where to start so here's the HTML surronding the drop down and I'll provide the CSS also.</p> <p>HTML</p> <pre><...
[ { "answer_id": 375669, "author": "Jeromy Irvine", "author_id": 8223, "author_profile": "https://Stackoverflow.com/users/8223", "pm_score": 0, "selected": false, "text": "LI" }, { "answer_id": 376197, "author": "palehorse", "author_id": 312, "author_profile": "https://...
2008/12/17
[ "https://Stackoverflow.com/questions/375320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/657/" ]
375,332
<p>I am sorry, my question is stupid, but I am not able to answer it, as a java illiterate. I run a tomcat (5) on CentOS5 (for a CAS server), and when I try to open this URL <a href="http://192.168.1.17:8080/cas-server-webapp-3.3.1/login" rel="nofollow noreferrer">http://192.168.1.17:8080/cas-server-webapp-3.3.1/login<...
[ { "answer_id": 436550, "author": "Jared", "author_id": 44757, "author_profile": "https://Stackoverflow.com/users/44757", "pm_score": 6, "selected": true, "text": "java.lang.ClassNotFoundException" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8404/" ]
375,341
<p>we're in the process of migrating our web app from ASP.NET 1.1 to ASP.NET 3.5. Our app runs on multiple servers through DNS round robin, so every browser request may end up on a different server. We do have a in our web.config to prevent validation errors.</p> <p>However, our plan was to migrate one server at a ti...
[ { "answer_id": 375377, "author": "Chris Van Opstal", "author_id": 7264, "author_profile": "https://Stackoverflow.com/users/7264", "pm_score": 0, "selected": false, "text": "<machineKey validation=\"3DES\">\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47149/" ]
375,345
<p>I'm using .Net 2.0 and this is driving me crazy but there's probably some easy thing I'm not doing that I am now too confused to see.</p> <p>I have an application that has a bespoke collection of objects in it, only the main form should be able to change the contents of that collection and all other forms should be...
[ { "answer_id": 375386, "author": "BenAlabaster", "author_id": 40650, "author_profile": "https://Stackoverflow.com/users/40650", "pm_score": 3, "selected": true, "text": "private myCollection _MyCollection; \npublic myCollection MyCollection { \n get { return _MyCollection.AsReadOnly()...
2008/12/17
[ "https://Stackoverflow.com/questions/375345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
375,348
<p>I am fairly new to using infragistics controls (started yesterday). While they are (very) impressive they do add another layer of complexity, which I am muddeling through. So I am asking what I feel to be a fairly simple issue:</p> <p>I am trying to get the value from another column besides the one that is displaye...
[ { "answer_id": 376186, "author": "Sean", "author_id": 5578, "author_profile": "https://Stackoverflow.com/users/5578", "pm_score": 1, "selected": true, "text": "LastName = ucboPatientInfo.Cells(5).Value\n" }, { "answer_id": 448198, "author": "Tj Kellie", "author_id": 54055...
2008/12/17
[ "https://Stackoverflow.com/questions/375348", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5578/" ]
375,351
<p>I need to randomly 'sort' a list of integers (0-1999) in the most efficient way possible. Any ideas?</p> <p>Currently, I am doing something like this:</p> <pre><code>bool[] bIndexSet = new bool[iItemCount]; for (int iCurIndex = 0; iCurIndex &lt; iItemCount; iCurIndex++) { int iSwapIndex = random.Next(iItemCo...
[ { "answer_id": 375400, "author": "Joseph Ferris", "author_id": 15906, "author_profile": "https://Stackoverflow.com/users/15906", "pm_score": 2, "selected": false, "text": "private ArrayList ShuffleArrayList(ArrayList source)\n{\n ArrayList sortedList = new ArrayList();\n Random gen...
2008/12/17
[ "https://Stackoverflow.com/questions/375351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/44626/" ]
375,355
<p>I work on a database driven website. Most pages' titles are the names of partners we have, and served from a database using php.</p> <p>For example one page might be called "Experian". The problem is that some of the values for partner names don't work because the values are things like </p> <pre><code> $partne...
[ { "answer_id": 375380, "author": "Greg", "author_id": 24181, "author_profile": "https://Stackoverflow.com/users/24181", "pm_score": 1, "selected": false, "text": "$partnername22 = strip_tags('Discover<sup>tm</sup> Magazine');" }, { "answer_id": 375463, "author": "Mike", "...
2008/12/17
[ "https://Stackoverflow.com/questions/375355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43035/" ]
375,356
<p>I have a simple cart page that displays items that are in someones cart, and having it display via an ASP while from my table. I have a column where a user can delete an entry. I have the ASP working properly, now I am trying to add some AJAX in to it. I have the following code:</p> <pre><code>$("img.delete").click...
[ { "answer_id": 375382, "author": "Eran Galperin", "author_id": 10585, "author_profile": "https://Stackoverflow.com/users/10585", "pm_score": 3, "selected": true, "text": " $(\"img.delete\").click(function() {\n var row = $(this).parents('tr:first');\n\n ...\n\n success: fu...
2008/12/17
[ "https://Stackoverflow.com/questions/375356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
375,365
<p>I am trying to make one field in a datagrid editable with a numeric stepper. My current attempts look like they are working, but the dataProvider is not actually being changed.</p> <p>Based on what I have read in a billion different places, the syntax should be </p> <pre>&lt; mx:DataGridColumn dataField="a" itemR...
[ { "answer_id": 375382, "author": "Eran Galperin", "author_id": 10585, "author_profile": "https://Stackoverflow.com/users/10585", "pm_score": 3, "selected": true, "text": " $(\"img.delete\").click(function() {\n var row = $(this).parents('tr:first');\n\n ...\n\n success: fu...
2008/12/17
[ "https://Stackoverflow.com/questions/375365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/40397/" ]
375,368
<p>Is it possible with the wmd editor to add a button to let the user upload an image to the web server and place the corresponding img markdown in the textbox? If not, will another good inplace editor do it? Context: I'm using asp.net mvc, C# and I am a true beginner with javascript.</p>
[ { "answer_id": 375448, "author": "Aaron Maenpaa", "author_id": 2603, "author_profile": "https://Stackoverflow.com/users/2603", "pm_score": 1, "selected": false, "text": "<img src=\"http://your.server.com/path/to/attachments/...\" />\n" }, { "answer_id": 501495, "author": "Chr...
2008/12/17
[ "https://Stackoverflow.com/questions/375368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29244/" ]
375,383
<p>I'm executing the following query:</p> <pre><code>Select guiPolygonID, dbo.fn_Yval(p1X, p1Y, p2X, p2Y, 4.003318) From [vPolygonSegments] Where dbo.fn_Yval(p1X, p1Y, p2X, p2Y, 4.003318) &gt; 0 </code></pre> <p>The important parts of function fn_Yval (all params are of type float):</p> <pre><code>set @m = (@p2Y - @...
[ { "answer_id": 375411, "author": "D'Arcy Rittich", "author_id": 39430, "author_profile": "https://Stackoverflow.com/users/39430", "pm_score": 2, "selected": false, "text": "Select guiPolygonID, dbo.fn_Yval(p1X, p1Y, p2X, p2Y, 4.003318)\nFrom [vPolygonSegments]\nWhere p2X <> p1X and dbo.f...
2008/12/17
[ "https://Stackoverflow.com/questions/375383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3420/" ]
375,390
<p>I have a MOSS 07 site that is configured for anonymous access. There is a document library within this site that also has anonymous access enabled. When an anonymous user clicks on a PDF file in this library, he or she can read or download it with no problem. When a user clicks on an Office document, he or she is pr...
[ { "answer_id": 421914, "author": "savageguy", "author_id": 52555, "author_profile": "https://Stackoverflow.com/users/52555", "pm_score": 1, "selected": false, "text": "<add verb=\"OPTIONS,PROPFIND,PUT,LOCK,UNLOCK....." }, { "answer_id": 6305153, "author": "deepti", "autho...
2008/12/17
[ "https://Stackoverflow.com/questions/375390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
375,395
<p>What is a very good jsp framework to use with Spring MVC. Are the only candidates SiteMesh and Tiles, and others?</p>
[ { "answer_id": 421914, "author": "savageguy", "author_id": 52555, "author_profile": "https://Stackoverflow.com/users/52555", "pm_score": 1, "selected": false, "text": "<add verb=\"OPTIONS,PROPFIND,PUT,LOCK,UNLOCK....." }, { "answer_id": 6305153, "author": "deepti", "autho...
2008/12/17
[ "https://Stackoverflow.com/questions/375395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13143/" ]
375,398
<p>I'd like to use my own diff when working in a clearcase snapshot view. </p> <p>As far as I can see, there is no way to specify a diff tool when running "<code>cleartool diff</code>", so I was thinking I could run something like "<code>mydiff &lt;predecessor file&gt; &lt;modified file in my view&gt;</code>", but I ...
[ { "answer_id": 375437, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 6, "selected": false, "text": "text_file_delta compare ..\\..\\bin\\cleardiff.exe\ntext_file_delta xcompare ..\\..\\bin\\cleardiffmrg.exe...
2008/12/17
[ "https://Stackoverflow.com/questions/375398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47152/" ]
375,406
<p>What is the best way to close an ASPX page from the code-behind? </p> <p>I have a button event handler that I want to close the page after the user has clicked an ASP.NET button on the page. I have tried to programmatically add a JavaScript method that contains a <code>window.close()</code> command to the <code>O...
[ { "answer_id": 375424, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https://Stackoverflow.com/users/3043", "pm_score": 3, "selected": false, "text": "ClientScript.RegisterStartupScript()" }, { "answer_id": 375441, "author": "EndangeredMassa", "author_i...
2008/12/17
[ "https://Stackoverflow.com/questions/375406", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26327/" ]
375,408
<p>If I have 3 different views which are defined in 3 corresponding functions, namely:</p> <pre><code>- (UIView *)getView1 { /*...*/ } - (UIView *)getView2 { /*...*/ } - (UIView *)getView3 { /*...*/ } </code></pre> <p>These are added to <code>self.view</code> when a particular view is required.</p> <p>My question is...
[ { "answer_id": 375690, "author": "codelogic", "author_id": 43427, "author_profile": "https://Stackoverflow.com/users/43427", "pm_score": 3, "selected": false, "text": "self.view" }, { "answer_id": 2450792, "author": "progrmr", "author_id": 1693173, "author_profile": "...
2008/12/17
[ "https://Stackoverflow.com/questions/375408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47156/" ]
375,420
<p>I'm in the process of moving an application from PHP to Java and there is heavy use of regular expressions in the code. I've run across something in PHP that doesn't seem to have a java equivalent:</p> <pre><code>preg_replace_callback() </code></pre> <p>For every match in the regex, it calls a function that is pa...
[ { "answer_id": 375479, "author": "jdmichal", "author_id": 12275, "author_profile": "https://Stackoverflow.com/users/12275", "pm_score": 6, "selected": true, "text": "import java.util.regex.*;\n\npublic class CallbackMatcher\n{\n public static interface Callback\n {\n public ...
2008/12/17
[ "https://Stackoverflow.com/questions/375420", "https://Stackoverflow.com", "https://Stackoverflow.com/users/36316/" ]
375,427
<p>I'm using the <a href="http://docs.python.org/library/subprocess.html" rel="noreferrer">subprocess module</a> to start a subprocess and connect to its output stream (standard output). I want to be able to execute non-blocking reads on its standard output. Is there a way to make .readline non-blocking or to check if ...
[ { "answer_id": 375503, "author": "monkut", "author_id": 24718, "author_profile": "https://Stackoverflow.com/users/24718", "pm_score": 3, "selected": false, "text": "f = open('myprogram_output.txt','w')\np = subprocess.Popen('myprogram.exe', stdout=f)\np.wait()\nf.close()\n\n\nstr = open(...
2008/12/17
[ "https://Stackoverflow.com/questions/375427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5861/" ]
375,449
<p>I have two fields in a table. One contains values such as BTA, BEA, REA. The other contains values such as 1,2,63,103.</p> <p>I want to combine the 2 fields so they look like this BTA001, BTA002, BTA063, BTA103.</p> <p>Notice how if the numbers are not 3 characters in length, I want to pad some 0's to the left o...
[ { "answer_id": 375459, "author": "D'Arcy Rittich", "author_id": 39430, "author_profile": "https://Stackoverflow.com/users/39430", "pm_score": 4, "selected": true, "text": "select Type + right('00' + cast(id as varchar(10)), 3)\nfrom ...\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33690/" ]
375,450
<p>This recent question about <a href="https://stackoverflow.com/questions/375351/most-efficient-way-to-randomly-sort-shuffle-a-list-of-integers-in-c">sorting randomly using C#</a> got me thinking about the way I've sometimes shuffled my arrays in Perl.</p> <pre><code>@shuffled = sort { rand() &lt;=&gt; rand() } @arra...
[ { "answer_id": 375476, "author": "Adam Bellaire", "author_id": 21632, "author_profile": "https://Stackoverflow.com/users/21632", "pm_score": 2, "selected": false, "text": "sort" }, { "answer_id": 375500, "author": "Greg Hewgill", "author_id": 893, "author_profile": "h...
2008/12/17
[ "https://Stackoverflow.com/questions/375450", "https://Stackoverflow.com", "https://Stackoverflow.com/users/40657/" ]
375,455
<p>I'm hooked on bitwise for a new security paradigm I'm creating called VMAC. Variable Matrix Access Control. I want to do logical implication on to bit strings. Just trying to avoid echoeureka (reinventing the wheel). </p> <ol> <li><p>Before I reinvent the wheel, is there an established shortcut to emulate &rArr;...
[ { "answer_id": 375496, "author": "Eclipse", "author_id": 8701, "author_profile": "https://Stackoverflow.com/users/8701", "pm_score": 1, "selected": false, "text": "x -> y \n" }, { "answer_id": 12115036, "author": "Fernando Cuadrado", "author_id": 1564377, "author_prof...
2008/12/17
[ "https://Stackoverflow.com/questions/375455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
375,457
<p>Using VS 2008, here is my COM object</p> <pre><code>using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms; namespace TestCom { [Guid("9E5E5FB2-219D-4ee7-AB27-E4DBED8E123E")] [ClassInterface(ClassInterfaceType.AutoDual)] [...
[ { "answer_id": 375694, "author": "JoshBerke", "author_id": 26160, "author_profile": "https://Stackoverflow.com/users/26160", "pm_score": 1, "selected": false, "text": "Dim o As Object \nSet o = CreateObject(\"Test9.COMINT\") \no.Init \"A\", \"B\"\n" }, { "answer_id": 375995, ...
2008/12/17
[ "https://Stackoverflow.com/questions/375457", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
375,508
<p>How do I remove items from, or add items to, a select box? I'm running jQuery, should that make the task easier. Below is an example select box.</p> <pre><code>&lt;select name="selectBox" id="selectBox"&gt; &lt;option value="option1"&gt;option1&lt;/option&gt; &lt;option value="option2"&gt;option2&lt;/option...
[ { "answer_id": 375573, "author": "dsimard", "author_id": 42866, "author_profile": "https://Stackoverflow.com/users/42866", "pm_score": 10, "selected": true, "text": "$(\"#selectBox option[value='option1']\").remove();" }, { "answer_id": 375631, "author": "Zoredache", "aut...
2008/12/17
[ "https://Stackoverflow.com/questions/375508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1384652/" ]
375,512
<p>I have a custom sharepoint web part that is throwing the following exception:</p> <pre><code>System.Security.SecurityException: Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' f...
[ { "answer_id": 1062146, "author": "Janis Veinbergs", "author_id": 50173, "author_profile": "https://Stackoverflow.com/users/50173", "pm_score": 2, "selected": false, "text": "using (SPSite site = new SPSite(parentWebUrl))\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/285/" ]
375,518
<p>In my code attached below, I'm trying to upload a file via ASP.NET. I am dynamically creating the FileUpload control so that means it's not in my ViewState which (I think) means I can't use the control for uploading files unless I use the old fashioned multipat/form-data way which I don't want to do. I need to be ...
[ { "answer_id": 375538, "author": "thinkbeforecoding", "author_id": 47001, "author_profile": "https://Stackoverflow.com/users/47001", "pm_score": 2, "selected": false, "text": "foreach(HttpPostedFile file in Request.Files)\n file.SaveAs(...);\n" }, { "answer_id": 375623, "aut...
2008/12/17
[ "https://Stackoverflow.com/questions/375518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47167/" ]
375,520
<p>How can i get all the class properties and its sub classes with properties from an RDF datasource using SPARQL query given a class name and namespace?</p>
[ { "answer_id": 636619, "author": "Simon Gibbs", "author_id": 13935, "author_profile": "https://Stackoverflow.com/users/13935", "pm_score": 2, "selected": false, "text": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nSELECT ?subClass ?predicate \nWHERE {\n ?subClass rdfs:subClas...
2008/12/17
[ "https://Stackoverflow.com/questions/375520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43049/" ]
375,524
<p>I have a ASP.NET page which allows an administrator to change the password for a user. Since the administrator does not know the user's password, I am using the following:</p> <pre><code>MembershipUser member = Membership.GetUser(_usernameTextBox.Text); member.ChangePassword(member.ResetPassword(), _passNewTextBox...
[ { "answer_id": 897465, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 4, "selected": false, "text": "/// <summary>\n/// Checks password complexity requirements for the actual membership provider\n/// </summary>\n/// <param name...
2008/12/17
[ "https://Stackoverflow.com/questions/375524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24970/" ]
375,525
<p>I have a conflict when trying to mix those plugins, i have based my script in some demos. The problem is that when i drag something inside the same list it triggers the drop event and that item is added to the end of the list, wich is correct if the item is dropped in another list, but not in the same, when i drop i...
[ { "answer_id": 6958398, "author": "Daniel", "author_id": 880817, "author_profile": "https://Stackoverflow.com/users/880817", "pm_score": 0, "selected": false, "text": "<li>" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/375525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43304/" ]
375,548
<p>I recently asked this question: <a href="https://stackoverflow.com/questions/368521/api-design-expose-xml-or-objects" title="Expose XML or Objects">Expose XML or Objects</a> - thanks all for the responses.</p> <p>One point to clarify.</p> <ul> <li>The API will always be accessed remotely (i.e. as a service), most ...
[ { "answer_id": 375609, "author": "JeeBee", "author_id": 17832, "author_profile": "https://Stackoverflow.com/users/17832", "pm_score": 1, "selected": false, "text": "void addCar(Car newCar);\nCar getCar(String make, String model, String year);\nvoid removeCar(...);\nList<Car> getAllCars()...
2008/12/17
[ "https://Stackoverflow.com/questions/375548", "https://Stackoverflow.com", "https://Stackoverflow.com/users/36860/" ]
375,552
<p>I have a 3rd party XLL addin I'd like to wrap in my own custom vba function. How would I call the 3rd party function from my code?</p>
[ { "answer_id": 375753, "author": "e.James", "author_id": 33686, "author_profile": "https://Stackoverflow.com/users/33686", "pm_score": 6, "selected": true, "text": "Application.Run(...)" }, { "answer_id": 17468786, "author": "CuberChase", "author_id": 1733206, "author...
2008/12/17
[ "https://Stackoverflow.com/questions/375552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1946/" ]
375,563
<p>I am a bit of a newbie to Reg Ex and don't fully understand the difference between the different flavors. However, I have a basic Reg Ex that works when I try it via the UNIX system (vi and grep) but not when I try to to use it in PHP's ereg functions. I suspect there is something different about the PHP ereg functi...
[ { "answer_id": 375568, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 2, "selected": false, "text": "$string = ereg_replace(\"<em\\\\b[^>]*>(.*?)</em>\",\"\\\\1\",$string);\n" }, { "answer_id": 375615, "author"...
2008/12/17
[ "https://Stackoverflow.com/questions/375563", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45838/" ]
375,567
<p>I want to do something like this: </p> <p>page A has a link to page B<br> page B gets content from a database and processes it<br> the result from page B is displayed on a div in page A </p> <p>Please notice that I don't want to leave page A while page B processes the information of the database.</p> <p>What I...
[ { "answer_id": 375919, "author": "feihtthief", "author_id": 320070, "author_profile": "https://Stackoverflow.com/users/320070", "pm_score": 1, "selected": false, "text": "<html>\n<body>\n<script type=\"text/javascript\" src=\"stuff.js\"></script>\nData to process please: <input type=\"te...
2008/12/17
[ "https://Stackoverflow.com/questions/375567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24098/" ]
375,583
<p>I have a nib that I load the usual way</p> <p><code>[NSBundle loadNibNamed:@"AuthorizationWindow" owner:self];</code></p> <p>and I see the window show on the screen briefly, and using NSLog() I can confirm that -awakeFromNib is called, but I can't figure out why the window does not stay on the screen. I had it wor...
[ { "answer_id": 375696, "author": "e.James", "author_id": 33686, "author_profile": "https://Stackoverflow.com/users/33686", "pm_score": 0, "selected": false, "text": "self" }, { "answer_id": 375864, "author": "Boaz Stuller", "author_id": 1464654, "author_profile": "htt...
2008/12/17
[ "https://Stackoverflow.com/questions/375583", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34386/" ]
375,588
<p>Helvetica is available in one form or another on Windows, Mac OS X, and Linux. Under Windows, I can see it from Microsoft Word. On the two UNIX platforms, I can find it with xlsfonts | grep -i helvetica; the name seems to be adobe-helvetica.</p> <p>But the JDK can't find it! It's not listed from GraphicsEnvironm...
[ { "answer_id": 375632, "author": "John T", "author_id": 36457, "author_profile": "https://Stackoverflow.com/users/36457", "pm_score": 2, "selected": false, "text": "Font f = new Font(\"Helvetica\", Font.PLAIN, 10); // make a new font object\n\nObjectName.setFont(f); // set the objects f...
2008/12/17
[ "https://Stackoverflow.com/questions/375588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18103/" ]
375,589
<p>I am getting comfortable writing regular queries in SPARQL, but I'm still having trouble with fancier stuff. My latest problem is trying to select everything except stuff that matches the where clause. For instance, say I want to find all the husbands who like a car color that their wife doesn't like (I'm working ...
[ { "answer_id": 375632, "author": "John T", "author_id": 36457, "author_profile": "https://Stackoverflow.com/users/36457", "pm_score": 2, "selected": false, "text": "Font f = new Font(\"Helvetica\", Font.PLAIN, 10); // make a new font object\n\nObjectName.setFont(f); // set the objects f...
2008/12/17
[ "https://Stackoverflow.com/questions/375589", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35600/" ]