qid
int64
4
22.2M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
373,656
<p>If I have a clone of a git repository as a cached copy on a remote server for capistrano/vlad style deployment, is it better to do A) </p> <pre><code>git archive --format=tar origin/master | (cd #{destination} &amp;&amp; tar xf -) </code></pre> <p>or B)</p> <pre><code>cp -R cached-copy #{destination} &amp;&amp; r...
[ { "answer_id": 373697, "author": "Otto", "author_id": 9594, "author_profile": "https://Stackoverflow.com/users/9594", "pm_score": 2, "selected": false, "text": "capistrano_rsync_with_remote_cache" }, { "answer_id": 373716, "author": "Norman Ramsey", "author_id": 41661, ...
2008/12/17
[ "https://Stackoverflow.com/questions/373656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5830/" ]
373,663
<p>Is there any limitations to the WPF Document.Paragraph object when using the FlowDocument control?</p> <p>I have the FlowDocument turning blank when I add a Paragraph that is more than 450 lines to the Paragraph. I could not locate anything within the MSDN documentation regarding max. lengths etc.</p> <p>Any idea...
[ { "answer_id": 375238, "author": "Robert Macnee", "author_id": 19273, "author_profile": "https://Stackoverflow.com/users/19273", "pm_score": 0, "selected": false, "text": "Paragraph p = new Paragraph();\nfor (int i = 0; i < 10000; i++)\n{\n p.Inlines.Add(new Run(String.Format(\"({0}) ...
2008/12/17
[ "https://Stackoverflow.com/questions/373663", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46304/" ]
373,725
<p>I'm using Apache.</p> <p>I'm auto gzipping my HTML &amp; CSS files on the fly using the following directive in my .htaccess file.</p> <pre><code># Enable ETag FileETag MTime Size # Set expiration header ExpiresActive on ExpiresDefault "access plus 1 year" ExpiresByType image/gif A2592000 ExpiresByType image/png ...
[ { "answer_id": 373737, "author": "Jim Puls", "author_id": 6010, "author_profile": "https://Stackoverflow.com/users/6010", "pm_score": 2, "selected": false, "text": "mime.types" }, { "answer_id": 373769, "author": "Community", "author_id": -1, "author_profile": "https:...
2008/12/17
[ "https://Stackoverflow.com/questions/373725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
373,731
<p>An example of what I'm talking about:</p> <pre><code>class Person &lt; ActiveRecord::Base def name=(name) super(name.capitalize) end def name super().downcase # not sure why you'd do this; this is just an example end end </code></pre> <p>This seems to work, but I was just read the section on overr...
[ { "answer_id": 379576, "author": "Aaron Longwell", "author_id": 32137, "author_profile": "https://Stackoverflow.com/users/32137", "pm_score": 8, "selected": false, "text": "def name=(name)\n write_attribute(:name, name.capitalize)\nend\n\ndef name\n read_attribute(:name).downcase # No...
2008/12/17
[ "https://Stackoverflow.com/questions/373731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
373,761
<p>I'm using php and I have the following code to convert an absolute path to a url.</p> <pre><code>function make_url($path, $secure = false){ return (!$secure ? 'http://' : 'https://').str_replace($_SERVER['DOCUMENT_ROOT'], $_SERVER['HTTP_HOST'], $path); } </code></pre> <p>My question is basically, is there a be...
[ { "answer_id": 373972, "author": "Craig Francis", "author_id": 6632, "author_profile": "https://Stackoverflow.com/users/6632", "pm_score": 2, "selected": false, "text": "function make_url($path, $secure = false){\n return (!$secure ? 'http://' : 'https://').$_SERVER['HTTP_HOST'].str_r...
2008/12/17
[ "https://Stackoverflow.com/questions/373761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46264/" ]
373,762
<p>Simply put:</p> <p>foo.h:</p> <pre><code>#include "bar.h" class foo { private: bar it; void DoIt(); } </code></pre> <p>bar.h:</p> <pre><code>class bar { public: void Test(); } </code></pre> <p>foo.cpp:</p> <pre><code>void foo::DoIt() { it.Test(); } </code></pre> <p>This will result in a:</p> ...
[ { "answer_id": 373765, "author": "mmx", "author_id": 33708, "author_profile": "https://Stackoverflow.com/users/33708", "pm_score": 2, "selected": false, "text": "bar::Test()" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/373762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
373,774
<p>How do I use grep to perform a search which, when a match is found, will print the file name as well as the first n characters in that file? Note that <code>n</code> is a parameter that can be specified and it is irrelevant whether the first n characters actually contains the matching string.</p>
[ { "answer_id": 373780, "author": "Diomidis Spinellis", "author_id": 20520, "author_profile": "https://Stackoverflow.com/users/20520", "pm_score": 2, "selected": false, "text": "grep mypattern *.txt | sed 's/^\\([^:]*:.......\\).*/\\1/'\n" }, { "answer_id": 373799, "author": "...
2008/12/17
[ "https://Stackoverflow.com/questions/373774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23120/" ]
373,776
<p>Windows, Firefox or Google Chrome all monitor usage statistics and analyze the crash reports are sent to them. I am thinking of implementing the same feature into my application. </p> <p>Of course it's easy to litter an application with a lot of logging statement, but this is the approach that I want to avoid becau...
[ { "answer_id": 374057, "author": "ng5000", "author_id": 36860, "author_profile": "https://Stackoverflow.com/users/36860", "pm_score": 1, "selected": false, "text": "public static bool HasPermission( ApplicationActions action )\n{\n // Validate user has permission.\n // Log request ...
2008/12/17
[ "https://Stackoverflow.com/questions/373776", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3834/" ]
373,778
<p>This seems to be an absurdly simple question but Google and Stack Overflow searches yield nothing. How can I disable horizontal scrolling in a WPF <a href="https://learn.microsoft.com/en-gb/dotnet/api/system.windows.controls.listbox" rel="noreferrer">ListBox</a> when items take up more horizontal space than is avail...
[ { "answer_id": 373781, "author": "Jason Anderson", "author_id": 5142, "author_profile": "https://Stackoverflow.com/users/5142", "pm_score": 9, "selected": true, "text": "<ListBox ScrollViewer.HorizontalScrollBarVisibility=\"Disabled\" />\n" }, { "answer_id": 65037978, "author...
2008/12/17
[ "https://Stackoverflow.com/questions/373778", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13877/" ]
373,791
<p>What is the proper way to implement the status bar and navigation bar that go on top of an UIView?</p> <p><a href="http://img.skitch.com/20081217-t78sdixk37hqgdh1ia2fgec4st.png" rel="nofollow noreferrer">alt text http://img.skitch.com/20081217-t78sdixk37hqgdh1ia2fgec4st.png</a></p>
[ { "answer_id": 374981, "author": "August", "author_id": 30966, "author_profile": "https://Stackoverflow.com/users/30966", "pm_score": 5, "selected": false, "text": "[[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleBlackTranslucent];\n" }, { "answer_id": 40493...
2008/12/17
[ "https://Stackoverflow.com/questions/373791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30883/" ]
373,810
<p>I'm sure I once found a shell command which could print the common lines from two or more files. What is its name?</p> <p>It was much simpler than <a href="https://linux.die.net/man/1/diff" rel="noreferrer"><code>diff</code></a>.</p>
[ { "answer_id": 373819, "author": "Jonathan Leffler", "author_id": 15168, "author_profile": "https://Stackoverflow.com/users/15168", "pm_score": 9, "selected": true, "text": "comm" }, { "answer_id": 373823, "author": "Johannes Schaub - litb", "author_id": 34509, "autho...
2008/12/17
[ "https://Stackoverflow.com/questions/373810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28835/" ]
373,832
<p>I am fairly new to programming and while doing a lot of reading this concept of a lambda keeps coming up but I'm having a hard time putting my finger on what it actually is and how implementing it will make my programming life so much better. So first, what is a lambda and second how might it be implemented?</p> <...
[ { "answer_id": 373835, "author": "Eugene Yokota", "author_id": 3827, "author_profile": "https://Stackoverflow.com/users/3827", "pm_score": 2, "selected": false, "text": "times" }, { "answer_id": 373840, "author": "mmx", "author_id": 33708, "author_profile": "https://S...
2008/12/17
[ "https://Stackoverflow.com/questions/373832", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4082/" ]
373,856
<p>I'm hosting a custom editing control in a <code>DataGridView</code>, which for the record is a <code>TextBox</code> and <code>Button</code> together in a <code>UserControl</code>. I have inherited from <code>DataGridViewColumn</code> for the new column and <code>DataGridViewTextBoxCell</code> for the new cell.</p> ...
[ { "answer_id": 1067575, "author": "Stefan Schönbächler", "author_id": 1626985, "author_profile": "https://Stackoverflow.com/users/1626985", "pm_score": 1, "selected": false, "text": "OnKeyPress" }, { "answer_id": 4851137, "author": "bodziec", "author_id": 249136, "aut...
2008/12/17
[ "https://Stackoverflow.com/questions/373856", "https://Stackoverflow.com", "https://Stackoverflow.com/users/44853/" ]
373,872
<p><strong>First of all i am doing a Windows application. Not a web application.</strong></p> <p>Now i am doing on application to send SMS (Short message) from System to Mobile.</p> <p>Here, i am using a http URL to push the message having parameters To (number) and Msg (test message).</p> <p>after forming the URL, ...
[ { "answer_id": 373874, "author": "Eugene Yokota", "author_id": 3827, "author_profile": "https://Stackoverflow.com/users/3827", "pm_score": 0, "selected": false, "text": "using System;\nusing System.Net;\nusing System.IO;\n\npublic class Test\n{\n public static void Main (string[] args...
2008/12/17
[ "https://Stackoverflow.com/questions/373872", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
373,881
<p>I always forget to write subject in email, so I want make the subject field compulsory. Can you help me please?</p>
[ { "answer_id": 373921, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 2, "selected": false, "text": "Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As Boolean)\n\n If Item.Subject = \"\" Then\n Item...
2008/12/17
[ "https://Stackoverflow.com/questions/373881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
373,888
<p>When I use (in MS Access 2003 SP3): </p> <pre><code>SELECT * INTO NewTable FROM SomeQuery; </code></pre> <p>MEMO fields are converted to TEXT fields (which are limited to 255 characters), so longer texts are cut.</p> <p>The output of the query itself is fine and not truncated; the text is cut only in the new tabl...
[ { "answer_id": 373896, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 2, "selected": false, "text": "set Unique" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/373888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46967/" ]
373,895
<p>Can someone please walk me through the process of loading a class or package in JSP with Tomcat?</p> <p>I think it might just be a Tomcat setup issue :S my JSP file runs fine without importing or using dbpool or dbpooljar. I've tried many suggestions to other peoples similar issues without any luck. Any help would ...
[ { "answer_id": 374448, "author": "Olaf Kock", "author_id": 13447, "author_profile": "https://Stackoverflow.com/users/13447", "pm_score": 1, "selected": false, "text": "package dbpooljar;\npublic class DBPool { ...\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/373895", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46953/" ]
373,900
<p>As usual, when my brain's messing with something I can't figure out myself, I come to you guys for help :)</p> <p>This time I've been wondering why stdafx.h works the way it does? To my understanding it does 2 things:</p> <ul> <li>Includes standard headers which we <em>might</em> (?) use and which are rarely chang...
[ { "answer_id": 373905, "author": "mmx", "author_id": 33708, "author_profile": "https://Stackoverflow.com/users/33708", "pm_score": 2, "selected": false, "text": "stdafx.h" }, { "answer_id": 373909, "author": "Tuminoid", "author_id": 40657, "author_profile": "https://S...
2008/12/17
[ "https://Stackoverflow.com/questions/373900", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25745/" ]
373,917
<p>Are there any open source real time operating systems out there? I've heard of real-time Linux, but most implementations seem to really be a proprietary RTOS (that you have to pay for) that run Linux as a process -- much the same way Ardence's RTX real-time system works for Windows.</p> <p>EDIT: I should clarify t...
[ { "answer_id": 949393, "author": "uɐɪ", "author_id": 117160, "author_profile": "https://Stackoverflow.com/users/117160", "pm_score": 2, "selected": false, "text": "* Supported processor families: Any x86 compatible running in Real mode only, plus a Win32 simulator\n* Supported tools: Ope...
2008/12/17
[ "https://Stackoverflow.com/questions/373917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6386/" ]
373,925
<p>I need a solution to export a dataset to an excel file without any asp code (HttpResonpsne...) but i did not find a good example to do this...</p> <p>Best thanks in advance</p>
[ { "answer_id": 373954, "author": "lc.", "author_id": 44853, "author_profile": "https://Stackoverflow.com/users/44853", "pm_score": 6, "selected": true, "text": "DataGridView" }, { "answer_id": 8341866, "author": "Mike Gledhill", "author_id": 391605, "author_profile": ...
2008/12/17
[ "https://Stackoverflow.com/questions/373925", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46973/" ]
373,968
<p>I have a class that parses very large file (that can't fit in memory) and I'm currently utilizing the IEnumerable interface to use foreach so I can easily grab the parsed contents of the file line by line. Currently, I'm trying to write this to file using an XMLSerializer. It insists on enumerating the class and i...
[ { "answer_id": 373984, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": false, "text": "IXmlSerializable" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/373968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1469014/" ]
373,988
<p>I'm curious How do you people think ? (I mean a way of thinking) about design architecture of your Libraries, Systems, Frameworks, etc. before start coding it.</p> <p>I recently find my self feeling pain in what I've done, and practically every time I want to start everything from scratch..</p> <p>I do design befo...
[ { "answer_id": 374142, "author": "Stephen Belanger", "author_id": 46981, "author_profile": "https://Stackoverflow.com/users/46981", "pm_score": 0, "selected": false, "text": "if arguements.debug:\n debug.init()\n\ntry:\n graphics.init()\n sound.init()\n physics.init()\n in...
2008/12/17
[ "https://Stackoverflow.com/questions/373988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5369/" ]
374,007
<p>Everything was going well. Nightly builds ran for more than a month with no problems. However, suddenly when invoking the feature builder from Eclipse the execution ends right away with the message.</p> <p>ERRORLEVEL 13</p> <p>As far as I know I haven't changed anything, as this computer is normally not touched....
[ { "answer_id": 374138, "author": "Mario Ortegón", "author_id": 2309, "author_profile": "https://Stackoverflow.com/users/2309", "pm_score": 3, "selected": true, "text": "application org.eclipse.sdk not found\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374007", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2309/" ]
374,009
<p>Setup is SQL2005 SP2 with Reporting Services installed local on Win2003 64bit. When users browse report manager on <a href="http://server/reports" rel="nofollow noreferrer">http://server/reports</a> they get login dialog for every request, but only if they use IE7. In FireFox all works.</p> <p>The site is in "local...
[ { "answer_id": 374138, "author": "Mario Ortegón", "author_id": 2309, "author_profile": "https://Stackoverflow.com/users/2309", "pm_score": 3, "selected": true, "text": "application org.eclipse.sdk not found\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24595/" ]
374,014
<p>Is there any reason for the use of 'T' in generics? Is it some kind of abbreviation? As far as I know, everything works. For example </p> <pre><code>public G Say&lt;G&gt;(){ ... } </code></pre> <p>or even</p> <pre><code>public Hello Say&lt;Hello&gt;(){ ... } </code></pre>
[ { "answer_id": 374023, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": false, "text": "Dictionary<TKey, TValue>" }, { "answer_id": 374029, "author": "Vilx-", "author_id": 41360, "author_p...
2008/12/17
[ "https://Stackoverflow.com/questions/374014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31722/" ]
374,024
<p>We have a web application project (not a web site), until the day we have added batch="false" to web.config web development server was compiling all the web application instead of the page that was requested.</p> <pre><code>&lt;compilation debug="true" batch="false"&gt; &lt;assemblies&gt; ... &l...
[ { "answer_id": 374023, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": false, "text": "Dictionary<TKey, TValue>" }, { "answer_id": 374029, "author": "Vilx-", "author_id": 41360, "author_p...
2008/12/17
[ "https://Stackoverflow.com/questions/374024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35012/" ]
374,025
<p>I have two branches : X and Y. I want to replace a Y's subdirectory (y1) by its equivalent from X (x1).</p> <p>For the time being, I do the following : copy x1 to Y, remove y1, rename (move) x1 to y1 :</p> <pre><code>a) svn copy https://path/to/branches/X/x1 https://path/to/branches/Y/ b) svn delete https://path/t...
[ { "answer_id": 374053, "author": "Martin v. Löwis", "author_id": 33006, "author_profile": "https://Stackoverflow.com/users/33006", "pm_score": 3, "selected": true, "text": "svn delete https://path/to/branches/Y/y1\nsvn copy https://path/to/branches/X/x1 https://path/to/branches/Y/y1\n" ...
2008/12/17
[ "https://Stackoverflow.com/questions/374025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20986/" ]
374,032
<p>How can I use Doxygen to create the HTML documentation as a single, very long file? I want something like the RTF output, but as HTML.</p> <p>The reason: I need my API published as a single, printable, document. Something that can be loaded into Word, converted to PDF, etc.</p>
[ { "answer_id": 374073, "author": "ChrisN", "author_id": 3853, "author_profile": "https://Stackoverflow.com/users/3853", "pm_score": 2, "selected": false, "text": "GENERATE_LATEX" }, { "answer_id": 374112, "author": "wimh", "author_id": 33499, "author_profile": "https:...
2008/12/17
[ "https://Stackoverflow.com/questions/374032", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38557/" ]
374,040
<p>When I disable input elements the text is taking the font color: <code>#000000</code> in Firefox. This is not happening in IE. Please check the below page in IE and Firefox. Let me know how to give it a gray look as in IE.<br /> <a href="http://shivanand.in/tmp/test.html" rel="nofollow noreferrer">test</a></p>
[ { "answer_id": 374078, "author": "ng.mangine", "author_id": 37784, "author_profile": "https://Stackoverflow.com/users/37784", "pm_score": 4, "selected": true, "text": "[disabled] {\n color:#ff0000;\n background-color:#00ff00;\n}\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34642/" ]
374,041
<p>I am familiar with inserting text nodes after or before a given reference node. But, I would like to know how to insert a tag between text in a given node. For example, </p> <pre><code>Before insertion: &lt;p&gt;Lorem dolor&lt;/p&gt; After insertion: &lt;p&gt;Lorem &lt;span&gt;ipsum&lt;/span&gt; dolor&lt;/p&gt; </c...
[ { "answer_id": 374048, "author": "Vilx-", "author_id": 41360, "author_profile": "https://Stackoverflow.com/users/41360", "pm_score": 1, "selected": false, "text": "innerHTML" }, { "answer_id": 374054, "author": "Greg", "author_id": 24181, "author_profile": "https://St...
2008/12/17
[ "https://Stackoverflow.com/questions/374041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,043
<p>We have a fairly large group of Maven2 projects, with a root POM file listing 10+ modules and a lot of properties used by the modules (dependency version numbers, plugin configuration, common dependencies, etc). Some of the modules are, like the root project, parents to other sets of modules. </p> <p>To clarify, th...
[ { "answer_id": 374083, "author": "Martin", "author_id": 24364, "author_profile": "https://Stackoverflow.com/users/24364", "pm_score": 0, "selected": false, "text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projectDescription>\n <name>${project.name}</name>\n <comment></...
2008/12/17
[ "https://Stackoverflow.com/questions/374043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35014/" ]
374,046
<p>Sample</p> <pre><code>void func(void* data) { CResource* resource = (CResource*)data; delete resource; // ~CResource never called. resource = NULL; } </code></pre> <p>Kindly help me to figure out this.</p>
[ { "answer_id": 374066, "author": "Suma", "author_id": 16673, "author_profile": "https://Stackoverflow.com/users/16673", "pm_score": 4, "selected": false, "text": "class CResource;\n\nvoid func(void* data)\n{\n CResource* resource = (CResource*)data;\n delete resource; // ~CResource never...
2008/12/17
[ "https://Stackoverflow.com/questions/374046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,059
<p>I am using http remoting in C# to talk between two applications. Earlier when I was running both applications on a single machine/two machines, it was very slow. We have a proxy server to connect to the internet. We set "Bypass proxy server for local addresses" in IE and now when I run both applications on one mach...
[ { "answer_id": 374105, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 1, "selected": false, "text": "MarshalByRefObject" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374059", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,061
<p>I build JQuery/JS/PHP/mySQL app with DB records management and need to provide reliable &amp; complete feedback to the user on AJAX calls, modifying back end DB records. The problem IMHO is <code>$.ajax</code> <code>success:</code> and <code>error:</code> functions indicate just AJAX transport layer success and not ...
[ { "answer_id": 374069, "author": "Rik Heywood", "author_id": 4012, "author_profile": "https://Stackoverflow.com/users/4012", "pm_score": 2, "selected": false, "text": "{ \n errorstate: 0,\n errormsg: \"All systems are go\",\n displaytext: \"stuff I want to display when all goes ...
2008/12/17
[ "https://Stackoverflow.com/questions/374061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,079
<p>I have the following table and data in SQL Server 2005:</p> <pre><code>create table LogEntries ( ID int identity, LogEntry varchar(100) ) insert into LogEntries values ('beans') insert into LogEntries values ('beans') insert into LogEntries values ('beans') insert into LogEntries values ('cabbage') insert into...
[ { "answer_id": 374096, "author": "The Archetypal Paul", "author_id": 21755, "author_profile": "https://Stackoverflow.com/users/21755", "pm_score": 1, "selected": false, "text": "SELECT LogEntry, COUNT(1) AS Counter FROM LogEntries GROUP BY LogEntry\n" }, { "answer_id": 374104, ...
2008/12/17
[ "https://Stackoverflow.com/questions/374079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/571/" ]
374,081
<p>I have a Visual&nbsp;Studio&nbsp;2008 solution, and I would like to include a real folder in the solution, but not at the project level, instead at the solution level. </p> <p>I noticed you can right click the solution and add a solution folder, but it comes up as some white folder, and I have my doubts as to exact...
[ { "answer_id": 4864885, "author": "Allen Wang", "author_id": 179252, "author_profile": "https://Stackoverflow.com/users/179252", "pm_score": 3, "selected": false, "text": "New Physical Folder" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374081", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41291/" ]
374,082
<p>I have made a custom UserControl i Vb.net (windows application).</p> <p>How can I add this dynamically to a form?</p>
[ { "answer_id": 374101, "author": "Vilx-", "author_id": 41360, "author_profile": "https://Stackoverflow.com/users/41360", "pm_score": 5, "selected": true, "text": "Dim X As New MyControl()" }, { "answer_id": 374113, "author": "Thomas Hansen", "author_id": 29746, "autho...
2008/12/17
[ "https://Stackoverflow.com/questions/374082", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26567/" ]
374,084
<p>I understand that by simply adding a script to the end of the body tag of a html document one makes it processable by Google analytics. My question is, is this likely to have much effect on performance (download time and server load)? Let's assume a static page of say 100k served by IIS. Thanks.</p>
[ { "answer_id": 376495, "author": "Jan Aagaard", "author_id": 37147, "author_profile": "https://Stackoverflow.com/users/37147", "pm_score": 3, "selected": false, "text": "window.onload" }, { "answer_id": 777948, "author": "Piskvor left the building", "author_id": 19746, ...
2008/12/17
[ "https://Stackoverflow.com/questions/374084", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29644/" ]
374,085
<p>I've got HTML code that roughly looks like this:</p> <pre><code>&lt;li id="someid-11"&gt; &lt;img src="..." alt="alt" /&gt; &lt;h2&gt;&lt;a href="somelink"&gt; sometext &lt;/a&gt; &lt;span&gt;&lt;a class="editcontent" href="?action=editme"&gt;Edit&lt;/a&gt;&lt;/span&gt; &lt;/h2&gt; &lt;div id="11" class="conte...
[ { "answer_id": 374140, "author": "okoman", "author_id": 35903, "author_profile": "https://Stackoverflow.com/users/35903", "pm_score": 2, "selected": false, "text": "<li id=\"someid-11\">\n\n<img src=\"...\" alt=\"alt\" />\n<h2><a href=\"somelink\"> sometext </a>\n <span><a rel=\"11\" ...
2008/12/17
[ "https://Stackoverflow.com/questions/374085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1011/" ]
374,086
<p>Aloha</p> <p>I received a nice wsdl with xs: documentation tags like:</p> <pre><code>&lt;xs:complexType name="Supplier"&gt; &lt;xs:annotation&gt; &lt;xs:documentation&gt; The supplier of the product &lt;/xs:documentation&gt; &lt;/xs:annotation&gt; </code></pre> <p>Is there any way to generate <c...
[ { "answer_id": 374140, "author": "okoman", "author_id": 35903, "author_profile": "https://Stackoverflow.com/users/35903", "pm_score": 2, "selected": false, "text": "<li id=\"someid-11\">\n\n<img src=\"...\" alt=\"alt\" />\n<h2><a href=\"somelink\"> sometext </a>\n <span><a rel=\"11\" ...
2008/12/17
[ "https://Stackoverflow.com/questions/374086", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6399/" ]
374,099
<p>I have to pass some parameter from an action to another action,for example to keep trace of an event. </p> <p>What is the best way to do that? </p> <p>I would not use session parameters. Thanks</p>
[ { "answer_id": 374119, "author": "krosenvold", "author_id": 23691, "author_profile": "https://Stackoverflow.com/users/23691", "pm_score": 5, "selected": true, "text": " <s:action name=\"myAction\" ignoreContextParams=\"true\" executeResult=\"true\">\n <s:param name=\"foo\" val...
2008/12/17
[ "https://Stackoverflow.com/questions/374099", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39339/" ]
374,109
<p><a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/7ab67d24-6afa-4be6-855e-e260845a47e2/" rel="noreferrer">Tell me it ain't so</a>.</p> <p>I have a typical windows/file explorer like setup.</p> <ul> <li>Left Side I have a TreeView all data bound showing nodes in a hierachy</li> <li>Right Side I have...
[ { "answer_id": 374380, "author": "Gishu", "author_id": 1695, "author_profile": "https://Stackoverflow.com/users/1695", "pm_score": 0, "selected": false, "text": "// the XAML\n<TreeView DockPanel.Dock=\"Left\" x:Name=\"tvwNodes\" ItemsSource=\"{Binding}\" SelectedItemChanged=\"OnNewNodeSe...
2008/12/17
[ "https://Stackoverflow.com/questions/374109", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1695/" ]
374,134
<p>I'm having troubles with a regexp. I'm looking through a set of XML files, and trying to detect some text inside specific nodes that contain a line break.</p> <p>Here is some sample data:</p> <pre><code>&lt;item name='GenMsgText'&gt;&lt;text&gt;The signature will be discarded.&lt;/text&gt;&lt;/item&gt; &lt;item n...
[ { "answer_id": 374144, "author": "bezmax", "author_id": 43677, "author_profile": "https://Stackoverflow.com/users/43677", "pm_score": 0, "selected": false, "text": "<item name='GenMsgText'>(<textlist>)?<text>(.*\\n.*)</text>\n" }, { "answer_id": 374476, "author": "Tomalak", ...
2008/12/17
[ "https://Stackoverflow.com/questions/374134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29568/" ]
374,135
<p>We have several legacy applications which use Access databases for storing data and/or configuration. </p> <p>Sometimes we have to do small changes or corrections at our customers databases. (Adding an index, modifying a data row, ...) In many cases Access is available on the customers' workstations, but sometimes ...
[ { "answer_id": 374230, "author": "Fionnuala", "author_id": 2548, "author_profile": "https://Stackoverflow.com/users/2548", "pm_score": 2, "selected": false, "text": "Dim adoCn\nDim adoCat\nDim adoTbl\n\nstrLinkFile = \"C:\\Docs\\DB1.mdb\"\nstrAccessFile = \"C:\\Docs\\LTD.mdb\"\n\n'Create...
2008/12/17
[ "https://Stackoverflow.com/questions/374135", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23368/" ]
374,152
<p>I am trying to format some bad html to output into a pop window. The html is stored in a field in a mysql database.</p> <p>I have been performing json_encode and htmlspecialchars on the row in the php like so:</p> <pre><code>$html = htmlentities(json_encode($row2['ARTICLE_DESC'])); </code></pre> <p>and calling my...
[ { "answer_id": 374170, "author": "Greg", "author_id": 24181, "author_profile": "https://Stackoverflow.com/users/24181", "pm_score": 2, "selected": true, "text": "<p><a href='#' onclick=\\\"makewindows(\" . $html . \"); return false;\\\">Click for full description </a></p>\n" }, { ...
2008/12/17
[ "https://Stackoverflow.com/questions/374152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1246613/" ]
374,155
<p>Does there exist any way in .Net to check before opening if a file (on a local network drive) is already in use?</p>
[ { "answer_id": 374162, "author": "mmx", "author_id": 33708, "author_profile": "https://Stackoverflow.com/users/33708", "pm_score": 3, "selected": true, "text": "CIM_DataFile" }, { "answer_id": 374285, "author": "faulty", "author_id": 20007, "author_profile": "https://...
2008/12/17
[ "https://Stackoverflow.com/questions/374155", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,156
<p>I have the following Query and i need the query to fetch data from SomeTable based on the filter criteria present in the Someothertable. If there is nothing present in SomeOtherTable Query should return me all the data present in SomeTable</p> <p>SQL SERVER 2005</p> <p>SomeOtherTable does not have any indexes or ...
[ { "answer_id": 374178, "author": "Matthew Wright", "author_id": 47006, "author_profile": "https://Stackoverflow.com/users/47006", "pm_score": 2, "selected": false, "text": "SELECT\n *\nFROM\n SomeTable\nLEFT JOIN SomeOtherTable ON SomeTable.ID=SomeOtherTable.ID AND Name = 'ABC'\nWH...
2008/12/17
[ "https://Stackoverflow.com/questions/374156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21195/" ]
374,157
<p>We need to interface to 3rd party app, but company behind the app doesn't disclose message protocol and provides only Windows DLL to interface to.</p> <p>Our application is Linux-based so I cannot directly communicate with DLL. I couldn't find any existing solution so I'm considering writing socket-based bridge betw...
[ { "answer_id": 33337063, "author": "casualcoder", "author_id": 10578, "author_profile": "https://Stackoverflow.com/users/10578", "pm_score": 1, "selected": false, "text": "objdump -d" }, { "answer_id": 47672142, "author": "s-m-e", "author_id": 1672565, "author_profile...
2008/12/17
[ "https://Stackoverflow.com/questions/374157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28494/" ]
374,217
<p>I have a C++ header that contains #define statements, Enums and Structures. I have tried using the h2py.py script that is included with Python to no avail (except giving me the #defines converted). Any help would be greatly appreciated.</p>
[ { "answer_id": 375101, "author": "S.Lott", "author_id": 10661, "author_profile": "https://Stackoverflow.com/users/10661", "pm_score": 0, "selected": false, "text": "# Read #define's and translate to Python code.\n# Handle #include statements.\n# Handle #define macros with one argument.\n...
2008/12/17
[ "https://Stackoverflow.com/questions/374217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47013/" ]
374,229
<p>I have a field in my report that needs to have a length of 40. If the string is not of that length I need to append some space. </p> <p>Thanks.</p>
[ { "answer_id": 12199574, "author": "spish", "author_id": 1636367, "author_profile": "https://Stackoverflow.com/users/1636367", "pm_score": 2, "selected": false, "text": "mid( (yourfield + space(40)), 1, 40) \n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,238
<p>I'm trying to get the unitpngfix to work but I can't seem to get the png to show up in IE6.</p> <p>This this my code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style type="text/css"&gt; #boxouter { width: 12em; height: 12em; background: url(gradient.gif) #ffdf00 bottom repeat...
[ { "answer_id": 394434, "author": "GateKiller", "author_id": 383, "author_profile": "https://Stackoverflow.com/users/383", "pm_score": -1, "selected": false, "text": "background-image: url(corner.png);\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,245
<p>for the xml </p> <pre><code>&lt;grandparent&gt; &lt;parent1&gt; &lt;child&gt;data1&lt;/child&gt; &lt;/parent1&gt; &lt;parent2&gt; &lt;child&gt;data2&lt;/child&gt; &lt;/parent2&gt; &lt;/grandparent&gt; </code></pre> <p>I need the list containing tuples of parent,data for each parent in xml.</p> <...
[ { "answer_id": 374565, "author": "Mapad", "author_id": 28165, "author_profile": "https://Stackoverflow.com/users/28165", "pm_score": 3, "selected": false, "text": "child.find('../parent')" }, { "answer_id": 12533735, "author": "watbywbarif", "author_id": 378783, "auth...
2008/12/17
[ "https://Stackoverflow.com/questions/374245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2220518/" ]
374,267
<p>I'm trying to create a query which uses a list of ids in the where clause, using the Silverlight ADO.Net Data Services client api (and therefore Linq To Entities). Does anyone know of a workaround to Contains not being supported?</p> <p>I want to do something like this:</p> <pre><code>List&lt;long?&gt; txnIds = ne...
[ { "answer_id": 374298, "author": "AndreasN", "author_id": 24821, "author_profile": "https://Stackoverflow.com/users/24821", "pm_score": 2, "selected": false, "text": "var q = from t in svc.OpenTranaction\n where txnIds.Any(t.OpenTransactionId)\n select t;\n" }, { "a...
2008/12/17
[ "https://Stackoverflow.com/questions/374267", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38249/" ]
374,268
<p>I am involved in writing a little internal SharePoint portal for our company. I thought it would be a 'quick win' to get create a web part that would display the user's unread mail count, and possibly a list of today's calendar tasks. However, I have had a hunt around for information to do with OWA web services stuf...
[ { "answer_id": 374375, "author": "caltuntas", "author_id": 36474, "author_profile": "https://Stackoverflow.com/users/36474", "pm_score": 2, "selected": false, "text": " MAPI.Folder inboxFolder = Inbox;\n MAPI.Messages messages = (Messages) inboxFolder.Messages;\n ...
2008/12/17
[ "https://Stackoverflow.com/questions/374268", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5552/" ]
374,305
<p>I was wondering if anyone has any preference for referencing images/ css or javascript files in their sites?</p> <p>The reason I ask is if a client wants to host the site we've writen under a virtual directory, the site usually has to have it's file references changed - even down to url (...image path) in CSS files...
[ { "answer_id": 374315, "author": "Andreas Grech", "author_id": 44084, "author_profile": "https://Stackoverflow.com/users/44084", "pm_score": 5, "selected": true, "text": "/img/a.gif\n/css/c.css\n" }, { "answer_id": 374319, "author": "Jonathan Lonowski", "author_id": 15031...
2008/12/17
[ "https://Stackoverflow.com/questions/374305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5791/" ]
374,313
<p>Recently our svn server was changed and we did a svn switch.</p> <p>Since the working copy had a huge amount of unversioned resources, the working copy got locked and we started switching folder by folder for all folders under svn, which works perfectly fine.</p> <p>But at the top most level of the repository, whe...
[ { "answer_id": 374337, "author": "JesperE", "author_id": 13051, "author_profile": "https://Stackoverflow.com/users/13051", "pm_score": 8, "selected": true, "text": "svn cleanup" }, { "answer_id": 936827, "author": "Ken Arnold", "author_id": 69707, "author_profile": "h...
2008/12/17
[ "https://Stackoverflow.com/questions/374313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27474/" ]
374,316
<p>If I have a double (234.004223), etc., I would like to round this to x significant digits in C#.</p> <p>So far I can only find ways to round to x decimal places, but this simply removes the precision if there are any 0s in the number.</p> <p>For example, 0.086 to one decimal place becomes 0.1, but I would like it ...
[ { "answer_id": 374360, "author": "Bravax", "author_id": 13911, "author_profile": "https://Stackoverflow.com/users/13911", "pm_score": 2, "selected": false, "text": "double Input2 = 234.004223;\nstring Result2 = Math.Floor(Input2) + Convert.ToDouble(String.Format(\"{0:G1}\", Input2 - Math...
2008/12/17
[ "https://Stackoverflow.com/questions/374316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47026/" ]
374,326
<p>How can I get the filename from a file path in Ruby?</p> <p>For example if I have a path of <code>"C:\projects\blah.dll"</code> and I just want the "blah".</p> <p>Is there a <code>LastIndexOf</code> method in Ruby?</p>
[ { "answer_id": 374345, "author": "Jonathan Lonowski", "author_id": 15031, "author_profile": "https://Stackoverflow.com/users/15031", "pm_score": 9, "selected": false, "text": "File.basename" }, { "answer_id": 374351, "author": "krusty.ar", "author_id": 43981, "author_...
2008/12/17
[ "https://Stackoverflow.com/questions/374326", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11755/" ]
374,330
<p>I'd like to know how to convert this vb script to C#</p> <pre><code>Dim strFolder As String Dim objShell As Object strFolder = "C:\zz" Set objShell = CreateObject("Wscript.Shell") objShell.Run "%COMSPEC% /c Echo Y| cacls " &amp; _ strFolder &amp; _ " /t /c /g everyone:F ", 2, Tr...
[ { "answer_id": 374413, "author": "tvanfosson", "author_id": 12950, "author_profile": "https://Stackoverflow.com/users/12950", "pm_score": 0, "selected": false, "text": "cacls" }, { "answer_id": 374422, "author": "Community", "author_id": -1, "author_profile": "https:/...
2008/12/17
[ "https://Stackoverflow.com/questions/374330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,339
<p>This would be very handy as typecasting gets boring fast.</p>
[ { "answer_id": 374346, "author": "krosenvold", "author_id": 23691, "author_profile": "https://Stackoverflow.com/users/23691", "pm_score": 5, "selected": true, "text": " List<String> myList = new ArrayList<String>();\n myList.add(\" a test\");\n String temp = myList.get(0);\n" }, { ...
2008/12/17
[ "https://Stackoverflow.com/questions/374339", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11911/" ]
374,348
<p>Recently I worked on FindBugs warnings about exposing internal state, i.e. when a reference to an array was returned instead of returning a copy of the array. I created some templates to make converting that code easier.</p> <p>Which one did you create to support defensive programming and want to share with the SO ...
[ { "answer_id": 374408, "author": "Markus", "author_id": 45064, "author_profile": "https://Stackoverflow.com/users/45064", "pm_score": 2, "selected": false, "text": "array.clone()" }, { "answer_id": 374428, "author": "VonC", "author_id": 6309, "author_profile": "https:...
2008/12/17
[ "https://Stackoverflow.com/questions/374348", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16193/" ]
374,386
<p>This appears to be the most commonly asked C# interop question and yet seems to be difficult to find a working solution for.</p> <p>I am in need of allocating an array of matrix datastructure in C# passing it to a C DLL which fills up the data and returns it to the caller to deal with.</p> <p>Based on various page...
[ { "answer_id": 379324, "author": "Darin Dimitrov", "author_id": 29407, "author_profile": "https://Stackoverflow.com/users/29407", "pm_score": 0, "selected": false, "text": "#include \"stdafx.h\"\n#include \"TestLib.h\"\n#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n\nextern...
2008/12/17
[ "https://Stackoverflow.com/questions/374386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,396
<p>Does anyone know of a good open-source zipping library for .NET?</p>
[ { "answer_id": 374404, "author": "Oli", "author_id": 12870, "author_profile": "https://Stackoverflow.com/users/12870", "pm_score": 6, "selected": true, "text": ".gz" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38498/" ]
374,398
<p>Is it safe to assume that event subscribers are called in order of subscription?<br> Example: </p> <pre><code>void One(object sender, EventArgs e) {} void Two(object sender, EventArgs e) {} event EventHandler foo; foo += One; foo += Two; </code></pre> <p>Is One() always called before Two() when the event is fir...
[ { "answer_id": 374426, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 7, "selected": true, "text": "myHandler += value;\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8976/" ]
374,399
<p>In C++, I can't think of a case in which I would like to inherit private/protected from a base class:</p> <pre><code>class Base; class Derived1 : private Base; class Derived2 : protected Base; </code></pre> <p>Is it really useful?</p>
[ { "answer_id": 374414, "author": "Johannes Schaub - litb", "author_id": 34509, "author_profile": "https://Stackoverflow.com/users/34509", "pm_score": 5, "selected": false, "text": "struct noncopyable {\n private:\n noncopyable(noncopyable const&);\n noncopyable & operator=(nonco...
2008/12/17
[ "https://Stackoverflow.com/questions/374399", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46418/" ]
374,405
<p>I am trying to create a DLL for authentication using Java and JNI.</p> <p>To create the DLL, I have created a Win32 application whose Character Set and Runtime Library information are Multi-Byte String and Multi-threaded (/MT) respectively.</p> <p>I have tested the DLL on WinXP with valid and invalid user credenti...
[ { "answer_id": 374414, "author": "Johannes Schaub - litb", "author_id": 34509, "author_profile": "https://Stackoverflow.com/users/34509", "pm_score": 5, "selected": false, "text": "struct noncopyable {\n private:\n noncopyable(noncopyable const&);\n noncopyable & operator=(nonco...
2008/12/17
[ "https://Stackoverflow.com/questions/374405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45960/" ]
374,417
<p>I'm trying to save a couple of files to a container file. The files can be modified later which means the container might have to be enlarged. The user should only see this container as a single file in the file system. The application is written in C++ and running on Windows, but the files should be portable to oth...
[ { "answer_id": 374434, "author": "Oli", "author_id": 12870, "author_profile": "https://Stackoverflow.com/users/12870", "pm_score": 0, "selected": false, "text": "tar" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17650/" ]
374,425
<p>Some of my script are using different encoding, and when I try to combine them, this has becom an issue.</p> <p>But I can't change the encoding they use, instead I want to change the encodig of the result from script A, and use it as parameter in script B. </p> <p>So: is there any simple way to change a string fro...
[ { "answer_id": 374463, "author": "Stefan Gehrig", "author_id": 11354, "author_profile": "https://Stackoverflow.com/users/11354", "pm_score": 8, "selected": true, "text": "iconv()" }, { "answer_id": 374473, "author": "phihag", "author_id": 35070, "author_profile": "htt...
2008/12/17
[ "https://Stackoverflow.com/questions/374425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/36975/" ]
374,431
<p>I'd like to create some directories of data for some unit tests and I'd like these directories to be in the default temporary directory for the user.</p> <p>I could just create a subdir under /tmp I suppose, but I don't want to make an assumption about how somebody has set up their own machine.</p> <p>I'm planning...
[ { "answer_id": 374620, "author": "Dave Dribin", "author_id": 26825, "author_profile": "https://Stackoverflow.com/users/26825", "pm_score": 5, "selected": false, "text": "tmpnam()" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41116/" ]
374,438
<p>I have several files containing this line</p> <pre><code>Release: X </code></pre> <p>I want to increment X in all the files. </p> <p>If X was constant between the files, I could have a bash script looping around the files and doing ($1 containing the former release number and $2 the new one, ie. $1 + 1) :</p> <p...
[ { "answer_id": 374457, "author": "Adam Liss", "author_id": 29157, "author_profile": "https://Stackoverflow.com/users/29157", "pm_score": 5, "selected": true, "text": "awk" }, { "answer_id": 374584, "author": "The Archetypal Paul", "author_id": 21755, "author_profile":...
2008/12/17
[ "https://Stackoverflow.com/questions/374438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20986/" ]
374,440
<p>I know that within a view I can render an action from the same controller using Html.RenderPartial. However, I need to render the output from an action under a different controller. What is the best way to do this? I would prefer to do this directly within the view, rather than doing it in the controller and saving ...
[ { "answer_id": 374454, "author": "Garry Shutler", "author_id": 6369, "author_profile": "https://Stackoverflow.com/users/6369", "pm_score": 2, "selected": true, "text": "Html.RenderAction" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39430/" ]
374,446
<p>I'm getting some weird behaviour recompiling some applications in 2009 that used widestrings at various points. </p> <p>In a Delphi 2009 App is Widestring identical to String?</p>
[ { "answer_id": 374456, "author": "Roddy", "author_id": 1737, "author_profile": "https://Stackoverflow.com/users/1737", "pm_score": 6, "selected": true, "text": "WideString" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6244/" ]
374,451
<p>I have written a custom control, that has several sub panels. I want these sub panels to accept any additional controls dropped on them at design time.</p> <p>Unfortunately any control that gets dropped at design time ends up on my custom control, not on the panels. This shows in particular if I try to drop a label...
[ { "answer_id": 426710, "author": "CodeAndCats", "author_id": 26335, "author_profile": "https://Stackoverflow.com/users/26335", "pm_score": 2, "selected": false, "text": "constructor TMyContainer.Create(AOwner: TComponent);\nbegin\n inherited;\n ControlStyle := ControlStyle + [csAcceptC...
2008/12/17
[ "https://Stackoverflow.com/questions/374451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21506/" ]
374,480
<p>I'm looking for a python project to use as example to copy the design of the unit test parts.</p> <p>The project should have these features:</p> <ol> <li>its code is almost fully unit tested</li> <li>the code is distributed in many packages, there are more that one level of packages </li> <li>all the test can be r...
[ { "answer_id": 32449439, "author": "gcb", "author_id": 183132, "author_profile": "https://Stackoverflow.com/users/183132", "pm_score": 0, "selected": false, "text": "hg clone" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374480", "https://Stackoverflow.com", "https://Stackoverflow.com/users/36131/" ]
374,487
<p>How to make this work in Opera? I found this piece of code for Opera, but it doesn't work for me:</p> <pre><code> function AddToFavorites(title, url) { if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel(title, url,""); return false; } else if( window.external ) {...
[ { "answer_id": 374743, "author": "Grant Wagner", "author_id": 9254, "author_profile": "https://Stackoverflow.com/users/9254", "pm_score": 0, "selected": false, "text": "var url = 'http://www.yahoo.com/';\nvar title = 'Yahoo!';\nvar elem = document.createElement('a');\nelem.setAttribute('...
2008/12/17
[ "https://Stackoverflow.com/questions/374487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38256/" ]
374,493
<p>I want to have a TextBox which does accept the TAB key (and places a TAB, ASCII 0x09, \t accordingly into the textbox) instead of jumping to the next control. The TextBox has a property AcceptsTab, which I have set to true but this does not give the desired result. It turns out the AcceptsTab property only works the...
[ { "answer_id": 374857, "author": "BFree", "author_id": 15861, "author_profile": "https://Stackoverflow.com/users/15861", "pm_score": 3, "selected": true, "text": " protected override void WndProc(ref Message m)\n {\n if (m.Msg == (int)0x102 && m.WParam.ToInt32() ...
2008/12/17
[ "https://Stackoverflow.com/questions/374493", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47045/" ]
374,497
<p>I have a folder full of files i need to post to a webservice using cURL but i'm not sure on the whole variables and iterations in batch files thing.</p> <p>I know the syntax for curl should be </p> <pre><code>c:\curl\bin\curl -X POST -F File=@[filename] -F "title=[title]" -F "notes=[notes]" "http://xxx/AddScannedI...
[ { "answer_id": 374501, "author": "mat", "author_id": 42083, "author_profile": "https://Stackoverflow.com/users/42083", "pm_score": 2, "selected": false, "text": "-g" }, { "answer_id": 1980769, "author": "Al.", "author_id": 240975, "author_profile": "https://Stackoverf...
2008/12/17
[ "https://Stackoverflow.com/questions/374497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46323/" ]
374,518
<p>The application I'm trying to localize is a WinForms application that has a few hosted WPF user controls (WPF user controls hosted in an ElementHost WinForms control).</p> <p>I use <a href="http://msdn.microsoft.com/en-us/library/y99d1cd3.aspx" rel="nofollow noreferrer">resx</a> files to localize the WinForms, whic...
[ { "answer_id": 637370, "author": "dustyburwell", "author_id": 77040, "author_profile": "https://Stackoverflow.com/users/77040", "pm_score": 2, "selected": false, "text": "<UserControl ... >\n ...\n <TextBox Text=\"{i18n HelloWorld}\"/>\n ...\n</UserControl>\n" }, { "answ...
2008/12/17
[ "https://Stackoverflow.com/questions/374518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/373/" ]
374,522
<p>I'm having trouble coming up with the proper syntax for allowing either a string or a NULL to be passed to the database. Here's my code:</p> <pre><code>string insertString = String.Format( @"INSERT INTO upload_history (field1, field2, field3) VALUES ('{0}', '{1}', '{2}')", varField1, varField2, varFiel...
[ { "answer_id": 374525, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 6, "selected": true, "text": "string.Format" }, { "answer_id": 374530, "author": "Stefan Schultze", "author_id": 6358, "author_p...
2008/12/17
[ "https://Stackoverflow.com/questions/374522", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39317/" ]
374,535
<p>This is a very basic question. I'm just on my mission to learn ASP.NET (C#). I've done classic ASP and PHP before.</p> <p>For this project I have <strong>ASP.NET 2.0</strong> at my hands.</p> <p>I have a Web Form that has a <a href="http://www.trirand.com/blog/" rel="nofollow noreferrer">jqGrid</a> Datagrid that I...
[ { "answer_id": 374542, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": false, "text": "context.Response.Write(doc)" }, { "answer_id": 374649, "author": "Matthew Pelser", "author_id": 6331, ...
2008/12/17
[ "https://Stackoverflow.com/questions/374535", "https://Stackoverflow.com", "https://Stackoverflow.com/users/999/" ]
374,553
<p>I'm trying to write a chat client in C# and have run into a problem.</p> <p>How it works is that the client polls the server every 1 second to see if there are any new actions to take (for example display a message in a channel, or whatever). The polling is done in a thread of its own.</p> <p>Now, I want the polli...
[ { "answer_id": 374576, "author": "Stormenet", "author_id": 2090, "author_profile": "https://Stackoverflow.com/users/2090", "pm_score": 0, "selected": false, "text": " void MyWorkerThread() {\n while (Connected) {\n Thread.Sleep(1000);\n if (NewMessage) {\n...
2008/12/17
[ "https://Stackoverflow.com/questions/374553", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47052/" ]
374,555
<p>In my code, I am using JavaScript to fire off an <code>window.open()</code> event on an ASPX page. I´m outputting a file in the <code>Page_Load()</code> event of this page:</p> <pre><code>Response.Clear(); Response.ClearContent(); Response.ClearHeaders(); Response.Charset = ""; Response.ContentType = "application/o...
[ { "answer_id": 374576, "author": "Stormenet", "author_id": 2090, "author_profile": "https://Stackoverflow.com/users/2090", "pm_score": 0, "selected": false, "text": " void MyWorkerThread() {\n while (Connected) {\n Thread.Sleep(1000);\n if (NewMessage) {\n...
2008/12/17
[ "https://Stackoverflow.com/questions/374555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17885/" ]
374,556
<p>I am trying to use the following code to export tables from access to excel</p> <p>I am getting error object does not support property or method at the end</p> <pre><code> Set objexcel = New Excel.Application objexcel.Visible = True If Dir("C:\reports\Data_Analysis1.xls") = "" Then objexcel.Workbooks.Add...
[ { "answer_id": 374589, "author": "Binary Worrier", "author_id": 18797, "author_profile": "https://Stackoverflow.com/users/18797", "pm_score": 2, "selected": true, "text": "DoCmd.TransferSpreadsheet\n" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374556", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31132/" ]
374,561
<p>I would like to customize TDBGrid:</p> <p>1) add onSelect/onUnselect events - e.g. good for show count of selected items.</p> <p>2) remove select item on left mouse click. I have inherited TDBGrid and rewritten MouseDown, but then it is not possible to move or resize columns :( </p> <p>So, how to do it?</p> <p>D...
[ { "answer_id": 491935, "author": "JosephStyons", "author_id": 672, "author_profile": "https://Stackoverflow.com/users/672", "pm_score": 1, "selected": false, "text": "implementation\n\n{$R *.dfm}\n\ntype\n THackDBGrid = class(TDBGrid);\n//for info on why we must do this, see:\n//http://...
2008/12/17
[ "https://Stackoverflow.com/questions/374561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,563
<p>Do you build all your login, account creation, password recovery, etc. into your Flex app, or do you keep all of that in web pages and only redirect to the .swf on successful login?</p>
[ { "answer_id": 3489289, "author": "willedw", "author_id": 421194, "author_profile": "https://Stackoverflow.com/users/421194", "pm_score": 2, "selected": false, "text": "public class AdminServer {\n //injected into contr..\n private final LdapService ldapService;\n\n public UserDisplay...
2008/12/17
[ "https://Stackoverflow.com/questions/374563", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16534/" ]
374,567
<p><strong>Final Edit:</strong> I found a solution to the problem (at the bottom of the question).</p> <p>I've got an Nunit problem that's causing me grief. <strong>Edit:</strong> actually it looks more like a SQLite problem, but I'm not 100% certain yet.</p> <p>My TestFixture has a setup that generates a random file...
[ { "answer_id": 374623, "author": "Patrick Desjardins", "author_id": 13913, "author_profile": "https://Stackoverflow.com/users/13913", "pm_score": 0, "selected": false, "text": " [TestFixtureTearDown]\n public void finish()\n {\n //Delete all file\n }\n" }, { "a...
2008/12/17
[ "https://Stackoverflow.com/questions/374567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6408/" ]
374,571
<p>I configured apache on 4 ports (with virtual hosts as some ports used HTTPS) and the aim is to redirect post requests to different servlets running in a TOMCAT instance on some other machine. The calls are made from a <code>httpclient</code> (java client) . When I run the client it throws the error 301 Error: Moved ...
[ { "answer_id": 375743, "author": "Olaf Kock", "author_id": 13447, "author_profile": "https://Stackoverflow.com/users/13447", "pm_score": 2, "selected": false, "text": "# somewhere in httpd.conf, above the virtual hosts\nJkWorkersFile /etc/apache2/workers.properties\nJkLogFile /var/lo...
2008/12/17
[ "https://Stackoverflow.com/questions/374571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15264/" ]
374,572
<p>I want to create variables as <code>a1</code>,<code>a2</code>,<code>a3</code>...<code>a10</code>. For that I used a for loop. As the variable in loop increments I need to create a variable as above.</p> <p>Can anyone give me an idea?</p> <p>At the time of creation I also need to be able to assign values to them.</...
[ { "answer_id": 374579, "author": "S.Lott", "author_id": 10661, "author_profile": "https://Stackoverflow.com/users/10661", "pm_score": 4, "selected": false, "text": "a = 10*[0]\na[0], a[1], a[2], a[9]\n" }, { "answer_id": 374604, "author": "kgiannakakis", "author_id": 2405...
2008/12/17
[ "https://Stackoverflow.com/questions/374572", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46646/" ]
374,573
<p>I have this Web Application in JSP running on JBoss Application Server. I am using <a href="https://stackoverflow.com/questions/359147/mask-urls-in-jsp">Servlets for friendly urls</a>. I'm sending search parameters through my JSP's and Servlets. I am using a form with a text box, the Servlet </p> <p>The first Servl...
[ { "answer_id": 374624, "author": "kgiannakakis", "author_id": 24054, "author_profile": "https://Stackoverflow.com/users/24054", "pm_score": 3, "selected": false, "text": "if(request.getCharacterEncoding() == null) {\n request.setCharacterEncoding(\"UTF-8\");\n}\n" }, { "answer_...
2008/12/17
[ "https://Stackoverflow.com/questions/374573", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1492/" ]
374,586
<p>How do I append the contents of one list at the end of another list?</p>
[ { "answer_id": 374593, "author": "Rob", "author_id": 3542, "author_profile": "https://Stackoverflow.com/users/3542", "pm_score": 6, "selected": false, "text": "List.addAll()" }, { "answer_id": 38216584, "author": "Sandy Shrestha", "author_id": 2909935, "author_profile...
2008/12/17
[ "https://Stackoverflow.com/questions/374586", "https://Stackoverflow.com", "https://Stackoverflow.com/users/47055/" ]
374,597
<p>I have a tabbed series of grids on a data preview page. I now need to import the data from each grid into its own sheet in an Excel workbook.</p> <p>How could I do this?</p> <p>BTW, this is on a Mac or a PC.</p>
[ { "answer_id": 374593, "author": "Rob", "author_id": 3542, "author_profile": "https://Stackoverflow.com/users/3542", "pm_score": 6, "selected": false, "text": "List.addAll()" }, { "answer_id": 38216584, "author": "Sandy Shrestha", "author_id": 2909935, "author_profile...
2008/12/17
[ "https://Stackoverflow.com/questions/374597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8741/" ]
374,618
<p>I have several large csv files with thousands of columns that I need to import and then remove entire columns based contents of the column. Is there an easy way to handle this in Ruby?</p> <p>I could transpose the data and then just delete rows but I was wondering if there was a more syntactically sugary way of do...
[ { "answer_id": 374625, "author": "Keltia", "author_id": 16143, "author_profile": "https://Stackoverflow.com/users/16143", "pm_score": 3, "selected": true, "text": "Array#slice!" } ]
2008/12/17
[ "https://Stackoverflow.com/questions/374618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6805/" ]
374,626
<p>I am writing a program in Python, and I realized that a problem I need to solve requires me, given a set <code>S</code> with <code>n</code> elements (|S|=n), to test a function on all possible subsets of a certain order <code>m</code> (i.e. with <em>m</em> number of elements). To use the answer to produce a partial ...
[ { "answer_id": 374645, "author": "recursive", "author_id": 44743, "author_profile": "https://Stackoverflow.com/users/44743", "pm_score": 8, "selected": true, "text": "import itertools\ndef findsubsets(S,m):\n return set(itertools.combinations(S, m))\n" }, { "answer_id": 142851...
2008/12/17
[ "https://Stackoverflow.com/questions/374626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46634/" ]
374,628
<p>I'm working on a solution that has two projects: One ASP.NET web application, and one Custom Web Control library. The custom control library is used in the asp.net application. When I compile the solution, the app.config file of the custom web control library is not transfered with the dll to the ASP.NET apllicatio...
[ { "answer_id": 374645, "author": "recursive", "author_id": 44743, "author_profile": "https://Stackoverflow.com/users/44743", "pm_score": 8, "selected": true, "text": "import itertools\ndef findsubsets(S,m):\n return set(itertools.combinations(S, m))\n" }, { "answer_id": 142851...
2008/12/17
[ "https://Stackoverflow.com/questions/374628", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32582/" ]
374,644
<p>I have the following code:</p> <pre><code>&lt;script type="text/javascript"&gt; function SubmitForm() { form1.submit(); } function ShowResponse() { } &lt;/script&gt; . . . &lt;div&gt; &lt;a href="#" onclick="SubmitForm();"&gt;Click&lt;/a&gt; &lt;/di...
[ { "answer_id": 374658, "author": "Sergio", "author_id": 32037, "author_profile": "https://Stackoverflow.com/users/32037", "pm_score": 4, "selected": false, "text": "form1.submit();" }, { "answer_id": 374662, "author": "Diodeus - James MacFarlane", "author_id": 12579, ...
2008/12/17
[ "https://Stackoverflow.com/questions/374644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46279/" ]
374,651
<p>How do I check if a given object is nullable in other words how to implement the following method...</p> <pre><code>bool IsNullableValueType(object o) { ... } </code></pre> <p>I am looking for nullable <em>value types.</em> I didn't have reference types in mind.</p> <pre><code>//Note: This is just a sample. The ...
[ { "answer_id": 374663, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 9, "selected": true, "text": "Nullable<T>" }, { "answer_id": 374668, "author": "Jon Skeet", "author_id": 22656, "author_profile"...
2008/12/17
[ "https://Stackoverflow.com/questions/374651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39648/" ]
374,659
<p>Our Software Package uses MS-Access Database, this database has been modified many times, so, it's a bit complicated to just see the files (relationship between tables are small hell), anyway, </p> <p>Is there a way or program to convert this mdb file to SQL Script (Any sort of SQL Script will do it for now).</p> ...
[ { "answer_id": 374782, "author": "Remi Despres-Smyth", "author_id": 8169, "author_profile": "https://Stackoverflow.com/users/8169", "pm_score": 1, "selected": false, "text": "\n<?xml version=\"1.0\" encoding=\"utf-8\" \\>\n<configuration>\n <configSections>\n <section name=\"Su...
2008/12/17
[ "https://Stackoverflow.com/questions/374659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
374,673
<p>The build.xml has a <em>test</em> and a <em>build</em> target. The <em>test</em> target obviously depends on the <em>build</em> target. </p> <p>How can I run the test target only, <strong>temporarily</strong> skipping the compilation, without modifying the build.xml file ? </p> <p>I'm asking because the compilatio...
[ { "answer_id": 374699, "author": "sblundy", "author_id": 4893, "author_profile": "https://Stackoverflow.com/users/4893", "pm_score": 5, "selected": false, "text": "unless" }, { "answer_id": 374701, "author": "John Sonmez", "author_id": 45365, "author_profile": "https:...
2008/12/17
[ "https://Stackoverflow.com/questions/374673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18804/" ]
374,684
<p>I am looking for a simple templating solution for ruby, i.e. something that will let me write php-like or jsp-like templates (html with embedded code tags), but in ruby. jsp is no good for me, because most hosting services (I'm on dreamhost) don't support it on their default package, and it's a little cumbersome to ...
[ { "answer_id": 37041587, "author": "sawa", "author_id": 314166, "author_profile": "https://Stackoverflow.com/users/314166", "pm_score": 0, "selected": false, "text": "require \"dom\"\n[\"foo\".dom(:span, class: \"bold\"), \"bar\"].dom(:div).dom(:body).dom(:html)\n# => \"<html><body><div>...
2008/12/17
[ "https://Stackoverflow.com/questions/374684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3751/" ]
374,687
<p>I could replicate the problem with various shells under FreeBSD, GNU/Linux, and Solaris. It had me head-scratching for more than an hour, so I decided to post the question here.</p>
[ { "answer_id": 374702, "author": "Bombe", "author_id": 43582, "author_profile": "https://Stackoverflow.com/users/43582", "pm_score": 5, "selected": true, "text": "read" }, { "answer_id": 374720, "author": "wimh", "author_id": 33499, "author_profile": "https://Stackove...
2008/12/17
[ "https://Stackoverflow.com/questions/374687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20520/" ]