qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
81,272
<p>I know the combination <kbd>Ctrl</kbd>+<kbd>A</kbd> to jump to the beginning of the current command, and <kbd>Ctrl</kbd>+<kbd>E</kbd> to jump to the end. </p> <p>But is there any way to jump word by word, like <kbd>Alt</kbd>+<kbd>&larr;</kbd>/<kbd>&rarr;</kbd> in Cocoa applications does?</p>
[ { "answer_id": 81299, "author": "Fil", "author_id": 12218, "author_profile": "https://Stackoverflow.com/users/12218", "pm_score": 8, "selected": false, "text": "⌥ ← \\033b \\033f" }, { "answer_id": 81333, "author": "Andy Lynch", "author_id": 14338, "author_profile": "...
2008/09/17
[ "https://Stackoverflow.com/questions/81272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
81,280
<p>The question says it all basically. </p> <p>I want in a </p> <pre><code>class MyClass </code></pre> <p>to listen to a routed event. Can it be done ?</p>
[ { "answer_id": 81590, "author": "sirrocco", "author_id": 5246, "author_profile": "https://Stackoverflow.com/users/5246", "pm_score": 2, "selected": true, "text": "EventManager.RegisterClassHandler ( typeof ( MyClass )......\n EventManager.RegisterClassHandler ( typeof ( TheClassThatOwned...
2008/09/17
[ "https://Stackoverflow.com/questions/81280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5246/" ]
81,283
<p>How do people usually detect the MIME type of an uploaded file using ASP.NET?</p>
[ { "answer_id": 81312, "author": "Kinjal Dixit", "author_id": 6629, "author_profile": "https://Stackoverflow.com/users/6629", "pm_score": 6, "selected": true, "text": "<asp:FileUpload ID=\"FileUpload1\" runat=\"server\" />\n string contentType = FileUpload1.PostedFile.ContentType\n" }, ...
2008/09/17
[ "https://Stackoverflow.com/questions/81283", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15396/" ]
81,285
<p>I re-image one of my machines regularly; and have a script that I run after the OS install completes to configure my machine; such that it works how I like.</p> <p>I happen to have my data on another drive...and I'd like to add code to my script to change the location of the Documents directory from "C:\Users\bryan...
[ { "answer_id": 81312, "author": "Kinjal Dixit", "author_id": 6629, "author_profile": "https://Stackoverflow.com/users/6629", "pm_score": 6, "selected": true, "text": "<asp:FileUpload ID=\"FileUpload1\" runat=\"server\" />\n string contentType = FileUpload1.PostedFile.ContentType\n" }, ...
2008/09/17
[ "https://Stackoverflow.com/questions/81285", "https://Stackoverflow.com", "https://Stackoverflow.com/users/211367/" ]
81,294
<pre><code>struct foo { unsigned x:1; } f; printf("%d\n", (int)sizeof(f.x = 1)); </code></pre> <p>What is the expected output and why? Taking the size of a bitfield lvalue directly isn't allowed. But by using the assignment operator, it seems we can still take the size of a bitfield type.</p> <p>What is the "size of...
[ { "answer_id": 81348, "author": "Jason Dagit", "author_id": 5113, "author_profile": "https://Stackoverflow.com/users/5113", "pm_score": 0, "selected": false, "text": "(f.x = 1)\n sizeof( f.x = 1)\n" }, { "answer_id": 81407, "author": "Community", "author_id": -1, "aut...
2008/09/17
[ "https://Stackoverflow.com/questions/81294", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
81,295
<p>I have a webservice that that uses message layer security with X.509 certificates in WSE 3.0. The service uses a X509v3 policy to sign various elements in the soapheader.</p> <p>I need to do some custom checks on the certificates so I've tried to implement a custom X509SecurityTokenManager and added a section in we...
[ { "answer_id": 92102, "author": "Carl-Johan", "author_id": 15406, "author_profile": "https://Stackoverflow.com/users/15406", "pm_score": 1, "selected": false, "text": " <soapServerProtocolFactory type=\"Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3, Version=3.0.0.0...
2008/09/17
[ "https://Stackoverflow.com/questions/81295", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15406/" ]
81,306
<p>We're currently having a debate whether it's better to throw faults over a WCF channel, versus passing a message indicating the status or the response from a service.</p> <p>Faults come with built-in support from WCF where by you can use the built-in error handlers and react accordingly. This, however, carries over...
[ { "answer_id": 12576782, "author": "Despertar", "author_id": 1160036, "author_profile": "https://Stackoverflow.com/users/1160036", "pm_score": 3, "selected": false, "text": "result = CallMethod();\nif (!result.Success) handleError();\n\nresult = CallAnotherMethod();\nif (!result.Success)...
2008/09/17
[ "https://Stackoverflow.com/questions/81306", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15360/" ]
81,317
<p>I have been making a little toy web application in C# along the lines of Rob Connery's Asp.net MVC storefront.</p> <p>I find that I have a repository interface, call it IFooRepository, with methods, say</p> <pre><code>IQueryable&lt;Foo&gt; GetFoo(); void PersistFoo(Foo foo); </code></pre> <p>And I have three impl...
[ { "answer_id": 81326, "author": "Jon Limjap", "author_id": 372, "author_profile": "https://Stackoverflow.com/users/372", "pm_score": 2, "selected": false, "text": "[RowTest]\n[Row(new ThisRepository())]\n[Row(new ThatRepository())]\nPublic void GetFoo_NotNull_Test(IFooRepository reposito...
2008/09/17
[ "https://Stackoverflow.com/questions/81317", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5599/" ]
81,323
<p>Is there a way to change the encoding used by the String(byte[]) constructor ?</p> <p>In my own code I use String(byte[],String) to specify the encoding but I am using an external library that I cannot change.</p> <pre><code>String src = "with accents: é à"; byte[] bytes = src.getBytes("UTF-8"); System.out.println...
[ { "answer_id": 81366, "author": "Mat Mannion", "author_id": 6282, "author_profile": "https://Stackoverflow.com/users/6282", "pm_score": 4, "selected": true, "text": "java -Dfile.encoding=UTF-8 ...\n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81323", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7198/" ]
81,346
<p>I hope this question is not considered too basic for this forum, but we'll see. I'm wondering how to refactor some code for better performance that is getting run a bunch of times.</p> <p>Say I'm creating a word frequency list, using a Map (probably a HashMap), where each key is a String with the word that's being ...
[ { "answer_id": 81401, "author": "Hank Gay", "author_id": 4203, "author_profile": "https://Stackoverflow.com/users/4203", "pm_score": 1, "selected": false, "text": "Integer" }, { "answer_id": 81417, "author": "tovare", "author_id": 12677, "author_profile": "https://Sta...
2008/09/17
[ "https://Stackoverflow.com/questions/81346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10204/" ]
81,347
<p>I have an asp.NET webapplication running in our datacenter in which we want the customer to logon with single sign-on. This would be very easy if we could use the IIS integrated security. However we can't do this. We don't have a trust to the domain controller of the customer. ANd we want to website to be available...
[ { "answer_id": 84715, "author": "Greg", "author_id": 12601, "author_profile": "https://Stackoverflow.com/users/12601", "pm_score": -1, "selected": false, "text": "protected void Application_EndRequest(object sender, EventArgs e) {\n if (Context.Items[\"Send401\"] != null)\n {\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/81347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11548/" ]
81,350
<p>What are the private IP address ranges?</p>
[ { "answer_id": 81365, "author": "Sargun Dhillon", "author_id": 10432, "author_profile": "https://Stackoverflow.com/users/10432", "pm_score": 6, "selected": true, "text": " 10.0.0.0 - 10.255.255.255 (10/8 prefix)\n 172.16.0.0 - 172.31.255.255 (172.16/12 prefix)\n 192.168...
2008/09/17
[ "https://Stackoverflow.com/questions/81350", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11034/" ]
81,360
<p>I cannot find an elegant way to get the return value from a stored procedure when using TableAdapters.</p> <p>It appears the TableAdapter does not support SQL stored procedure return values when using a non-scalar stored procedure call. You'd expect the return value from the auto-generated function would be the ret...
[ { "answer_id": 156145, "author": "Ty.", "author_id": 8873, "author_profile": "https://Stackoverflow.com/users/8873", "pm_score": 0, "selected": false, "text": "SET ROWCOUNT OFF\n\nBEGIN\n<Procedure Content>\nEND\n\nSET ROWCOUNT ON\n" }, { "answer_id": 158819, "author": "sharv...
2008/09/17
[ "https://Stackoverflow.com/questions/81360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5217/" ]
81,361
<p>I have set up a repository using SVN and uploaded projects. There are multiple users working on these projects. But, not everyone requires access to all projects. I want to set up user permissions for each project.</p> <p>How can I achieve this?</p>
[ { "answer_id": 81457, "author": "Stephen Bailey", "author_id": 15385, "author_profile": "https://Stackoverflow.com/users/15385", "pm_score": 6, "selected": false, "text": "[users]\nUser1=password1\nUser2=password2\n [groups]\nallaccess = user1\nsomeaccess = user2\n [/]\n@allaccess = rw\n...
2008/09/17
[ "https://Stackoverflow.com/questions/81361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15425/" ]
81,392
<p>If you declare variables of type byte or short and attempt to perform arithmetic operations on these, you receive the error "Type mismatch: cannot convert int to short" (or correspondingly "Type mismatch: cannot convert int to byte"). </p> <pre><code>byte a = 23; byte b = 34; byte c = a + b; </code></pre> <p>In th...
[ { "answer_id": 81446, "author": "David Sykes", "author_id": 3154, "author_profile": "https://Stackoverflow.com/users/3154", "pm_score": 3, "selected": false, "text": "a b int int int int byte" }, { "answer_id": 81728, "author": "Tom Hawtin - tackline", "author_id": 4725, ...
2008/09/17
[ "https://Stackoverflow.com/questions/81392", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7732/" ]
81,406
<p>Which parsers are available for parsing C# code?</p> <p>I'm looking for a C# parser that can be used in C# and give me access to line and file informations about each artefact of the analysed code.</p>
[ { "answer_id": 2214810, "author": "Dinis Cruz", "author_id": 262379, "author_profile": "https://Stackoverflow.com/users/262379", "pm_score": 2, "selected": false, "text": " public void updateView(string sourceCode)\n { \n var ast = new Ast_CSharp(sourceCode);\n ast_...
2008/09/17
[ "https://Stackoverflow.com/questions/81406", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12248/" ]
81,410
<p>I've got a <a href="http://notebooks.readerville.com/" rel="noreferrer">site</a> that provides blog-friendly widgets via JavaScript. These work fine in most circumstances, including self-hosted Wordpress blogs. With blogs hosted at Wordpress.com, however, JavaScript isn't allowed in sidebar text modules. Has anyone ...
[ { "answer_id": 81505, "author": "matt lohkamp", "author_id": 14026, "author_profile": "https://Stackoverflow.com/users/14026", "pm_score": 4, "selected": true, "text": "<div style=\"background:url('javascript:alert(this);');\" />\n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6478/" ]
81,448
<p>In Oracle, what is the difference between :</p> <pre><code>CREATE TABLE CLIENT ( NAME VARCHAR2(11 BYTE), ID_CLIENT NUMBER ) </code></pre> <p>and</p> <pre><code>CREATE TABLE CLIENT ( NAME VARCHAR2(11 CHAR), -- or even VARCHAR2(11) ID_CLIENT NUMBER ) </code></pre>
[ { "answer_id": 81492, "author": "David Sykes", "author_id": 3154, "author_profile": "https://Stackoverflow.com/users/3154", "pm_score": 9, "selected": true, "text": "VARCHAR2(11 BYTE) VARCHAR2(11 CHAR)" }, { "answer_id": 67398489, "author": "Aman Singh Rajpoot", "author_i...
2008/09/17
[ "https://Stackoverflow.com/questions/81448", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12388/" ]
81,449
<p>In a server-side application running on Tomcat, I am generating full HTML pages (with header) based on random user-requested sites pulled down from the Internet. The client-side application uses asynchronous callbacks for requesting processing of a particular web page. Since processing can take a while, I want to in...
[ { "answer_id": 81492, "author": "David Sykes", "author_id": 3154, "author_profile": "https://Stackoverflow.com/users/3154", "pm_score": 9, "selected": true, "text": "VARCHAR2(11 BYTE) VARCHAR2(11 CHAR)" }, { "answer_id": 67398489, "author": "Aman Singh Rajpoot", "author_i...
2008/09/17
[ "https://Stackoverflow.com/questions/81449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11797/" ]
81,451
<p>I am planning to create a web app that allows users to downgrade their visual studio project files. However, It seems Google App Engine accepts files uploading and flat file storing on the Google Server through <code>db.TextProperty</code> and <code>db.BlobProperty</code>.</p> <p>I'll be glad anyone can provide cod...
[ { "answer_id": 81479, "author": "Guido", "author_id": 12388, "author_profile": "https://Stackoverflow.com/users/12388", "pm_score": 1, "selected": false, "text": "class MyModel(db.Model):\n blob = db.BlobProperty()\n\nobj = MyModel()\nobj.blob = db.Blob( file_contents )\n" }, { ...
2008/09/17
[ "https://Stackoverflow.com/questions/81451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3834/" ]
81,472
<p>I am developing an ASP.NET mobile website using .NET 3.5 and mobile controls that come with the framework. I have a login form where the system will authenticate the user so he/she can access certain restricted pages. </p> <p>In a standard ASP.NET website, I can use a session to store some flag after a user had log...
[ { "answer_id": 94301, "author": "Shane Breatnach", "author_id": 10264, "author_profile": "https://Stackoverflow.com/users/10264", "pm_score": 0, "selected": false, "text": "<sessionState cookieless=\"true\" />\n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14790/" ]
81,491
<p>Has anyone gotten VisualWorks running under OpenBSD? It's not an officially supported platform, but one of the Cincom guys was telling me that it should be able to run under a linux compatibility mode. How did you set it up?</p> <p>I already have Squeak running without a problem, so I'm not looking for an alternati...
[ { "answer_id": 82334, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": false, "text": "# sysctl kern.emul.linux=1\n" }, { "answer_id": 959964, "author": "dwc", "author_id": 57301, "author_profil...
2008/09/17
[ "https://Stackoverflow.com/questions/81491", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2766176/" ]
81,495
<p>I'm writing a J2SE desktop application that requires one of its components to be pluggable. I've already defined the Java interface for this plugin. The user should be able to select at runtime (via the GUI) which implementation of this interface they want to use (e.g. in an initialisation dialog). I envisage each p...
[ { "answer_id": 81510, "author": "Andrew Swan", "author_id": 10433, "author_profile": "https://Stackoverflow.com/users/10433", "pm_score": 0, "selected": false, "text": "java.util.jar" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10433/" ]
81,497
<p>I need an encoder that can convert mp3 files to he-aac (aka aac+). So far the best one I have found is <a href="http://www.nero.com/eng/down-ndaudio.php" rel="nofollow noreferrer">nero aac encoder</a> . I have two problemes with it : - Only one input format : wav . It is a little bit slow to transform mp3 files t...
[ { "answer_id": 4600868, "author": "polemon", "author_id": 414121, "author_profile": "https://Stackoverflow.com/users/414121", "pm_score": 2, "selected": false, "text": "neroAacEnc .AAC .MP3 .WAV .WAV .MP3 .FLAC .AAC .FLAC #!/bin/zsh\n\nfor file in ${argv[*]}; do\n flac -d ${file}\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/81497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11897/" ]
81,520
<p>How can you suppress the <code>Terminated</code> message that comes up after you kill a process in a bash script?</p> <p>I tried <code>set +bm</code>, but that doesn't work.</p> <p>I know another solution involves calling <code>exec 2&gt; /dev/null</code>, but is that reliable? How do I reset it back so that I can...
[ { "answer_id": 81539, "author": "Matthias Kestenholz", "author_id": 317346, "author_profile": "https://Stackoverflow.com/users/317346", "pm_score": 3, "selected": false, "text": "disown" }, { "answer_id": 81672, "author": "wnoise", "author_id": 15464, "author_profile"...
2008/09/17
[ "https://Stackoverflow.com/questions/81520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14437/" ]
81,521
<p>I have settled a web synchronization between SQLSERVER 2005 as publisher and SQLEXPRESS as suscriber. Web synchro has to be launched manually through IE interface (menu tools/synchronize) and to be selected among available synchronizations.</p> <p>Everything is working fine except that I did not find a way to autom...
[ { "answer_id": 81539, "author": "Matthias Kestenholz", "author_id": 317346, "author_profile": "https://Stackoverflow.com/users/317346", "pm_score": 3, "selected": false, "text": "disown" }, { "answer_id": 81672, "author": "wnoise", "author_id": 15464, "author_profile"...
2008/09/17
[ "https://Stackoverflow.com/questions/81521", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11436/" ]
81,533
<p>I'm currently trying to improve the design of a legacy db and I have the following situation</p> <p>Currently I have a table SalesLead in which we store the the LeadSource.</p> <pre><code>Create Table SalesLead( .... LeadSource varchar(20) .... ) </code></pre> <p>The Lead Sources are helpfully stored ...
[ { "answer_id": 81565, "author": "Martin Marconcini", "author_id": 2684, "author_profile": "https://Stackoverflow.com/users/2684", "pm_score": 2, "selected": false, "text": "SELECT * FROM SALESLEAD WHERE LeadSouce = (int) EnmLeadSource.Foo; //pseudocode\n public enum EnmLeadSource \n{\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/81533", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
81,548
<p>I am running blazeds on the server side. I would like to filter http requests using an http header. My goal is to send extra parameters to the server without changing the signatures of my blazeds services.</p> <p>On the client side, I am using Flex <strong>RemoteObject</strong> methods. </p> <p>With Flex WebServic...
[ { "answer_id": 133095, "author": "Verdant", "author_id": 450527, "author_profile": "https://Stackoverflow.com/users/450527", "pm_score": 1, "selected": false, "text": "setCredentials(username,password) setCredentials" }, { "answer_id": 3156087, "author": "Radek", "author_...
2008/09/17
[ "https://Stackoverflow.com/questions/81548", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11897/" ]
81,552
<p>There doesn't seem to be a dictionary.AddRange() method. Does anyone know a better way to copy the items to another dictionary without using a foreach loop. </p> <p>I'm using the System.Collections.Generic.Dictionary. This is for .NET 2.0. </p>
[ { "answer_id": 81579, "author": "ageektrapped", "author_id": 631, "author_profile": "https://Stackoverflow.com/users/631", "pm_score": 5, "selected": false, "text": "Dictionary Dictionary IDictionary Add() KeyValuePair<TKey, TValue>" }, { "answer_id": 84308, "author": "BFree"...
2008/09/17
[ "https://Stackoverflow.com/questions/81552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13028/" ]
81,560
<p>I feel like I have a very basic/stupid question, yet I never saw/read/heard anything in this direction.</p> <p>Say I have a table <em>users(userId, name)</em> and a table <em>preferences(id, userId, language)</em>. The example is trivial but could be extended to a situation with multi-level relations and way more t...
[ { "answer_id": 81665, "author": "hamishmcn", "author_id": 3590, "author_profile": "https://Stackoverflow.com/users/3590", "pm_score": 0, "selected": false, "text": "marked_for_deletion" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11333/" ]
81,567
<p>How do you ensure, that you can checkout the code into Eclipse or NetBeans and work there with it?</p> <p>Edit: If you not checking in ide-related files, you have to reconfigure buildpath, includes and all this stuff, each time you checkout the project. I don't know, if ant (especially an ant buildfile which is cre...
[ { "answer_id": 84958, "author": "Jay R.", "author_id": 5074, "author_profile": "https://Stackoverflow.com/users/5074", "pm_score": 3, "selected": false, "text": "sample-project \n+ bin\n+ launches \n+ lib \n+ logs\n+ nbproject \n+ src \n + java\n.classpath\n.project\nbuild.xml\n" ...
2008/09/17
[ "https://Stackoverflow.com/questions/81567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5751/" ]
81,587
<p>We have in the process of upgrading our application to full Unicode comptibility as we have recently got Delphi 2009 which provides this out of the box. I am looking for anyone who has experience of upgrading an application to accept Unicode characters. Specifically answers to any of the following questions.</p> ...
[ { "answer_id": 81895, "author": "Hank Gay", "author_id": 4203, "author_profile": "https://Stackoverflow.com/users/4203", "pm_score": 2, "selected": true, "text": "nvarchar varchar2 ' N'" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6244/" ]
81,589
<p>My workplace has sales people using a 3rd party desktop application that connects directly the a Sql Server and the software is leaving hundreds of sleeping connections for each user. Is there anyway to clear these connection programmatically?</p>
[ { "answer_id": 83416, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "declare @spid int\n , @cmd varchar(200)\ndeclare Mycurs cursor for\nselect spid\n from master..sysprocesses\n where status = ...
2008/09/17
[ "https://Stackoverflow.com/questions/81589", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5802/" ]
81,597
<p>How can I find and delete unused references in my projects? </p> <p>I know you can easily remove the using statements in vs 2008, but this doesn't remove the actual reference in your projects. The referenced dll will still be copied in your bin/setup package.</p>
[ { "answer_id": 32232580, "author": "toddmo", "author_id": 1045881, "author_profile": "https://Stackoverflow.com/users/1045881", "pm_score": 2, "selected": false, "text": "References" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11333/" ]
81,627
<p>I am using Qt Dialogs in one of my application. I need to hide/delete the help button. But i am not able to locate where exactly I get the handle to his help button. Not sure if its a particular flag on the Qt window.</p>
[ { "answer_id": 81927, "author": "amos", "author_id": 15429, "author_profile": "https://Stackoverflow.com/users/15429", "pm_score": 7, "selected": true, "text": "QDialog *d = new QDialog(0, Qt::WindowSystemMenuHint | Qt::WindowTitleHint);\nd->exec();\n from PyQt4 import QtGui, QtCore\napp...
2008/09/17
[ "https://Stackoverflow.com/questions/81627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11212/" ]
81,628
<p>I'd like to build a query string based on values taken from 5 groups of radio buttons.</p> <p>Selecting any of the groups is optional so you could pick set A or B or both. How would I build the querystring based on this? I'm using VB.NET 1.1</p> <p>The asp:Radiobuttonlist control does not like null values so I'm r...
[ { "answer_id": 81704, "author": "Ian Oxley", "author_id": 1904, "author_profile": "https://Stackoverflow.com/users/1904", "pm_score": 2, "selected": true, "text": "<form action=\"...\" method=\"get\">\n <input type=\"radio\" name=\"apBoat\" id=\"Apb1\" value=\"1\" /> <label for=\"Apb1...
2008/09/17
[ "https://Stackoverflow.com/questions/81628", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12232/" ]
81,631
<p>I want: all links which not contained filename (not .html, .jpg, .png, .css) redirect with state 301 to directory, for example: <a href="http://mysite.com/article" rel="nofollow noreferrer">http://mysite.com/article</a> -> <a href="http://mysite.com/article/" rel="nofollow noreferrer">http://mysite.com/article/</a> ...
[ { "answer_id": 81760, "author": "MB.", "author_id": 11961, "author_profile": "https://Stackoverflow.com/users/11961", "pm_score": 3, "selected": true, "text": "RewriteEngine on \nRewriteCond %{REQUEST_URI} ^/[^\\.]+[^/]$\nRewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]\n" }, {...
2008/09/17
[ "https://Stackoverflow.com/questions/81631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13427/" ]
81,656
<p>For many questions the answer seems to be found in "the standard". However, where do we find that? Preferably online.</p> <p>Googling can sometimes feel futile, again especially for the C standards, since they are drowned in the flood of discussions on programming forums.</p> <p>To get this started, since these ar...
[ { "answer_id": 83763, "author": "Michael Burr", "author_id": 12711, "author_profile": "https://Stackoverflow.com/users/12711", "pm_score": 10, "selected": true, "text": "off_t <aio.h> clock_gettime() _POSIX_C_SOURCE -std=c99 _POSIX_C_SOURCE" }, { "answer_id": 27359265, "autho...
2008/09/17
[ "https://Stackoverflow.com/questions/81656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15514/" ]
81,657
<p>What is the most efficient, secure way to pipe the contents of a postgresSQL database into a compressed tarfile, then copy to another machine?</p> <p>This would be used for localhosting development, or backing up to a remote server, using *nix based machines at both ends.</p>
[ { "answer_id": 81679, "author": "Espo", "author_id": 2257, "author_profile": "https://Stackoverflow.com/users/2257", "pm_score": 1, "selected": false, "text": "BACKUP=\"/backup/$NOW\"\nPFILE=\"$(hostname).$(date +'%T').pg.sql.gz\"\nPGSQLUSER=\"vivek\"\nPGDUMP=\"/usr/bin/pg_dump\"\n\n$PGD...
2008/09/17
[ "https://Stackoverflow.com/questions/81657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15479/" ]
81,671
<p>I would like to display an RTF document in an SWT (actually Eclipse RCP) application.</p> <p>I know there is a Swing widget for displaying and editing RTF text, but it is Swing and quite alien in look and feel when used in the otherwise platform (not to mention that to the last of my knowledge it did not display im...
[ { "answer_id": 170079, "author": "extraneon", "author_id": 24582, "author_profile": "https://Stackoverflow.com/users/24582", "pm_score": 1, "selected": false, "text": "String rtf = \"whatever\";\nBufferedReader input = new BufferedReader(new StringReader(rtf));\n\nRTFEditorKit rtfKit = n...
2008/09/17
[ "https://Stackoverflow.com/questions/81671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712/" ]
81,674
<p>I am looking for an easy way to check if an object in C# is serializable.</p> <p>As we know you make an object serializable by either implementing the <em>ISerializable</em> interface or by placing the <em>[Serializable]</em> at the top of the class.</p> <p>What I am looking for is a quick way to check this withou...
[ { "answer_id": 81705, "author": "Grad van Horck", "author_id": 12569, "author_profile": "https://Stackoverflow.com/users/12569", "pm_score": 3, "selected": false, "text": "Attribute.IsDefined(typeof (YourClass), typeof (SerializableAttribute));\n" }, { "answer_id": 81718, "au...
2008/09/17
[ "https://Stackoverflow.com/questions/81674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/231/" ]
81,686
<p>We have a NET app that gets installed to the Program Files folder. The app itself writes some files and creates some directories to its app folder. But when a normal windows user tries to use our application it crashes because that user does not have permission to write to app folder. Is there any folder in both Wi...
[ { "answer_id": 81738, "author": "RickL", "author_id": 7261, "author_profile": "https://Stackoverflow.com/users/7261", "pm_score": 0, "selected": false, "text": "<User>\\Application Data" }, { "answer_id": 81779, "author": "pilif", "author_id": 5083, "author_profile": ...
2008/09/17
[ "https://Stackoverflow.com/questions/81686", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15528/" ]
81,698
<p>Are the any task tracking systems with command-line interface? </p> <p>Here is a list of features I'm interested in:</p> <ul> <li>Simple task template<br> Something like plain-text file with property:type pairs, for example:</li> </ul> <blockquote> <pre><code>description:string some-property:integer required </...
[ { "answer_id": 248713, "author": "Jasper Bekkers", "author_id": 31486, "author_profile": "https://Stackoverflow.com/users/31486", "pm_score": 1, "selected": false, "text": "cal calendar" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1196/" ]
81,716
<p>I am trying to use MinGW to compile a C program under Windows XP. The gcc.exe gives the following error:</p> <p><strong>stdio.h : No such file or directory</strong></p> <p>The code (hello.c) looks like this:</p> <pre><code>#include &lt; stdio.h &gt; void main() { printf("\nHello World\n"); } </code></pre> <...
[ { "answer_id": 81731, "author": "Leigh Caldwell", "author_id": 3267, "author_profile": "https://Stackoverflow.com/users/3267", "pm_score": 4, "selected": true, "text": "#include <stdio.h>\n" }, { "answer_id": 89036, "author": "aib", "author_id": 1088, "author_profile"...
2008/09/17
[ "https://Stackoverflow.com/questions/81716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3565/" ]
81,723
<p>I have the concept of <code>NodeType</code>s and <code>Node</code>s. A <code>NodeType</code> is a bunch of meta-data which you can create <code>Node</code> instances from (a lot like the whole Class / Object relationship).</p> <p>I have various <code>NodeType</code> implementations and various Node implementations....
[ { "answer_id": 81742, "author": "Hank Gay", "author_id": 4203, "author_profile": "https://Stackoverflow.com/users/4203", "pm_score": 3, "selected": true, "text": "<T extends AbstractNode> T AbstractNode Java 5" }, { "answer_id": 81796, "author": "jrudolph", "author_id": 7...
2008/09/17
[ "https://Stackoverflow.com/questions/81723", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1666/" ]
81,730
<p>In .NET, after this code, what mechanism stops the <code>Thread</code> object from being garbage collected?</p> <pre><code>new Thread(Foo).Start(); GC.Collect(); </code></pre> <p>Yes, it's safe to assume <strong>something</strong> has a reference to the thread, I was just wandering what exactly. For some reason Re...
[ { "answer_id": 81755, "author": "Grad van Horck", "author_id": 12569, "author_profile": "https://Stackoverflow.com/users/12569", "pm_score": -1, "selected": false, "text": "class YourClass\n{\n Thread thread;\n\n void Start()\n {\n thread = new Thread(Foo);\n thread.Start();\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/81730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11236/" ]
81,732
<p>I've got a virtual machine running on a server that I can't stop or reboot - I can't log onto it anymore and I can't stop it using the VMware server console. There are other VM's running so rebooting the host is out of the question. Is there any other way of forcing one machine to stop?</p>
[ { "answer_id": 81761, "author": "Ian", "author_id": 4396, "author_profile": "https://Stackoverflow.com/users/4396", "pm_score": 4, "selected": false, "text": "ps axuw | grep vmware-vmx\n" }, { "answer_id": 7330794, "author": "Daniel Tallentire", "author_id": 502968, "...
2008/09/17
[ "https://Stackoverflow.com/questions/81732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4271/" ]
81,784
<p>How do you usually go about <strong>separating your codebase and associated unit tests</strong>? I know people who create a separate project for unit tests, which I personally find confusing and difficult to maintain. On the other hand, if you mix up code and its tests in a single project, you end up with binaries r...
[ { "answer_id": 81881, "author": "Morten Christiansen", "author_id": 4055, "author_profile": "https://Stackoverflow.com/users/4055", "pm_score": 4, "selected": false, "text": "[assembly: InternalsVisibleTo(\"UnitTestProjectName\")]\n" }, { "answer_id": 81922, "author": "Michae...
2008/09/17
[ "https://Stackoverflow.com/questions/81784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15497/" ]
81,786
<p>I'd like to add a method <code>AddDefaultNamespace()</code> to the String class in Java so that I can type <code>"myString".AddDefaultNamespace()</code> instead of <code>DEFAULTNAMESPACE + "myString"</code>, to obtain something like <code>"MyDefaultNameSpace.myString"</code>. I don't want to add another derived clas...
[ { "answer_id": 81803, "author": "GustyWind", "author_id": 11114, "author_profile": "https://Stackoverflow.com/users/11114", "pm_score": 7, "selected": true, "text": "String" }, { "answer_id": 81871, "author": "Carl-Johan", "author_id": 15406, "author_profile": "https:...
2008/09/17
[ "https://Stackoverflow.com/questions/81786", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15546/" ]
81,788
<p>I couldn't find a decent ThreadPool implementation for Ruby, so I wrote mine (based partly on code from here: <a href="http://web.archive.org/web/20081204101031/http://snippets.dzone.com:80/posts/show/3276" rel="nofollow noreferrer">http://web.archive.org/web/20081204101031/http://snippets.dzone.com:80/posts/show/32...
[ { "answer_id": 82061, "author": "PierreBdR", "author_id": 7136, "author_profile": "https://Stackoverflow.com/users/7136", "pm_score": 1, "selected": false, "text": "def signal\n @mutex.synchronize { @cv.signal }\nend\n def initialize(callback)\n @mutex = Mutex.new\n @cv = Condition...
2008/09/17
[ "https://Stackoverflow.com/questions/81788", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12695/" ]
81,830
<p>Grails vs Rails. Which has better support? And which one is a better choice to develop medium size apps with? Most importantly which one has more plug-ins?</p>
[ { "answer_id": 1194141, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "gem install mysql" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15476/" ]
81,862
<p>I'd like to encourage our users of our RCP application to send the problem details to our support department. To this end, I've added a "Contact support" widget to our standard error dialogue.</p> <p>I've managed to use URI headers to send a stacktrace using Java 6's JDIC call: <a href="http://java.sun.com/javase/6...
[ { "answer_id": 81882, "author": "tim_yates", "author_id": 6509, "author_profile": "https://Stackoverflow.com/users/6509", "pm_score": 0, "selected": false, "text": "mailto:me@here.com?SUBJECT=Support mail&BODY=This is a support mail\n" }, { "answer_id": 4014528, "author": "Jo...
2008/09/17
[ "https://Stackoverflow.com/questions/81862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4737/" ]
81,870
<p>For example:</p> <pre><code>int a = 12; cout &lt;&lt; typeof(a) &lt;&lt; endl; </code></pre> <p>Expected output:</p> <pre><code>int </code></pre>
[ { "answer_id": 81886, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 8, "selected": false, "text": "#include <typeinfo>\n\n// …\nstd::cout << typeid(a).name() << '\\n';\n" }, { "answer_id": 81913, "author":...
2008/09/17
[ "https://Stackoverflow.com/questions/81870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6508/" ]
81,896
<p>I have a script that works fine on my test server (using IIS6). The script processes an ajax request and sends a response with the following line:</p> <pre><code>header( 'application/javascript' ); </code></pre> <p>But on my live server, this line crashes the page and causes a 500 error.</p> <p>Do I need to allow...
[ { "answer_id": 81940, "author": "Sietse", "author_id": 6400, "author_profile": "https://Stackoverflow.com/users/6400", "pm_score": 8, "selected": true, "text": "header('Content-Type: application/javascript');\n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/81896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15567/" ]
81,902
<p>I need a Java way to find a running Win process from which I know to name of the executable. I want to look whether it is running right now and I need a way to kill the process if I found it.</p>
[ { "answer_id": 82035, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 5, "selected": true, "text": "tasklist taskkill Runtime.exec()" }, { "answer_id": 7473589, "author": "1-14x0r", "author_id": 334927, "auth...
2008/09/17
[ "https://Stackoverflow.com/questions/81902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11705/" ]
81,905
<p>I have a table in my database the records start and stop times for a specific task. Here is a sample of the data:</p> <pre><code>Start Stop 9/15/2008 5:59:46 PM 9/15/2008 6:26:28 PM 9/15/2008 6:30:45 PM 9/15/2008 6:40:49 PM 9/16/2008 8:30:45 PM 9/15/2008 9:20:29 PM 9/16/2...
[ { "answer_id": 81981, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "select Start, \n Stop, \n CASE \n WHEN Stop = '9999-12-31' THEN datediff(ss, start,getdate())\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/81905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1768/" ]
81,934
<p>I need a way to easily export and then import data in a MySQL table from a remote server to my home server. I don't have direct access to the server, and no utilities such as phpMyAdmin are installed. I do, however, have the ability to put PHP scripts on the server.</p> <p>How do I get at the data?</p> <p><em>I as...
[ { "answer_id": 81951, "author": "Jrgns", "author_id": 6681, "author_profile": "https://Stackoverflow.com/users/6681", "pm_score": 4, "selected": false, "text": "$result = $db_con->query('SELECT * FROM `some_table`');\n$fp = fopen('php://output', 'w');\nif ($fp && $result) {\n header('...
2008/09/17
[ "https://Stackoverflow.com/questions/81934", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6681/" ]
81,972
<p>The question I want to ask is thus:</p> <p>Is casting down the inheritance tree (ie. towards a more specialiased class) from inside an abstract class excusable, or even a good thing, or is it always a poor choice with better options available?</p> <p>Now, the example of why I think it can be used for good.</p> <p...
[ { "answer_id": 82012, "author": "RickL", "author_id": 7261, "author_profile": "https://Stackoverflow.com/users/7261", "pm_score": 1, "selected": false, "text": "BDictionary torrent = BItem.DecodeFile(\"my.torrent\");\nint filelength = torrent.FileLength;\n" }, { "answer_id": 8201...
2008/09/17
[ "https://Stackoverflow.com/questions/81972", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15537/" ]
81,991
<p>Every time a user posts something containing <code>&lt;</code> or <code>&gt;</code> in a page in my web application, I get this exception thrown.</p> <p>I don't want to go into the discussion about the smartness of throwing an exception or crashing an entire web application because somebody entered a character in a...
[ { "answer_id": 82170, "author": "JacquesB", "author_id": 7488, "author_profile": "https://Stackoverflow.com/users/7488", "pm_score": 11, "selected": true, "text": "< < javascript: ValidateRequest=\"false\" <%@ Page ... %> .aspx <httpRuntime requestValidationMode=\"2.0\" />" }, { ...
2008/09/17
[ "https://Stackoverflow.com/questions/81991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3263/" ]
82,003
<p>I have a remote DB2 database that I'm accessing through ODBC. When I have a query like</p> <pre><code>SELECT t.foo, t.bar, t.problemcolumn FROM problemtable t WHERE t.bar &lt; 60; </code></pre> <p>it works like a charm, so the table and columns obviously exist.</p> <p>But if I specify the problem column in the WH...
[ { "answer_id": 82283, "author": "Swati", "author_id": 12682, "author_profile": "https://Stackoverflow.com/users/12682", "pm_score": 0, "selected": false, "text": "SELECT t.foo, t.bar, t.problemcolumn\nFROM problemtable t\nWHERE t.problemcolumn = 'x'\n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/82003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2087/" ]
82,008
<p>I have xml where some of the element values are unicode characters. Is it possible to represent this in an ANSI encoding?</p> <p>E.g.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;xml&gt; &lt;value&gt;受&lt;/value&gt; &lt;/xml&gt; </code></pre> <p>to</p> <pre><code>&lt;?xml version="1.0" encodin...
[ { "answer_id": 82021, "author": "Blair Conrad", "author_id": 1199, "author_profile": "https://Stackoverflow.com/users/1199", "pm_score": 2, "selected": false, "text": "; 27544 <?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<xml>\n<value>&#27544;</value>\n</xml>\n" }, { "answe...
2008/09/17
[ "https://Stackoverflow.com/questions/82008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9539/" ]
82,047
<p>I have a requirement to validate an incoming file against an XSD. Both will be on the server file system.<br /></p> <p>I've looked at <code>dbms_xmlschema</code>, but have had issues getting it to work.</p> <p>Could it be easier to do it with some Java?<br />What's the simplest class I could put in the database?</...
[ { "answer_id": 5274406, "author": "Tomasz Żuk", "author_id": 655526, "author_profile": "https://Stackoverflow.com/users/655526", "pm_score": 2, "selected": false, "text": "ALTER SESSION" }, { "answer_id": 6367816, "author": "user272735", "author_id": 272735, "author_p...
2008/09/17
[ "https://Stackoverflow.com/questions/82047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1895/" ]
82,058
<p>Given the following JSON Date representation:</p> <pre><code>"\/Date(1221644506800-0700)\/" </code></pre> <p>How do you deserialize this into it's JavaScript Date-type form?</p> <p>I've tried using MS AJAX JavaScrioptSerializer as shown below:</p> <pre><code>Sys.Serialization.JavaScriptSerializer.deserialize("\/...
[ { "answer_id": 82244, "author": "Daniel", "author_id": 6852, "author_profile": "https://Stackoverflow.com/users/6852", "pm_score": 1, "selected": false, "text": "new Date(1221644506800)\n" }, { "answer_id": 82377, "author": "Sjoerd Visscher", "author_id": 5852, "autho...
2008/09/17
[ "https://Stackoverflow.com/questions/82058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9275/" ]
82,064
<p>I have a version number of the following form:</p> <p>version.release.modification</p> <p>where version, release and modification are either a set of digits or the '*' wildcard character. Additionally, any of these numbers (and any preceding .) may be missing.</p> <p>So the following are valid and parse as:</p> ...
[ { "answer_id": 82104, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 4, "selected": false, "text": "^(\\*|\\d+(\\.\\d+){0,2}(\\.\\*)?)$\n (\\.\\d+){0,2}" }, { "answer_id": 82205, "author": "Steve Jessop", "...
2008/09/17
[ "https://Stackoverflow.com/questions/82064", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7271/" ]
82,074
<p>In a digital signal acquisition system, often data is pushed into an observer in the system by one thread. </p> <p>example from <a href="http://en.wikipedia.org/wiki/Observer_pattern" rel="nofollow noreferrer">Wikipedia/Observer_pattern</a>:</p> <pre><code>foreach (IObserver observer in observers) observer.Up...
[ { "answer_id": 82116, "author": "Skizz", "author_id": 1898, "author_profile": "https://Stackoverflow.com/users/1898", "pm_score": 0, "selected": false, "text": "event += observer event -= observer" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/82074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6610/" ]
82,099
<p>I have create a WCF service and am utilising netMsmqBinding binding.</p> <p>This is a simple service that passes a Dto to my service method and does not expect a response. The message is placed in an MSMQ, and once picked up inserted into a database.</p> <p>What is the best method to make sure no data is being lost....
[ { "answer_id": 82586, "author": "aogan", "author_id": 4795, "author_profile": "https://Stackoverflow.com/users/4795", "pm_score": 4, "selected": false, "text": "<bindings>\n <netMsmqBinding>\n <binding name=\"PosionMessageHandling\"\n receiveRetryCount=\"3\"\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/82099", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15360/" ]
82,109
<p>I am using Java 1.4 with Log4J. </p> <p>Some of my code involves serializing and deserializing value objects (POJOs). </p> <p>Each of my POJOs declares a logger with</p> <pre><code>private final Logger log = Logger.getLogger(getClass()); </code></pre> <p>The serializer complains of org.apache.log4j.Logger not be...
[ { "answer_id": 82132, "author": "Aleksi Yrttiaho", "author_id": 11427, "author_profile": "https://Stackoverflow.com/users/11427", "pm_score": 6, "selected": true, "text": "ObjectStreamField serialPersistentFields" }, { "answer_id": 82565, "author": "John Meagher", "author...
2008/09/17
[ "https://Stackoverflow.com/questions/82109", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15452/" ]
82,123
<p>I'm new to BIRT and I'm trying to make the Report Engine running. I'm using the code snippets provided in <a href="http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php" rel="nofollow noreferrer">http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php</a></p> <p>But I have a strange exception:</p> ...
[ { "answer_id": 82229, "author": "cH1cK3n", "author_id": 15615, "author_profile": "https://Stackoverflow.com/users/15615", "pm_score": 2, "selected": false, "text": " IDesignEngine engine = null;\n DesignConfig dConfig = new DesignConfig();\n EngineConfig config = new EngineC...
2008/09/17
[ "https://Stackoverflow.com/questions/82123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/446104/" ]
82,128
<p>Our build server is taking too long to build one of our C++ projects. It uses <a href="https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#2008" rel="nofollow noreferrer">Visual Studio 2008</a>, running <code>devenv.com MyApp.sln /Build</code> -- see <a href="https://learn.microsoft.com/en-us/visualstudio/ide/refe...
[ { "answer_id": 82218, "author": "Dave Moore", "author_id": 6996, "author_profile": "https://Stackoverflow.com/users/6996", "pm_score": 3, "selected": false, "text": "msbuild /fl /flp:Verbosity=diagnostic Your.sln\n msbuild /?" }, { "answer_id": 29146660, "author": "InbetweenW...
2008/09/17
[ "https://Stackoverflow.com/questions/82128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8446/" ]
82,141
<p>I have 6 sound files (1.wav 2.wav etc..) of which 3 different ones have to be heard each time the web page opens. The numbers are selected randomly. I have tried multiple "embeds" but only the last sound selected gets produced. I have also tried javascript routines that fiddle the bgsound attribute, however, I was n...
[ { "answer_id": 82222, "author": "Kent Fredric", "author_id": 15614, "author_profile": "https://Stackoverflow.com/users/15614", "pm_score": 0, "selected": false, "text": "1_2_3, 1_2_3, 1_2_5, 1_2_6 \n1_3_4, 1_3_5, 1_3_6\n1_4_5, 1_4_6\n2_3_4, 2_3_5, 2_3_6, \n2_4_5, 2_4_6,\n2_5_6\n3_4_5, 3_...
2008/09/17
[ "https://Stackoverflow.com/questions/82141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15588/" ]
82,191
<p>I'm creating a plugin, and am looking to use RSpec so I can build it using BDD. </p> <p>Is there a recommended method of doing this?</p>
[ { "answer_id": 83039, "author": "Codebeef", "author_id": 12037, "author_profile": "https://Stackoverflow.com/users/12037", "pm_score": 2, "selected": true, "text": "\n require 'spec/rake/spectask' \n\ndesc 'Test the PLUGIN_NAME plugin.'\nSpec::Rake::SpecTask.new(:spec) do |t|\n t.lib...
2008/09/17
[ "https://Stackoverflow.com/questions/82191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12037/" ]
82,214
<p>In the early days of SharePoint 2007 beta, I've come across the ability to customize the template used to emit the RSS feeds from lists. I can't find it again. Anybody know where it is?</p>
[ { "answer_id": 83039, "author": "Codebeef", "author_id": 12037, "author_profile": "https://Stackoverflow.com/users/12037", "pm_score": 2, "selected": true, "text": "\n require 'spec/rake/spectask' \n\ndesc 'Test the PLUGIN_NAME plugin.'\nSpec::Rake::SpecTask.new(:spec) do |t|\n t.lib...
2008/09/17
[ "https://Stackoverflow.com/questions/82214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1533/" ]
82,232
<p>Problem:<br/></p> <ol> <li>html file on local server (inside our organization) with link to an exe on the same server.</li> <li>clicking the link runs the exe on the client. Instead I want it to offer downloading it.</li> </ol> <p>Tried so far:<br/></p> <ol> <li>Changed permissions on the exe's virtual directory ...
[ { "answer_id": 82246, "author": "David Webb", "author_id": 3171, "author_profile": "https://Stackoverflow.com/users/3171", "pm_score": 2, "selected": false, "text": "content-disposition" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/82232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11519/" ]
82,235
<p>I'm experiencing the following very annoying behaviour when using JPA entitys in conjunction with Oracle 10g. </p> <p>Suppose you have the following entity.</p> <pre><code>@Entity @Table(name = "T_Order") public class TOrder implements Serializable { private static final long serialVersionUID = 223574230237717...
[ { "answer_id": 85329, "author": "davetron5000", "author_id": 3029, "author_profile": "https://Stackoverflow.com/users/3029", "pm_score": 3, "selected": true, "text": "java.util.Date @Temporal(TemporalType.TIMESTAMP)\n@Column(name=\"activationDate\")\npublic Date getActivationDate() {\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/82235", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15657/" ]
82,256
<p>I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don't normally have write access to.</p> <p>The trouble is, this contrived example doesn't work:</p> <pre><code>sudo ls -hal /root/ &gt; /root/test.out </code><...
[ { "answer_id": 82274, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": false, "text": "#!/bin/sh\n\n/bin/ls -lah /root > /root/test.out\n\n# end script\n sudo ./myscript\n" }, { "answer_id": 82276, "aut...
2008/09/17
[ "https://Stackoverflow.com/questions/82256", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6910/" ]
82,259
<p>Ever wanted to have an HTML drag and drop sortable table in which you could sort both rows and columns? I know it's something I'd die for. There's a lot of sortable lists going around but finding a sortable table seems to be impossible to find. </p> <p>I know that you can get pretty close with the tools that script...
[ { "answer_id": 100514, "author": "David Heggie", "author_id": 4309, "author_profile": "https://Stackoverflow.com/users/4309", "pm_score": 5, "selected": false, "text": "<table id=\"myTable\">\n<thead>\n<tr><th>ID</th><th>Name</th><th>Details</th></tr>\n</thead>\n<tbody class=\"sort\">\n<...
2008/09/17
[ "https://Stackoverflow.com/questions/82259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7382/" ]
82,268
<p>I have to deal with text files in a motley selection of formats. Here's an example (Columns <strong>A</strong> and <strong>B</strong> are tab delimited):</p> <pre><code>A B a Name1=Val1, Name2=Val2, Name3=Val3 b Name1=Val4, Name3=Val5 c Name1=Val6, Name2=Val7, Name3=Val8 </code></pre> <p>The files could ha...
[ { "answer_id": 82300, "author": "Cetra", "author_id": 15087, "author_profile": "https://Stackoverflow.com/users/15087", "pm_score": 0, "selected": false, "text": " # print section of file between two regular expressions (inclusive)\n sed -n '/Iowa/,/Montana/p' # case sens...
2008/09/17
[ "https://Stackoverflow.com/questions/82268", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6387/" ]
82,286
<p>I want to place a Webpart on a page that holds a subfolder of the Document Library in SharePoint, but somehow, the only thing I get is the root folder of the document library.</p> <p>Is there a Webpart that fills this need?</p>
[ { "answer_id": 156049, "author": "Nat", "author_id": 13813, "author_profile": "https://Stackoverflow.com/users/13813", "pm_score": 1, "selected": false, "text": "\"?RootFolder=%2fDocuments%2fMyFolder1&FolderCTID=\"\n \\\\sharepointsite\\documents" }, { "answer_id": 12008006, ...
2008/09/17
[ "https://Stackoverflow.com/questions/82286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15637/" ]
82,319
<p>In the uncompressed situation I know I need to read the wav header, pull out the number of channels, bits, and sample rate and work it out from there: (channels) * (bits) * (samples/s) * (seconds) = (filesize)</p> <p>Is there a simpler way - a free library, or something in the .net framework perhaps?</p> <p>How wo...
[ { "answer_id": 82408, "author": "Jan Zich", "author_id": 15716, "author_profile": "https://Stackoverflow.com/users/15716", "pm_score": 6, "selected": true, "text": "using System;\nusing System.Text;\nusing System.Runtime.InteropServices;\n\nnamespace Sound\n{\n public static class Sou...
2008/09/17
[ "https://Stackoverflow.com/questions/82319", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1078/" ]
82,323
<p>I have a 3 column grid in a window with a GridSplitter on the first column. I want to set the MaxWidth of the first column to a third of the parent Window or Page <code>Width</code> (or <code>ActualWidth</code>) and I would prefer to do this in XAML if possible.</p> <p>This is some sample XAML to play with in XamlP...
[ { "answer_id": 85173, "author": "Thomas", "author_id": 9970, "author_profile": "https://Stackoverflow.com/users/9970", "pm_score": 0, "selected": false, "text": "//I know I borrowed this from someone, sorry I forgot to add a comment from whom\npublic class ScaledValueConverter : IValueCo...
2008/09/17
[ "https://Stackoverflow.com/questions/82323", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6415/" ]
82,332
<p>I am using C# to process a message in my Outlook inbox that contains attachments. One of the attachments is of type olEmbeddeditem. I need to be able to process the contents of that attachment. From what I can tell I need to save the attachment to disk and use CreateItemFromTemplate which would return an object. ...
[ { "answer_id": 96403, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "Type t = SomeOutlookObject.GetType();\nstring messageClass = t.InvokeMember(\"MessageClass\",\n BindingFlags.Public | \n Bind...
2008/09/17
[ "https://Stackoverflow.com/questions/82332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8391/" ]
82,349
<p>It seems like the methods of Ruby's Net::HTTP are all or nothing when it comes to reading the body of a web page. How can I read, say, the just the first 100 bytes of the body? </p> <p>I am trying to read from a content server that returns a short error message in the body of the response if the file requested isn'...
[ { "answer_id": 82579, "author": "Jean", "author_id": 7898, "author_profile": "https://Stackoverflow.com/users/7898", "pm_score": 2, "selected": false, "text": "HTTPResponse HTTPClientError HTTPNotFound Net::HTTP.value()" }, { "answer_id": 82663, "author": "Nathan de Vries", ...
2008/09/17
[ "https://Stackoverflow.com/questions/82349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3298/" ]
82,359
<p>I've just inherited some old Struts code.</p> <p>If Struts (1.3) follows the MVC pattern, how do the Action classes fill the View with variables to render in HTML ?</p> <p>So far, I've seen the Action classes push variables in <code>(1)</code> the HTTP request with</p> <pre><code>request.setAttribute("name", user...
[ { "answer_id": 82517, "author": "Olaf Kock", "author_id": 13447, "author_profile": "https://Stackoverflow.com/users/13447", "pm_score": 1, "selected": true, "text": "Struts 1.3" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/82359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15649/" ]
82,365
<p>I'm using the ProgressBar control in a WPF application and I'm getting this old, Windows 3.1 Progress<em>Blocks</em> thing. In VB6, there was a property to show a <em>smooth</em> ProgressBar. Is there such a thing for WPF?</p>
[ { "answer_id": 1048269, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": " Enum appThemes\n Aero\n Luna\n LunaMettalic\n LunaHomestead\n Royale\n End Enum\n\nPr...
2008/09/17
[ "https://Stackoverflow.com/questions/82365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2260/" ]
82,380
<p>I need to do a multilingual website, with urls like</p> <pre><code>www.domain.com/en/home.aspx for english www.domain.com/es/home.aspx for spanish </code></pre> <p>In the past, I would set up two virtual directories in IIS, and then detect the URL in global.aspx and change the language according to the URL</p> <p...
[ { "answer_id": 87156, "author": "Eduardo Molteni", "author_id": 2385, "author_profile": "https://Stackoverflow.com/users/2385", "pm_score": 4, "selected": true, "text": "Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)\n ' Code that runs on application startup\n ...
2008/09/17
[ "https://Stackoverflow.com/questions/82380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2385/" ]
82,391
<p>It is advisable to use tables in HTML pages (now that we have CSS)?</p> <p>What are the applications of tables? What features/abilities does tables have that are not in CSS?</p> <h1>Related Questions</h1> <ul> <li><a href="https://stackoverflow.com/questions/30251/tables-instead-of-divs">Tables instead of DIVs</a></...
[ { "answer_id": 82422, "author": "David Webb", "author_id": 3171, "author_profile": "https://Stackoverflow.com/users/3171", "pm_score": 2, "selected": false, "text": "<TABLE> <DIV> <SPAN>" }, { "answer_id": 82487, "author": "Jonny Buchanan", "author_id": 6760, "author_...
2008/09/17
[ "https://Stackoverflow.com/questions/82391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/184/" ]
82,398
<p>How would one go about spotting URIs in a block of text?</p> <p>The idea is to turn such runs of texts into links. This is pretty simple to do if one only considered the http(s) and ftp(s) schemes; however, I am guessing the general problem (considering tel, mailto and other URI schemes) is much more complicated (i...
[ { "answer_id": 82546, "author": "Victor", "author_id": 14514, "author_profile": "https://Stackoverflow.com/users/14514", "pm_score": 0, "selected": false, "text": "(http|https|ftp|mailto|tel):\\S+[/a-zA-Z0-9]\n" }, { "answer_id": 82618, "author": "J.D. Fitz.Gerald", "auth...
2008/09/17
[ "https://Stackoverflow.com/questions/82398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
82,404
<p>Given the problem that a stored procedure on SQL Server 2005, which is looping through a cursor, must be run once an hour and it takes about 5 minutes to run, but it takes up a large chunk of processor time:</p> <p>edit: I'd remove the cursor if I could, unfortunatly, I have to be doing a bunch of processing and ru...
[ { "answer_id": 83229, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": true, "text": "declare @minid int, @maxid int, @somevalue int \nselect @minid = 1, @maxid = 5\nwhile @minid <= @maxid\nbegin\n set @somevalue ...
2008/09/17
[ "https://Stackoverflow.com/questions/82404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9610/" ]
82,409
<p>If I have a table in my database called 'Users', there will be a class generated by LINQtoSQL called 'User' with an already declared empty constructor.</p> <p>What is the best practice if I want to override this constructor and add my own logic to it?</p>
[ { "answer_id": 82470, "author": "Yaakov Ellis", "author_id": 51, "author_profile": "https://Stackoverflow.com/users/51", "pm_score": 2, "selected": false, "text": "// Add new partial class to extend functionality\npublic partial class User {\n\n // Add additional constructor\n public U...
2008/09/17
[ "https://Stackoverflow.com/questions/82409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15717/" ]
82,417
<p>Is it possible to hide or exclude certain data from a report if it's being rendered in a particular format (csv, xml, excel, pdf, html). The problem is that I want hyperlinks to other reports to not be rendered when the report is generated in Excel format - but they should be there when the report is rendered in HTM...
[ { "answer_id": 86991, "author": "Liron Yahdav", "author_id": 62, "author_profile": "https://Stackoverflow.com/users/62", "pm_score": 3, "selected": true, "text": "ReportViewer1.ServerReport.SetParameters(New ReportParameter() {New ReportParameter(\"ExportView\", \"True\")})\nReportViewer...
2008/09/17
[ "https://Stackoverflow.com/questions/82417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15428/" ]
82,429
<p>My understanding of Hibernate is that as objects are loaded from the DB they are added to the Session. At various points, depending on your configuration, the session is flushed. At this point, modified objects are written to the database.</p> <p>How does Hibernate decide which objects are 'dirty' and need to be wr...
[ { "answer_id": 82946, "author": "Matt Quail", "author_id": 15790, "author_profile": "https://Stackoverflow.com/users/15790", "pm_score": 6, "selected": true, "text": "org.hibernate.engine.EntityEntry.requiresDirtyCheck() SessionImpl.flush() onFlush() SessionImpl.list() autoFlushIfRequire...
2008/09/17
[ "https://Stackoverflow.com/questions/82429", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11002/" ]
82,431
<p>Is there a detailed guide which explains how to host a website on your own server on linux. I have currently hosted it on one of the commerical web-hosts. Also the domain is registered to a different vendor.</p> <p>Thanks</p>
[ { "answer_id": 82486, "author": "Cetra", "author_id": 15087, "author_profile": "https://Stackoverflow.com/users/15087", "pm_score": 1, "selected": false, "text": "sudo apt-get install apache2\n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/82431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/396527/" ]
82,437
<p>Why is the following C# code not allowed:</p> <pre><code>public abstract class BaseClass { public abstract int Bar { get;} } public class ConcreteClass : BaseClass { public override int Bar { get { return 0; } set {} } } </code></pre> <blockquote> <p>CS0546 'ConcreteClass.Bar.set...
[ { "answer_id": 82473, "author": "Gishu", "author_id": 1695, "author_profile": "https://Stackoverflow.com/users/1695", "pm_score": -1, "selected": true, "text": "public class BarProvider\n{ BaseClass _source;\n Bar _currentBar;\n\n public void setSource(BaseClass b)\n {\n _source = ...
2008/09/17
[ "https://Stackoverflow.com/questions/82437", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11236/" ]
82,442
<p>Inspired by the MVC storefront the latest project I'm working on is using extension methods on IQueryable to filter results.</p> <p>I have this interface;</p> <pre><code>IPrimaryKey { int ID { get; } } </code></pre> <p>and I have this extension method</p> <pre><code>public static IPrimaryKey GetByID(this IQuer...
[ { "answer_id": 85461, "author": "cfeduke", "author_id": 5645, "author_profile": "https://Stackoverflow.com/users/5645", "pm_score": 2, "selected": false, "text": "public interface IPrimaryKey<T> where T : IPrimaryKey<T>\n{\n int Id { get; }\n}\n\npublic static class IPrimaryKeyTExtens...
2008/09/17
[ "https://Stackoverflow.com/questions/82442", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15691/" ]
82,454
<p>Here's one from the "No question's too dumb" department:</p> <p>Well, as the subject says: Is there an impact? If so, how much? Will all the string literals I have in my code and in my DFM resources now take up twice as much space inside the compiled binaries? What about runtime memory usage of compiled application...
[ { "answer_id": 345608, "author": "Oliver Giesen", "author_id": 9784, "author_profile": "https://Stackoverflow.com/users/9784", "pm_score": 0, "selected": false, "text": "{$STRINGCHECKS}" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/82454", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9784/" ]
82,468
<p>How can I figure out the state of the files in my client, I want to know if the file needs an updated, or patched, or modified etc. In CVS, I used to simply run "cvs -n -q update . > file". Later look for M,U,P,C attributes to get the current status of the file.</p> <p>In perforce, "p4 sync -n" doesn't give output ...
[ { "answer_id": 82684, "author": "tenpn", "author_id": 11801, "author_profile": "https://Stackoverflow.com/users/11801", "pm_score": 1, "selected": false, "text": "p4 resolve -n\n" } ]
2008/09/17
[ "https://Stackoverflow.com/questions/82468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5794/" ]
82,483
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/219594/net-whats-the-best-way-to-implement-a-catch-all-exceptions-handler">.NET - What’s the best way to implement a “catch all exceptions handler”</a> </p> </blockquote> <p>I have a .NET console app app that i...
[ { "answer_id": 82536, "author": "Drejc", "author_id": 6482, "author_profile": "https://Stackoverflow.com/users/6482", "pm_score": 3, "selected": false, "text": "protected void Application_Error(Object sender, EventArgs e)\n" }, { "answer_id": 83745, "author": "Dario Solera", ...
2008/09/17
[ "https://Stackoverflow.com/questions/82483", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7442/" ]
82,495
<p>I was checking out Intel's "whatif" site and their Transactional Memory compiler (each thread has to make atomic commits or rollback the system's memory, like a Database would). </p> <p>It seems like a promising way to replace locks and mutexes but I can't find many testimonials. Does anyone here have any input?</p...
[ { "answer_id": 49615143, "author": "Alexander Granin", "author_id": 455610, "author_profile": "https://Stackoverflow.com/users/455610", "pm_score": 2, "selected": false, "text": "STML TVars retry Context Dining Philosophers STML<bool> takeFork(const TVar<Fork>& tFork)\n{\n STML<bool> ...
2008/09/17
[ "https://Stackoverflow.com/questions/82495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15124/" ]
82,509
<p>Let's say I want a web page that contains a Flash applet and I'd like to drag and drop some objects from or to the rest of the web page, is this at all possible?</p> <p>Bonus if you know a website somewhere that does that!</p>
[ { "answer_id": 84737, "author": "jessegavin", "author_id": 5651, "author_profile": "https://Stackoverflow.com/users/5651", "pm_score": 2, "selected": false, "text": "import flash.display.Sprite;\nimport flash.external.ExternalInterface;\nimport flash.net.URLLoader;\nimport flash.net.URLR...
2008/09/17
[ "https://Stackoverflow.com/questions/82509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15695/" ]
82,530
<p>I'm on laptop (Ubuntu) with a network that use HTTP proxy (only http connections allowed).<br> When I use svn up for url like 'http://.....' everything is cool (google chrome repository works perfect), but right now I need to svn up from server with 'svn://....' and I see connection refused.<br> I've set proxy confi...
[ { "answer_id": 82587, "author": "Kent Fredric", "author_id": 15614, "author_profile": "https://Stackoverflow.com/users/15614", "pm_score": 2, "selected": false, "text": "SSHs -L -R 127.0.0.1:3690 svn co svn://127.0.0.1/....\n" }, { "answer_id": 82600, "author": "rami", "a...
2008/09/17
[ "https://Stackoverflow.com/questions/82530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15752/" ]