qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
152,323
<p>I would like to send mail from a script on a Windows Server 2003 Standard Edition. I think the server setup is pretty much out of the box.</p> <p>The mail server is an Exchange one, and when you're on the internal network you can use plain old SMTP. I have done it from my machine with Perl, but unfortunately Perl i...
[ { "answer_id": 152392, "author": "Re0sless", "author_id": 2098, "author_profile": "https://Stackoverflow.com/users/2098", "pm_score": 1, "selected": false, "text": "wscript mail.vbs\n" }, { "answer_id": 152411, "author": "PhiLho", "author_id": 15459, "author_profile":...
2008/09/30
[ "https://Stackoverflow.com/questions/152323", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5264/" ]
152,328
<p>What is better?</p> <p><strong>A:</strong></p> <pre><code>server:1080/repo/projectA/trunk/... branches/branch1 branches/branch2 branches/branch3 tags/tag1/... tags/tag2/... server:1080/...
[ { "answer_id": 152345, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 3, "selected": false, "text": "server:1080/projectA/trunk/...\n branches/branch1\n branches/branch2\n ...
2008/09/30
[ "https://Stackoverflow.com/questions/152328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8986/" ]
152,338
<p>How to unit test WCF services? Any 3rd Party tools available?</p>
[ { "answer_id": 5029051, "author": "Jeno Laszlo", "author_id": 621390, "author_profile": "https://Stackoverflow.com/users/621390", "pm_score": 5, "selected": false, "text": " ServiceHost serviceHost = null;\n\n try\n {\n var baseAddress = new Uri(\"http://localhost:8000/Te...
2008/09/30
[ "https://Stackoverflow.com/questions/152338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11039/" ]
152,342
<p>I fill a collection one single time when my J2EE webapp starts. Then, several thread may access it at same time but only to read it.</p> <p>I know using a synchronized collection is mandatory for parallels write but do I still need it for parallels read ?</p>
[ { "answer_id": 152348, "author": "Jorge Ferreira", "author_id": 6508, "author_profile": "https://Stackoverflow.com/users/6508", "pm_score": 5, "selected": true, "text": "class Test {\n public Test(final int a, final int b) {\n this.a = a;\n this.b = b;\n }\n\n publ...
2008/09/30
[ "https://Stackoverflow.com/questions/152342", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3122/" ]
152,344
<p>I have a statusItem application written in PyObjC. The statusItem has a menuItem which is supposed to launch a new window when it is clicked:</p> <pre><code># Create statusItem statusItem = NSStatusBar.systemStatusBar().statusItemWithLength_(NSVariableStatusItemLength) statusItem.setHighlightMode_(TRUE) statusItem....
[ { "answer_id": 152399, "author": "Nathan Kinsinger", "author_id": 20045, "author_profile": "https://Stackoverflow.com/users/20045", "pm_score": 3, "selected": false, "text": "[NSApp activateIgnoringOtherApps:YES];\n[[self window] makeKeyAndOrderFront:self];\n" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/152344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2183/" ]
152,376
<p>How do I set the background colour of items in a list box dynamically? i.e. there is some property on my business object that I'm binding too, so based on some business rules I want the background colour to be different?</p> <pre><code> &lt;ListBox Background="Red"&gt; &lt;ListBox.ItemContainerStyle&gt...
[ { "answer_id": 1123045, "author": "Stephen Price", "author_id": 24395, "author_profile": "https://Stackoverflow.com/users/24395", "pm_score": 0, "selected": false, "text": "<Border Margin=\"-2,-2,-2,0\" Background=\"{TemplateBinding Background}\" BorderBrush=\"{TemplateBinding BorderBrus...
2008/09/30
[ "https://Stackoverflow.com/questions/152376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/230/" ]
152,382
<p>We recently installed SVN 1.5.2 (with VisualSVN/Apache) on some of our servers / virtual machines, and now when I send a commandline command with username/password they don't get cached anymore. Before, we were running SVN 1.5.0 installed with CollabNet, on svn://, and the credentials were cached after the first com...
[ { "answer_id": 1071691, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "svn ls REPOSITORY_URL svn ls WORKING_COPY_PATH" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/152382", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21162/" ]
152,384
<p>I'm playing around with LinqToSQL using an existing multi-lingual database, but I'm running into issues mapping a fairly important one-to-one relationship, so I suspect I am using the feature incorrectly for my database design.</p> <p>Assume two tables, Category and CategoryDetail. Category contains the CategoryId ...
[ { "answer_id": 152446, "author": "Panos", "author_id": 8049, "author_profile": "https://Stackoverflow.com/users/8049", "pm_score": 0, "selected": false, "text": "public partial class Category \n{\n public IEnumerable<CategoryDetail> GetDetailsByLanguage(string langID)\n {\n return t...
2008/09/30
[ "https://Stackoverflow.com/questions/152384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/192/" ]
152,405
<p>I have a program with two TForm classes and have added a TMainMenu to them each. I am then trying to merge them dynamically at run-time.</p> <p>My problem is that when they merge the menu items in the merged in TMainMenu now display images stored in the imagelist in the form they were merged into rather than the im...
[ { "answer_id": 153799, "author": "onnodb", "author_id": 1037, "author_profile": "https://Stackoverflow.com/users/1037", "pm_score": 2, "selected": false, "text": "ImageIndex TImageList" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/152405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
152,416
<p>Given the following idioms:</p> <p>1)</p> <p><pre><code>variable = value1 if condition variable = value2</code></pre></p> <p>2)</p> <p><pre><code>variable = value2 if not condition variable = value1</pre></code></p> <p>3)</p> <p><pre><code>if condition variable = value2 else variable = value1</pre></co...
[ { "answer_id": 152424, "author": "Jarrett Meyer", "author_id": 5834, "author_profile": "https://Stackoverflow.com/users/5834", "pm_score": 0, "selected": false, "text": "switch" }, { "answer_id": 152431, "author": "Matthew Scharley", "author_id": 15537, "author_profil...
2008/09/30
[ "https://Stackoverflow.com/questions/152416", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1709/" ]
152,419
<p>I've added a custom soap header <code>&lt;MyApp:FOO&gt;</code> element to the <code>&lt;soap:Header&gt;</code> element and the requirments states that i must sign this element , how would one do that? <code>&lt;MyApp:FOO&gt;</code> contains a number of things (username, preferences, etc) that identifies a user on hi...
[ { "answer_id": 152522, "author": "Carl-Johan", "author_id": 15406, "author_profile": "https://Stackoverflow.com/users/15406", "pm_score": 2, "selected": false, "text": " public override void SecureMessage(SoapEnvelope envelope, Security security)\n {\n //EncryptedData data =...
2008/09/30
[ "https://Stackoverflow.com/questions/152419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15406/" ]
152,435
<p>Does anyone have tools or experience with code coverage for PL/SQL. I believe this is possible using DBMS_PROFILER?</p>
[ { "answer_id": 214018, "author": "Dilshod Tadjibaev", "author_id": 29122, "author_profile": "https://Stackoverflow.com/users/29122", "pm_score": 1, "selected": false, "text": "select exec.cnt/total.cnt * 100 \"Code% coverage\"\nfrom (select count(1) cnt\n from plsql_profiler_data d...
2008/09/30
[ "https://Stackoverflow.com/questions/152435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3839/" ]
152,439
<p>I am actually new to this forum and I kept trying for a few days to find an easy way to copy an entire LDAP subtree to another tree. Since I couldn't find anything useful, i thought of dropping a question here as well. Does anybody know how to do this programatically ?</p> <p>For normal operations like add, remove,...
[ { "answer_id": 152529, "author": "Stefan Gehrig", "author_id": 11354, "author_profile": "https://Stackoverflow.com/users/11354", "pm_score": 1, "selected": false, "text": "function copySubtree(oldDn, newDn)\n{\n copyNode(oldDn, newDn); // the new node will be created here\n if (nod...
2008/09/30
[ "https://Stackoverflow.com/questions/152439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
152,441
<p>Anyone have any experience or tools for unit testing PL/SQL. The best looking tool I've seen for this seems to be Quests Code Tester, but i'm not sure how well that would integration with continuous integration tools or command line testing?</p>
[ { "answer_id": 269397, "author": "GregW", "author_id": 17783, "author_profile": "https://Stackoverflow.com/users/17783", "pm_score": 1, "selected": false, "text": "py.test cx_oracle" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/152441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3839/" ]
152,447
<p>When I backup or restore a database using MS SQL Server Management Studio, I get a visual indication of how far the process has progressed, and thus how much longer I still need to wait for it to finish. If I kick off the backup or restore with a script, is there a way to monitor the progress, or do I just sit back ...
[ { "answer_id": 152477, "author": "Veldmuis", "author_id": 18826, "author_profile": "https://Stackoverflow.com/users/18826", "pm_score": 8, "selected": false, "text": "SELECT r.session_id,r.command,CONVERT(NUMERIC(6,2),r.percent_complete)\nAS [Percent Complete],CONVERT(VARCHAR(20),DATEADD...
2008/09/30
[ "https://Stackoverflow.com/questions/152447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18826/" ]
152,457
<p>This was a question raised by one of the software engineers in my organisation. I'm interested in the broadest definition.</p>
[ { "answer_id": 152863, "author": "Peter Wone", "author_id": 1715673, "author_profile": "https://Stackoverflow.com/users/1715673", "pm_score": 10, "selected": false, "text": "netstat -an -p tcp TCP 192.168.1.3:63240 54.252.94.236:80 SYN_SENT\n TCP 192.168.1.3:63241 ...
2008/09/30
[ "https://Stackoverflow.com/questions/152457", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1199234/" ]
152,462
<p>I need to run a Java application, which we are trying to port to Java 6, on an NT box.</p> <p>I manage to run java 5 on it (although not officially supported), but when I try to run java 6 I get the following error:</p> <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre...
[ { "answer_id": 152607, "author": "Roel Spilker", "author_id": 12634, "author_profile": "https://Stackoverflow.com/users/12634", "pm_score": 1, "selected": false, "text": "java -Djava.awt.headless=true" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/152462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11699/" ]
152,469
<p>I want to make a login system using ASP.NET (MVC).</p> <p>On the internet, I found some bad examples that involved SQL in Click events. Other information pointed to the ASP.NET built-in membership provider.</p> <p>However, I want to roll my own. I don't want to use the built-in membership provider, as it only seem...
[ { "answer_id": 152523, "author": "mattlant", "author_id": 14642, "author_profile": "https://Stackoverflow.com/users/14642", "pm_score": 4, "selected": true, "text": "if(SecurityHelper.LoginUser(txtUsername.Text, txtPassword.Text))\n{ \n FormsAuthentication.RedirectFromLoginPage(txt...
2008/09/30
[ "https://Stackoverflow.com/questions/152469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
152,483
<p>Is there a way to print all methods of an object in JavaScript?</p>
[ { "answer_id": 152499, "author": "WalkingRandomly", "author_id": 1856916, "author_profile": "https://Stackoverflow.com/users/1856916", "pm_score": 1, "selected": false, "text": "for (var myprop in navigator){\n document.write(myprop+\": \"+navigator[myprop]+\"<br>\")\n}\n" }, { "...
2008/09/30
[ "https://Stackoverflow.com/questions/152483", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21132/" ]
152,487
<p>There is a MSBuild script, that includes number if Delphi and C# projects, unit tests etc. </p> <p>The problem is: how to mark build failed if warnings were raised (for testing purposes, not for release builds)? Using LogError instead of LogWarning in custom tasks seems to be not a good option, because the build sh...
[ { "answer_id": 152538, "author": "kenny", "author_id": 3225, "author_profile": "https://Stackoverflow.com/users/3225", "pm_score": 1, "selected": false, "text": "msbuild.exe %~nx1 /t:Rebuild /p:Configuration=Release >> %MrB-BUILDLOG%\nfindstr /r /c:\"[1-9][0-9]* Error(s)\" >> %MrB-BUILDL...
2008/09/30
[ "https://Stackoverflow.com/questions/152487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11391/" ]
152,514
<p>I have to rename a complete folder tree recursively so that no uppercase letter appears anywhere (it's C++ source code, but that shouldn't matter).</p> <p>Bonus points for ignoring CVS and Subversion version control files/folders. The preferred way would be a shell script, since a shell should be available on any L...
[ { "answer_id": 152519, "author": "vividos", "author_id": 23740, "author_profile": "https://Stackoverflow.com/users/23740", "pm_score": 3, "selected": false, "text": "#!/bin/bash\n# First, rename all folders\nfor f in `find . -depth ! -name CVS -type d`; do\n g=`dirname \"$f\"`/`basenam...
2008/09/30
[ "https://Stackoverflow.com/questions/152514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23740/" ]
152,537
<p>I need to add the ability for users of my software to select records by character ranges.<br> How can I write a query that returns all widgets from a table whose name falls in the range Ba-Bi for example?</p> <p>Currently I'm using greater than and less than operators, so the above example would become:</p> <pre><...
[ { "answer_id": 152728, "author": "cagcowboy", "author_id": 19629, "author_profile": "https://Stackoverflow.com/users/19629", "pm_score": 0, "selected": false, "text": "MY_SUBSTRING(name, 2) >= 'ba' AND MY_SUBSTRING(name, 2) <= 'bi'\n" }, { "answer_id": 152786, "author": "Geor...
2008/09/30
[ "https://Stackoverflow.com/questions/152537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8799/" ]
152,541
<p>I have a stored procedure that looks like:</p> <pre><code>CREATE PROCEDURE dbo.usp_TestFilter @AdditionalFilter BIT = 1 AS SELECT * FROM dbo.SomeTable T WHERE T.Column1 IS NOT NULL AND CASE WHEN @AdditionalFilter = 1 THEN T.Column2 IS NOT NULL </code></pre> <p>Needless to say, this doesn't wo...
[ { "answer_id": 152551, "author": "Alexander Kojevnikov", "author_id": 712, "author_profile": "https://Stackoverflow.com/users/712", "pm_score": 1, "selected": false, "text": "CREATE PROCEDURE dbo.usp_TestFilter\n @AdditionalFilter BIT = 1\nAS\n SELECT *\n FROM dbo.SomeTable T\n WHERE...
2008/09/30
[ "https://Stackoverflow.com/questions/152541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6651/" ]
152,555
<p>I've always used a <code>*.h</code> file for my class definitions, but after reading some boost library code, I realised they all use <code>*.hpp</code>. I've always had an aversion to that file extension, I think mainly because I'm not used to it.</p> <p>What are the advantages and disadvantages of using <code>*.h...
[ { "answer_id": 152557, "author": "Burkhard", "author_id": 12860, "author_profile": "https://Stackoverflow.com/users/12860", "pm_score": 6, "selected": false, "text": "*.h *.hpp" }, { "answer_id": 152565, "author": "slashmais", "author_id": 15161, "author_profile": "ht...
2008/09/30
[ "https://Stackoverflow.com/questions/152555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/986/" ]
152,580
<p>How do I check if an object is of a given type, or if it inherits from a given type?</p> <p>How do I check if the object <code>o</code> is of type <code>str</code>?</p> <hr /> <p><sub>Beginners often wrongly expect the string to <em>already be</em> &quot;a number&quot; - either expecting Python 3.x <code>input</code...
[ { "answer_id": 152583, "author": "Alexander Kojevnikov", "author_id": 712, "author_profile": "https://Stackoverflow.com/users/712", "pm_score": 4, "selected": false, "text": "isinstance(o, str)\n" }, { "answer_id": 152592, "author": "Herge", "author_id": 14102, "autho...
2008/09/30
[ "https://Stackoverflow.com/questions/152580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14102/" ]
152,585
<p>What is the simplest way to identify and separate GET and POST parameters from a controller in Ruby on Rails, which will be equivalent to $_GET and $_POST variables in PHP?</p>
[ { "answer_id": 152599, "author": "John Topley", "author_id": 1450, "author_profile": "https://Stackoverflow.com/users/1450", "pm_score": 6, "selected": false, "text": "request.get? request.post?" }, { "answer_id": 152652, "author": "Ben Scofield", "author_id": 6478, "...
2008/09/30
[ "https://Stackoverflow.com/questions/152585", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18768/" ]
152,586
<p>I want to test ASP.NET application using NUnit, but it seems WebConfigurationManager.ConnectionStrings collection is empty when running from NUnit GUI.</p> <p>Could you tell me how to initialize this collection (probably in [SetUp] function of [TestFixture])? Should I copy Web.config somethere?</p> <p>Thank you!</...
[ { "answer_id": 266119, "author": "Martin Brown", "author_id": 20553, "author_profile": "https://Stackoverflow.com/users/20553", "pm_score": 3, "selected": false, "text": "\\bin\\debug\\MyTests.dll \\bin\\Debug\\MyTests.dll.config \\MyNUnitProject.nunit \\MyNUnitProject.config \\App.confi...
2008/09/30
[ "https://Stackoverflow.com/questions/152586", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11256/" ]
152,602
<p>Which of theese two alternatives do you find yourself using most often, and which is more "idiomatic"?</p> <ol> <li>f arg (obj.DoStuff())</li> <li>f arg &lt;| obj.DoStuff()</li> </ol>
[ { "answer_id": 152933, "author": "Brian", "author_id": 19299, "author_profile": "https://Stackoverflow.com/users/19299", "pm_score": 4, "selected": true, "text": "raise <| new FooException(\"blah\")\n f arg (g x y)\n f arg (g(x,y))\n f g()\n f g ()\n f (g())\n" }, { "answer_id": ...
2008/09/30
[ "https://Stackoverflow.com/questions/152602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21182/" ]
152,613
<p>I have a specialized list that holds items of type <code>IThing</code>:</p> <pre><code>public class ThingList : IList&lt;IThing&gt; {...} public interface IThing { Decimal Weight { get; set; } Decimal Velocity { get; set; } Decimal Distance { get; set; } Decimal Age { get; set; } Decimal Anothe...
[ { "answer_id": 152619, "author": "Matt Hamilton", "author_id": 615, "author_profile": "https://Stackoverflow.com/users/615", "pm_score": 4, "selected": false, "text": "Decimal result = myThingList.Max(i => i.Weight);\n" }, { "answer_id": 152624, "author": "Konrad Rudolph", ...
2008/09/30
[ "https://Stackoverflow.com/questions/152613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8976/" ]
152,643
<p>For an <code>std::map&lt;std::string, std::string&gt; variables</code>, I'd like to do this:</p> <pre><code>BOOST_CHECK_EQUAL(variables["a"], "b"); </code></pre> <p>The only problem is, in this context <code>variables</code> is <code>const</code>, so <code>operator[]</code> won't work :(</p> <p>Now, there are sev...
[ { "answer_id": 152658, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 3, "selected": false, "text": "find const count T const& item(map<TKey, T> const& m, TKey const& key, T const& def = T()) {\n map<TKey, T>::const...
2008/09/30
[ "https://Stackoverflow.com/questions/152643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2971/" ]
152,664
<p>I have many items inside a list control. I want each item to have a different item template depending on the type of the item. So the first item in the list is a ObjectA type and so I want it to be rendered with ItemTemplateA. Second item is a ObjectB type and so I want it to have ItemTemplateB for rendering. At the...
[ { "answer_id": 152779, "author": "rudigrobler", "author_id": 5147, "author_profile": "https://Stackoverflow.com/users/5147", "pm_score": 5, "selected": true, "text": "ItemTemplateSelector DataTemplate DataType DataTemplate <DataTemplate DataType={x:Type local:ObjectA}>\n ...\n</DataTem...
2008/09/30
[ "https://Stackoverflow.com/questions/152664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6276/" ]
152,670
<p>Is it possible to prevent the Windows Installer from running every time Access 2003 and Access 2007 are started, when they are both installed on the same machine at the same time..?</p> <p>Like many developers I need to run more than 1 version of MS Access. I have just installed Access 2007. If I open Access 2003...
[ { "answer_id": 1450798, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "reg add HKCU\\Software\\Microsoft\\Office\\11.0\\Word\\Options /v NoReReg /t REG_DWORD /d 1\n\nreg add HKCU\\Software\\Micros...
2008/09/30
[ "https://Stackoverflow.com/questions/152670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10422/" ]
152,675
<p>There is probably is simple fix for this but I currently have code similar to </p> <pre><code>dim dr as dbDataReader try dr = connection.getDataReader(sql_str) Catch ex as sqlClientException log.error(ex) finally if not IsNothing(dr) then dr.close end if end try </code></pre> <p>However Visua...
[ { "answer_id": 152715, "author": "Joseph Daigle", "author_id": 507, "author_profile": "https://Stackoverflow.com/users/507", "pm_score": 0, "selected": false, "text": "finally" }, { "answer_id": 152718, "author": "TcKs", "author_id": 20382, "author_profile": "https://...
2008/09/30
[ "https://Stackoverflow.com/questions/152675", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11802/" ]
152,693
<p>I have an <strong>if</strong> condition which checks for value and the it throws new <strong>NumberFormatException</strong></p> <p>Is there any other way to code this</p> <pre><code>if (foo) { throw new NumberFormatException } // .. catch (NumberFormatException exc) { // some msg... } </code></pre>
[ { "answer_id": 152709, "author": "Burkhard", "author_id": 12860, "author_profile": "https://Stackoverflow.com/users/12860", "pm_score": 2, "selected": false, "text": "if(foo)\n{\n //some msg...\n} else\n{\n //do something else\n}\n" }, { "answer_id": 152716, "author": "Mark...
2008/09/30
[ "https://Stackoverflow.com/questions/152693", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11114/" ]
152,694
<p>I'm setting up a new project using CruiseControl.net 1.4.</p> <p>I see from <a href="http://confluence.public.thoughtworks.org/display/CCNETCOMM/Contributions" rel="nofollow noreferrer">ccnet contributions</a> that there are two options for a subversion repository number labeller - a feature that I would really lik...
[ { "answer_id": 2017464, "author": "VS.Php", "author_id": 245085, "author_profile": "https://Stackoverflow.com/users/245085", "pm_score": 1, "selected": false, "text": " <labeller type=\"SvnLabeller\">\n <MajorVersion>1</MajorVersion>\n <MinorVersion>2</MinorVersion>\n <BuildNum...
2008/09/30
[ "https://Stackoverflow.com/questions/152694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5427/" ]
152,699
<p>In Python, you can do this:</p> <pre><code>import webbrowser webbrowser.open_new("http://example.com/") </code></pre> <p>It will open the passed in url in the default browser</p> <p>Is there a ruby equivalent?</p>
[ { "answer_id": 152765, "author": "Ken", "author_id": 20621, "author_profile": "https://Stackoverflow.com/users/20621", "pm_score": 2, "selected": false, "text": "require 'win32ole'\nshell = WIN32OLE.new('Shell.Application')\nshell.ShellExecute(...)\n" }, { "answer_id": 152951, ...
2008/09/30
[ "https://Stackoverflow.com/questions/152699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147/" ]
152,708
<p>I needed to find all the files that contained a specific string pattern. The first solution that comes to mind is using <em>find</em> piped with <em>xargs grep</em>:</p> <pre><code>find . -iname '*.py' | xargs grep -e 'YOUR_PATTERN' </code></pre> <p>But if I need to find patterns that spans on more than one line, ...
[ { "answer_id": 152711, "author": "Oli", "author_id": 22035, "author_profile": "https://Stackoverflow.com/users/22035", "pm_score": 8, "selected": true, "text": "find . -iname '*.py' | xargs pcregrep -M '_name.*\\n.*_description'\n" }, { "answer_id": 152755, "author": "ayaz", ...
2008/09/30
[ "https://Stackoverflow.com/questions/152708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22035/" ]
152,714
<p>I am relatively new to matchers. I am toying around with <a href="http://code.google.com/p/hamcrest/" rel="noreferrer">hamcrest</a> in combination with JUnit and I kinda like it.</p> <p>Is there a way, to state that one of multiple choices is correct?</p> <p>Something like</p> <pre><code>assertThat( result, is( e...
[ { "answer_id": 153198, "author": "marcospereira", "author_id": 4600, "author_profile": "https://Stackoverflow.com/users/4600", "pm_score": 8, "selected": true, "text": "assertThat(result, anyOf(equalTo(1), equalTo(2), equalTo(3)))\n anyOf" }, { "answer_id": 6554732, "author":...
2008/09/30
[ "https://Stackoverflow.com/questions/152714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1870/" ]
152,729
<p>If you use Image.Save Method to save an image to a EMF/WMF, you get an exception (<a href="http://msdn.microsoft.com/en-us/library/ktx83wah.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ktx83wah.aspx</a>)</p> <p>Is there another way to save the image to an EMF/WMF? Are there any encoders a...
[ { "answer_id": 152830, "author": "Mike Dimmick", "author_id": 6970, "author_profile": "https://Stackoverflow.com/users/6970", "pm_score": 2, "selected": false, "text": "Metafile Graphics Graphics.FromImage Graphics.DrawImage StretchBlt" }, { "answer_id": 688593, "author": "Co...
2008/09/30
[ "https://Stackoverflow.com/questions/152729", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12192/" ]
152,744
<p>in Erlang I have a supervisor-tree of processes, containing one that accepts tcp/ip connections. For each incoming connection I spawn a new process. Should this process be added to the supervisor tree or not?</p> <p>Regards, Steve</p>
[ { "answer_id": 154457, "author": "Adam Lindberg", "author_id": 2457, "author_profile": "https://Stackoverflow.com/users/2457", "pm_score": 2, "selected": false, "text": "simple_one_for_one" }, { "answer_id": 178426, "author": "archaelus", "author_id": 9040, "author_pr...
2008/09/30
[ "https://Stackoverflow.com/questions/152744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23760/" ]
152,745
<p>I need a way to represent a 2-D array (a dense matrix) of doubles in C++, with absolute minimum accessing overhead. </p> <p>I've done some timing on various linux/unix machines and gcc versions. An STL vector of vectors, declared as:</p> <pre><code>vector&lt;vector&lt;double&gt; &gt; matrix(n,vector&lt;double&gt;(...
[ { "answer_id": 152761, "author": "PierreBdR", "author_id": 7136, "author_profile": "https://Stackoverflow.com/users/7136", "pm_score": 3, "selected": false, "text": "valarray<double> a;\n" }, { "answer_id": 152776, "author": "Mike Dimmick", "author_id": 6970, "author_...
2008/09/30
[ "https://Stackoverflow.com/questions/152745", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23732/" ]
152,757
<p>I am wondering whether it is safe to mix jdk 1.5 and 1.6 (Java 6) object serialization (biderctional communication). I searched for an explicit statement from sun concerning this question but did not succeed. So, besides the technical feasability I am searching for an "official" statement concerning the problem.</p>...
[ { "answer_id": 152792, "author": "Tom", "author_id": 22850, "author_profile": "https://Stackoverflow.com/users/22850", "pm_score": 4, "selected": false, "text": "private static final long serialVersionUID = 8683452581122892189L;\n" }, { "answer_id": 155521, "author": "oxbow_l...
2008/09/30
[ "https://Stackoverflow.com/questions/152757", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
152,770
<p>Is there any facility of transposing rows to columns in SQL Server (it is possible in MS-Access)? I was befuddled because this facility is available in MS-Access but not in SQL Server. Is it by design that this feature has not been included in SQL Server?</p>
[ { "answer_id": 152963, "author": "Corey Trager", "author_id": 9328, "author_profile": "https://Stackoverflow.com/users/9328", "pm_score": 3, "selected": true, "text": "color red\nsize big\ncity Chicago\n" }, { "answer_id": 169412, "author": "Codewerks", "author_id": 177...
2008/09/30
[ "https://Stackoverflow.com/questions/152770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4021/" ]
152,774
<p>What's the best way to trim a DateTime object to a specific precision? For instance, if I have a DateTime with a value of '2008-09-29 09:41:43', but I only want it's precision to be to the minute, is there any better way to do it than this?</p> <pre><code>private static DateTime TrimDateToMinute(DateTime date) { ...
[ { "answer_id": 152803, "author": "Rikalous", "author_id": 4271, "author_profile": "https://Stackoverflow.com/users/4271", "pm_score": 3, "selected": false, "text": "public enum DateTimePrecision\n{\n Hour, Minute, Second\n}\n\npublic static DateTime TrimDate(DateTime date, DateTimePreci...
2008/09/30
[ "https://Stackoverflow.com/questions/152774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21807/" ]
152,807
<p><strong>UPDATE:</strong> i updated the code and problem description to reflect my changes. </p> <p>I know now that i'm trying a Socket operation on nonsocket. or that my fd_set is not valid since:</p> <p><code>select</code> returns -1 and <code>WSAGetLastError()</code>returns 10038. </p> <p>But i can't seem to ...
[ { "answer_id": 152831, "author": "Douglas Leeder", "author_id": 3978, "author_profile": "https://Stackoverflow.com/users/3978", "pm_score": 0, "selected": false, "text": " int select(int nfds, fd_set *readfds, fd_set *writefds,\n fd_set *exceptfds, struct timeval *timeout)...
2008/09/30
[ "https://Stackoverflow.com/questions/152807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10010/" ]
152,822
<p>I want something like this:</p> <pre><code>&lt;msxsl:script language="C#"&gt; ??? getNodes() { ... return ... } &lt;/msxsl:script&gt; &lt;xsl:for-each select="user:getNodes()"&gt; ... &lt;/xsl:for-each&gt; </code></pre> <p>What return type should i use for <code>getNodes()</code> and what should i put in i...
[ { "answer_id": 414009, "author": "Boaz", "author_id": 2892, "author_profile": "https://Stackoverflow.com/users/2892", "pm_score": 4, "selected": true, "text": "<msxsl:script language=\"C#\">\n XPathNodeIterator getNodes() \n { \n XmlDocument doc = new XmlDocument();\n doc.P...
2008/09/30
[ "https://Stackoverflow.com/questions/152822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20310/" ]
152,823
<p>XAMPP makes configuring a local LAMP stack for windows a breeze. So it's quite disappointing that enabling <code>.htaccess</code> files is such a nightmare.</p> <p>My problem: I've got a PHP application that requires apache/php to search for an <code>/includes/</code> directory contained within the application. To d...
[ { "answer_id": 32487080, "author": "Deepak", "author_id": 4490437, "author_profile": "https://Stackoverflow.com/users/4490437", "pm_score": 1, "selected": false, "text": "open file ...\\xampp\\apache\\conf\\httpd.conf\n\nfind line \"LoadModule rewrite_module modules/mod_rewrite.so\"\n\ni...
2008/09/30
[ "https://Stackoverflow.com/questions/152823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10583/" ]
152,834
<p>I need to know the default port settings for the following services</p> <ol> <li>SQL Server</li> <li>SQL Browser</li> <li>SQL Reporting services</li> <li>SQL Analysis services</li> </ol> <p>I need to know the port settings for these services for different versions of SQL Server (2000,2005,2008)</p> <p>Also let me k...
[ { "answer_id": 152902, "author": "Mike Dimmick", "author_id": 6970, "author_profile": "https://Stackoverflow.com/users/6970", "pm_score": 3, "selected": false, "text": "cliconfg" }, { "answer_id": 5035845, "author": "Jared Moore", "author_id": 425852, "author_profile"...
2008/09/30
[ "https://Stackoverflow.com/questions/152834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22162/" ]
152,837
<p>How can I write an insert statement which includes the &amp; character? For example, if I wanted to insert "J&amp;J Construction" into a column in the database.</p> <p>I'm not sure if it makes a difference, but I'm using Oracle 9i.</p>
[ { "answer_id": 152849, "author": "stjohnroe", "author_id": 2985, "author_profile": "https://Stackoverflow.com/users/2985", "pm_score": 0, "selected": false, "text": "SET SCAN OFF\n" }, { "answer_id": 152852, "author": "hamishmcn", "author_id": 3590, "author_profile": ...
2008/09/30
[ "https://Stackoverflow.com/questions/152837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/466/" ]
152,866
<p>For simplicity, I generally split a lot of my configuration (i.e. the contents of app.config and web.config) out into separate .config files, and then reference them from the main config file using the 'configSource' attribute. For example:</p> <pre><code>&lt;appSettings configSource="appSettings.config"/&gt; </cod...
[ { "answer_id": 638298, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": false, "text": "DeploymentItem [TestMethod]\n[DeploymentItem(@\"test_data.file\")]\npublic void FooTest()\n{...}\n" }, { "answer_id": ...
2008/09/30
[ "https://Stackoverflow.com/questions/152866", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1680/" ]
152,869
<p>It is easy to highlight a selected datagrid row, by for example using toggleClass in the tr's click event. But how best to later remove the highlight after a different row has been selected? Iterating over all the rows to unhighlight them could become expensive for larger datagrids. I'd be interested in the simp...
[ { "answer_id": 152877, "author": "Adam Bellaire", "author_id": 21632, "author_profile": "https://Stackoverflow.com/users/21632", "pm_score": 2, "selected": false, "text": "$('.toggledClass').removeClass('toggledClass');\n" }, { "answer_id": 153102, "author": "nickf", "aut...
2008/09/30
[ "https://Stackoverflow.com/questions/152869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/785/" ]
152,871
<p>When you think about it, doesn't the REST paradigm of being resource-oriented boil down to being object-oriented (with constrained functionality, leveraging HTTP as much as possible)?</p> <p>I'm not necessarily saying it's a bad thing, but rather that if they are <strike>essentially the same</strike> very similar t...
[ { "answer_id": 153200, "author": "Mark Cidade", "author_id": 1659, "author_profile": "https://Stackoverflow.com/users/1659", "pm_score": 6, "selected": true, "text": "ToString()" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/152871", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14731/" ]
152,887
<p>This has been bugging me for a long time -- how do I properly resolve a merge conflict within the SVN properties set on a directory? Say for instance there are two developers working on a project where svn:ignore is set on some directory. If both developers make changes to this property, when the second one update...
[ { "answer_id": 36070180, "author": "jpllosa", "author_id": 5797400, "author_profile": "https://Stackoverflow.com/users/5797400", "pm_score": 0, "selected": false, "text": "dir_conflicts.prej svn ignore list TortoiseSVN 1.9.3 TortoiseSVN -> Resolve..." }, { "answer_id": 41954466, ...
2008/09/30
[ "https://Stackoverflow.com/questions/152887", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14302/" ]
152,893
<p>We have a form that allows a user to dynamically add inputs for fields. For example if you have a form for tracking projects, you want to dynamically add tasks to that project. Just to clarify my language: you dynamically add inputs for the task field. The problem is, we have 50 of those fields. Our current solution...
[ { "answer_id": 152931, "author": "Corey Trager", "author_id": 9328, "author_profile": "https://Stackoverflow.com/users/9328", "pm_score": 1, "selected": false, "text": "Task [.............] + \n [.............] + \n [.............] + \n [.............] +\n\...
2008/09/30
[ "https://Stackoverflow.com/questions/152893", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1681/" ]
152,900
<p>When loading XML into an XmlDocument, i.e.</p> <pre> XmlDocument document = new XmlDocument(); document.LoadXml(xmlData); </pre> <p>is there any way to stop the process from replacing entities? I've got a strange problem where I've got a TM symbol (stored as the entity #8482) in the xml being converted into the TM...
[ { "answer_id": 152935, "author": "Andy", "author_id": 3585, "author_profile": "https://Stackoverflow.com/users/3585", "pm_score": 0, "selected": false, "text": "<root>\n<testnode>\n<![CDATA[some text &#8482;]]>\n</testnode>\n</root>\n" }, { "answer_id": 152936, "author": "Mar...
2008/09/30
[ "https://Stackoverflow.com/questions/152900", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21299/" ]
152,919
<p>I need to get a listing of a server-side directory inside SAP. How do I achieve this in ABAP? Are there any built-in SAP functions I can call?</p> <p>Ideally I want a function which I can pass a path as input, and which will return a list of filenames in an internal table.</p>
[ { "answer_id": 165295, "author": "Chris Carruthers", "author_id": 1119, "author_profile": "https://Stackoverflow.com/users/1119", "pm_score": 3, "selected": false, "text": "FUNCTION RZL_READ_DIR_LOCAL.\n*\"----------------------------------------------------------------------\n*\"Lokale ...
2008/09/30
[ "https://Stackoverflow.com/questions/152919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1119/" ]
152,926
<p>In Visual Studio with TFS as source control, when I view the history and double click a cs file, the file is loaded in notepad. How can i change the application to be notepad++? </p> <p>I also would like the OS's default application for the file to still be visual studio</p>
[ { "answer_id": 3944620, "author": "Aardvark", "author_id": 3655, "author_profile": "https://Stackoverflow.com/users/3655", "pm_score": 4, "selected": false, "text": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\SystemFileAssociations\\text\\shell\\edit\\command" }, { "answer_id": 52388...
2008/09/30
[ "https://Stackoverflow.com/questions/152926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
152,946
<p>There is a GUI ADM2 Progress v9 application using AppServer. </p> <p>It needs to give users an ability to view MS Excel files stored on the AppServer. So far it:</p> <ol> <li>Pulls .xls file from AppServer to a local drive.</li> <li>Fires up a copy of MS Excel and opens the file.</li> </ol> <p>The problem is that...
[ { "answer_id": 155122, "author": "BKimmel", "author_id": 13776, "author_profile": "https://Stackoverflow.com/users/13776", "pm_score": 0, "selected": false, "text": "Excel.exe \"http://myserver/myexcelbook.xls\" Application.WorkBookBeforeClose ThisMethodHandlesTheWorkbookBeforeCloseEvent...
2008/09/30
[ "https://Stackoverflow.com/questions/152946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
152,968
<p>Do you know an easy and straight-forward method/sub/module which allows me to convert a number (say 1234567.89) to an easily readable form - something like 1.23M?</p> <p>Right now I can do this by making several comparisons, but I'm not happy with my method:</p> <pre><code>if($bytes &gt; 1000000000){ $bytes = ...
[ { "answer_id": 152978, "author": "WalkingRandomly", "author_id": 1856916, "author_profile": "https://Stackoverflow.com/users/1856916", "pm_score": 5, "selected": true, "text": " use Number::Bytes::Human qw(format_bytes);\n\n $size = format_bytes(0); # '0'\n $size = format_bytes(2*1024...
2008/09/30
[ "https://Stackoverflow.com/questions/152968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23780/" ]
152,975
<p>I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area.</p> <p>Is something like this possible with jQuery?</p> <pre><code>$("#menuscontainer").clickOutsideThisElement(function() { // Hide t...
[ { "answer_id": 153047, "author": "Eran Galperin", "author_id": 10585, "author_profile": "https://Stackoverflow.com/users/10585", "pm_score": 12, "selected": true, "text": "stopPropagation $(window).click(function() {\n //Hide the menus if visible\n});\n\n$('#menucontainer').click(functi...
2008/09/30
[ "https://Stackoverflow.com/questions/152975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2138/" ]
153,021
<p>I need to generate an XML file in C#.</p> <p>I want to write the code that generates this in a file that is mostly XML with code inside of it as I can in an ASP.NET MVC page. </p> <p>So I want a code file that looks like:</p> <pre><code>&lt;lots of angle brackets...&gt; &lt;% foreach(data in myData) { %&...
[ { "answer_id": 153232, "author": "Sklivvz", "author_id": 7028, "author_profile": "https://Stackoverflow.com/users/7028", "pm_score": -1, "selected": false, "text": "XmlWriterSettings settings = new XmlWriterSettings();\nsettings.Indent = true;\nsettings.IndentChars = (\" \");\nusing (...
2008/09/30
[ "https://Stackoverflow.com/questions/153021", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5189/" ]
153,023
<p>I'm using C# and Microsoft.Jet.OLEDB.4.0 provider to insert rows into an Access mdb.</p> <p>Yes, I know Access sucks. It's a huge legacy app, and everything else works OK.</p> <p>The table has an autonumber column. I insert the rows, but the autonumber column is set to zero.</p> <p>I Googled the question and re...
[ { "answer_id": 157815, "author": "onedaywhen", "author_id": 15354, "author_profile": "https://Stackoverflow.com/users/15354", "pm_score": 3, "selected": true, "text": "INSERT INTO (<column list>) ... \n CREATE Table Test1 \n(\n ID INTEGER IDENTITY(0, -2147483648) NOT NULL, \n data_co...
2008/09/30
[ "https://Stackoverflow.com/questions/153023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6783/" ]
153,046
<p>Ok, this probably has a really simple answer, but I've never tried to do it before: How do you launch a web page from within an app? You know, "click here to go to our FAQ", and when they do it launches their default web browser and goes to your page. I'm working in C/C++ in Windows, but if there's a broader, more p...
[ { "answer_id": 153058, "author": "Patrick Desjardins", "author_id": 13913, "author_profile": "https://Stackoverflow.com/users/13913", "pm_score": 5, "selected": true, "text": "#include <windows.h>\n\nvoid main()\n{\n ShellExecute(NULL, \"open\", \"http://yourwebpage.com\",\n ...
2008/09/30
[ "https://Stackoverflow.com/questions/153046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17693/" ]
153,048
<p>I'm new to mock objects, but I understand that I need to have my classes implement interfaces in order to mock them.</p> <p>The problem I'm having is that in my data access layer, I want to have static methods, but I can't put a static method in an interface. </p> <p>What's the best way around this? Should I jus...
[ { "answer_id": 153056, "author": "Grundlefleck", "author_id": 4120, "author_profile": "https://Stackoverflow.com/users/4120", "pm_score": 6, "selected": true, "text": "private static final MethodObject methodObject = new MethodObject();\n\npublic static void doSomething(){\n methodObj...
2008/09/30
[ "https://Stackoverflow.com/questions/153048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4219/" ]
153,053
<h2>The problem:</h2> <p>We use a program written by our biggest customer to receive orders, book tranports and do other order-related stuff. We have no other chance but to use the program and the customer is very unsupportive when it comes to problems with their program. We just have to live with the program.</p> <p...
[ { "answer_id": 168993, "author": "Tim Lara", "author_id": 3469, "author_profile": "https://Stackoverflow.com/users/3469", "pm_score": 0, "selected": false, "text": "\"Path to MSACCESS.EXE\" \"Path To foo.mdb\" /wrkgrp \"Path to foo.mdw\"\n" }, { "answer_id": 781916, "author":...
2008/09/30
[ "https://Stackoverflow.com/questions/153053", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21038/" ]
153,054
<p>I need to change the app name based on what configuration I'm using in Visual Studio. For example, if I'm in Debug configuration, I want the app name to show as 'App_Debug' in the Application field in the Elmah_Error table. Does anyone have any experience with this? Or is there another way to do it?</p>
[ { "answer_id": 317442, "author": "JamesEggers", "author_id": 28540, "author_profile": "https://Stackoverflow.com/users/28540", "pm_score": 4, "selected": true, "text": "HttpRuntime.AppDomainAppId public virtual string ApplicationName\n{\n get \n {\n if (_applicationName == n...
2008/09/30
[ "https://Stackoverflow.com/questions/153054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1284/" ]
153,061
<p>I'm currently writing an edit-in-place script for MooTools and I'm a little stumped as to how I can make it degrade gracefully without JavaScript while still having some functionality. I would like to use progressive enhancement in some way. I'm not looking for code, but more a concept as to how one would approach t...
[ { "answer_id": 153214, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "<li>\n <span id=\"editable\">Editable text</span> <a class=\"edit_button\"> </a>\n</li>\n" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/153061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13281/" ]
153,062
<p>How do I escape '&lt;' and '>' character in sed.</p> <p>I have some xml files which needs some text between the tags to be replaced. How do I escape the '>' and '&lt;' characters.</p> <p>The problem with > and &lt; is it has special meaning in the shell to redirect the output to a file. So backslash doesn't work.<...
[ { "answer_id": 153070, "author": "Douglas Mayle", "author_id": 8458, "author_profile": "https://Stackoverflow.com/users/8458", "pm_score": 0, "selected": false, "text": "sed -re 's@(<TAG.*?>).*?(</TAG>)@\\1hi\\2@' test.xml\n" }, { "answer_id": 153075, "author": "cnu", "au...
2008/09/30
[ "https://Stackoverflow.com/questions/153062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1448/" ]
153,065
<p>I am trying to adapt an existing code to a 64 bit machine. The main problem is that in one function, the previous coder uses a void* argument that is converted into suitable type in the function itself. A short example:</p> <pre><code>void function(MESSAGE_ID id, void* param) { if(id == FOO) { int real_...
[ { "answer_id": 153077, "author": "Milan Babuškov", "author_id": 14690, "author_profile": "https://Stackoverflow.com/users/14690", "pm_score": 7, "selected": true, "text": "intptr_t uintptr_t #if defined(__BORLANDC__)\n typedef unsigned char uint8_t;\n typedef __int64 int64_t;\n ...
2008/09/30
[ "https://Stackoverflow.com/questions/153065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7136/" ]
153,079
<p>The interop library is slow and needs MS Office installed. Many times you don't want to install MS Office on servers.</p> <p>I'd like to use <a href="http://en.wikipedia.org/wiki/Apache_POI" rel="nofollow noreferrer">Apache POI</a>, but I'm on .NET.</p> <p>I need only to extract the text portion of the files, not...
[ { "answer_id": 153182, "author": "ahin4114", "author_id": 11579, "author_profile": "https://Stackoverflow.com/users/11579", "pm_score": 2, "selected": false, "text": "System.IO.Packaging XmlDocument" }, { "answer_id": 153203, "author": "Ilya Kochetov", "author_id": 15329,...
2008/09/30
[ "https://Stackoverflow.com/questions/153079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4206/" ]
153,087
<p>I have a requirement to read and display the owner of a file (for audit purposes), and potentially changing it as well (this is secondary requirement). Are there any nice C# wrappers?</p> <p>After a quick google, I found only <a href="http://web.archive.org/web/20061116233324/http://www.softinsight.com/bnoyes/Perma...
[ { "answer_id": 153146, "author": "Mark Brackett", "author_id": 2199, "author_profile": "https://Stackoverflow.com/users/2199", "pm_score": 7, "selected": true, "text": "const string FILE = @\"C:\\test.txt\";\n\nvar fs = File.GetAccessControl(FILE);\n\nvar sid = fs.GetOwner(typeof(Securit...
2008/09/30
[ "https://Stackoverflow.com/questions/153087", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5363/" ]
153,123
<p>I am looking for pointers to the solution of the following problem: I have a set of rectangles, whose height is known and x-positions also and I want to pack them in the more compact form. With a little drawing (where all rectangles are of the same width, but the width may vary in real life), i would like, instead o...
[ { "answer_id": 153357, "author": "Jasper", "author_id": 18702, "author_profile": "https://Stackoverflow.com/users/18702", "pm_score": 1, "selected": false, "text": "Collection<Rectangle> overlaps (int startx, int endx, Collection<Rectangle> rects){\n...\n}\n Collection<Rectangle> toDraw;...
2008/09/30
[ "https://Stackoverflow.com/questions/153123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8776/" ]
153,151
<p>I recently upgraded my oracle client to 10g (10.2.0.1.0).</p> <p>Now when I try to connect to a legacy 8.0 database, I get</p> <pre><code>ORA-03134: Connections to this server version are no longer supported. </code></pre> <p>Is there any workaround for this problem, or do I have to install two clients on my loca...
[ { "answer_id": 153191, "author": "Andrew", "author_id": 5662, "author_profile": "https://Stackoverflow.com/users/5662", "pm_score": 4, "selected": true, "text": "selecthome.bat C:\\Oracle\\Client1_8i\\bin\\selecthome.bat C:\\Oracle\\Client2_10g\\bin\\selecthome.bat" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/153151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/672/" ]
153,152
<p>I am working on an iGoogle-like application. Content from other applications (on other domains) is shown using iframes. </p> <p>How do I resize the iframes to fit the height of the iframes' content?</p> <p>I've tried to decipher the javascript Google uses but it's obfuscated, and searching the web has been fruitle...
[ { "answer_id": 153196, "author": "Ólafur Waage", "author_id": 22459, "author_profile": "https://Stackoverflow.com/users/22459", "pm_score": -1, "selected": false, "text": "parent.document.getElementById(iFrameID).style.height=framedPage.scrollHeight;\n" }, { "answer_id": 250275, ...
2008/09/30
[ "https://Stackoverflow.com/questions/153152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3842/" ]
153,156
<p>How to count distinct values in a node in XSLT?</p> <p>Example: I want to count the number of existing countries in Country nodes, in this case, it would be 3.</p> <pre><code>&lt;Artists_by_Countries&gt; &lt;Artist_by_Country&gt; &lt;Location_ID&gt;62&lt;/Location_ID&gt; &lt;Artist_ID&gt;212&lt...
[ { "answer_id": 153204, "author": "Chris Marasti-Georg", "author_id": 96, "author_profile": "https://Stackoverflow.com/users/96", "pm_score": 3, "selected": false, "text": "count(//Country[not(following::Country/text() = text())])\n /text() ." }, { "answer_id": 153218, "author...
2008/09/30
[ "https://Stackoverflow.com/questions/153156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1100/" ]
153,166
<p>I'm trying to find out whether there is a way to reliably determine when a managed thread is about to terminate. I'm using a third-party library that includes support for PDF documents and the problem is that in order to use the PDF functionality, I have to explicitly initialize the PDF component, do the work, then...
[ { "answer_id": 153219, "author": "McKenzieG1", "author_id": 3776, "author_profile": "https://Stackoverflow.com/users/3776", "pm_score": 2, "selected": false, "text": "System.Thread PDFWidget class PDFWidget\n{\n private Thread pdfWorker;\n public void DoPDFStuff()\n {\n p...
2008/09/30
[ "https://Stackoverflow.com/questions/153166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22239/" ]
153,183
<p>I am working on the admin section of a new rails app and i'm trying to setup some routes to do things "properly". I have the following controller:</p> <pre><code>class Admin::BlogsController &lt; ApplicationController def index @blogs = Blog.find(:all) end def show @blog = Blog.find(params[:id]) en...
[ { "answer_id": 153228, "author": "TonyLa", "author_id": 1295, "author_profile": "https://Stackoverflow.com/users/1295", "pm_score": 2, "selected": false, "text": "admin_blog_path(blog) \n blog_path(blog)\n" }, { "answer_id": 153245, "author": "John Topley", "author_id": 1...
2008/09/30
[ "https://Stackoverflow.com/questions/153183", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18811/" ]
153,227
<p>When I call</p> <pre><code>help(Mod.Cls.f) </code></pre> <p>(Mod is a C extension module), I get the output</p> <pre>Help on method_descriptor: f(...) doc_string</pre> <p>What do I need to do so that the help output is of the form</p> <pre>Help on method f in module Mod: f(x, y, z) doc_string</pre> <...
[ { "answer_id": 153284, "author": "Thomas Wouters", "author_id": 17624, "author_profile": "https://Stackoverflow.com/users/17624", "pm_score": 3, "selected": true, "text": ">>> help(range)\nHelp on built-in function range in module __builtin__:\n\nrange(...)\n range([start,] stop[, ste...
2008/09/30
[ "https://Stackoverflow.com/questions/153227", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11828/" ]
153,234
<p>The thing I've found about TDD is that its takes time to get your tests set up and being naturally lazy I always want to write as little code as possible. The first thing I seem do is test my constructor has set all the properties but is this overkill?</p> <p>My question is to what level of granularity do you writ...
[ { "answer_id": 153429, "author": "David Schmitt", "author_id": 4918, "author_profile": "https://Stackoverflow.com/users/4918", "pm_score": 2, "selected": false, "text": "TestFixture [TestFixture]\npublic class Test_MyObject_SomeProperty : PropertyTest<int>\n{\n\n private MyObject obj ...
2008/09/30
[ "https://Stackoverflow.com/questions/153234", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1116/" ]
153,248
<p>I'm trying to create Excel 2007 Documents programmatically. Now, there are two ways I've found:</p> <ul> <li>Manually creating the XML, as outlined in <a href="https://stackoverflow.com/questions/150339/generating-an-excel-file-in-aspnet#150368">this post</a></li> <li>Using a Third Party Library like <a href="http:...
[ { "answer_id": 153277, "author": "Compile This", "author_id": 4048, "author_profile": "https://Stackoverflow.com/users/4048", "pm_score": 4, "selected": true, "text": "MemoryStream" }, { "answer_id": 155072, "author": "BKimmel", "author_id": 13776, "author_profile": "...
2008/09/30
[ "https://Stackoverflow.com/questions/153248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91/" ]
153,266
<p>In C and C++ you can tell the compiler that a number is a 'long' by putting an 'l' at the end of the number. e.g long x = 0l;</p> <p>How can I tell the C# compiler that a number is a byte?</p>
[ { "answer_id": 153271, "author": "Sklivvz", "author_id": 7028, "author_profile": "https://Stackoverflow.com/users/7028", "pm_score": 3, "selected": false, "text": "byte b = (byte) 123; \n byte b = 123;\n int a = 42;\nbyte b = (byte) a;\n" }, { "answer_id": 153280, "author": "...
2008/09/30
[ "https://Stackoverflow.com/questions/153266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9516/" ]
153,287
<p>I have implemented a simple file upload-download mechanism. When a user clicks a file name, the file is downloaded with these HTTP headers:</p> <pre><code>HTTP/1.1 200 OK Date: Tue, 30 Sep 2008 14:00:39 GMT Server: Microsoft-IIS/6.0 Content-Disposition: attachment; filename=filename.doc; Content-Type: application/o...
[ { "answer_id": 153400, "author": "Ovesh", "author_id": 3751, "author_profile": "https://Stackoverflow.com/users/3751", "pm_score": 4, "selected": true, "text": "Content-Disposition: attachment; filename=\"%E3%81%82%E3%81%82%E3%81%82%E3%81%82%E3%81%82%E3%81%82%E3%81%82%E3%81%82%E3%81%82%E...
2008/09/30
[ "https://Stackoverflow.com/questions/153287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3751/" ]
153,291
<p>I have a question at <a href="https://stackoverflow.com/questions/150038/how-to-wire-a-middle-tier-of-objects-to-a-data-tier-consisting-of-a-dataset#151255">SO</a> asking how to wire a middle tier to a DataSet.</p> <p>I put up an answer showing what I had come up with, but I am not happy with the tight coupling. I...
[ { "answer_id": 237138, "author": "Thomas Eyde", "author_id": 3282, "author_profile": "https://Stackoverflow.com/users/3282", "pm_score": 0, "selected": false, "text": "var order = repository.GetOrderBy(id);\n var dataset = orderDatabase.GetOrderAndDetailsBy(id);\n var order = orderBuilde...
2008/09/30
[ "https://Stackoverflow.com/questions/153291", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1048/" ]
153,354
<p>I have the following code that I wrote but it the SQLBindCol does not seem to work correctly (of course I could have screwed up the whole program too!.) The connection works, it creates the table in the DB, addes the record fine and they all look good in SQL Enterprise Manager. So what I need help with is after th...
[ { "answer_id": 153386, "author": "antik", "author_id": 1625, "author_profile": "https://Stackoverflow.com/users/1625", "pm_score": 2, "selected": false, "text": "SQL_SUCCESS SQL_SUCCESS_WITH_INFO SQLGetDiagRec( SQL_HANDLE_STMT, StatementHandle, req, state, &error, (SQLCHAR*) buffer, (SQL...
2008/09/30
[ "https://Stackoverflow.com/questions/153354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
153,372
<p>I am trying to create a StringNameSpaceBinding using the wsadmin tool of Websphere 6.1</p> <p>Here are the steps i take set cell [$AdminConfig getid /Cell:cell/] $AdminConfig create StringNameSpaceBinding $cell { {name bindname} {nameInNameSpace Bindings/string} {stringToBind "This is the String value that gets bo...
[ { "answer_id": 3836682, "author": "Isaac", "author_id": 443716, "author_profile": "https://Stackoverflow.com/users/443716", "pm_score": 3, "selected": true, "text": "set cell [$AdminConfig getid /Cell:cell/]\n cell set cell [$AdminConfig getid /Cell:/]\n" }, { "answer_id": 440650...
2008/09/30
[ "https://Stackoverflow.com/questions/153372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11612/" ]
153,381
<p>I have to concatenate a bunch of Strings in Javascript and am searching for the fastest way to do so. Let's assume that the Javascript has to create a large XML-"file" that, naturally, consists of many small Strings. So I came up with:</p> <pre><code> var sbuffer = []; for (var idx=0; idx&lt;10000; idx=idx+1...
[ { "answer_id": 153646, "author": "Sergey Ilinsky", "author_id": 23815, "author_profile": "https://Stackoverflow.com/users/23815", "pm_score": 5, "selected": true, "text": "sbuffer.push(‘Data comes here... bla... ’); sbuffer[sbuffer.length] = ‘Data comes here... bla... ’; " } ]
2008/09/30
[ "https://Stackoverflow.com/questions/153381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13209/" ]
153,388
<p>I'm really sick of this problem. Google searches always seem to suggest "delete all bpls for the package", "delete all dcus". Sometimes this just-does-not-work. Hopefully I can get some other ideas here.</p> <p>I have a package written in-house, which had been installed without issue a few months ago. Having made a...
[ { "answer_id": 156746, "author": "Graza", "author_id": 11820, "author_profile": "https://Stackoverflow.com/users/11820", "pm_score": 5, "selected": true, "text": "TMyClass = class(TComponent)\nprivate\n const ErrStrs: array[TErrEnum] of string\n = ('', //erOK\n 'Invalid user na...
2008/09/30
[ "https://Stackoverflow.com/questions/153388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11820/" ]
153,394
<p>I believe in OO, but not to the point where inappropriate designs/implementations should be used just to be "OO Compliant".</p> <p>So, how to deal with the Serlvet/EJB/DataContainer layered architecture:</p> <ul> <li>Servlets receive requests and call a "business layer" (e.g. session EJBs)</li> <li>The business la...
[ { "answer_id": 153510, "author": "JeeBee", "author_id": 17832, "author_profile": "https://Stackoverflow.com/users/17832", "pm_score": 0, "selected": false, "text": "\npublic class UserModel extends DatabaseModel implements XMLable, CRUDdy, Serializable, Fooable, Barloney, Baznatchy, Wibb...
2008/09/30
[ "https://Stackoverflow.com/questions/153394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3029/" ]
153,407
<p>I am upgrading a silverlight beta 2 app to RC0 and have a function that translates a point from a child element to it's parent. The purpose of the function is to ensure that an element appears exactly on top of the child even though they are not on the same canvas and don't share a parent.</p> <p>Here is the curre...
[ { "answer_id": 154150, "author": "Santiago Palladino", "author_id": 12791, "author_profile": "https://Stackoverflow.com/users/12791", "pm_score": 3, "selected": true, "text": "var transform = from.TransformToVisual(to);\nreturn transform.Transform(current);\n" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/153407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21818/" ]
153,413
<p>I'm trying to extract the polygons from placemarks in a KML file. So far so good:</p> <pre><code>Imports &lt;xmlns:g='http://earth.google.com/kml/2.0'&gt; Imports System.Xml.Linq Partial Class Test_ImportPolygons Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System...
[ { "answer_id": 153486, "author": "tbrownell", "author_id": 1981, "author_profile": "https://Stackoverflow.com/users/1981", "pm_score": 1, "selected": false, "text": "Placemark.ToString()\n" }, { "answer_id": 153519, "author": "Herb Caudill", "author_id": 239663, "auth...
2008/09/30
[ "https://Stackoverflow.com/questions/153413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/239663/" ]
153,420
<p>I'm starting a project using a Restful architecture implemented in Java (using the new JAX-RS standard)</p> <p>We are planning to develop the GUI with a Flex application. I have already found some problems with this implementation using the HTTPService component (the response error codes, headers access...).</p> <...
[ { "answer_id": 157532, "author": "Theo", "author_id": 1109, "author_profile": "https://Stackoverflow.com/users/1109", "pm_score": 3, "selected": false, "text": "HTTPService HTTPService flash.net.* URLLoader URLRequest URLRequestHeader" }, { "answer_id": 163228, "author": "Gue...
2008/09/30
[ "https://Stackoverflow.com/questions/153420", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2937/" ]
153,427
<p>I am currently using JUnit 4 and have a need to divide my tests into groups that can be run selectively in any combination. I know TestNG has a feature to annotate tests to assign them to groups, but I can't migrate to TestNG right now. It seems this could easily be accomplished in JUnit with some custom annotations...
[ { "answer_id": 153538, "author": "flicken", "author_id": 12880, "author_profile": "https://Stackoverflow.com/users/12880", "pm_score": 4, "selected": true, "text": "@IfProfileValue(name=\"test-groups\", values={\"unit-tests\", \"integration-tests\"})\n public void testWhichRunsForUnitOr...
2008/09/30
[ "https://Stackoverflow.com/questions/153427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13041/" ]
153,438
<p>I have a VB6 COM component which I need to call from my .Net method. I use reflection to create an instance of the COM object and activate it in the following manner:</p> <pre><code>f_oType = Type.GetTypeFromProgID(MyProgId); f_oInstance = Activator.CreateInstance(f_oType); </code></pre> <p>I need to use GetTypeFrom...
[ { "answer_id": 153538, "author": "flicken", "author_id": 12880, "author_profile": "https://Stackoverflow.com/users/12880", "pm_score": 4, "selected": true, "text": "@IfProfileValue(name=\"test-groups\", values={\"unit-tests\", \"integration-tests\"})\n public void testWhichRunsForUnitOr...
2008/09/30
[ "https://Stackoverflow.com/questions/153438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15570/" ]
153,439
<p>I'm trying to place 4 of my image containers into a new pane, having a total of 16 images. The jQuery below is what I came up with to do it. The first pane comes out correctly with 4 images in it. But the second has 4 images, plus the 3rd pane. And the 3rd pane has 4 images plus the 4th pane. I don't know exact...
[ { "answer_id": 153624, "author": "Wes P", "author_id": 13611, "author_profile": "https://Stackoverflow.com/users/13611", "pm_score": 1, "selected": false, "text": "$(\".digi_image\").slice(0, 4).wrapAll(\"<div class=\\\"digi_pane\\\"></div>\").css(\"border\", \"2px solid red\");\n$(\".di...
2008/09/30
[ "https://Stackoverflow.com/questions/153439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13611/" ]
153,445
<p><strong>Introduction</strong></p> <p>In my current organisation, we have many desktop and web applications all feeding into each other at some point. When looking after older applications or creating new applications, it's proving very difficult to try and remember which system rely on other systems in order to wor...
[ { "answer_id": 6228754, "author": "MetalOx", "author_id": 782905, "author_profile": "https://Stackoverflow.com/users/782905", "pm_score": 1, "selected": false, "text": "digraph g {\n rankdir=LR;\n app1->app2->db1;\n app1->app3;\n}\n" }, { "answer_id": 47445354, "author": "Jef...
2008/09/30
[ "https://Stackoverflow.com/questions/153445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/383/" ]
153,451
<p>I am trying to use <code>WebClient</code> to download a file from web using a WinForms application. However, I really only want to download HTML file. Any other type I will want to ignore.</p> <p>I checked the <code>WebResponse.ContentType</code>, but its value is always <code>null</code>. </p> <p>Anyone have any ...
[ { "answer_id": 153694, "author": "mdb", "author_id": 8562, "author_profile": "https://Stackoverflow.com/users/8562", "pm_score": 0, "selected": false, "text": "Dim wc As New Net.WebClient()\nDim LocalFile As String = IO.Path.Combine(Environment.GetEnvironmentVariable(\"TEMP\"), Guid.NewG...
2008/09/30
[ "https://Stackoverflow.com/questions/153451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
153,460
<p>Most applications only have "Restore, Move, Size, Minimize, Maximize and Close", however <i>MS SQL</i> offers extra options "Help, Customize view". Along those lines, is it possible to add to the right click menu of an application in the task bar? </p> <p>Note: I'm <b>not</b> referring to an icon in the notificati...
[ { "answer_id": 153568, "author": "C. Ross", "author_id": 16487, "author_profile": "https://Stackoverflow.com/users/16487", "pm_score": 1, "selected": false, "text": " private const int WMTaskbarRClick = 0x0313;\n\n protected override void WndProc(ref Message m)\n {\n swit...
2008/09/30
[ "https://Stackoverflow.com/questions/153460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1484/" ]
153,461
<p>I notice that Rails 2.2 (currently edge) supports <a href="http://rails.lighthouseapp.com/projects/8994/tickets/1046-http-only-cookies-in-cookiestore" rel="nofollow noreferrer">setting HttpOnly on the session cookie</a>.</p> <p>Is there a way of setting it on a Rails 2.1 application without moving to edge/2.2?</p>
[ { "answer_id": 153499, "author": "John Topley", "author_id": 1450, "author_profile": "https://Stackoverflow.com/users/1450", "pm_score": 0, "selected": false, "text": "http_only cookies['visits'] = { :value => '20', :http_only => true }\n" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/153461", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19079/" ]
153,482
<p>I have a Tapestry application that is serving its page as UTF-8. That is, server responses have header:</p> <pre><code>Content-type: text/html;charset=UTF-8 </code></pre> <p>Now within this application there is a single page that should be served with ISO-8859-1 encoding. That is, server response should have this ...
[ { "answer_id": 160706, "author": "Brian", "author_id": 700, "author_profile": "https://Stackoverflow.com/users/700", "pm_score": 3, "selected": true, "text": "public class EncodingFilter implements Filter {\nprivate String encoding;\nprivate FilterConfig filterConfig;\n\n/**\n* @see java...
2008/09/30
[ "https://Stackoverflow.com/questions/153482", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431/" ]
153,496
<p>.Net Compact Framework</p> <p>Scenario: User is on a screen. Device can't finds a printer and asks the user if they want to try again. If they click "No", the current screen is closed and they are returned to the parent menu screen. If they click the "No" button multiple times, the first click will be used by the N...
[ { "answer_id": 204298, "author": "tamberg", "author_id": 3588, "author_profile": "https://Stackoverflow.com/users/3588", "pm_score": 2, "selected": false, "text": "using System;\nusing System.Windows.Forms;\n\npublic sealed class Event {\n\n bool forwarding;\n\n public event EventH...
2008/09/30
[ "https://Stackoverflow.com/questions/153496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/620435/" ]