qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
229,630
<p>My application has several threads: 1) Main Thread 2) 2 Sub-Main Threads (each with Message Loop, as shown below), used by TFQM 3) n Worker Threads (simple loop, containing Sleep())</p> <p>My problem is, when I close my application, the Worker Threads manage to exit properly, but 1 of the 2 Sub-Main Threads hangs (...
[ { "answer_id": 229808, "author": "Davy Landman", "author_id": 11098, "author_profile": "https://Stackoverflow.com/users/11098", "pm_score": 3, "selected": false, "text": "PeekMessage(CurrentMessage, 0, WM_USER, WM_USER, PM_NOREMOVE);\n" }, { "answer_id": 230288, "author": "Co...
2008/10/23
[ "https://Stackoverflow.com/questions/229630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30787/" ]
229,632
<p>In a C program (p1), how to launch a dynamically constructed command (and its arguments) that reads its standard input from p1's standard output?</p> <p>Note that: </p> <ol> <li><p>A method other than this stdout --> stdin piping is also OK <strong>provided</strong> it is <strong>PORTABLE</strong> across Windows a...
[ { "answer_id": 229786, "author": "Pieter", "author_id": 5822, "author_profile": "https://Stackoverflow.com/users/5822", "pm_score": 2, "selected": false, "text": " bp::child cs = p.start();\n bp::postream& os = cs.get_stdin();\n" }, { "answer_id": 230091, "author": "bk1e", ...
2008/10/23
[ "https://Stackoverflow.com/questions/229632", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10955/" ]
229,633
<p>I want my <kbd>AltGr</kbd> key to behave exactly like left <kbd>Alt</kbd>.<br> Usually, I do this kind of stuff with <a href="http://www.autohotkey.com/" rel="noreferrer">Autohotkey</a>, but I'm open to different solutions. </p> <p>I tried this:</p> <pre><code>LControl &amp; RAlt::Alt </code></pre> <p>And Autoho...
[ { "answer_id": 229716, "author": "Brian Schmitt", "author_id": 30492, "author_profile": "https://Stackoverflow.com/users/30492", "pm_score": 0, "selected": false, "text": "LControl & RAlt::!\n <^>!::!\n" }, { "answer_id": 230369, "author": "PhiLho", "author_id": 15459, ...
2008/10/23
[ "https://Stackoverflow.com/questions/229633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2239/" ]
229,643
<p>Following on from a <a href="https://stackoverflow.com/questions/221417/how-do-i-programmatically-access-the-target-path-of-a-windows-symbolic-link">previous question</a>, I am creating a symbolic link on a Server 2008 from a Vista machine using UNC paths. I can create the link just fine. I can go to the Server 2008...
[ { "answer_id": 230047, "author": "David Arno", "author_id": 7122, "author_profile": "https://Stackoverflow.com/users/7122", "pm_score": 6, "selected": false, "text": "fsutil behavior set SymlinkEvaluation L2L:1 R2R:1 L2R:1 R2L:1\n" }, { "answer_id": 2556247, "author": "mkleme...
2008/10/23
[ "https://Stackoverflow.com/questions/229643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7122/" ]
229,656
<p>I've got an error in my build which says:</p> <blockquote> <p>Error 12 Cannot implicitly convert type 'System.Collections.Generic.IEnumerator&lt; BaseClass>' to 'System.Collections.Generic.IEnumerator&lt; IParentClass>'. An explicit conversion exists (are you missing a cast?)</p> </blockquote> <p>Is...
[ { "answer_id": 229667, "author": "spoulson", "author_id": 3347, "author_profile": "https://Stackoverflow.com/users/3347", "pm_score": 0, "selected": false, "text": "IEnumerator<BaseClass> IEnumerator<ParentClass> Select return this.Select(x => (IParentClass)x).GetEnumerator();\n Cast ret...
2008/10/23
[ "https://Stackoverflow.com/questions/229656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/986/" ]
229,664
<p>I have a native VC++ project that uses a dll (which is not in a project). Now, I must to put the dll in one the "Search Path Used by Windows to Locate a DLL" <a href="http://msdn.microsoft.com/en-us/library/7d83bc18(VS.80).aspx" rel="nofollow noreferrer">link</a></p> <p>but I don't want the dll to sit in the exect...
[ { "answer_id": 231169, "author": "spoulson", "author_id": 3347, "author_profile": "https://Stackoverflow.com/users/3347", "pm_score": 0, "selected": false, "text": "LoadLibrary" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/229664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30324/" ]
229,671
<p>I read the following in a review of Knuth's "The Art of Computer Programming":</p> <p>"The very 'practicality' means that the would-be CS major has to learn Kernighan's mistakes in designing C, notably the infamous fact that a for loop evaluates the for condition repeatedly, which duplicates while and fails to matc...
[ { "answer_id": 229694, "author": "mweerden", "author_id": 4285, "author_profile": "https://Stackoverflow.com/users/4285", "pm_score": 2, "selected": false, "text": "for i:=0 to N" }, { "answer_id": 229704, "author": "Magnus Hoff", "author_id": 2971, "author_profile": ...
2008/10/23
[ "https://Stackoverflow.com/questions/229671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30529/" ]
229,676
<p>Greetings,</p> <p>The VBA code below will create an Excel QueryTable object and display it starting on Range("D2"). The specific address of this target range is immaterial.</p> <p>My question is -- is it possible to manually feed in values to an in-memory Recordset, and then have the table read from it? In other...
[ { "answer_id": 248530, "author": "GSerg", "author_id": 11683, "author_profile": "https://Stackoverflow.com/users/11683", "pm_score": 3, "selected": true, "text": " Dim vConnection As Variant, vCommandText As Variant\n Dim r As ADODB.Recordset\n Dim i As Long\n\n 'Save query table def...
2008/10/23
[ "https://Stackoverflow.com/questions/229676", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7311/" ]
229,683
<p>I have a rails application that I am running with Vista,IIS7 and SQL 2005. For some reason the CSS is not being rendered. The CSS works fine when I use Webrick.</p> <p>Any ideas how to get CSS working correctly with IIS7. I have uninstalled and reinstalled windows components "Common Http Features" with no luck.</p>...
[ { "answer_id": 229710, "author": "Dylan Beattie", "author_id": 5017, "author_profile": "https://Stackoverflow.com/users/5017", "pm_score": 2, "selected": false, "text": "Content-Type: text/css \n" }, { "answer_id": 4546765, "author": "Adam Hockemeyer", "author_id": 556074...
2008/10/23
[ "https://Stackoverflow.com/questions/229683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/453046/" ]
229,726
<p>I've seen <a href="https://stackoverflow.com/questions/49156/importing-javascript-in-jsp-tags">this question</a> regading the importing of js-files related to the tag content itself. I have a similar problem, here I have a jsp tag that generates some HTML and has a generic js-implementation that handles the behavior...
[ { "answer_id": 229772, "author": "pkaeding", "author_id": 4257, "author_profile": "https://Stackoverflow.com/users/4257", "pm_score": 1, "selected": false, "text": "<script> <script>" }, { "answer_id": 229775, "author": "Dennis", "author_id": 17874, "author_profile": ...
2008/10/23
[ "https://Stackoverflow.com/questions/229726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12540/" ]
229,747
<p>I have a button inside an updatepanel. I have a PopupControlExtender linked to the button so when the button is clicked a panel pops up. It works fine except it does a full postback and I can't figure out why. The button and the PopupControlExtender is inside an update panel which inside the ContentTemplate tag. Whe...
[ { "answer_id": 9507971, "author": "PeterX", "author_id": 845584, "author_profile": "https://Stackoverflow.com/users/845584", "pm_score": 0, "selected": false, "text": "input.linkButton\n{\n background-color: transparent;\n border-style: none;\n color: #0000FF;\n cursor: point...
2008/10/23
[ "https://Stackoverflow.com/questions/229747", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18785/" ]
229,756
<p>I'm relatively new to Python and am having problems programming with Scapy, the Python network manipulation tool. However, I can't tell if it's as much a Scapy problem as it is a being-a-Python-newbie problem. On the <a href="http://www.secdev.org/projects/scapy/build_your_own_tools.html" rel="noreferrer">scapy site...
[ { "answer_id": 229819, "author": "ddaa", "author_id": 11549, "author_profile": "https://Stackoverflow.com/users/11549", "pm_score": 4, "selected": true, "text": "PYTHONPATH /usr/lib/python2.5/site-packages PYTHONPATH >>> import scapy\n>>> dir(scapy)\n >>> import scapy\n>>> help(scapy)\n ...
2008/10/23
[ "https://Stackoverflow.com/questions/229756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/422/" ]
229,763
<p>Is there a real way to get Netbeans to load and work faster?</p> <p>It is too slow and gets worse when you have been coding for some time. It eats all my RAM.</p> <hr> <p>I am on a Windows machine, specifically Windows Server 2008 Datacenter Edition x64, 4Gb of RAM, 3Ghz Core 2 Duo processor, etc. I am using the ...
[ { "answer_id": 2425913, "author": "schmunk", "author_id": 291573, "author_profile": "https://Stackoverflow.com/users/291573", "pm_score": 2, "selected": false, "text": " sudo fs_usage | grep /path/to/workspace\n 14:08:05 getattrlist /path/to/workspaces/pii 0.000011 java\n ~/.netbea...
2008/10/23
[ "https://Stackoverflow.com/questions/229763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30715/" ]
229,765
<p>In cleaning up <a href="https://stackoverflow.com/questions/229447/how-to-create-a-two-sided-unique-index-on-two-fields#229521">this answer</a> I learnt a bit about <code>TRIGGER</code>s and stored procedures in MySQL, but was stunned that, while <code>BEFORE INSERT</code> and <code>BEFORE UPDATE</code> triggers cou...
[ { "answer_id": 229802, "author": "Esteban Brenes", "author_id": 14177, "author_profile": "https://Stackoverflow.com/users/14177", "pm_score": 5, "selected": true, "text": "CREATE TRIGGER mytabletriggerexample\nBEFORE INSERT\nFOR EACH ROW BEGIN\nIF(NEW.important_value) < (fancy * dancy * ...
2008/10/23
[ "https://Stackoverflow.com/questions/229765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15537/" ]
229,824
<p>Ok, there are a million regexes out there for validating an email address, but how about some basic email validation that can be integrated into a TSQL query for Sql Server 2005?</p> <p>I don't want to use a CLR procedure or function. Just straight TSQL.</p> <p>Has anybody tackled this already?</p>
[ { "answer_id": 229955, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 7, "selected": true, "text": "SELECT\n EmailAddress, \n CASE WHEN EmailAddress LIKE '%_@_%_.__%' \n AND EmailAddress NOT LIKE '%[any obvious...
2008/10/23
[ "https://Stackoverflow.com/questions/229824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1219/" ]
229,831
<p>I'm trying to create a form that has an expandable widget. The problem is that when the widget is open, The form extends outside the limit in the content box, and it looks bad.</p> <p>I tried using <code>overflow:scroll</code> but it creates 2 ugly scrollbars that do not disappear even if the content is smaller the...
[ { "answer_id": 229838, "author": "swilliams", "author_id": 736, "author_profile": "https://Stackoverflow.com/users/736", "pm_score": 5, "selected": true, "text": "auto" }, { "answer_id": 230027, "author": "eyelidlessness", "author_id": 17964, "author_profile": "https:...
2008/10/23
[ "https://Stackoverflow.com/questions/229831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
229,856
<p>What is the best way to save enums into a database?</p> <p>I know Java provides <code>name()</code> and <code>valueOf()</code> methods to convert enum values into a String and back. But are there any other (flexible) options to store these values?</p> <p>Is there a smart way to make enums into unique numbers (<code>...
[ { "answer_id": 229902, "author": "oxbow_lakes", "author_id": 16853, "author_profile": "https://Stackoverflow.com/users/16853", "pm_score": 3, "selected": false, "text": "name()" }, { "answer_id": 229919, "author": "Ian Boyd", "author_id": 12597, "author_profile": "htt...
2008/10/23
[ "https://Stackoverflow.com/questions/229856", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20298/" ]
229,865
<p>I have some simple .doc files I made in Word 2007 where I changed the text color and used highlights to compare some similar texts. What I'd like to do is change any instances of green text or gray highlighting to different respective colors for each.</p> <p>I'm sure there is a simple way to do this with VBA but an...
[ { "answer_id": 230305, "author": "buti-oxa", "author_id": 2515, "author_profile": "https://Stackoverflow.com/users/2515", "pm_score": 1, "selected": false, "text": "<span style='color:red'>...\n <span style='background:yellow;mso-highlight:yellow'>...\n" }, { "answer_id": 231736,...
2008/10/23
[ "https://Stackoverflow.com/questions/229865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25680/" ]
229,870
<p>I have a gridview containing some data from db, and after a check I want to see a small cross/tick image in each row, due to the result of the check.How can I change the image url dynamically? </p>
[ { "answer_id": 251638, "author": "gfrizzle", "author_id": 23935, "author_profile": "https://Stackoverflow.com/users/23935", "pm_score": 0, "selected": false, "text": "<Columns>\n <asp:TemplateField>\n <ItemTemplate>\n <asp:Image ID=\"check\" runat=\"server\" ImageUrl...
2008/10/23
[ "https://Stackoverflow.com/questions/229870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
229,883
<p>Anyone point my at a utility for syncing sql server logins after restoring a database to a different server? </p> <p>I know I can do it with scripts, but I've been using a wonderful little utility - 'Db Maint Sync SQL Logins' (<a href="http://www.dbmaint.com/SyncSqlLogins.asp" rel="nofollow noreferrer">http://www....
[ { "answer_id": 229980, "author": "PhilPursglove", "author_id": 1738, "author_profile": "https://Stackoverflow.com/users/1738", "pm_score": 2, "selected": true, "text": "sp_change_users_login Update_One" }, { "answer_id": 243557, "author": "GilaMonster", "author_id": 9342,...
2008/10/23
[ "https://Stackoverflow.com/questions/229883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7315/" ]
229,886
<p>I have heard mixed opinions over the amount of memory that a byte takes up in a java program.</p> <p>I am aware you can store no more than +127 in a java byte, and the <a href="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html" rel="noreferrer">documentation</a> says that a byte is only 8 bit...
[ { "answer_id": 230063, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 7, "selected": true, "text": "class LotsOfBytes\n{\n byte a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af;\n byte b0, b1, b2, b3, ...
2008/10/23
[ "https://Stackoverflow.com/questions/229886", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29924/" ]
229,887
<p>Can a flash front end talk to a .net backend?</p>
[ { "answer_id": 229901, "author": "Keith", "author_id": 905, "author_profile": "https://Stackoverflow.com/users/905", "pm_score": 3, "selected": false, "text": "<mx:WebService id=\"myDataService\" showBusyCursor=\"true\">\n <mx:operation name=\"WebMethodName\" resultFormat=\"object\" r...
2008/10/23
[ "https://Stackoverflow.com/questions/229887", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
229,889
<p>What are the dangerous characters that should be replaced in user input when the users' input will be inserted in a MySQL query? I know about quotes, double quotes, \r and \n. Are there others?<br><sub>(I don't have the option of using a smart connector that accepts parameters so I have to build the query myself and...
[ { "answer_id": 229941, "author": "eyelidlessness", "author_id": 17964, "author_profile": "https://Stackoverflow.com/users/17964", "pm_score": 2, "selected": false, "text": "mysql_real_escape_string mysql_real_escape_string() mysql_real_escape_string \\x00 \\n \\r \\ ' \" \\x1a" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/229889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26155/" ]
229,890
<p>Let me begin with an illustrative example (assume the implementation is in a statically typed language such as Java or C#).</p> <p>Assume that you are building a content management system (CMS) or something similar. The data is hierarchically organised into <code>Folder</code>s. Each folder has a collection of chil...
[ { "answer_id": 992926, "author": "Chris Vest", "author_id": 13251, "author_profile": "https://Stackoverflow.com/users/13251", "pm_score": 1, "selected": false, "text": "Folder" }, { "answer_id": 1217325, "author": "djna", "author_id": 82511, "author_profile": "https:/...
2008/10/23
[ "https://Stackoverflow.com/questions/229890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27929/" ]
229,924
<p>What translation occurs when writing to a file that was opened in text mode that does not occur in binary mode? Specifically in MS Visual C.</p> <pre><code>unsigned char buffer[256]; for (int i = 0; i &lt; 256; i++) buffer[i]=i; int size = 1; int count = 256; </code></pre> <p>Binary mode:</p> <pre><code>FILE *fp...
[ { "answer_id": 230655, "author": "Richard Corden", "author_id": 11698, "author_profile": "https://Stackoverflow.com/users/11698", "pm_score": 2, "selected": false, "text": "1\\n\\r\n2\\n\\r\n3\\n\n4\\n\\r\n5\\n\\r\n" }, { "answer_id": 24798837, "author": "Ming", "author_i...
2008/10/23
[ "https://Stackoverflow.com/questions/229924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5065/" ]
229,925
<p>Using the following code I get a nice formatted string:</p> <pre><code>Request.QueryString.ToString </code></pre> <p>Gives me something like: &amp;hello=world&amp;microsoft=sucks</p> <p>But when I use this code to clone the collection to another object (of the same type) I get the Type() back from the ToString()...
[ { "answer_id": 229964, "author": "Johannes Hädrich", "author_id": 18246, "author_profile": "https://Stackoverflow.com/users/18246", "pm_score": 2, "selected": false, "text": " if (!string.IsNullOrEmpty(Request.QueryString[\"sid\"]))\n Request.QueryString.Remove(\"sid\");\n Syst...
2008/10/23
[ "https://Stackoverflow.com/questions/229925", "https://Stackoverflow.com", "https://Stackoverflow.com/users/258/" ]
229,935
<p>OK, first for context look at the Windows desktop; You can take items (folders, files) on the desktop and drag them around to different places and they "stay" where you dragged them. This seems to be a pretty useful feature to offer users so as to allow them to create their own "groupings" of items.</p> <p>My que...
[ { "answer_id": 231486, "author": "Hans Passant", "author_id": 17034, "author_profile": "https://Stackoverflow.com/users/17034", "pm_score": 4, "selected": true, "text": "using System;\nusing System.Drawing;\nusing System.Windows.Forms;\n\npublic class MyListView : ListView {\n private P...
2008/10/23
[ "https://Stackoverflow.com/questions/229935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13776/" ]
229,937
<p>Is it possible to use <code>request.setAttribute</code> on a JSP page and then on HTML Submit get the same request attribute in the <code>Servlet</code>?</p>
[ { "answer_id": 229957, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 6, "selected": true, "text": "<input type=\"hidden\" name=\"myhiddenvalue\" value=\"<%= request.getParameter(\"value\") %>\" /> request.getSession() session"...
2008/10/23
[ "https://Stackoverflow.com/questions/229937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23414/" ]
229,944
<p>I have a search box that doesn't have a submit button, I need to be able to hit enter and then execute a method, how do I do this?</p>
[ { "answer_id": 230345, "author": "bdukes", "author_id": 2688, "author_profile": "https://Stackoverflow.com/users/2688", "pm_score": 2, "selected": false, "text": "this.myTextBox.Attributes.Add(\n \"onkeydown\", \n \"return keyDownHandler(13, 'javascript:\" \n + this.Page.Client...
2008/10/23
[ "https://Stackoverflow.com/questions/229944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29445/" ]
229,959
<p>This question is related to a previous post of mine <a href="https://stackoverflow.com/questions/227225/is-injecting-dao-into-entities-a-bad-thing">Here</a>. Basically, I want to inject a DAO into an entity i.e. </p> <pre><code>public class User { IUserDAO userDAO; public User() { userDAO = IoCCon...
[ { "answer_id": 230345, "author": "bdukes", "author_id": 2688, "author_profile": "https://Stackoverflow.com/users/2688", "pm_score": 2, "selected": false, "text": "this.myTextBox.Attributes.Add(\n \"onkeydown\", \n \"return keyDownHandler(13, 'javascript:\" \n + this.Page.Client...
2008/10/23
[ "https://Stackoverflow.com/questions/229959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/425/" ]
229,998
<p>I want to copy all of the columns of a row, but not have to specify every column. I am aware of the syntax at <a href="http://dev.mysql.com/doc/refman/5.1/en/insert-select.html" rel="noreferrer">http://dev.mysql.com/doc/refman/5.1/en/insert-select.html</a> but I see no way to ignore a column.</p> <p>For my example,...
[ { "answer_id": 230018, "author": "Eric Lamb", "author_id": 538, "author_profile": "https://Stackoverflow.com/users/538", "pm_score": 1, "selected": false, "text": "INSERT INTO `users` (`ID`, `Email`, `UserName`) VALUES\n(1, 'so@so.com', 'StackOverflow')\n INSERT INTO `users` VALUES\n('so...
2008/10/23
[ "https://Stackoverflow.com/questions/229998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
230,003
<p>What is the difference between using a new thread and using a thread from the thread pool? What performance benefits are there and why should I consider using a thread from the pool rather than one I've explicitly created? I'm thinking specifically of .NET here, but general examples are fine.</p>
[ { "answer_id": 230043, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 4, "selected": false, "text": "new Thread().Start()" }, { "answer_id": 21001870, "author": "Marco Guignard", "author_id": 2087090, "autho...
2008/10/23
[ "https://Stackoverflow.com/questions/230003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/986/" ]
230,006
<p>How would I reset the primary key counter on a sql table and update each row with a new primary key?</p>
[ { "answer_id": 230041, "author": "Codewerks", "author_id": 17729, "author_profile": "https://Stackoverflow.com/users/17729", "pm_score": 2, "selected": false, "text": "SELECT Field1, Field2 INTO #MyTable FROM MyTable\n\nTRUNCATE TABLE MyTable\n\nINSERT INTO MyTable\n(Field1, Field2)\nSEL...
2008/10/23
[ "https://Stackoverflow.com/questions/230006", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5618/" ]
230,014
<p>I'm using the ASP.NET 3.5 SP1 System.Web.Routing with classic WebForms, as described in <a href="http://chriscavanagh.wordpress.com/2008/04/25/systemwebrouting-with-webforms-sample/" rel="noreferrer">http://chriscavanagh.wordpress.com/2008/04/25/systemwebrouting-with-webforms-sample/</a></p> <p><strong>All works fi...
[ { "answer_id": 307768, "author": "JSmyth", "author_id": 54794, "author_profile": "https://Stackoverflow.com/users/54794", "pm_score": 0, "selected": false, "text": "<form></form>\n" }, { "answer_id": 429911, "author": "user33090", "author_id": 33090, "author_profile":...
2008/10/23
[ "https://Stackoverflow.com/questions/230014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
230,025
<p>I got this error Response object error 'ASP 0156 : 80004005' </p> <p>Header Error </p> <p>/ordermgmt/updateorderstatus.asp, line 1390 </p> <p>The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content. </p> <p>I put Response.Buffer=true; Sti...
[ { "answer_id": 23285687, "author": "kansal", "author_id": 3571723, "author_profile": "https://Stackoverflow.com/users/3571723", "pm_score": 0, "selected": false, "text": "<% Response.Buffer = True %>" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/230025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29982/" ]
230,035
<p>Is there a way to display the headerText of the Grid View vertically?</p> <p><a href="http://img371.imageshack.us/img371/4813/testyk6.jpg" rel="nofollow noreferrer">http://img371.imageshack.us/img371/4813/testyk6.jpg</a></p> <p>I hope the above link works</p> <p>Thanks</p>
[ { "answer_id": 230148, "author": "Travis Collins", "author_id": 30460, "author_profile": "https://Stackoverflow.com/users/30460", "pm_score": 1, "selected": false, "text": "<div style=\"width:100%; filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);\">\n This text is rota...
2008/10/23
[ "https://Stackoverflow.com/questions/230035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21968/" ]
230,037
<p>I am trying to figure out the best way to use Ant to precompile JSPs that will be deployed to an Oracle application server. Even though I am deploying to an Oracle app server I would like to avoid using Oracle's version of Ant.</p>
[ { "answer_id": 235744, "author": "Brian", "author_id": 700, "author_profile": "https://Stackoverflow.com/users/700", "pm_score": 3, "selected": false, "text": "<servlet>\n <servlet-name>jsp</servlet-name>\n <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>\n <init-p...
2008/10/23
[ "https://Stackoverflow.com/questions/230037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25502/" ]
230,044
<p><strong>Is there some way to force some files to not be merged automatically (force me to manage the merge) when merging a branch back into the main tree?</strong> </p> <p>For example, I have web.config files that have specific paths based on whether I'm in the Dev or Production system. So, when I need to merge my ...
[ { "answer_id": 230173, "author": "Adam", "author_id": 13320, "author_profile": "https://Stackoverflow.com/users/13320", "pm_score": 0, "selected": false, "text": "if (production) {\n db = prod\n} else {\n db = dev\n}\n /trunk <-- development (or its own branch)\n/branches/\n/branches...
2008/10/23
[ "https://Stackoverflow.com/questions/230044", "https://Stackoverflow.com", "https://Stackoverflow.com/users/288/" ]
230,062
<p>Is there a better way than simply trying to open the file?</p> <pre><code>int exists(const char *fname) { FILE *file; if ((file = fopen(fname, "r"))) { fclose(file); return 1; } return 0; } </code></pre>
[ { "answer_id": 230067, "author": "Mecki", "author_id": 15809, "author_profile": "https://Stackoverflow.com/users/15809", "pm_score": 5, "selected": false, "text": "stat() stat(2) stat() access() stat()" }, { "answer_id": 230068, "author": "Graeme Perrow", "author_id": 182...
2008/10/23
[ "https://Stackoverflow.com/questions/230062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1248/" ]
230,065
<p>Are there any good (and preferably free) code coverage tools out there for Perl?</p>
[ { "answer_id": 230149, "author": "moritz", "author_id": 14132, "author_profile": "https://Stackoverflow.com/users/14132", "pm_score": 6, "selected": true, "text": "testcover perl Build.PL\n ./Build testcover\n" }, { "answer_id": 236132, "author": "dland", "author_id": 18...
2008/10/23
[ "https://Stackoverflow.com/questions/230065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27687/" ]
230,081
<p>How do you find out the length/size of the data in an ntext column in SQL? - It's longer than 8000 bytes so I can't cast it to a varchar. Thanks.</p>
[ { "answer_id": 230097, "author": "korro", "author_id": 22650, "author_profile": "https://Stackoverflow.com/users/22650", "pm_score": 7, "selected": true, "text": "SELECT * FROM YourTable WHERE DataLength(NTextFieldName) > 0 \n" }, { "answer_id": 232828, "author": "onedaywhen"...
2008/10/23
[ "https://Stackoverflow.com/questions/230081", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14072/" ]
230,085
<p>We use Grid Control 10.2.0.4, with a catalog repository database also at 10.2.0.4. It seems that after a week or two of being up, the response time of the web interface gets very poor (20+ seconds to navigate to a new page, when normally 2-3 seconds is seen). The only thing we've found to overcome it is a restart of...
[ { "answer_id": 230097, "author": "korro", "author_id": 22650, "author_profile": "https://Stackoverflow.com/users/22650", "pm_score": 7, "selected": true, "text": "SELECT * FROM YourTable WHERE DataLength(NTextFieldName) > 0 \n" }, { "answer_id": 232828, "author": "onedaywhen"...
2008/10/23
[ "https://Stackoverflow.com/questions/230085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8670/" ]
230,105
<p>What's the best data type in SQL to represent Decimal in .NET?</p> <p>We want to store decimal numbers with up to 9 decimal place precision and want to avoid rounding errors etc on the front end.</p> <p>Reading about data types, it appears using Decimal in .NET is the best option because you will not get rounding ...
[ { "answer_id": 2405477, "author": "Gareth Farrington", "author_id": 2021, "author_profile": "https://Stackoverflow.com/users/2021", "pm_score": 5, "selected": false, "text": "decimal decimal(38, 28)\n decimal(38, 9)\n varchar" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/230105", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30840/" ]
230,111
<p>I am trying to manipulate a string using Jython, I have included below an example string:</p> <p>This would be a title for a website :: SiteName<br /> This would be a title for a website :: SiteName :: SiteName</p> <p>How to remove all instances of ":: Sitename" or ":: SiteName :: SiteName"?</p>
[ { "answer_id": 230240, "author": "gimel", "author_id": 6491, "author_profile": "https://Stackoverflow.com/users/6491", "pm_score": 3, "selected": true, "text": ">>> str=\"This would be a title for a website :: SiteName\"\n>>> str.replace(\":: SiteName\",\"\")\n'This would be a title for ...
2008/10/23
[ "https://Stackoverflow.com/questions/230111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30786/" ]
230,126
<p>I have a Timestamp value that comes from my application. The user can be in any given local TimeZone.</p> <p>Since this date is used for a WebService that assumes the time given is always in GMT, I have a need to convert the user's parameter from say (EST) to (GMT). Here's the kicker: The user is oblivious to his T...
[ { "answer_id": 230313, "author": "Adam", "author_id": 30084, "author_profile": "https://Stackoverflow.com/users/30084", "pm_score": 2, "selected": false, "text": "int offset = TimeZone.getTimeZone(timezoneId).getRawOffset();\n" }, { "answer_id": 230320, "author": "Skip Head",...
2008/10/23
[ "https://Stackoverflow.com/questions/230126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30825/" ]
230,128
<p>What is the best way to copy the contents of one stream to another? Is there a standard utility method for this?</p>
[ { "answer_id": 230141, "author": "Nick", "author_id": 1490, "author_profile": "https://Stackoverflow.com/users/1490", "pm_score": 11, "selected": true, "text": "Stream.CopyToAsync input.CopyToAsync(output);\n Task await input.CopyToAsync(output)\n\n// Code from here on will be run in a c...
2008/10/23
[ "https://Stackoverflow.com/questions/230128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/341413/" ]
230,138
<p>I have a table that was imported as all UPPER CASE and I would like to turn it into Proper Case. What script have any of you used to complete this?</p>
[ { "answer_id": 230177, "author": "Galwegian", "author_id": 3201, "author_profile": "https://Stackoverflow.com/users/3201", "pm_score": 8, "selected": true, "text": "create function ProperCase(@Text as varchar(8000))\nreturns varchar(8000)\nas\nbegin\n declare @Reset bit;\n declare @Ret...
2008/10/23
[ "https://Stackoverflow.com/questions/230138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7952/" ]
230,150
<p>Visual Studio 2008 w/Sp1</p> <p>To reproduce my problem I simply create a new .Net 2.0 web application and add a page with the following markup:</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication5._Default" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//...
[ { "answer_id": 230177, "author": "Galwegian", "author_id": 3201, "author_profile": "https://Stackoverflow.com/users/3201", "pm_score": 8, "selected": true, "text": "create function ProperCase(@Text as varchar(8000))\nreturns varchar(8000)\nas\nbegin\n declare @Reset bit;\n declare @Ret...
2008/10/23
[ "https://Stackoverflow.com/questions/230150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2424/" ]
230,186
<p>I am trying to aid another programmer with a page called Default.aspx with a code-behind section, and unfortunately I am at a bit of a loss.</p> <pre><code> Partial Class _Default Inherits OverheadClass 'A bunch of global variables here' Private Sub page_load(ByVal sender As Object, ByVal e As System.Eventarts)...
[ { "answer_id": 230200, "author": "mattruma", "author_id": 1768, "author_profile": "https://Stackoverflow.com/users/1768", "pm_score": 5, "selected": true, "text": "protected override void OnLoad(EventArgs e)\n{\n base.OnLoad(e);\n\n // Do some stuff here\n}\n Protected Overrides Su...
2008/10/23
[ "https://Stackoverflow.com/questions/230186", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12545/" ]
230,196
<p>I need write an update statement that used multiple tables to determine which rows to update, since in Oracle, multiple tables aren't allowed. The following query will return a "ORA-00971: Missing SET keyword" error</p> <pre><code>UPDATE TABLE1 a, TABLE2 b SET a.COL1 = 'VALUE' WHERE a.FK = b.PK AND b.COL...
[ { "answer_id": 230251, "author": "Tony Andrews", "author_id": 18747, "author_profile": "https://Stackoverflow.com/users/18747", "pm_score": 4, "selected": true, "text": "UPDATE TABLE1 a\nSET a.COL1 = 'VALUE'\nWHERE a.FK IN\n( SELECT b.PK FROM TABLE2 b\n WHERE b.COL2 IN ('SET OF VALUES')...
2008/10/23
[ "https://Stackoverflow.com/questions/230196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5129/" ]
230,205
<p>I have a page that is supposed to launch the Print Preview page onload.</p> <p>I found this:</p> <pre><code>var OLECMDID = 7; /* OLECMDID values: * 6 - print * 7 - print preview * 1 - open window * 4 - Save As */ var PROMPT = 1; // 2 DONTPROMPTUSER var WebBrowser = '&lt;OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLA...
[ { "answer_id": 230243, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 5, "selected": false, "text": "window.print()" }, { "answer_id": 23774526, "author": "Vikas Kottari", "author_id": 2757125, "author_profi...
2008/10/23
[ "https://Stackoverflow.com/questions/230205", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27482/" ]
230,230
<p>near the top of the code i see things like, </p> <p>btn_dropdown._visible = false; mcMenuBkg._visible = false;</p> <p>but I can't find these assets anywhere in the library or in any code, how does this make any sense?</p> <p>The movie clips in the library that look the same have different names and I can delete t...
[ { "answer_id": 231581, "author": "branchgabriel", "author_id": 30807, "author_profile": "https://Stackoverflow.com/users/30807", "pm_score": 0, "selected": false, "text": "var mybutton:SimpleButton=new SimpleButton();\n" }, { "answer_id": 232339, "author": "fenomas", "aut...
2008/10/23
[ "https://Stackoverflow.com/questions/230230", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18309/" ]
230,241
<p>I have a table, call it TBL. It has two columns,call them A and B. Now in the query I require one column as A and other column should be a comma seprated list of all B's which are against A in TBL. e.g. TBL is like this</p> <p>1 Alpha</p> <p>2 Beta</p> <p>1 Gamma</p> <p>1 Delta</p> <p>Result of query s...
[ { "answer_id": 230823, "author": "pro3carp3", "author_id": 7899, "author_profile": "https://Stackoverflow.com/users/7899", "pm_score": 2, "selected": false, "text": "Public Sub GenerateColorList()\n\nDim cn As New ADODB.Connection\nDim Widgets As New ADODB.Recordset\nDim ColorListByWidge...
2008/10/23
[ "https://Stackoverflow.com/questions/230241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6613/" ]
230,245
<p>Should the "visibility" for the <code>__destruct()</code> function be public or something else? I'm trying to write a standards doc for my group and this question came up.</p>
[ { "answer_id": 230258, "author": "Mark Biek", "author_id": 305, "author_profile": "https://Stackoverflow.com/users/305", "pm_score": 3, "selected": false, "text": "<?php\nclass MyParent\n{\n private function __destruct()\n {\n echo 'Parent::__destruct';\n }\n}\n\nclass My...
2008/10/23
[ "https://Stackoverflow.com/questions/230245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25143/" ]
230,248
<p>Oracle Forms10g provides a tool to convert the Oracle Forms modules, from the binary format (.FMB) that Oracle Forms Builder works with, to text format (.FMT).</p> <p>For example, if you create a module called <em>mymodule.fmb</em> with Oracle Forms Builder, and then invoke</p> <pre><code>frmcmp module=mymodule.fm...
[ { "answer_id": 231185, "author": "hamishmcn", "author_id": 3590, "author_profile": "https://Stackoverflow.com/users/3590", "pm_score": 1, "selected": false, "text": "[chr(x) for x in [0x53,0x45,0x53,0x27 ,0x20,0x29,0x3b,0x0a ,0x69,0x66,0x20,0x66 ,0x6f,0x72,0x6d,0x5f ,0x73,0x75,0x63,0x63 ...
2008/10/23
[ "https://Stackoverflow.com/questions/230248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20037/" ]
230,266
<p>Using Vim, I'm trying to pipe text selected in visual mode to a UNIX command and have the output appended to the end of the current file. For example, say we have a SQL command such as:</p> <pre><code>SELECT * FROM mytable; </code></pre> <p>I want to do something like the following:</p> <pre><code>&lt;ESC&gt; V ...
[ { "answer_id": 230504, "author": "mweerden", "author_id": 4285, "author_profile": "https://Stackoverflow.com/users/4285", "pm_score": 4, "selected": true, "text": "q :com -range C <line1>,<line2>yank | $ | put | .,$ !rev\n :C rev" }, { "answer_id": 4934657, "author": "Brad Co...
2008/10/23
[ "https://Stackoverflow.com/questions/230266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8243/" ]
230,270
<p>I'm searching for a <strong>PHP syntax highlighting engine</strong> that can be customized (i.e. I can provide my <strong>own tokenizers</strong> for new languages) and that can handle several languages <em>simultaneously</em> (i.e. on the same output page). This engine has to work well together with <strong>CSS cla...
[ { "answer_id": 819910, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 7, "selected": true, "text": " <?php hyperlight($code, 'php'); ?>\n" }, { "answer_id": 14969976, "author": "Community", "author_id":...
2008/10/23
[ "https://Stackoverflow.com/questions/230270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1968/" ]
230,285
<p>I am using C#. By default, when I add a web form in Visual Studio 2008 with or without a master page, the AutoEventWireup attribute is set to true in the page directive. This attribute is also set to true inside the master page master directive.</p> <p>What value should I have AutoEventWireup set to (true/false)?<...
[ { "answer_id": 231689, "author": "NathanD", "author_id": 30544, "author_profile": "https://Stackoverflow.com/users/30544", "pm_score": 1, "selected": false, "text": "protected override void OnLoad(EventArgs e)\n{\n base.OnLoad(e); \n}\n protected void Page_Load(object sender, EventArgs...
2008/10/23
[ "https://Stackoverflow.com/questions/230285", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24522/" ]
230,299
<p>I am trying to get center of parent form, not center of screen behavior. Passing in the parent form seems to only control the ownership of the window. These classes are sealed, so I do not see how I can do any WinProc tricks. Rewriting the classes is not an appealing option. Any other ideas?</p>
[ { "answer_id": 230370, "author": "tafa", "author_id": 22186, "author_profile": "https://Stackoverflow.com/users/22186", "pm_score": 0, "selected": false, "text": "System.Windows.Forms.Form f = new Form();\nf.StartPosition = FormStartPosition.CenterParent;\n" }, { "answer_id": 230...
2008/10/23
[ "https://Stackoverflow.com/questions/230299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14841/" ]
230,335
<p>I started a Rails project recently and decided to use RESTful controllers. I created controllers for my key entities (such as Country) and added <code>index</code>, <code>new</code>, <code>edit</code>, <code>create</code>, <code>show</code>, <code>update</code> and <code>delete</code>. I added my <code>map.resources...
[ { "answer_id": 230523, "author": "Codebeef", "author_id": 12037, "author_profile": "https://Stackoverflow.com/users/12037", "pm_score": 4, "selected": true, "text": "map.resources :events, :collection => { :search => :get }\n" }, { "answer_id": 230695, "author": "Dave Nolan",...
2008/10/23
[ "https://Stackoverflow.com/questions/230335", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16779/" ]
230,348
<p>I see Oracle procedures sometimes written with "AS", and sometimes with "IS" keyword. </p> <pre><code>CREATE OR REPLACE Procedure TESTUSER.KILLINSTANCE (INSTANCEID integer) **AS** ... </code></pre> <p>vs.</p> <pre><code>CREATE OR REPLACE Procedure TESTUSER.KILLINSTANCE (INSTANCEID integer) **IS** ... </code></pre...
[ { "answer_id": 239256, "author": "Nick Pierpoint", "author_id": 4003, "author_profile": "https://Stackoverflow.com/users/4003", "pm_score": 6, "selected": false, "text": "cursor test_cursor\nis\nselect * from emp;\n cursor test_cursor\nas\nselect * from emp;\n" }, { "answer_id": ...
2008/10/23
[ "https://Stackoverflow.com/questions/230348", "https://Stackoverflow.com", "https://Stackoverflow.com/users/227/" ]
230,351
<p>When I am creating a new database table, what factors should I take into account for selecting the primary key's data type?</p>
[ { "answer_id": 232985, "author": "Philippe Grondier", "author_id": 11436, "author_profile": "https://Stackoverflow.com/users/11436", "pm_score": 5, "selected": true, "text": "'id_MyTable' 'id_myManyToManyTable' Tbl_whatever\n\n id_whatever, unique identifier, primary key\n code_whate...
2008/10/23
[ "https://Stackoverflow.com/questions/230351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5618/" ]
230,364
<p>I'm trying to link an RPATH containing the special string $ORIGIN into an executable built using GCC with the Code::Blocks IDE. I've specified</p> <pre><code>-Wl,-R$ORIGIN </code></pre> <p>in the linker options for the project, but the command line output to GCC is wrong (stripped for clarity):</p> <pre><code>g++...
[ { "answer_id": 230376, "author": "kbluck", "author_id": 13402, "author_profile": "https://Stackoverflow.com/users/13402", "pm_score": 6, "selected": true, "text": "-Wl,-R\\$ORIGIN\n -Wl,-R\\\\$$ORIGIN\n -Wl,-R\\\\$ORIGIN\n -Wl,-R\\$ORIGIN\n" }, { "answer_id": 1500980, "author...
2008/10/23
[ "https://Stackoverflow.com/questions/230364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13402/" ]
230,382
<p>The print functionality of Excel (using VBA) is extremely slow. I'm hoping someone has a way of speeding the printing up (without using the Excel 4 Macro trick). Here's how I do it now:</p> <pre><code>Application.ScreenUpdating = False With ActiveSheet.PageSetup -various setup statements which I've already min...
[ { "answer_id": 231145, "author": "Mike Rosenblum", "author_id": 10429, "author_profile": "https://Stackoverflow.com/users/10429", "pm_score": 4, "selected": true, "text": "Application.ScreenUpdating = False Application.Calculation = xlCalculationManual Dim origScreenUpdating As Boolean\n...
2008/10/23
[ "https://Stackoverflow.com/questions/230382", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13295/" ]
230,389
<p>I am new to jmock and trying to mock an HttpSession. I am getting:</p> <p>java.lang.AssertionError: unexpected invocation: httpServletRequest.getSession() no expectations specified: did you... - forget to start an expectation with a cardinality clause? - call a mocked method to specify the parameter of an expecta...
[ { "answer_id": 230471, "author": "matt b", "author_id": 4249, "author_profile": "https://Stackoverflow.com/users/4249", "pm_score": 1, "selected": false, "text": "final HttpServletRequest request = context.mock(HttpServletRequest.class);\n\ncontext.checking(new Expectations(){{\n one(re...
2008/10/23
[ "https://Stackoverflow.com/questions/230389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3034/" ]
230,397
<p>I am writing a DB upgrade script that will check to see if an index has the right two columns defined. If it doesn't, or if it only has one of them, then I will DROP it (is there a way to ALTER an index?) and then recreate it with both.</p>
[ { "answer_id": 230442, "author": "Ed Altorfer", "author_id": 26552, "author_profile": "https://Stackoverflow.com/users/26552", "pm_score": 4, "selected": true, "text": "IF EXISTS\n(\n SELECT MyIndex.Name AS IndexName, \n Columns.name AS ColumnName \n FROM sys.indexes MyIndex...
2008/10/23
[ "https://Stackoverflow.com/questions/230397", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14101/" ]
230,401
<p>I'm trying to use jQuery to get data from an ASP.NET web service (SharePoint Server 2007 lists.asmx), but any call to a web service will really help as a first step in that direction.</p>
[ { "answer_id": 230408, "author": "mohammedn", "author_id": 29268, "author_profile": "https://Stackoverflow.com/users/29268", "pm_score": 3, "selected": false, "text": "$.get(\"http://domain.com/webservice.asmx\", { name: \"John\", time: \"2pm\" },\n function(data){\n alert(\"Data Loa...
2008/10/23
[ "https://Stackoverflow.com/questions/230401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30867/" ]
230,407
<p>I'm looking for the equivalent of right clicking on the drive in windows and seeing the disk space used and remaining info.</p>
[ { "answer_id": 230412, "author": "Zebra North", "author_id": 17440, "author_profile": "https://Stackoverflow.com/users/17440", "pm_score": 6, "selected": true, "text": "du df" }, { "answer_id": 230608, "author": "German", "author_id": 19136, "author_profile": "https:/...
2008/10/23
[ "https://Stackoverflow.com/questions/230407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/700/" ]
230,409
<p>In my <a href="https://stackoverflow.com/questions/222442/sql-server-running-large-script-files">eternal</a> <a href="https://stackoverflow.com/questions/224830/how-do-i-set-a-sql-server-scripts-timeout-from-within-the-script">saga</a> to insert 1.4 million rows of data from a SQL script, I've written a basic WinFor...
[ { "answer_id": 230489, "author": "StingyJack", "author_id": 16391, "author_profile": "https://Stackoverflow.com/users/16391", "pm_score": 0, "selected": false, "text": "SET IDENTITY_INSERT [Table] OFF;\nINSERT INTO TABLE VALUES (1, 'a');\nINSERT INTO TABLE VALUES (2, 'b');\nINSERT INTO T...
2008/10/23
[ "https://Stackoverflow.com/questions/230409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/192/" ]
230,411
<p>I want yo use the EXSLT - DYN:EVALUATE in a style sheet. I have added the names pace but I don't know where the .xsl file I need to import is. I don't believe I have XALAN installed to point the import to. How would I install this? Once installed and I point it to the .xsl will it pick up the function and apply it? ...
[ { "answer_id": 232526, "author": "GerG", "author_id": 17249, "author_profile": "https://Stackoverflow.com/users/17249", "pm_score": 4, "selected": true, "text": "<root>\n<foo>I am foo</foo> \n<bar>I am bar</bar> \n</root>\n <xsl:stylesheet version=\"1.0\"\n xmlns:xsl=\"http://ww...
2008/10/23
[ "https://Stackoverflow.com/questions/230411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
230,427
<p>Looking to hear from people who are using WCF in an enterprise environment.</p> <p>What were the major hurdles with the roll out? Performance issues? Any and all tips appreciated!</p> <p>Please provide some general statistics and server configs if you can!</p>
[ { "answer_id": 230526, "author": "cfeduke", "author_id": 5645, "author_profile": "https://Stackoverflow.com/users/5645", "pm_score": 1, "selected": false, "text": "[NetDataContract]" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/230427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
230,449
<p>I have a Stored Procedure that rolls-back a series of operations. I want to call this from within another SP.</p> <p>The problem is that the inner SP returns a record set with a single value that indicates the degree of success. </p> <p> This approach worked well and has some advantages in our context, but in retr...
[ { "answer_id": 230821, "author": "hova", "author_id": 2170, "author_profile": "https://Stackoverflow.com/users/2170", "pm_score": 1, "selected": false, "text": "CREATE TABLE #outsidetable (...)\nexec spInsideProcedure\nSELECT * FROM #outsidetable\n INSERT INTO #outsidetable SELECT <blah ...
2008/10/23
[ "https://Stackoverflow.com/questions/230449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6898/" ]
230,454
<p>What would be the best way to fill an array from user input?</p> <p>Would a solution be showing a prompt message and then get the values from from the user?</p>
[ { "answer_id": 230463, "author": "Patrick Desjardins", "author_id": 13913, "author_profile": "https://Stackoverflow.com/users/13913", "pm_score": 7, "selected": true, "text": "string []answer = new string[10];\nfor(int i = 0;i<answer.length;i++)\n{\n answer[i]= Console.ReadLine();\n}\...
2008/10/23
[ "https://Stackoverflow.com/questions/230454", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30858/" ]
230,467
<p>One of my developers has started using RegexBuddy for help in interpreting legacy code, which is a usage I fully understand and support. What concerns me is using a regex tool for writing new code. I have actually discouraged its use for new code in my team. Two quotes come to mind:</p> <blockquote> <p><strong...
[ { "answer_id": 230483, "author": "Bill the Lizard", "author_id": 1288, "author_profile": "https://Stackoverflow.com/users/1288", "pm_score": 2, "selected": false, "text": "(less|more)" }, { "answer_id": 232327, "author": "Axeman", "author_id": 11289, "author_profile":...
2008/10/23
[ "https://Stackoverflow.com/questions/230467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21632/" ]
230,517
<p>Please don't answer the obvious, but what are the limit signs that tell us a problem should not be solved using regular expressions?</p> <p>For example: Why is a complete email validation too complex for a regular expression?</p>
[ { "answer_id": 230548, "author": "Daniel Spiewak", "author_id": 9815, "author_profile": "https://Stackoverflow.com/users/9815", "pm_score": 4, "selected": false, "text": "(())()\n" }, { "answer_id": 230576, "author": "Miserable Variable", "author_id": 18573, "author_p...
2008/10/23
[ "https://Stackoverflow.com/questions/230517", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13787/" ]
230,522
<p>I have a table with multiple rows. Each row is a form. I want to use JQuery to submit all the forms that have the check box checked. The form is posting to an IFrame so there is not much need for AJAX.</p> <p>So far I have:</p> <pre><code> $("form").submit(); </code></pre> <p>which submits the form. but all...
[ { "answer_id": 230540, "author": "James Curran", "author_id": 12725, "author_profile": "https://Stackoverflow.com/users/12725", "pm_score": 0, "selected": false, "text": "$(\"td > input:checked > form\").submit();\n" }, { "answer_id": 230551, "author": "Nathan Strutz", "a...
2008/10/23
[ "https://Stackoverflow.com/questions/230522", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3208/" ]
230,525
<p>I have started making a database and I have an 'ordered item' and a 'invoice' table. I would like to find out how I would add up the prices of the items that the customer picks. As well where abouts do you put this 'rule' on the database. </p>
[ { "answer_id": 230572, "author": "nathan_jr", "author_id": 3769, "author_profile": "https://Stackoverflow.com/users/3769", "pm_score": 1, "selected": false, "text": "declare @Item table (ItemId int, ItemDesc varchar(50), Price money)\ndeclare @Invoice table (InvoiceId int, CustomerName v...
2008/10/23
[ "https://Stackoverflow.com/questions/230525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
230,584
<p>Where are variables in C++ stored?</p> <p>Inside the RAM or the processor's cache?</p>
[ { "answer_id": 230596, "author": "Adam Rosenfield", "author_id": 9530, "author_profile": "https://Stackoverflow.com/users/9530", "pm_score": 1, "selected": false, "text": "const" }, { "answer_id": 230601, "author": "Brian R. Bondy", "author_id": 3153, "author_profile"...
2008/10/23
[ "https://Stackoverflow.com/questions/230584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
230,585
<p>I have the following code:</p> <pre><code>class IncidentTag: def __init__(self,tag): self.tag = tag def equals(self,obj): return self.tag.equals(obj.tag) def hashCode(self): return self.tag.hashCode() from java.lang import String from java.util import HashMap from java.util i...
[ { "answer_id": 230812, "author": "dmeister", "author_id": 4194, "author_profile": "https://Stackoverflow.com/users/4194", "pm_score": 4, "selected": true, "text": "__eq__ __hash__ def __hash__(self):\n return self.hashCode()\ndef __eq__(self, o):\n return self.equals(o)\n" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/230585", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1432/" ]
230,588
<p>I am trying to sort a list using delegates but I am getting a signature match error. The compiler says I cannot convert from an 'anonymous method' </p> <pre><code>List&lt;MyType&gt; myList = GetMyList(); myList.Sort( delegate (MyType t1, MyType t2) { return (t1.ID &lt; t2.ID); } ); </code></pre> <p>What am I missi...
[ { "answer_id": 230597, "author": "Jeff Yates", "author_id": 23234, "author_profile": "https://Stackoverflow.com/users/23234", "pm_score": 4, "selected": false, "text": "Comparison<T> int bool 0 <0 >0" }, { "answer_id": 230620, "author": "cfeduke", "author_id": 5645, "...
2008/10/23
[ "https://Stackoverflow.com/questions/230588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1632/" ]
230,592
<p>Here's the XML code I'm working with:</p> <pre><code>&lt;inventory&gt; &lt;drink&gt; &lt;lemonade supplier="mother" id="1"&gt; &lt;price&gt;$2.50&lt;/price&gt; &lt;amount&gt;20&lt;/amount&gt; &lt;/lemonade&gt; &lt;lemonade supplier="mike" id="4"&gt; &l...
[ { "answer_id": 230609, "author": "bobwienholt", "author_id": 24257, "author_profile": "https://Stackoverflow.com/users/24257", "pm_score": 6, "selected": true, "text": "//lemonade[@id=\"1\"]/price\n //lemonade[@supplier=\"mother\"]/price\n" }, { "answer_id": 230619, "author":...
2008/10/23
[ "https://Stackoverflow.com/questions/230592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27090/" ]
230,636
<p>I am trying to implement the following functionality:</p> <pre><code>class WeightResolver { WeightMonitor _source; bool _cancelled; Weight _threshold; public Cancel() { _cancelled = true; } public Weight Resolve(){ _cancelled = false; while(_source.CurrentWeight &lt; threshold ) { ...
[ { "answer_id": 230654, "author": "Karl Seguin", "author_id": 34, "author_profile": "https://Stackoverflow.com/users/34", "pm_score": 1, "selected": false, "text": "resolveThread.Start();\nresolveThread.Join(2000); //this will block the main thread, thus making resolve synchronous\nresolv...
2008/10/23
[ "https://Stackoverflow.com/questions/230636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5056/" ]
230,642
<p>On our live/production database I'm trying to add a trigger to a table, but have been unsuccessful. I have tried a few times, but it has taken more than 30 minutes for the create trigger statement to complete and I've cancelled it. </p> <p>The table is one that gets read/written to often by a couple different pro...
[ { "answer_id": 230719, "author": "Dave DuPlantis", "author_id": 8174, "author_profile": "https://Stackoverflow.com/users/8174", "pm_score": 2, "selected": false, "text": "AFTER UPDATE" }, { "answer_id": 37567052, "author": "Marco Marsala", "author_id": 2717254, "autho...
2008/10/23
[ "https://Stackoverflow.com/questions/230642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21353/" ]
230,643
<p>Is there any elegant way in the Android API for detecting new media when it is written to the device? I’m mainly interested in photos taken by the camera, video taken by the camera and audio recorded from the mic.</p> <p>My current thinking is to periodically scan each media content provider and filter based on las...
[ { "answer_id": 236756, "author": "Reto Meier", "author_id": 822, "author_profile": "https://Stackoverflow.com/users/822", "pm_score": 3, "selected": false, "text": "Intent.ACTION_MEDIA_SCANNER_SCAN_FILE\n Intent.getDataString() BroadcastReceiver IntentFilter registerReceiver(new Broadcas...
2008/10/23
[ "https://Stackoverflow.com/questions/230643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21297/" ]
230,644
<p>I've got a tomcat instance with several apps running on it... I want the root of my new domain to go to one of these apps (context path of blah).. so I have the following set up:</p> <pre><code>&lt;Location /&gt; ProxyPass ajp://localhost:8025/blah ProxyPassReverse ajp://localhost:8025/blah &lt;/Location&gt...
[ { "answer_id": 237697, "author": "f4nt", "author_id": 14838, "author_profile": "https://Stackoverflow.com/users/14838", "pm_score": 3, "selected": true, "text": "ProxyPass / ajp://localhost:8025/blah\nProxyPassReverse / ajp://localhost:8025/blah\n" }, { "answer_id": 707544, "...
2008/10/23
[ "https://Stackoverflow.com/questions/230644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2031/" ]
230,649
<h2>Question</h2> <p>I'm looking for a Java in-memory object caching API. Any recommendations? What solutions have you used in the past?</p> <h2>Current</h2> <p>Right now, I'm just using a Map:</p> <pre><code>Map cache = new HashMap&lt;String, Object&gt;(); cache.put("key", value); </code></pre> <h2>Requirements</...
[ { "answer_id": 230659, "author": "Steve K", "author_id": 739, "author_profile": "https://Stackoverflow.com/users/739", "pm_score": 7, "selected": true, "text": "CacheManager cacheManager = CacheManager.getInstance();\nint oneDay = 24 * 60 * 60;\nCache memoryOnlyCache = new Cache(\"name\"...
2008/10/23
[ "https://Stackoverflow.com/questions/230649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7679/" ]
230,662
<p>I have a table that has a column with a default value:</p> <pre><code>create table t ( value varchar(50) default ('something') ) </code></pre> <p>I'm using a stored procedure to insert values into this table:</p> <pre><code>create procedure t_insert ( @value varchar(50) = null ) as insert into t (value) ...
[ { "answer_id": 230676, "author": "Brian Hasden", "author_id": 28926, "author_profile": "https://Stackoverflow.com/users/28926", "pm_score": 2, "selected": false, "text": "INSERT INTO t (value1, value3) VALUES ('value1', 'value3')\n" }, { "answer_id": 230678, "author": "Christ...
2008/10/23
[ "https://Stackoverflow.com/questions/230662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2614/" ]
230,687
<p>PHP has a very nice function, isset($variableName). It checks if $variableName is already defined in the program or not.</p> <p>Can we build similar feature for C/C++ (some kind of symbol table lookup)?</p>
[ { "answer_id": 230729, "author": "Jeffrey Martinez", "author_id": 29703, "author_profile": "https://Stackoverflow.com/users/29703", "pm_score": 5, "selected": true, "text": "// code code code\n#ifdef DEBUG\n// debug only code that will not be included in final product.\n#endif\n// more c...
2008/10/23
[ "https://Stackoverflow.com/questions/230687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6561/" ]
230,689
<p>I'd like a consistent and simple way to throw exceptions in JNI code; something that handles chained exceptions (implicitly from the env->ExceptionOccurred method, or explicitly by parameters, either way is good) and saves me looking up constructors every time I want to do this. All of the above is preferably in C,...
[ { "answer_id": 240506, "author": "Steven M. Cherry", "author_id": 24193, "author_profile": "https://Stackoverflow.com/users/24193", "pm_score": 7, "selected": true, "text": "jint throwNoClassDefError( JNIEnv *env, char *message )\n{\n jclass exClass;\n char *className = \"java/lang...
2008/10/23
[ "https://Stackoverflow.com/questions/230689", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23309/" ]
230,702
<p>I need a tool to execute XSLTs against <strong>very large</strong> XML files. To be clear, I don't need anything to design, edit, or debug the XSLTs, just execute them. The transforms that I am using are already well optimized, but the large files are causing the tool I have tried (Saxon v9.1) to run out of memory....
[ { "answer_id": 241717, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": false, "text": "XmlReader" }, { "answer_id": 5881234, "author": "Vitaliy Ulantikov", "author_id": 63867, "author_...
2008/10/23
[ "https://Stackoverflow.com/questions/230702", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4593/" ]
230,706
<h3>Question</h3> <p>My question is how can you teach the methods and importance of tidying-up and refactoring code?</p> <h3>Background</h3> <p>I was recently working on a code review for a colleague. They had made some modifications to a long-gone colleagues work. During the new changes, my colleague had tried to r...
[ { "answer_id": 230799, "author": "dirtside", "author_id": 20903, "author_profile": "https://Stackoverflow.com/users/20903", "pm_score": 1, "selected": false, "text": "xy + xz\n x(y + z)\n" } ]
2008/10/23
[ "https://Stackoverflow.com/questions/230706", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23234/" ]
230,715
<p>Alright, after doing a ton of research and trying almost every managed CPP Redist I can find as well as trying to copy my DLLs locally to the executing directory of the app I cannot figure out what dependencies i'm missing for this mixed mode library.</p> <p>Basically I have a large C# application and I'm trying to...
[ { "answer_id": 938375, "author": "RandomNickName42", "author_id": 67819, "author_profile": "https://Stackoverflow.com/users/67819", "pm_score": 2, "selected": false, "text": "#pragma comment(linker, \\\n \"\\\"/manifestdependency:type='Win32' \"\\\n \"name='Microsoft.Windows.Common...
2008/10/23
[ "https://Stackoverflow.com/questions/230715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12707/" ]
230,716
<p>I'm using C# &amp; .NEt 3.5. What is the difference between the OptionA and OptionB ?</p> <pre><code>class MyClass { private object m_Locker = new object(); private Dicionary&lt;string, object&gt; m_Hash = new Dictionary&lt;string, object&gt;(); public void OptionA() { lock(m_Locker){ ...
[ { "answer_id": 230753, "author": "Corbin March", "author_id": 7625, "author_profile": "https://Stackoverflow.com/users/7625", "pm_score": 6, "selected": true, "text": "lock (m_Hash)\n{\n // Across all threads, I can be in one and only one of these two blocks\n // Do something with ...
2008/10/23
[ "https://Stackoverflow.com/questions/230716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17803/" ]
230,718
<p>I was wondering if there's a way to see the output of any command, straight inside vim, rather than first redirecting it into a file and then opening that file.</p> <p>E.x. I need something like $ gvim &lt; <code>diff -r dir1/ dir2/</code></p> <p>This gives ambiguous redirect error message</p> <p>I just want to...
[ { "answer_id": 230739, "author": "jvasak", "author_id": 5840, "author_profile": "https://Stackoverflow.com/users/5840", "pm_score": 5, "selected": false, "text": "diff file1 file2 | vim -R -\n -R vim" }, { "answer_id": 230794, "author": "Peter Stone", "author_id": 1806, ...
2008/10/23
[ "https://Stackoverflow.com/questions/230718", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
230,724
<p>I'm using a small site to experiment with the uploading of pictures and displaying them.</p> <p>When someone clicks "add a picture", they get taken to a page with a form on it. They can select a file and click the submit button.</p> <p>But what I want to do now is this: put a second submit button labeled "Cancel" ...
[ { "answer_id": 230748, "author": "Greg", "author_id": 24181, "author_profile": "https://Stackoverflow.com/users/24181", "pm_score": 4, "selected": true, "text": "<form> <form> <input type=\"file> <input type=\"submit\" value=\"upload\"> </form>\n<form> <input type=\"submit\" value=\"canc...
2008/10/23
[ "https://Stackoverflow.com/questions/230724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11795/" ]
230,736
<p>Is it possible for a generic interface's type to be based on a specific parent class?</p> <p>For example:</p> <pre><code>public interface IGenericFace&lt;T : BaseClass&gt; { } </code></pre> <p>Obviously the above code doesn't work but if it did, what I'm trying to tell the compiler is that <code>T</code> must be ...
[ { "answer_id": 230742, "author": "Ryan Lundy", "author_id": 5486, "author_profile": "https://Stackoverflow.com/users/5486", "pm_score": 8, "selected": true, "text": "public interface IGenericFace<T> where T : SomeBaseClass\n" }, { "answer_id": 230749, "author": "Community", ...
2008/10/23
[ "https://Stackoverflow.com/questions/230736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9642/" ]
230,751
<p>How do I force Python's <code>print</code> function to flush the buffered output to the screen?</p>
[ { "answer_id": 230774, "author": "CesarB", "author_id": 28258, "author_profile": "https://Stackoverflow.com/users/28258", "pm_score": 12, "selected": true, "text": "print flush print(\"Hello, World!\", flush=True)\n print import sys\nsys.stdout.flush()\n print sys.stdout" }, { "a...
2008/10/23
[ "https://Stackoverflow.com/questions/230751", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8835/" ]
230,755
<p>I have a user control that is pretty basic. It contains several TextBox controls, a few DropDownList controls, a save Button and a cancel Button. I would like to use this control in two different modes. The first mode is in the normal postback mode to do the save and cancel actions. The second mode would use AJAX to...
[ { "answer_id": 230772, "author": "Zachary Yates", "author_id": 8360, "author_profile": "https://Stackoverflow.com/users/8360", "pm_score": 0, "selected": false, "text": "void Page_Load() {\n if(IsAjaxy) {\n upAnUpdatePanel.Controls.Add(tbSomeTextBox);\n }\n else {\n this...
2008/10/23
[ "https://Stackoverflow.com/questions/230755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30887/" ]
230,759
<p>I assume that most of the analyzing and tracking is done based on the data gathered from browser actions like page requests. Tools like AWStats, Google Analytics and Omniture take place in this.</p> <p>But there is also good amount of data available in databases or service level logs. For example GWT based applicat...
[ { "answer_id": 230772, "author": "Zachary Yates", "author_id": 8360, "author_profile": "https://Stackoverflow.com/users/8360", "pm_score": 0, "selected": false, "text": "void Page_Load() {\n if(IsAjaxy) {\n upAnUpdatePanel.Controls.Add(tbSomeTextBox);\n }\n else {\n this...
2008/10/23
[ "https://Stackoverflow.com/questions/230759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28841/" ]
230,788
<p>I need to select from a table and filter on dates greater than a specified date. </p> <p>The problem I'm having is that the dates are stored as nchar(20) and I can't seem to get it converted to date in the where clause. </p> <pre><code>SELECT CONVERT(DATETIME,log_time,20) from dbo.logs where CONVERT(DATETIME,lo...
[ { "answer_id": 230802, "author": "Nick Berardi", "author_id": 17, "author_profile": "https://Stackoverflow.com/users/17", "pm_score": 0, "selected": false, "text": "select convert(datetime, cast(trim(log_time), nvarchar)) from dbo.logs\nwhere convert(datetime, cast(trim(log_time), nvarch...
2008/10/23
[ "https://Stackoverflow.com/questions/230788", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]