qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
298,011
<p>I have seen posts that show three ways to reset the DMV views:</p> <ol> <li>Reset the SQL Service</li> <li>Detatch the database</li> <li>Close the database</li> </ol> <p>All of these methods seem to require taking the system off-line for a few moments. Is there a way to reset the statistics on demand without inte...
[ { "answer_id": 362243, "author": "gbn", "author_id": 27535, "author_profile": "https://Stackoverflow.com/users/27535", "pm_score": 2, "selected": true, "text": "sys.dm_os_latch_stats\nsys.dm_os_wait_stats\n" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298011", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32992/" ]
298,013
<p>Say I have entities organized in a hierarchy with <code>Parent</code> being the root entity and <code>Child</code> being a subclass of <code>Parent</code>. I'd like to setup an <code>NSArrayController</code> to fetch only entities of <code>Parent</code>, but not <code>Child</code>.</p> <p>If you set the Entity Nam...
[ { "answer_id": 298119, "author": "Chris Hanson", "author_id": 714, "author_profile": "https://Stackoverflow.com/users/714", "pm_score": 3, "selected": false, "text": "includesSubentities defaultFetchRequest -fetchWithRequest:..." }, { "answer_id": 304208, "author": "Dave Drib...
2008/11/18
[ "https://Stackoverflow.com/questions/298013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26825/" ]
298,015
<p>Do developers have to put certain/extra elements in the feed's XML file or attributes in the hyperlink for the browser to recognize that it's a feed that can be subscribed to? Or do browsers do that automatically as long as the XML validates?</p> <p>(showing users that "Subscribe to this feed using..." interface in...
[ { "answer_id": 302646, "author": "Oppositional", "author_id": 2029, "author_profile": "https://Stackoverflow.com/users/2029", "pm_score": 3, "selected": true, "text": "<html>\n <head>\n <title>My Web Site</title>\n <link rel=\"alternate\" type=\"application/atom+xml\" title=\"My F...
2008/11/18
[ "https://Stackoverflow.com/questions/298015", "https://Stackoverflow.com", "https://Stackoverflow.com/users/57936/" ]
298,016
<p>What are all the problem that you foresee in doing that.</p>
[ { "answer_id": 314663, "author": "John Dibling", "author_id": 241536, "author_profile": "https://Stackoverflow.com/users/241536", "pm_score": 4, "selected": true, "text": "for( int n = 0; n < someMax; ++n )\n{\n // do stuff\n}\n\nprintf(\"Did %d stuffs\", n);\n" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22076/" ]
298,024
<p>Boost is a great set of libraries and it really <em>boosts</em> productivity. But debugging code that uses it is a total nightmare. Sure, stepping through twenty thousand header files can be a valuable intellectual exercise, but what if you need to do it over and over again?</p> <p>Is there a developer-friendly way...
[ { "answer_id": 298038, "author": "Alastair", "author_id": 31038, "author_profile": "https://Stackoverflow.com/users/31038", "pm_score": 4, "selected": true, "text": "boost\\:\\:.*=NoStepInto boost::function" }, { "answer_id": 298054, "author": "Andreas Magnusson", "author...
2008/11/18
[ "https://Stackoverflow.com/questions/298024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21704/" ]
298,031
<p>If it does, then how do you justify the overheads incurred (journaling etc.)? If it does not, then how come the pagefile gets fragmented? Additionally, would increasing the cluster size improve pagefile performance (cluster slack space is a non-issue)?</p>
[ { "answer_id": 298038, "author": "Alastair", "author_id": 31038, "author_profile": "https://Stackoverflow.com/users/31038", "pm_score": 4, "selected": true, "text": "boost\\:\\:.*=NoStepInto boost::function" }, { "answer_id": 298054, "author": "Andreas Magnusson", "author...
2008/11/18
[ "https://Stackoverflow.com/questions/298031", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,039
<p>I have a custom control that I need to use in another custom control. I have written all code at server side (no HTML). Can anyone tell me how to write below line of code in code behind using <code>htmlTextWriter</code> and how to register this control or how to write custom control within another where html is writ...
[ { "answer_id": 298061, "author": "Chris Fulstow", "author_id": 38126, "author_profile": "https://Stackoverflow.com/users/38126", "pm_score": 2, "selected": false, "text": "namespace My.Controls\n{\n public class InnerControl : Control\n {\n protected override void Render(Htm...
2008/11/18
[ "https://Stackoverflow.com/questions/298039", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,048
<p><a href="http://mumble.net/~campbell/emacs/paredit.el" rel="noreferrer">paredit</a> binds <code>M-&lt;up&gt;</code> and <code>M-&lt;down&gt;</code>, but I want <a href="http://www.emacswiki.org/emacs/WindMove" rel="noreferrer">windmove</a> to own those keybindings. I have paredit-mode set to activate in certain mod...
[ { "answer_id": 298685, "author": "Emerick Rogul", "author_id": 33837, "author_profile": "https://Stackoverflow.com/users/33837", "pm_score": 5, "selected": true, "text": "eval-after-load ;;; Customize paredit using `eval-after-load':\n;;;\n;;; (eval-after-load 'paredit\n;;; '(progn...
2008/11/18
[ "https://Stackoverflow.com/questions/298048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23070/" ]
298,049
<p>I want to, from JavaScript, access as a variable the file that is loaded as an image in an img tag. </p> <h2>I don't want to access its name, but the actual data.</h2> <p>The reason for this is that I want to be able to copy it to and from variables so that I can , among other things, change the image without relo...
[ { "answer_id": 298050, "author": "Falco Foxburr", "author_id": 37266, "author_profile": "https://Stackoverflow.com/users/37266", "pm_score": -1, "selected": false, "text": "img = new Image(); \nimg.src = \"imagefile.jpg\";\n" }, { "answer_id": 298101, "author": "Tomalak", ...
2008/11/18
[ "https://Stackoverflow.com/questions/298049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1343/" ]
298,057
<p>I want to access a MySQL database directly from JavaScript code in an HTML page in Firefox.</p> <p>Does such a library exist?</p> <p>To be very clear, <strong>CGI+Ajax will not work</strong></p> <p>Some background: I want to create something like a GUI front end for a MySQL database (that's not what it is, but it...
[ { "answer_id": 298296, "author": "Lukman", "author_id": 34586, "author_profile": "https://Stackoverflow.com/users/34586", "pm_score": 0, "selected": false, "text": "var myshell = new ActiveXObject( \"WScript.shell\" );\nmyshell.run( program names );\n mysql.exe mysql.exe -h localhost -u ...
2008/11/18
[ "https://Stackoverflow.com/questions/298057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1343/" ]
298,063
<p>I have got a table in MS Access 2007 with 4 fields.</p> <ul> <li>Labour Cost</li> <li>Labour Hours</li> <li>Vat</li> <li>Total</li> </ul> <p>How do I multiply 'Labour Hours' by 'Labour Cost' add the 'VAT' and display the answer in 'Total'</p> <p>Where would I put any formulas?, in a form or query or table ?</p>
[ { "answer_id": 298072, "author": "Phil.Wheeler", "author_id": 15609, "author_profile": "https://Stackoverflow.com/users/15609", "pm_score": 2, "selected": false, "text": "SELECT [Total] = [Labour Cost] * [Labour Hours] + [VAT]\n" }, { "answer_id": 298093, "author": "Cybis", ...
2008/11/18
[ "https://Stackoverflow.com/questions/298063", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,069
<p>I'm tasked with automating the retrieval of a couple of <a href="http://www.businessobjects.com/product/catalog/web_intelligence/" rel="nofollow noreferrer">BusinessObjects Web Intelligence</a> reports and further processing thereof.</p> <p>I have no other means of access to this data (this was the first avenue I f...
[ { "answer_id": 548870, "author": "Shift8", "author_id": 46323, "author_profile": "https://Stackoverflow.com/users/46323", "pm_score": 2, "selected": false, "text": "c:\\curl\\bin\\curl -X POST -F File=@[filename] -F \"title=[title]\" -F \"notes=[notes]\" \"http://xxx/AddScannedImage?debt...
2008/11/18
[ "https://Stackoverflow.com/questions/298069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2260/" ]
298,074
<p>I would like to add a method to a built-in type (e.g. Double), so that I can use an <code>infix</code> operator. Is that possible?</p>
[ { "answer_id": 298087, "author": "Daniel Spiewak", "author_id": 9815, "author_profile": "https://Stackoverflow.com/users/9815", "pm_score": 5, "selected": true, "text": "double class MyRichDouble(d: Double) {\n def <>(other: Double) = d != other\n}\n\nimplicit def doubleToSyntax(d: Doub...
2008/11/18
[ "https://Stackoverflow.com/questions/298074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34596/" ]
298,116
<p>In a JSF dataTable I want to display the row index next to the rows... like:</p> <pre><code>Column A Column B 1 xxx 2 yyy </code></pre> <p>I thought that I could use an implicit el variable like #{rowIndex} but this is not working.</p> <p>A solution I found is to create a binding for the da...
[ { "answer_id": 298612, "author": "McDowell", "author_id": 304, "author_profile": "https://Stackoverflow.com/users/304", "pm_score": 5, "selected": true, "text": " <h:dataTable border=\"1\" value=\"#{nestedDataModel}\" var=\"nested\">\n <h:column>\n <h:dataTable borde...
2008/11/18
[ "https://Stackoverflow.com/questions/298116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19331/" ]
298,139
<p>I'm passing a reference of a form to a class. Within this class I believed I could use <code>formRef-&gt;Controls["controlName"]</code> to access properties on the control.</p> <p>This works for a few labels, but on a button I receive a "Object reference not set to an instance of an object." when I try to change th...
[ { "answer_id": 298268, "author": "rozon", "author_id": 37583, "author_profile": "https://Stackoverflow.com/users/37583", "pm_score": 1, "selected": true, "text": "array<Control^>^ id = myForm->Controls->Find(\"myButton\", true);\nid[0]->Text = \"new text\";\n" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37583/" ]
298,162
<p>Ok well I've been trying to convert my model to use LINQ but didn't want to throw away my current DTO's and their interfaces which are scattered through the domain.</p> <p>I managed to find this blog post which has outlined the process quite nicely:</p> <p><a href="http://www.sidarok.com/web/blog/content/2008/10/1...
[ { "answer_id": 298250, "author": "Ali Ersöz", "author_id": 4215, "author_profile": "https://Stackoverflow.com/users/4215", "pm_score": 2, "selected": false, "text": "[Test]\npublic void AddSelectionShouldAddSelectionToMarket()\n{\n Market market = (Market) new Repository().GetMarket(1...
2008/11/18
[ "https://Stackoverflow.com/questions/298162", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12948/" ]
298,167
<p>Instead of writing</p> <pre><code>((x: Double) =&gt; (((y: Double) =&gt; y*y))(x+x))(3) </code></pre> <p>I would like to write something like</p> <pre><code>((x: Double) =&gt; let y=x+x in y*y)(3) </code></pre> <p>Is there anything like this sort of syntactic sugar in Scala?</p>
[ { "answer_id": 299310, "author": "Daniel Spiewak", "author_id": 9815, "author_profile": "https://Stackoverflow.com/users/9815", "pm_score": 5, "selected": true, "text": "val ({ x: Double =>\n val y = x + x\n y * y\n})(3)\n val var" }, { "answer_id": 300866, "author": "Germá...
2008/11/18
[ "https://Stackoverflow.com/questions/298167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34596/" ]
298,169
<p>Ok guys any idea how i may go about creating an answers file for an unattended install for say WinAmp?</p> <p>So far all my research points to is doing an unattended install for windows or some other OS. What I want to do is create an unattended install for a 3rd party software. Are there tools to do this? Or is un...
[ { "answer_id": 300760, "author": "saschabeaumont", "author_id": 592, "author_profile": "https://Stackoverflow.com/users/592", "pm_score": 2, "selected": true, "text": "MSIEXEC /I file.msi /QUIET\n" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38210/" ]
298,183
<p>Is it better to initialize class member variables on declaration</p> <pre><code>private List&lt;Thing&gt; _things = new List&lt;Thing&gt;(); private int _arb = 99; </code></pre> <p>or in the default constructor?</p> <pre><code>private List&lt;Thing&gt; _things; private int _arb; public TheClass() { _things = n...
[ { "answer_id": 298208, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 7, "selected": true, "text": "[DefaultValue(\"\")]\npublic string Foo {get;set;}\npublic Bar() { // ctor\n Foo = \"\";\n}\n private readonly List<S...
2008/11/18
[ "https://Stackoverflow.com/questions/298183", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1535/" ]
298,187
<p>I have a small program that is installed in a custom folder in the program files, but when I tried to read or write to files that are needed to operate, the program raises an Access Denied Exeption. How can I elevte the program, with the user's permission of course.</p>
[ { "answer_id": 13526576, "author": "Marimuthu", "author_id": 1847154, "author_profile": "https://Stackoverflow.com/users/1847154", "pm_score": 1, "selected": false, "text": "e.g. fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);\n" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298187", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35984/" ]
298,190
<p>On input validation, I'm using balloon tips instead of message boxes. My problem is that on Vista, they have the old XP style with the rounded corners, not the newer more rectangle like appearance.</p> <p>I've tried creating them using CreateWindowEx and <code>tooltips_class32</code> or showing the Edit's associate...
[ { "answer_id": 299343, "author": "Jim McKeeth", "author_id": 255, "author_profile": "https://Stackoverflow.com/users/255", "pm_score": 2, "selected": false, "text": "procedure ShowHint; overload;\nprocedure ShowHint(Point: TPoint); overload;\nprocedure ShowHint(Rect: TRect); overload;\np...
2008/11/18
[ "https://Stackoverflow.com/questions/298190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15089/" ]
298,194
<p>I develop one application using VB.net (200%) that connects to MS-Access Database, I use TableAdapter and Dataset for connection to the Access DB file.</p> <p>I need to implement a simple transaction method (commit, rollback) in saving to the DB?</p> <p>Is there a way to do that without the need to use inline SQL ...
[ { "answer_id": 298253, "author": "artur02", "author_id": 13937, "author_profile": "https://Stackoverflow.com/users/13937", "pm_score": 4, "selected": false, "text": " SqlConnection db = new SqlConnection(\"connstringhere\");\n SqlTransaction transaction;\n\n db.Open();\n ...
2008/11/18
[ "https://Stackoverflow.com/questions/298194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,218
<p>In XHTML Strict, it seems that you're not allowed to use the <code>&lt;u&gt;</code> tag any more. Is there a semantic equivalent like there is for <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code>? If not, is there any convention for how to markup underlined text in XHTML?</p> <p>Thanks.</p>
[ { "answer_id": 298247, "author": "annakata", "author_id": 13018, "author_profile": "https://Stackoverflow.com/users/13018", "pm_score": 3, "selected": false, "text": "<span class=\"highlight\"> <em>" }, { "answer_id": 507976, "author": "vartec", "author_id": 60711, "a...
2008/11/18
[ "https://Stackoverflow.com/questions/298218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21709/" ]
298,219
<p>I'm looking to find a way to access the .net query string contained in the standard ASP.NET request object inside a web service. In other words if I set a SOAP web service to this url:</p> <p><a href="http://localhost/service.asmx?id=2" rel="noreferrer">http://localhost/service.asmx?id=2</a></p> <p>Can I access th...
[ { "answer_id": 298229, "author": "Ali Ersöz", "author_id": 4215, "author_profile": "https://Stackoverflow.com/users/4215", "pm_score": 5, "selected": true, "text": "this.Context.Request.QueryString[\"id\"];\n" }, { "answer_id": 1297948, "author": "Community", "author_id":...
2008/11/18
[ "https://Stackoverflow.com/questions/298219", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32582/" ]
298,228
<p>This led on from the question about asking if Apache Maven and IBM Rational ClearCase integrated well. Thought I should write up what I found out - will require various edits, but I shall eventually get round to adding it all I hope.</p> <h2>Environment</h2> <p><strong>ClearCase</strong> - Version 7.0.1.2 of ClearCa...
[ { "answer_id": 298306, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 2, "selected": false, "text": "INFO Checking out file: /opt/viewstore/common/maven/my_lf_ss/vobs/test_alm/LF_Build/pom.xml\nINFO ERROR BUILD FAILURE\nINFO INF...
2008/11/18
[ "https://Stackoverflow.com/questions/298228", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31161/" ]
298,231
<p>I have following string</p> <pre><code>String str = "replace :) :) with some other string"; </code></pre> <p>And I want to replace first occurance of <code>:)</code> with some other string</p> <p>And I used <code>str.replaceFirst(":)","hi");</code></p> <p>it gives following exception</p> <blockquote> <p>"Unma...
[ { "answer_id": 298240, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 3, "selected": false, "text": "replaceFirst ) str.replaceFirst(\":\\\\)\", \"hi\");\n" }, { "answer_id": 298242, "author": "Tor Haugen", ...
2008/11/18
[ "https://Stackoverflow.com/questions/298231", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25778/" ]
298,235
<p>I'm having some doubts on how to set up my SVN stuff. </p> <p>First my situation: Programmer working alone on most stuff, outside access not needed (yet).</p> <p>I want:<ul> <li>A speedy SVN, preferably free. <li>Private <li>Backup friendly <li>Somewhat hassle free <li>A lot of storage. </ul> I don't want:<ul...
[ { "answer_id": 298371, "author": "Tader", "author_id": 30700, "author_profile": "https://Stackoverflow.com/users/30700", "pm_score": 0, "selected": false, "text": "git init" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298235", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30600/" ]
298,257
<p>Parts of my application are in C++ under windows. I need the process id for the current process. Any thoughts? </p>
[ { "answer_id": 298262, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 7, "selected": true, "text": "GetCurrentProcessId" }, { "answer_id": 28183927, "author": "David A. Gray", "author_id": 3079037, "aut...
2008/11/18
[ "https://Stackoverflow.com/questions/298257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21634/" ]
298,261
<p>If I have the following code:</p> <pre><code>MyClass pClass = new MyClass(); pClass.MyEvent += MyFunction; pClass = null; </code></pre> <p>Will pClass be garbage collected? Or will it hang around still firing its events whenever they occur? Will I need to do the following in order to allow garbage collection?</p> ...
[ { "answer_id": 298276, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 9, "selected": true, "text": "publisher.SomeEvent += target.SomeHandler;\n" }, { "answer_id": 298284, "author": "Tor Haugen", "autho...
2008/11/18
[ "https://Stackoverflow.com/questions/298261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/986/" ]
298,277
<p>When C# 4.0 comes out and we have the dynamic keyword as described in this <a href="http://channel9.msdn.com/pdc2008/TL16/" rel="noreferrer">excellent presentation by Anders Hejlsberg</a>, (C# is evolving faster than I can keep up.. I didn't have much time to acquaint myself with the var keyword)</p> <p>Would I sti...
[ { "answer_id": 298287, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 7, "selected": true, "text": "var dynamic dynamic var" }, { "answer_id": 298290, "author": "JaredPar", "author_id": 23283, "author_...
2008/11/18
[ "https://Stackoverflow.com/questions/298277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1695/" ]
298,281
<p>Is it possible to create a list that can be access by either an index or a key?</p> <p><em>I am looking for a Collection type that already exists but has this facility, I want to avoid redefining the indexers</em> </p>
[ { "answer_id": 298295, "author": "Robert Wagner", "author_id": 10784, "author_profile": "https://Stackoverflow.com/users/10784", "pm_score": 0, "selected": false, "text": "public object this[int index]\n{\n get { /* return the specified index here */ }\n set { /* set the specified ...
2008/11/18
[ "https://Stackoverflow.com/questions/298281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3834/" ]
298,288
<p>I have the following code</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Test&lt;/title&gt; &lt;style type="text/css"&gt; &lt;!-- body,td,th { color: #FFFFFF; } body { background-color: #000000; } #Pictures { position:absolute; width:591px; height:214px; z-index:1; ...
[ { "answer_id": 298318, "author": "Phil Jenkins", "author_id": 35496, "author_profile": "https://Stackoverflow.com/users/35496", "pm_score": 1, "selected": true, "text": "display: block; links2 <span> <div> #Pictures span\n{\n float: left;\n margin-right: 5px;\n}\n" }, { "answ...
2008/11/18
[ "https://Stackoverflow.com/questions/298288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1246613/" ]
298,289
<p>I have the following code that I need to add an additonal object to after the results have been retrieved from the databse. Any Ideas on how I might to this ?</p> <pre><code> public IEnumerable&lt;ProdPriceDisplay&gt; GetShopProductsPrices() { //ProdPriceDisplay ProdPrice = new ProdPriceDisplay(); var Pr...
[ { "answer_id": 298304, "author": "Ali Ersöz", "author_id": 4215, "author_profile": "https://Stackoverflow.com/users/4215", "pm_score": 0, "selected": false, "text": "var productsAsList = Products.ToList();\nproductsAsList.Add(new ProdPriceDisplay { ProdPrice = \"some additional text\"; }...
2008/11/18
[ "https://Stackoverflow.com/questions/298289", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26809/" ]
298,292
<p>I'm trying to read a value from a file and use it in a subsequent command.</p> <p>I have a file called <code>AppServer.pid</code> which contains the process id of my app server (just the number, it's not a properties file or anything like that).</p> <p>The app server is hanging, so I want to take this value and pa...
[ { "answer_id": 298374, "author": "RuntimeException", "author_id": 15789, "author_profile": "https://Stackoverflow.com/users/15789", "pm_score": 1, "selected": false, "text": "for /f %%G in (appid.txt) do (SET PID=%%G)\necho %PID%\ntaskkill etc here... \n" }, { "answer_id": 298409...
2008/11/18
[ "https://Stackoverflow.com/questions/298292", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21590/" ]
298,301
<p>Can anyone provide some pseudo code for a roulette selection function? How would I implement this: I don't really understand how to read this math notation.I want General algorithm to this.</p>
[ { "answer_id": 298315, "author": "Bork Blatt", "author_id": 5381, "author_profile": "https://Stackoverflow.com/users/5381", "pm_score": 2, "selected": false, "text": "VBScript RND() Math.random()" }, { "answer_id": 320788, "author": "Dan Dyer", "author_id": 5171, "aut...
2008/11/18
[ "https://Stackoverflow.com/questions/298301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,305
<p>How to do this in Java - passing a collection of subtype to a method requiring a collection of base type?</p> <p>The example below gives:</p> <pre><code>The method foo(Map&lt;String,List&gt;) is not applicable for the arguments (Map&lt;String,MyList&gt;) </code></pre> <p>I can implement by creating a class hierar...
[ { "answer_id": 298332, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 5, "selected": true, "text": "foo private void foo(Map <String, ? extends List> in) {\n}\n foo" }, { "answer_id": 298354, "author": "Ray Ta...
2008/11/18
[ "https://Stackoverflow.com/questions/298305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2887/" ]
298,312
<p>Staring JBoss server from within Eclipse Ganymede gives me the following problem: "Server JBoss v4.0 at localhost was unable to start within 120 seconds. If the server requires more time, try increasing the timeout in the server editor."</p> <p>The console shows JBoss has started in so and so minutes but soon after...
[ { "answer_id": 341001, "author": "Mg.", "author_id": 314728, "author_profile": "https://Stackoverflow.com/users/314728", "pm_score": 0, "selected": false, "text": "-Djava.io.tmpdir=yourTempDirectory\n" }, { "answer_id": 1703737, "author": "Aboubacar Toure", "author_id": 2...
2008/11/18
[ "https://Stackoverflow.com/questions/298312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,314
<p>I have a Git repository I store random things in. Mostly random scripts, text files, websites I've designed and so on.</p> <p>There are some large binary files I have deleted over time (generally 1-5MB), which are sitting around increasing the size of the repository, which I don't need in the revision history.</p> ...
[ { "answer_id": 298888, "author": "Aristotle Pagaltzis", "author_id": 9410, "author_profile": "https://Stackoverflow.com/users/9410", "pm_score": 7, "selected": true, "text": "git-find-blob #!/usr/bin/perl\nuse 5.008;\nuse strict;\nuse Memoize;\n\nsub usage { die \"usage: git-large-blob <...
2008/11/18
[ "https://Stackoverflow.com/questions/298314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/745/" ]
298,319
<p>I have a list of tables i.e. student, teacher, staff, dept. and so on and each of these tables have comments specific to them. Now one record in a table can have one or many comments that shows it's a one to many relation from any table to comments table. I don't know what the best way is to relate comments table to...
[ { "answer_id": 298336, "author": "Zoredache", "author_id": 20267, "author_profile": "https://Stackoverflow.com/users/20267", "pm_score": 4, "selected": true, "text": "Id int\nCommentType enum (student, teacher, staff, dept)\nLinkId int\nComment\n 1,'Student',347,'text'\n" }, { "a...
2008/11/18
[ "https://Stackoverflow.com/questions/298319", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29656/" ]
298,326
<p>When we use getstring to get data from a recordset (ADO) then it returns all the columns.</p> <p>If only certain columns are required, how do we modify the getstring statement?</p>
[ { "answer_id": 298526, "author": "Fionnuala", "author_id": 2548, "author_profile": "https://Stackoverflow.com/users/2548", "pm_score": 3, "selected": true, "text": "strSQL=\"SELECT ID, FName, SName FROM Members\"\nrs.Open strSQL, cn\n\na=rs.GetString\n" }, { "answer_id": 299161, ...
2008/11/18
[ "https://Stackoverflow.com/questions/298326", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31132/" ]
298,342
<p>I have a Flash movie embedded in some DIV. The trouble is that when I change any property of the enclosing DIV dynamically, Firefox (not other browsers) restarts/reinitializes Flash movie effectively resetting the whole progress (eg: file selection for upload, etc.).</p> <p>Is there some sort of a workaround for th...
[ { "answer_id": 315332, "author": "Kornel", "author_id": 27009, "author_profile": "https://Stackoverflow.com/users/27009", "pm_score": 3, "selected": true, "text": "visibility:hidden position:absolute;left:-9999px" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298342", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38511/" ]
298,346
<p>I have written C# code for ascx. I am trying to send an email on click of image button which works in Mozilla Firefox but not in Internet Explorer.</p> <p>This function is called on button click:</p> <pre><code>&lt;%@ Control Language="C#" %&gt; &lt;%@ Import Namespace="System" %&gt; &lt;%@ Import Namespace="Syste...
[ { "answer_id": 1919950, "author": "subha", "author_id": 233568, "author_profile": "https://Stackoverflow.com/users/233568", "pm_score": 1, "selected": true, "text": " var KeyID = (window.event) ? event.keyCode : e.keyCode;\n if (KeyID == 0) {\n var image = docume...
2008/11/18
[ "https://Stackoverflow.com/questions/298346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30394/" ]
298,347
<p>I have a flash file that loads an XML file at runtime. When the <code>.swf</code> file is run locally or on an Apache server it works fine but when hosted on an IIS6 based server the file won't load. </p> <p>Can anyone help with this?</p>
[ { "answer_id": 1919950, "author": "subha", "author_id": 233568, "author_profile": "https://Stackoverflow.com/users/233568", "pm_score": 1, "selected": true, "text": " var KeyID = (window.event) ? event.keyCode : e.keyCode;\n if (KeyID == 0) {\n var image = docume...
2008/11/18
[ "https://Stackoverflow.com/questions/298347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,359
<p>Currently I have a ListView (using the Details View). I would like to implement the behaviour whereby when a user selects a single item (log entry) the log entry expands (from one line to multiple lines) to provide more detailed information about the error that occured.</p> <p>My question is this: Is this possible?...
[ { "answer_id": 298710, "author": "buggs", "author_id": 33647, "author_profile": "https://Stackoverflow.com/users/33647", "pm_score": 4, "selected": true, "text": " <ListBox ItemsSource=\"{Binding}\">\n <ListBox.ItemTemplate>\n <DataTemplate>\n <Grid>\n...
2008/11/18
[ "https://Stackoverflow.com/questions/298359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1816/" ]
298,361
<p>In previous releases there were 3 ways to pass data from controller to view AFAIK (shown below). </p> <p>I want to use method (2) with MVC Beta 1, but I can't find the renderView method. So what's the new syntax (if it's still possible)? Thanks in advance.</p> <p>Ben.</p> <p>Syntax #1: Old-school dictionary</p> ...
[ { "answer_id": 298383, "author": "Kieron", "author_id": 5791, "author_profile": "https://Stackoverflow.com/users/5791", "pm_score": 3, "selected": true, "text": "return View (\"ShowCat\", <TYPED_DATA_SET_OR_OTHER_MODEL>);\n" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38522/" ]
298,363
<p>I create new ASP.NET web application that use SMTP to send message. The problem is the smtp was not authenticated from who send the message. </p> <p>How can I make SMTP authenticated in my program? does C# have a class that have attribute for enter username and password?</p>
[ { "answer_id": 298379, "author": "Arief", "author_id": 34096, "author_profile": "https://Stackoverflow.com/users/34096", "pm_score": 8, "selected": true, "text": "using System.Net;\nusing System.Net.Mail;\n\nusing(SmtpClient smtpClient = new SmtpClient())\n{\n var basicCredential = ne...
2008/11/18
[ "https://Stackoverflow.com/questions/298363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/36446/" ]
298,370
<p>Is it possible to change java lookandfeel without modifying the program in a real-world environment?</p> <p>I know that theoretically the answer is yes. I also created demo applications and changed the lookandfeel even at runtime and it worked. But when I created a real application with lots of controls lookandfeel...
[ { "answer_id": 298438, "author": "reallyinsane", "author_id": 35407, "author_profile": "https://Stackoverflow.com/users/35407", "pm_score": 2, "selected": false, "text": "java -jar yourapp.jar\n java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar yourapp.jar\n" }, ...
2008/11/18
[ "https://Stackoverflow.com/questions/298370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21348/" ]
298,373
<p>Normally, in Delphi one would declare a function with a variable number of arguments using the 'array of const' method. However, for compatibility with code written in C, there's an much-unknown 'varargs' directive that can be added to a function declaration (I learned this while reading Rudy's excellent '<a href="...
[ { "answer_id": 298603, "author": "Barry Kelly", "author_id": 3712, "author_profile": "https://Stackoverflow.com/users/3712", "pm_score": 5, "selected": true, "text": "{$apptype console}\n\ntype \n TArgPtr = record\n private\n FArgPtr: PByte;\n class function Align(Ptr: Pointer; ...
2008/11/18
[ "https://Stackoverflow.com/questions/298373", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12170/" ]
298,385
<p>Is it possible to get a list of all instances with a name in a flash movie using actionscript 2. Like an array containing all named text areas, or all movieClip instances etc. I would like to get this so the designer can add or remove text areas etc. and the actionscript can dynamically find these and get the texts ...
[ { "answer_id": 299578, "author": "defmeta", "author_id": 10875, "author_profile": "https://Stackoverflow.com/users/10875", "pm_score": 0, "selected": false, "text": "for (var i in this) {\n if (typeof (this[i]) == \"movieclip\") {\n trace(\"movie clip '\"+this[i]._name+\"' is at de...
2008/11/18
[ "https://Stackoverflow.com/questions/298385", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26115/" ]
298,391
<p>I'm a little bit stuck with a asp.net project that i'm doing! I have got a class that is called from the code behind and many of its function have no return type ie, being void. How does one do exception handling then??? Also, if the function within the class does have a return type of, for instance, a dataset how w...
[ { "answer_id": 298413, "author": "Tor Haugen", "author_id": 32050, "author_profile": "https://Stackoverflow.com/users/32050", "pm_score": 0, "selected": false, "text": "catch (NpgsqlException ne)\n{\n throw new Exception(\"Your explanatory message here\", ne);\n}\nfinally\n{\n ...\...
2008/11/18
[ "https://Stackoverflow.com/questions/298391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,432
<p>I have a really simple ASP.NET web application and a web setup project that deploys the project output and content files to a virtual directory in IIS.</p> <p>What I want is for the MSI to automatically disable Anonymouse Access for that virtual folder in IIS. </p> <p>I suspect it can probably be done by writing s...
[ { "answer_id": 314042, "author": "Ian G", "author_id": 31765, "author_profile": "https://Stackoverflow.com/users/31765", "pm_score": 3, "selected": false, "text": "web.config <system.web>\n<authentication mode=\"Windows\"/>\n<authorization>\n <deny users=\"?\"/> \n</authorization>\n</sy...
2008/11/18
[ "https://Stackoverflow.com/questions/298432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1039/" ]
298,446
<p>I've just started building a prototype application in Django. I started out by working through the <a href="http://docs.djangoproject.com/en/dev/intro/tutorial01/" rel="nofollow noreferrer">Django app tutorial on the Django site</a> which was pretty helpful, and gave me what I needed to get started. Now I have a cou...
[ { "answer_id": 298489, "author": "S.Lott", "author_id": 10661, "author_profile": "https://Stackoverflow.com/users/10661", "pm_score": 4, "selected": true, "text": "{{form}}" }, { "answer_id": 298499, "author": "Alexander Kojevnikov", "author_id": 712, "author_profile"...
2008/11/18
[ "https://Stackoverflow.com/questions/298446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11522/" ]
298,449
<p>I have the following code for my masterpage:</p> <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/x...
[ { "answer_id": 463265, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "bottom:0px;\nposition:absolute;\n" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,456
<p>I just want to create a C# program which will read a word template and create n number of copies of it with mail merge feature.The data to replace is Name and Address the rest of the things in the template should remains the same. Can any one tell me how to do this ?</p>
[ { "answer_id": 303367, "author": "Fionnuala", "author_id": 2548, "author_profile": "https://Stackoverflow.com/users/2548", "pm_score": 0, "selected": false, "text": " strDir = CurrentProject.Path \n\n strMailmergeDataFilename = strDir & Format(Now, \"yymmdd_hhnnss\") & \".txt\"\n\n' Cre...
2008/11/18
[ "https://Stackoverflow.com/questions/298456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,460
<p>I'm working on a <a href="http://userstyles.org/styles/12154" rel="nofollow noreferrer">Youtube userstyle script</a> that displays comments side by side with the video so you can watch the video and read the comments at the same time (what a marvelous idea - duh). You can see in the screenshots how far I've got. Tha...
[ { "answer_id": 298541, "author": "annakata", "author_id": 13018, "author_profile": "https://Stackoverflow.com/users/13018", "pm_score": 2, "selected": false, "text": "#main {\n border: 1px solid;\n width: 50%;\n float: left;\n}\n\n#rightnav {\n background-color: yellow;\n opaci...
2008/11/18
[ "https://Stackoverflow.com/questions/298460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1269037/" ]
298,463
<p>This is the HTML:</p> <pre><code>&lt;div id="testBlue"&gt; &lt;span&gt;hello&lt;/span&gt; &lt;span id="testGreen" class="testGreen"&gt;hello2&lt;/span&gt; &lt;/div&gt; </code></pre> <p>If I have set in CSS:</p> <pre><code>#testBlue span { color:Blue; } .testGreen, #testGreen { color:Green; } </code></...
[ { "answer_id": 298468, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 2, "selected": false, "text": "#testGreen { color: red !important;}\n .testGreen { color: red !important;}\n !important" }, { "answer_id": 298472...
2008/11/18
[ "https://Stackoverflow.com/questions/298463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4264/" ]
298,466
<p>[This code is called from within the <code>Inspector.Activate</code> event handler (first call), i.e. right before the inspector window is actually shown.]</p> <p>For "native" mail inspectors I can simply QI the <code>Inspector</code> interface to <code>IOleWindow</code> and call its <code>GetWindow</code> method. ...
[ { "answer_id": 5181280, "author": "Oliver Giesen", "author_id": 9784, "author_profile": "https://Stackoverflow.com/users/9784", "pm_score": 2, "selected": true, "text": "EnumWindows IsWindowVisible False Inspector.Activate function GetWindowClassName(const AHandle: HWND): String;\nvar\n ...
2008/11/18
[ "https://Stackoverflow.com/questions/298466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9784/" ]
298,491
<p>I want to close a System.Windows.Forms.Form if the user clicks anywhere outside it. I've tried using IMessageFilter, but even then none of the messages are passed to PreFilterMessage. How do I receive clicks outside a form's window?</p>
[ { "answer_id": 298512, "author": "MusiGenesis", "author_id": 14606, "author_profile": "https://Stackoverflow.com/users/14606", "pm_score": 3, "selected": false, "text": "public void SetVolume(int volume)\n{\n // do something with the volume - whatever you did before with it\n}\n Volum...
2008/11/18
[ "https://Stackoverflow.com/questions/298491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15371/" ]
298,494
<p>I have many jobs that have a step to send 1 specific email out to a list of people. That list of reciepients is hardcoded in the step command and I need to remove one person from that list, in all jobs.</p> <p>How do I loop through ALL the jobs in the Sql Server Agent and modify the command text to find+replace a ...
[ { "answer_id": 298792, "author": "Tim C", "author_id": 7585, "author_profile": "https://Stackoverflow.com/users/7585", "pm_score": 4, "selected": true, "text": "msdb.dbo.SysJobs\nmsdb.dbo.SysJobSteps\n UPDATE SJS SET\n Command = REPLACE(Command, 'EmailAddress&TestDomain.Com', '')\nFRO...
2008/11/18
[ "https://Stackoverflow.com/questions/298494", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11989/" ]
298,503
<p>I have some jQuery/JavaScript code that I want to run only when there is a hash (<code>#</code>) anchor link in a URL. How can you check for this character using JavaScript? I need a simple catch-all test that would detect URLs like these:</p> <ul> <li><code>example.com/page.html#anchor</code></li> <li><code>example...
[ { "answer_id": 298513, "author": "Gareth", "author_id": 31582, "author_profile": "https://Stackoverflow.com/users/31582", "pm_score": 12, "selected": true, "text": "if(window.location.hash) {\n // Fragment exists\n} else {\n // Fragment doesn't exist\n}\n" }, { "answer_id": 298...
2008/11/18
[ "https://Stackoverflow.com/questions/298503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21709/" ]
298,507
<p>Following the <a href="http://www.json.org/JSONRequest.html" rel="nofollow noreferrer">JSONRequest proposa</a>l, I've found <a href="http://www.devpro.it/code/153.html" rel="nofollow noreferrer">code for the JSONRequest object</a>. However, this object depends on JSONRequestError, and the code for that is nowhere to...
[ { "answer_id": 298639, "author": "PhiLho", "author_id": 15459, "author_profile": "https://Stackoverflow.com/users/15459", "pm_score": 1, "selected": true, "text": "JSONRequestError site:devpro.it" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298507", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33046/" ]
298,510
<p>I'm making a C program where I need to get the directory that the program is started from. This program is written for UNIX computers. I've been looking at <code>opendir()</code> and <code>telldir()</code>, but <code>telldir()</code> returns a <code>off_t (long int)</code>, so it really doesn't help me. </p> <p>Ho...
[ { "answer_id": 298516, "author": "CAdaker", "author_id": 30579, "author_profile": "https://Stackoverflow.com/users/30579", "pm_score": 6, "selected": false, "text": "getcwd" }, { "answer_id": 298518, "author": "Mic", "author_id": 35656, "author_profile": "https://Stac...
2008/11/18
[ "https://Stackoverflow.com/questions/298510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,511
<p>On windows mobile when there is no internet connection and I try to browse the web using internet explorer i get cannot connect information at the top of the screen. It says cannot connect with current connection settings. To change your connection settings, tap settings. And I am able to tap Settings and setup netw...
[ { "answer_id": 298516, "author": "CAdaker", "author_id": 30579, "author_profile": "https://Stackoverflow.com/users/30579", "pm_score": 6, "selected": false, "text": "getcwd" }, { "answer_id": 298518, "author": "Mic", "author_id": 35656, "author_profile": "https://Stac...
2008/11/18
[ "https://Stackoverflow.com/questions/298511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,521
<p>I'm using Tomcat 5.5 as my servlet container. My web application deploys via .jar and has some resource files (textual files with strings and configuration parameters) located under its WEB-INF directory. Tomcat 5.5 runs on ubuntu linux. The resource file is read with a file reader:<br> <code>fr = new FileReader("me...
[ { "answer_id": 298574, "author": "diciu", "author_id": 2811, "author_profile": "https://Stackoverflow.com/users/2811", "pm_score": 4, "selected": true, "text": "Properties props = new Properties();\n\nInputStream is =\ngetClass().getClassLoader().getResourceAsStream(\"messages.properties...
2008/11/18
[ "https://Stackoverflow.com/questions/298521", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7337/" ]
298,534
<p>IBM Rational Application Developer is very slow and has many problems.</p> <p>I tried to use ant scripts to build EAR/WAR files for Websphere Application Server but it did not work.</p>
[ { "answer_id": 306970, "author": "toolkit", "author_id": 3295, "author_profile": "https://Stackoverflow.com/users/3295", "pm_score": 2, "selected": false, "text": "com.ibm.websphere.ant.tasks.WSDL2Java lib.path <taskdef name=\"wsdl2java\"\n classname=\"com.ibm.websphere.ant.tasks.WSDL...
2008/11/18
[ "https://Stackoverflow.com/questions/298534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24550/" ]
298,535
<p>In PHP 5.2 there was a nice security function added called "input_filter", so instead of saying:</p> <pre><code>$name = $_GET['name']; </code></pre> <p>you can now say:</p> <pre><code>$name = filter_input (INPUT_GET, 'name', FILTER_SANITIZE_STRING); </code></pre> <p>and it automatically sanitizes your string, th...
[ { "answer_id": 298567, "author": "Simon", "author_id": 33036, "author_profile": "https://Stackoverflow.com/users/33036", "pm_score": 5, "selected": true, "text": "$name = filter_var ( $_GET['name'], FILTER_SANITIZE_STRING );\n" }, { "answer_id": 3553504, "author": "Jrgns", ...
2008/11/18
[ "https://Stackoverflow.com/questions/298535", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4639/" ]
298,554
<pre><code>$sourcePath = 'images/'; // Path of original image $sourceUrl = ''; $sourceName = 'photo1.jpg'; // Name of original image $thumbPath = 'thumbs/'; // Writeable thumb path $thumbUrl = 'thumbs/'; $thumbName = "test_thumb.jpg"; // Tip: Name dynamically $thumbWidth = 100; // Intended dimension of thumb // Beyond...
[ { "answer_id": 298558, "author": "Dominic Rodger", "author_id": 20972, "author_profile": "https://Stackoverflow.com/users/20972", "pm_score": 1, "selected": false, "text": "imagejpeg($targetImage, \"$thumbPath/$thumbName\", 100);\n" }, { "answer_id": 298570, "author": "philis...
2008/11/18
[ "https://Stackoverflow.com/questions/298554", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31677/" ]
298,562
<p>I know I have already answered a similar question (<a href="https://stackoverflow.com/questions/289498">Running Batch File in background when windows boots up</a>), but this time I need to launch a batch:</p> <ul> <li>from another batch,</li> <li>without any console window displayed,</li> <li><em>with all arguments...
[ { "answer_id": 298564, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 7, "selected": false, "text": "wscript.exe invis.vbs run.bat %*\n %* set args = WScript.Arguments\nnum = args.Count\n\nif num = 0 then\n WScript.Echo \"Usa...
2008/11/18
[ "https://Stackoverflow.com/questions/298562", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6309/" ]
298,563
<p>I am getting the following error when trying to <code>Save as Document Object</code> while trying to implement a word automation in C#:</p> <blockquote> <pre><code>System.Runtime.InteropServices.COMException </code></pre> <p>(0x80020005): Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMA...
[ { "answer_id": 298584, "author": "kenny", "author_id": 3225, "author_profile": "https://Stackoverflow.com/users/3225", "pm_score": 3, "selected": false, "text": "static object s_missing = System.Reflection.Missing.Value;\nstatic object s_true = true;\nstatic object s_false = false;\nstat...
2008/11/18
[ "https://Stackoverflow.com/questions/298563", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,568
<p>I'm trying to import a large SQL file; created by mysqldump on one server, then converted with iconv; using these commands:</p> <pre><code>$ mysqldump -uxxx -p xxx &gt; data.sql $ iconv -f UTF-8 -t ISO-8859-1//TRANSLIT data.sql data.iconv.sql </code></pre> <p>I noticed that the "\x91" in the database had turned in...
[ { "answer_id": 302227, "author": "James Anderson", "author_id": 38207, "author_profile": "https://Stackoverflow.com/users/38207", "pm_score": 0, "selected": false, "text": "iconv -f utf-8 -t IBM-1252 xxxx\n" }, { "answer_id": 305411, "author": "Martin", "author_id": 37367...
2008/11/18
[ "https://Stackoverflow.com/questions/298568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21580/" ]
298,569
<p>I need to write a little tool for a customer to be run on Windows 98. Since this is a very small project I'd hope that I could avoid having to go native C++ and use C#.</p> <p>The <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5" rel="noreferrer">.net Framework ...
[ { "answer_id": 298608, "author": "P Daddy", "author_id": 36388, "author_profile": "https://Stackoverflow.com/users/36388", "pm_score": 4, "selected": true, "text": "CharSet.Auto" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4918/" ]
298,571
<p>I Have a problem with my custom Addin to word because sometimes, MS Word was disabled my addin, and I need to write another AddIn, which Was enabled to turn - on/off my first AddIn. Is it possible?</p> <p>sorry for my English :(</p>
[ { "answer_id": 320831, "author": "Dirk Vollmar", "author_id": 40347, "author_profile": "https://Stackoverflow.com/users/40347", "pm_score": 0, "selected": false, "text": "LoadBehavior" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,577
<p>I have run into a bit of a tricky problem in some C++ code, which is most easily described using code. I have classes that are something like:</p> <pre><code>class MyVarBase { } class MyVar : public MyVarBase { int Foo(); } class MyBase { public: MyBase(MyVarBase* v) : m_var(v) {} virtual MyVarBase* ...
[ { "answer_id": 298590, "author": "Johannes Schaub - litb", "author_id": 34509, "author_profile": "https://Stackoverflow.com/users/34509", "pm_score": 5, "selected": true, "text": "MyVar class MyClass : public MyBase\n{\npublic:\n MyClass(MyVar* v) : MyBase(v) {}\n MyVar* GetVar() {...
2008/11/18
[ "https://Stackoverflow.com/questions/298577", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20925/" ]
298,580
<p>For those of you who are decent with subsonic!</p> <pre><code> TblNewsCollection col = new Select().From(Tables.TblNews) .InnerJoin(Tables.TblContent) .Paged(currentPage, pageSize) .OrderDesc(TblContent.Columns.PubDate) .ExecuteAsCol...
[ { "answer_id": 298605, "author": "asleep", "author_id": 29445, "author_profile": "https://Stackoverflow.com/users/29445", "pm_score": 0, "selected": false, "text": "Northwind.CustomerCollection customersByCategory = new Select()\n .From(Northwind.Customer.Schema)\n .InnerJoin(North...
2008/11/18
[ "https://Stackoverflow.com/questions/298580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29445/" ]
298,588
<p>How can I figure out the CRC algorithm if a given code + CRC string is given? </p> <p>I have got several strings consisting of code + matching CRCs but don't know how to calculate the CRC in question so that I could produce more code strings. Here are some samples (16bit code + 4bit CRC):</p> <pre> 001010100001110...
[ { "answer_id": 5708332, "author": "DIma Q", "author_id": 666876, "author_profile": "https://Stackoverflow.com/users/666876", "pm_score": 2, "selected": false, "text": "['0010101000011101', '0000', '0'] ['0010101000011110', '0101', '5'] [1, 3]\n['1000110011101101', '0001', '1'] ['10001100...
2008/11/18
[ "https://Stackoverflow.com/questions/298588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,592
<p>I have a COM interop assembly, and I would like to check from a .NET application whether the component I'm about to create is installed on the machine. </p> <p>I would like to provide a nice error message if it is not installed.</p> <p>Put the instantiation into try-catch is not a good solution for me, as I would ...
[ { "answer_id": 969908, "author": "Christian Hayter", "author_id": 115413, "author_profile": "https://Stackoverflow.com/users/115413", "pm_score": 1, "selected": false, "text": "Type.GetTypeFromProgID(\"MyProgID\") != null" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26530/" ]
298,607
<p>I've been dipping into SitePoint book concerning CSS.</p> <p>The thing that struck me about the examples was the use of ID as a CSS selector.</p> <p>Some bits of CSS design I've done, I've always found it easier and more versatile to use Class as the selector.</p> <p>Maybe its a .Net thing as we don't always have...
[ { "answer_id": 298637, "author": "Timothy Khouri", "author_id": 11917, "author_profile": "https://Stackoverflow.com/users/11917", "pm_score": 2, "selected": false, "text": "div.header\n div#header\n" }, { "answer_id": 298930, "author": "Ola Tuvesson", "author_id": 6903, ...
2008/11/18
[ "https://Stackoverflow.com/questions/298607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15710/" ]
298,626
<p>I'm trying to make <a href="https://stackoverflow.com/questions/298491/how-do-i-receive-clicks-outside-a-forms-window">a window that closes when you click outside it</a>, and at the moment I'm looking into doing that by handling the WndProc function.</p> <p>None of the messages I'm getting so far seem useful, but t...
[ { "answer_id": 298654, "author": "P Daddy", "author_id": 36388, "author_profile": "https://Stackoverflow.com/users/36388", "pm_score": 2, "selected": false, "text": "RegisterWindowMessage" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15371/" ]
298,648
<p>I’m writing pl/sql procedure that exports data from Oracle to Excel. I need data formatting so I can’t use CSV. I’ve already tried with XML but it generates too large files when I want to export e.g. 70000 rows with 50 columns (almost 300 MB!!!). </p> <p>That’s why I decided to use HTML tags to generate XLS file – ...
[ { "answer_id": 927673, "author": "moleboy", "author_id": 114501, "author_profile": "https://Stackoverflow.com/users/114501", "pm_score": 2, "selected": false, "text": "Private Sub getMyRows(inSchema As String, InTable As String)\n Dim RS As Object\n Dim TableSQL As String\n Dim ...
2008/11/18
[ "https://Stackoverflow.com/questions/298648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,653
<p>I'm inserting something in the cache when the user does a login. </p> <p>Now I want to delete that from the cache when the user's session expires. HttpContext is null .. so I don't know for which user the session expired. How can I go about finding this ?</p> <p><strong>EDIT:</strong> unfortunately SessionID doesn...
[ { "answer_id": 927673, "author": "moleboy", "author_id": 114501, "author_profile": "https://Stackoverflow.com/users/114501", "pm_score": 2, "selected": false, "text": "Private Sub getMyRows(inSchema As String, InTable As String)\n Dim RS As Object\n Dim TableSQL As String\n Dim ...
2008/11/18
[ "https://Stackoverflow.com/questions/298653", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5246/" ]
298,660
<p>Is it possible to generate a XML Schema of a Database programatically with .Net and C#? I want to look into NDbUnit but for big databases it would not really be feasible to make a Schema manually? </p>
[ { "answer_id": 298866, "author": "George Stocker", "author_id": 16587, "author_profile": "https://Stackoverflow.com/users/16587", "pm_score": 6, "selected": true, "text": "create table Person\n(\nAge int not NULL check( Age > 0) ,\nHeight numeric(10,2) not NULL check( Height > 5),\nGende...
2008/11/18
[ "https://Stackoverflow.com/questions/298660", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35454/" ]
298,669
<p>How can I find the location of exe that runs as a windows service in run-time?</p>
[ { "answer_id": 298674, "author": "Harry Lime", "author_id": 21590, "author_profile": "https://Stackoverflow.com/users/21590", "pm_score": 0, "selected": false, "text": "netstat -ab\n" }, { "answer_id": 298722, "author": "P Daddy", "author_id": 36388, "author_profile":...
2008/11/18
[ "https://Stackoverflow.com/questions/298669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34623/" ]
298,677
<p>can anyome help me find an elegant design for splitting, traversing and tracking objects.</p> <p>The diagram below shows an object with an initial size of 100 which is spilt into two (50, 75) then one of the child objects (75) is subsequently split into three (25, 25 ,25).</p> <p>My question is can anyone think of...
[ { "answer_id": 298961, "author": "Svante", "author_id": 31615, "author_profile": "https://Stackoverflow.com/users/31615", "pm_score": 1, "selected": false, "text": "set RootObject to the current object.\nwhile the parent of RootObject is not undefined, set RootObject to its parent.\nFina...
2008/11/18
[ "https://Stackoverflow.com/questions/298677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,689
<p>The code below always return an empty array from <code>GetModifiedMembers(object)</code> but <code>dx.GetChangeSet().Updates.Contains( foo )</code> returns true.</p> <pre><code>DataContext dx = new DataContext( string.Empty ); MockLinqDataObject foo = new MockLinqDataObject(); dx.GetTable( foo.GetType() ).Attach( f...
[ { "answer_id": 298961, "author": "Svante", "author_id": 31615, "author_profile": "https://Stackoverflow.com/users/31615", "pm_score": 1, "selected": false, "text": "set RootObject to the current object.\nwhile the parent of RootObject is not undefined, set RootObject to its parent.\nFina...
2008/11/18
[ "https://Stackoverflow.com/questions/298689", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20382/" ]
298,692
<p>For the project I'm working on I noticed that file transfer* speed is really bad if I'm using IIS FTP and HTTP services. I know that the last thing I should think is "it's a Windows bug", but the fact that simply by using IIS on Windows Server or by changing IIS on that Windows XP machine to FileZilla and LightHTTPd...
[ { "answer_id": 1403796, "author": "Coxy", "author_id": 45563, "author_profile": "https://Stackoverflow.com/users/45563", "pm_score": 2, "selected": false, "text": " cd \\inetpub\\adminscripts \n cscript adsutil.vbs set w3svc/MaxConnections 40 \n iisreset \n" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21952/" ]
298,702
<p>How to create a windows toolbar-dockable application - like <a href="http://www.winamp.com/plugins/details/82271" rel="nofollow noreferrer">Winamp Desk Band</a> - in .NET?</p>
[ { "answer_id": 1403796, "author": "Coxy", "author_id": 45563, "author_profile": "https://Stackoverflow.com/users/45563", "pm_score": 2, "selected": false, "text": " cd \\inetpub\\adminscripts \n cscript adsutil.vbs set w3svc/MaxConnections 40 \n iisreset \n" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298702", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3182/" ]
298,708
<p>I'm developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the arguments I need (like this <code>program.exe -file.txt</code>) , but this way I can't debug. Is there somewhere I can specify the arguments for de...
[ { "answer_id": 50530649, "author": "Blubsiwubsi", "author_id": 8433911, "author_profile": "https://Stackoverflow.com/users/8433911", "pm_score": 2, "selected": false, "text": "argv int main(int argc, char **argv){\n}\n int main(int argc, char *argv[]){\n}\n" }, { "answer_id": 665...
2008/11/18
[ "https://Stackoverflow.com/questions/298708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3037/" ]
298,712
<p>We're currently using WinCVS but it's slow and has no merge dialog. I'm looking for something like Eclipse's Team Synchronize (so people can see what they'll get before they update).</p> <p>What do you suggest? <a href="http://www.tortoisecvs.org/" rel="noreferrer">TortoiseCVS</a> with <a href="http://winmerge.org/...
[ { "answer_id": 302006, "author": "Oliver Giesen", "author_id": 9784, "author_profile": "https://Stackoverflow.com/users/9784", "pm_score": 4, "selected": false, "text": "cvs -n up HEAD" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34088/" ]
298,721
<p>P1 and P2 are processes or nodes in a cluster. f1 and f2 are their flags. Supposing strong memory model, and that both processes may be restarted at any moment, and that restarting a process clears it's flag, here's an algorithm that I came up with and couldn't yet break, but that bothers me for it's not theoretica...
[ { "answer_id": 298752, "author": "Michael Madsen", "author_id": 27528, "author_profile": "https://Stackoverflow.com/users/27528", "pm_score": 3, "selected": false, "text": "P1: set f1\nP2: set f2\nP1: is f2 set?\nP2: is f1 set?\nP1: yes, clear f1\nP2: yes, clear f2\nP1: start wait\nP2: s...
2008/11/18
[ "https://Stackoverflow.com/questions/298721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23420/" ]
298,725
<p>I have two tables, <code>movies</code> and <code>categories</code>, and I want to get an ordered list by <strong>categoryID</strong> first and then by <strong>Name</strong>.</p> <p>The movie table has three columns <strong>ID, Name and CategoryID</strong>. The category table has two columns <strong>ID and Name</stro...
[ { "answer_id": 298741, "author": "Nathan W", "author_id": 6335, "author_profile": "https://Stackoverflow.com/users/6335", "pm_score": 13, "selected": true, "text": "var movies = _db.Movies.OrderBy(c => c.Category).ThenBy(n => n.Name)\n" }, { "answer_id": 3831749, "author": "S...
2008/11/18
[ "https://Stackoverflow.com/questions/298725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2246271/" ]
298,726
<p>I need to access an excel spreadsheet and insert the data from the spreadsheet into a SQL Database. However the Primary Keys are mixed, most are numeric and some are alpha-numeric.</p> <p>The problem I have is that when the numeric and alpha-numeric Keys are in the same spreadsheet the alpha-numeric cells return bl...
[ { "answer_id": 1253129, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 5, "selected": false, "text": "HDR=Yes; HDR=No; IMEX=1; SELECT * FROM [sheet1$] $ [ ]" }, { "answer_id": 3678453, "author": "Andrew Garrison", ...
2008/11/18
[ "https://Stackoverflow.com/questions/298726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,733
<p>I seemed to get the following exception when trying to deploy my application:</p> <pre><code>Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.util.List is an interface, and JAXB can't handle interfaces. this problem is related to the following loca...
[ { "answer_id": 298914, "author": "Henning", "author_id": 7034, "author_profile": "https://Stackoverflow.com/users/7034", "pm_score": 6, "selected": true, "text": "List List<RelationCanonical> Type1 List<List<...>> Type2 <Type2 ...>\n <Type1 ...>\n <RelationCanonical ...> ... </...
2008/11/18
[ "https://Stackoverflow.com/questions/298733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/37298/" ]
298,739
<p>This is probably a n00blike (or worse) question. But I've always viewed a schema as a table definition in a database. This is wrong or not entirely correct. I don't remember much from my database courses. </p>
[ { "answer_id": 11306076, "author": "Iswarya", "author_id": 1497978, "author_profile": "https://Stackoverflow.com/users/1497978", "pm_score": 2, "selected": false, "text": "Schema database" }, { "answer_id": 49285636, "author": "Sridhar Sarnobat", "author_id": 714112, ...
2008/11/18
[ "https://Stackoverflow.com/questions/298739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20023/" ]
298,745
<p>How do I send a cross-domain POST request via JavaScript?</p> <p>Notes - it shouldn't refresh the page, and I need to grab and parse the response afterwards.</p>
[ { "answer_id": 298763, "author": "Lou Franco", "author_id": 3937, "author_profile": "https://Stackoverflow.com/users/3937", "pm_score": 6, "selected": false, "text": " var ifr = document.createElement('iframe');\n var frm = document.createElement('form');\n frm.setAttribute(\"action\", \...
2008/11/18
[ "https://Stackoverflow.com/questions/298745", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33046/" ]
298,750
<p>I would like to get all descendant text nodes of an element, as a jQuery collection. What is the best way to do that?</p>
[ { "answer_id": 298758, "author": "Christian Oudard", "author_id": 3757, "author_profile": "https://Stackoverflow.com/users/3757", "pm_score": 8, "selected": false, "text": "$(elem)\n .contents()\n .filter(function() {\n return this.nodeType === 3; //Node.TEXT_NODE\n });\n" }, {...
2008/11/18
[ "https://Stackoverflow.com/questions/298750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3757/" ]
298,753
<p>can i somehow compare two numbers in regex? i want regex that is correct for 10-12, but incorrect for 12-10. I mean that 10 must be smaller than 12. I want to do it in Javascript.</p>
[ { "answer_id": 298759, "author": "Bill the Lizard", "author_id": 1288, "author_profile": "https://Stackoverflow.com/users/1288", "pm_score": 2, "selected": false, "text": "10+12 12+10" }, { "answer_id": 298832, "author": "Unsliced", "author_id": 2902, "author_profile"...
2008/11/18
[ "https://Stackoverflow.com/questions/298753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
298,760
<p>I'm trying to ensure a script remains running on a development server. It collates stats and provides a web service so it's supposed to persist, yet a few times a day, it dies off for unknown reasons. When we notice we just launch it again, but it's a pain in the rear and some users don't have permission (or the kno...
[ { "answer_id": 298774, "author": "gx.", "author_id": 21580, "author_profile": "https://Stackoverflow.com/users/21580", "pm_score": 1, "selected": false, "text": "if [ `pidof -s app` -eq 0 ]; then\n nohup app &\nfi\n" }, { "answer_id": 298919, "author": "Jonathan Leffler", ...
2008/11/18
[ "https://Stackoverflow.com/questions/298760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12870/" ]
298,772
<p>When I render a page using the Django template renderer, I can pass in a dictionary variable containing various values to manipulate them in the page using <code>{{ myVar }}</code>.</p> <p>Is there a way to access the same variable in Javascript (perhaps using the DOM, I don't know how Django makes the variables ac...
[ { "answer_id": 298793, "author": "S.Lott", "author_id": 10661, "author_profile": "https://Stackoverflow.com/users/10661", "pm_score": 10, "selected": true, "text": "{{variable}} <script type=\"text/javascript\"> \n var a = \"{{someDjangoVariable}}\";\n</script>\n" }, { "answer_...
2008/11/18
[ "https://Stackoverflow.com/questions/298772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38581/" ]
298,779
<p>I'm working on my first Django application. In short, what it needs to do is to display a list of film titles, and allow users to give a rating (out of 10) to each film. I've been able to use the {{ form }} and {{ formset }} syntax in a template to produce a form which lets you rate one film at a time, which corresp...
[ { "answer_id": 298835, "author": "S.Lott", "author_id": 10661, "author_profile": "https://Stackoverflow.com/users/10661", "pm_score": 3, "selected": true, "text": "initial = [ list of { dictionaries }, one per form ] \n values" } ]
2008/11/18
[ "https://Stackoverflow.com/questions/298779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11522/" ]
298,780
<p>i could call a page inside the same domain, but its not working when i calling a page in a sub domain due to security issues. what i have to do? help me!!!</p>
[ { "answer_id": 7017086, "author": "beausoleilm", "author_id": 888680, "author_profile": "https://Stackoverflow.com/users/888680", "pm_score": 1, "selected": false, "text": "<script type=\"text/javascript\">\njQuery.ajax({\n success: function(data) {\n alert(data.field);\n },...
2008/11/18
[ "https://Stackoverflow.com/questions/298780", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38578/" ]