qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
7,694
<p>Is this even a valid question? I have a .NET Windows app that is using MSTDC and it is throwing an exception:</p> <blockquote> <p>System.Transactions.TransactionManagerCommunicationException: Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for network access in th...
[ { "answer_id": 27263904, "author": "Shiv Singh", "author_id": 2384642, "author_profile": "https://Stackoverflow.com/users/2384642", "pm_score": 8, "selected": true, "text": "C:\\Windows\\System32\\msdtc.exe" }, { "answer_id": 67428837, "author": "nmbell", "author_id": 503...
2008/08/11
[ "https://Stackoverflow.com/questions/7694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/230/" ]
7,707
<p>I have an element which may contain very big amounts of data, but I don't want it to ruin the page layout, so I set <code>max-height: 100px</code> and <code>overflow:auto</code>, hoping for scrollbars to appear when the content does not fit. </p> <p>It all works fine in Firefox and IE7, but IE8 behaves as if <code>...
[ { "answer_id": 668205, "author": "James Koch", "author_id": 79509, "author_profile": "https://Stackoverflow.com/users/79509", "pm_score": 2, "selected": false, "text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<htm...
2008/08/11
[ "https://Stackoverflow.com/questions/7707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/979/" ]
7,719
<p>Is there any way to capture the MouseDown even from the .NET 2.0 TextBox control? I know the inherited Control class has the event, but it's not exposed in TextBox. Is there a way to override the event handler?</p> <p>I also tried the OpenNETCF TextBox2 control which does have the MouseDown event exposed, but no ma...
[ { "answer_id": 7805, "author": "ageektrapped", "author_id": 631, "author_profile": "https://Stackoverflow.com/users/631", "pm_score": 0, "selected": false, "text": "public class MyTextBox : TextBox\n{\n public MyTextBox()\n {\n }\n\n protected override void OnMouseDown(MouseE...
2008/08/11
[ "https://Stackoverflow.com/questions/7719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/194/" ]
7,720
<p>I am writing an application in Java for the desktop using the Eclipse SWT library for GUI rendering. I think SWT helps Java get over the biggest hurdle for acceptance on the desktop: namely providing a Java application with a consistent, responsive interface that looks like that belonging to any other app on your d...
[ { "answer_id": 8602, "author": "Derek Park", "author_id": 872, "author_profile": "https://Stackoverflow.com/users/872", "pm_score": 2, "selected": false, "text": "CreateProcess" }, { "answer_id": 149971, "author": "Brian Kelly", "author_id": 8252, "author_profile": "h...
2008/08/11
[ "https://Stackoverflow.com/questions/7720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/998/" ]
7,737
<p>Is there a good way for displaying unicode text in opengl under Windows? For example, when you have to deal with different languages. The most common approach like</p> <pre><code>#define FONTLISTRANGE 128 GLuint list; list = glGenLists(FONTLISTRANGE); wglUseFontBitmapsW(hDC, 0, FONTLISTRANGE, list); </code></pre> ...
[ { "answer_id": 480067, "author": "jheriko", "author_id": 17604, "author_profile": "https://Stackoverflow.com/users/17604", "pm_score": 2, "selected": false, "text": "* glTextRender class by Semi Essessi\n *\n * FreeType2 empowered text renderer\n *\n */\n\n#include \"glTextRender.h\"\n#i...
2008/08/11
[ "https://Stackoverflow.com/questions/7737", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1007/" ]
7,758
<p>I'm getting all learned up about binding in WPF. I'm having a lot of trouble debugging the parse errors in my xaml, though. Can somebody pretty please tell me what's wrong with this little piece? :</p> <pre><code>&lt;Border Name="TrackBackground" Margin="0" CornerRadius="2" Grid.R...
[ { "answer_id": 7776, "author": "Arcturus", "author_id": 900, "author_profile": "https://Stackoverflow.com/users/900", "pm_score": 0, "selected": false, "text": "Part_Track PART_Track" }, { "answer_id": 7801, "author": "Arcturus", "author_id": 900, "author_profile": "h...
2008/08/11
[ "https://Stackoverflow.com/questions/7758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/93/" ]
7,773
<p>I have a ASP.NET page with an asp:button that is not visible. I can't turn it visible with JavaScript because it is not rendered to the page.</p> <p>What can I do to resolve this?</p>
[ { "answer_id": 7777, "author": "Dave Ward", "author_id": 60, "author_profile": "https://Stackoverflow.com/users/60", "pm_score": 6, "selected": true, "text": "<asp:Label runat=\"server\" id=\"Label1\" style=\"display: none;\" />\n document.getElementById('Label1').style.display = 'inheri...
2008/08/11
[ "https://Stackoverflow.com/questions/7773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1013/" ]
7,846
<p>I would like to use a language that I am familiar with - Java, C#, Ruby, PHP, C/C++, although examples in any language or pseudocode are more than welcome.</p> <p>What is the best way of splitting a large XML document into smaller sections that are still valid XML? For my purposes, I need to split them into roughly...
[ { "answer_id": 7853, "author": "DannySmurf", "author_id": 1028, "author_profile": "https://Stackoverflow.com/users/1028", "pm_score": 3, "selected": true, "text": "<Document>\n <Piece>\n Some text\n </Piece>\n <Piece>\n Some other text\n </Piece>\n</Document>\n XmlDocument do...
2008/08/11
[ "https://Stackoverflow.com/questions/7846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/572/" ]
7,851
<p>According to the <a href="http://uk3.php.net/features.safe-mode" rel="nofollow noreferrer">PHP Safe Mode Docs</a> on safe_mode_gid:</p> <blockquote> <p>By default, Safe Mode does a UID compare check when opening files. If you want to relax this to a GID compare, then turn on safe_mode_gid. Whether to use UID (FAL...
[ { "answer_id": 3778009, "author": "Capsule", "author_id": 181206, "author_profile": "https://Stackoverflow.com/users/181206", "pm_score": 1, "selected": false, "text": "safe_mode apache:daemon some_user:users some_other_user:users safe_mode_gid apache:daemon safe_mode some_user apache sa...
2008/08/11
[ "https://Stackoverflow.com/questions/7851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/840/" ]
7,864
<p>As I learn more and more about OOP, and start to implement various design patterns, I keep coming back to cases where people are hating on <a href="http://en.wikipedia.org/wiki/Active_record_pattern" rel="noreferrer">Active Record</a>.</p> <p>Often, people say that it doesn't scale well (citing Twitter as their pri...
[ { "answer_id": 8141, "author": "Lars Mæhlum", "author_id": 960, "author_profile": "https://Stackoverflow.com/users/960", "pm_score": 1, "selected": false, "text": "DataBaseTable.GetList(DataBaseTable.Columns.ColumnYouWant)\n Query q = DataBaseTable.CreateQuery()\n .WHERE(Da...
2008/08/11
[ "https://Stackoverflow.com/questions/7864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/751/" ]
7,880
<p>I want to open a file for reading, the C++ way. I need to be able to do it for:</p> <ul> <li><p>text files, which would involve some sort of read line function.</p></li> <li><p>binary files, which would provide a way to read raw data into a <code>char*</code> buffer.</p></li> </ul>
[ { "answer_id": 7886, "author": "DannySmurf", "author_id": 1028, "author_profile": "https://Stackoverflow.com/users/1028", "pm_score": 5, "selected": true, "text": "fopen fread fclose ifstream ofstream CFile int nsize = 10;\nstd::vector<char> somedata(nsize);\nifstream myfile;\nmyfile.ope...
2008/08/11
[ "https://Stackoverflow.com/questions/7880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/432/" ]
7,884
<p>I've just come across this in a WHERE clause:</p> <pre><code>AND NOT (t.id = @id) </code></pre> <p>How does this compare with:</p> <pre><code>AND t.id != @id </code></pre> <p>Or with:</p> <pre><code>AND t.id &lt;&gt; @id </code></pre> <p>I'd always write the latter myself, but clearly someone else thinks diffe...
[ { "answer_id": 7892, "author": "SQLMenace", "author_id": 740, "author_profile": "https://Stackoverflow.com/users/740", "pm_score": 6, "selected": true, "text": "declare @id varchar(40)\nselect @id = '172-32-1176'\n\nselect * from authors\nwhere au_id <> @id\n\nselect * from authors\nwher...
2008/08/11
[ "https://Stackoverflow.com/questions/7884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1030/" ]
7,885
<p>Perl has OOP features, but they are somewhat rarely used. How do you create and use Perl objects with methods and properties?</p>
[ { "answer_id": 8668, "author": "Pat", "author_id": 238, "author_profile": "https://Stackoverflow.com/users/238", "pm_score": 6, "selected": true, "text": "Moose package Point;\nuse Moose; # automatically turns on strict and warnings\n\nhas 'x' => (is => 'rw', isa => 'Int');\nhas 'y' => (...
2008/08/11
[ "https://Stackoverflow.com/questions/7885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/432/" ]
7,913
<p>I've always found checkin (commit) mails to be very useful for keeping track of what work other people are doing in the codebase / repository. How do I set up SVN to email a distribution list on each commit?</p> <p>I'm running clients on Windows and the Apache Subversion server on Linux. The answers below for vario...
[ { "answer_id": 7928, "author": "epatel", "author_id": 842, "author_profile": "https://Stackoverflow.com/users/842", "pm_score": 1, "selected": false, "text": "svn www REPOS=\"`echo $1 | sed 's/\\/{root of repository}//g'` \"\nREV=\"$2\"\nMSG=`/usr/local/bin/svn log -v -r HEAD https://loc...
2008/08/11
[ "https://Stackoverflow.com/questions/7913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1031/" ]
7,917
<p>I'm importing some data from a <code>CSV</code> file, and numbers that are larger than <code>1000</code> get turned into <code>1,100</code> etc. </p> <p>What's a good way to remove both the quotes and the comma from this so I can put it into an <code>int</code> field?</p> <p><strong>Edit:</strong> </p> <p>The dat...
[ { "answer_id": 7934, "author": "Eldila", "author_id": 889, "author_profile": "https://Stackoverflow.com/users/889", "pm_score": 0, "selected": false, "text": "Perl -lne 's/[,|\"]//; print' file.txt > newfile.txt\n" }, { "answer_id": 7944, "author": "Community", "author_id...
2008/08/11
[ "https://Stackoverflow.com/questions/7917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/402/" ]
7,933
<p>Is there some means of querying the system tables to establish which tables are using what locking schemes? I took a look at the columns in <strong>sysobjects</strong> but nothing jumped out.</p>
[ { "answer_id": 7936, "author": "ninesided", "author_id": 1030, "author_profile": "https://Stackoverflow.com/users/1030", "pm_score": 2, "selected": true, "text": "SELECT name, lockscheme(name)\nFROM sysobjects\nWHERE type=\"U\"\nORDER BY name\n" } ]
2008/08/11
[ "https://Stackoverflow.com/questions/7933", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1030/" ]
7,937
<p>When using IE, you cannot put an absolutely positioned div over a select input element. That's because the select element is considered an ActiveX object and is on top of every HTML element in the page.</p> <p>I already saw people hiding selects when opening a popup div, that leads to pretty bad user experience hav...
[ { "answer_id": 4889051, "author": "Luffy", "author_id": 447673, "author_profile": "https://Stackoverflow.com/users/447673", "pm_score": 1, "selected": false, "text": "$('.your-dropdown-menu').bgiframe();" }, { "answer_id": 42917068, "author": "Sacky San", "author_id": 507...
2008/08/11
[ "https://Stackoverflow.com/questions/7937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/268/" ]
7,981
<p>I'm working on bringing some old code from 1998 up to the 21st century. One of the first steps in the process is converting the printf statements to <a href="http://qt-project.org/doc/qt-4.8/qstring.html" rel="nofollow noreferrer">QString</a> variables. No matter how many times I look back at printf though, I alwa...
[ { "answer_id": 8075, "author": "Jason Day", "author_id": 737, "author_profile": "https://Stackoverflow.com/users/737", "pm_score": 2, "selected": false, "text": "#include <stdio.h>\n\nint main(int argc, char *argv[]) {\n char *s = \"Hello, World\";\n char *s2 = \"he\";\n\n print...
2008/08/11
[ "https://Stackoverflow.com/questions/7981", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25/" ]
7,991
<p>I'm using the .NETCF (Windows Mobile) <code>Graphics</code> class and the <code>DrawString()</code> method to render a single character to the screen.</p> <p>The problem is that I can't seem to get it centred properly. No matter what I set for the Y coordinate of the location of the string render, it always comes o...
[ { "answer_id": 8010, "author": "John", "author_id": 33, "author_profile": "https://Stackoverflow.com/users/33", "pm_score": 2, "selected": false, "text": "StringFormat DrawString" }, { "answer_id": 8013, "author": "TheSmurf", "author_id": 1975282, "author_profile": "h...
2008/08/11
[ "https://Stackoverflow.com/questions/7991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/194/" ]
8,004
<p>I use <a href="http://rsync.samba.org/" rel="nofollow noreferrer">rsync</a> to synchronize files to Windows clients in a server agnostic way. What methods are available to send the progress of rsync to the parent process for display in a gui progress bar?</p> <p>I imagine two or three choices exist. (1) Watch STDOU...
[ { "answer_id": 8090, "author": "PabloG", "author_id": 394, "author_profile": "https://Stackoverflow.com/users/394", "pm_score": 3, "selected": true, "text": "$sCmd = \"DIR E:\\*.AU3 /S\" ; Test command\n$nAutoTimeout = 10 ; Time in seconds to close window after finish\n\n$nDeskPct ...
2008/08/11
[ "https://Stackoverflow.com/questions/8004", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1027/" ]
8,021
<p>I'd like to allow a user to set up an SSH tunnel to a particular machine on a particular port (say, 5000), but I want to restrict this user as much as possible. (Authentication will be with public/private keypair).</p> <p>I know I need to edit the relevant ~/.ssh/authorized_keys file, but I'm not sure exactly what ...
[ { "answer_id": 8023, "author": "Michael Pryor", "author_id": 245, "author_profile": "https://Stackoverflow.com/users/245", "pm_score": -1, "selected": false, "text": "chmod 700 ~/.ssh" }, { "answer_id": 8363, "author": "Jason Day", "author_id": 737, "author_profile": ...
2008/08/11
[ "https://Stackoverflow.com/questions/8021", "https://Stackoverflow.com", "https://Stackoverflow.com/users/742/" ]
8,042
<p>The new extensions in .Net 3.5 allow functionality to be split out from interfaces.</p> <p>For instance in .Net 2.0</p> <pre><code>public interface IHaveChildren { string ParentType { get; } int ParentId { get; } List&lt;IChild&gt; GetChildren() } </code></pre> <p>Can (in 3.5) become:</p> <pre><code...
[ { "answer_id": 8570, "author": "Lars Mæhlum", "author_id": 960, "author_profile": "https://Stackoverflow.com/users/960", "pm_score": 1, "selected": false, "text": "IInterface variable = new ImplementingClass();\n" }, { "answer_id": 13563, "author": "Zooba", "author_id": 8...
2008/08/11
[ "https://Stackoverflow.com/questions/8042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/905/" ]
8,107
<p>When I have two mysql servers that have different jobs (holding different databases) but want to be able to use one of them to slip in when the other one fails, what would you suggest how I keep the data on both of them equal "close to realtime"? </p> <p>Obviously it's not possible to make a full database dump ever...
[ { "answer_id": 60711, "author": "Erik", "author_id": 4484, "author_profile": "https://Stackoverflow.com/users/4484", "pm_score": 2, "selected": false, "text": "--replicate-do-db=server_2_db --replicate-do-db=server_1_db DROP DATABASE" } ]
2008/08/11
[ "https://Stackoverflow.com/questions/8107", "https://Stackoverflow.com", "https://Stackoverflow.com/users/999/" ]
8,128
<p>How do I calculate the CRC32 (Cyclic Redundancy Checksum) of a string in .NET?</p>
[ { "answer_id": 8130, "author": "Pete", "author_id": 76, "author_profile": "https://Stackoverflow.com/users/76", "pm_score": 6, "selected": true, "text": "Crc32 crc32 = new Crc32();\nString hash = String.Empty;\n\nusing (FileStream fs = File.Open(\"c:\\\\myfile.txt\", FileMode.Open))\n f...
2008/08/11
[ "https://Stackoverflow.com/questions/8128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17/" ]
8,140
<p>Is there a general procedure for programming extensibility capability into your code?</p> <p>I am wondering what the general procedure is for adding extension-type capability to a system you are writing so that functionality can be extended through some kind of plugin API rather than having to modify the core code ...
[ { "answer_id": 8157, "author": "Derek Park", "author_id": 872, "author_profile": "https://Stackoverflow.com/users/872", "pm_score": 3, "selected": true, "text": "gimme_the_interface()" } ]
2008/08/11
[ "https://Stackoverflow.com/questions/8140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/277/" ]
8,145
<p>How can I find the high water mark (the historical maximum number of concurrent users) in an <strong>oracle database (9i)</strong>.</p>
[ { "answer_id": 8161, "author": "ninesided", "author_id": 1030, "author_profile": "https://Stackoverflow.com/users/1030", "pm_score": 4, "selected": true, "text": "SELECT sessions_highwater FROM v$license;\n" }, { "answer_id": 8169, "author": "JosephStyons", "author_id": 6...
2008/08/11
[ "https://Stackoverflow.com/questions/8145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/685/" ]
8,147
<p>Using <a href="http://www.codeplex.com/aspnet" rel="nofollow noreferrer">preview 4</a> of <a href="http://asp.net/mvc" rel="nofollow noreferrer">ASP.NET MVC</a> Code like:</p> <pre><code>&lt;%= Html.CheckBox( "myCheckBox", "Click Here", "True", false ) %&gt; </code></pre> <p>only outputs:</p> <pre><code>&lt;inpu...
[ { "answer_id": 8289, "author": "Lance Fisher", "author_id": 571, "author_profile": "https://Stackoverflow.com/users/571", "pm_score": 4, "selected": true, "text": "<%= Html.CheckBox(\"myCheckbox\", \"Click here\", \"True\", false, new {_id =\"test\" })%>\n" } ]
2008/08/11
[ "https://Stackoverflow.com/questions/8147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/193/" ]
8,154
<p>I'm using Pylons (a python framework) to serve a simple web application, but it seems to die from time to time, with this in the error log: <code>(2006, 'MySQL server has gone away')</code></p> <p>I did a bit of checking, and saw that this was because the connections to MySQL were not being renewed. This shouldn't ...
[ { "answer_id": 15261, "author": "Jon Bright", "author_id": 1813, "author_profile": "https://Stackoverflow.com/users/1813", "pm_score": 2, "selected": false, "text": "show variables like '%timeout%';\n wait_timeout interactive_timeout pool_recycle SELECT 1;" }, { "answer_id": 4644...
2008/08/11
[ "https://Stackoverflow.com/questions/8154", "https://Stackoverflow.com", "https://Stackoverflow.com/users/736/" ]
8,213
<p>I need to import a csv file into <strong>Firebird</strong> and I've spent a couple of hours trying out some tools and none fit my needs.</p> <p>The main problem is that all the tools I've been trying like <a href="http://www.sqlmanager.net/products/ibfb/dataimport" rel="noreferrer">EMS Data Import</a> and <a href="...
[ { "answer_id": 8220, "author": "Chris Roberts", "author_id": 475, "author_profile": "https://Stackoverflow.com/users/475", "pm_score": 8, "selected": true, "text": "=\"INSERT INTO MyTable (Col1, Col2, Col3) VALUES (\" & A1 & \", \" & B1 & \", \" & C1 & \")\"\n" }, { "answer_id": ...
2008/08/11
[ "https://Stackoverflow.com/questions/8213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/727/" ]
8,214
<p>How are you instrumenting your UI's? In the past I've read that people have instrumented their user interfaces, but what I haven't found is examples or tips on <em>how</em> to instrument a UI.</p> <p>By instrumenting, I mean collecting data regarding usage and performance of the system. A MSDN article on Instrument...
[ { "answer_id": 5645456, "author": "angularsen", "author_id": 134761, "author_profile": "https://Stackoverflow.com/users/134761", "pm_score": 3, "selected": false, "text": "public class UserInteractionEventsManager\n{\n public delegate void ButtonClickedHandler(DateTime time, string ev...
2008/08/11
[ "https://Stackoverflow.com/questions/8214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708/" ]
8,236
<p>How can I figure out the size of a file, in bytes?</p> <pre><code>#include &lt;stdio.h&gt; unsigned int fsize(char* file){ //what goes here? } </code></pre>
[ { "answer_id": 8241, "author": "Ecton", "author_id": 457, "author_profile": "https://Stackoverflow.com/users/457", "pm_score": 2, "selected": false, "text": "#include <sys/stat.h>\noff_t fsize(char *file) {\n struct stat filestat;\n if (stat(file, &filestat) == 0) {\n return...
2008/08/11
[ "https://Stackoverflow.com/questions/8236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/432/" ]
8,284
<p>I'm looking for an online solution for generating .ICO files. I'd like the ICO files to have the ability to have transparency as well.</p> <p>What software or web site do you use to create them?</p> <p>[Update]</p> <p>To clarify, I have an existing image in PNG format, 32 x 32 pixels. I want to generate the ico...
[ { "answer_id": 8301, "author": "mbillard", "author_id": 810, "author_profile": "https://Stackoverflow.com/users/810", "pm_score": 1, "selected": false, "text": ".ico" }, { "answer_id": 41086, "author": "Jason Von Ruden", "author_id": 2062, "author_profile": "https://S...
2008/08/11
[ "https://Stackoverflow.com/questions/8284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/519/" ]
8,318
<p>I need to prevent <a href="http://www.owasp.org/index.php/Session_Fixation" rel="noreferrer">Session Fixation</a>, a particular type of session hijacking, in a Java web application running in JBoss. However, it appears that the standard idiom <a href="http://www.owasp.org/index.php/Session_Fixation_in_Java" rel="nor...
[ { "answer_id": 8322, "author": "Warren Blanchet", "author_id": 1054, "author_profile": "https://Stackoverflow.com/users/1054", "pm_score": 4, "selected": true, "text": ".../deploy/jboss-web.deployer/server.xml" } ]
2008/08/11
[ "https://Stackoverflow.com/questions/8318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1054/" ]
8,348
<p>Imagine an object you are working with has a collection of other objects associated with it, for example, the Controls collection on a WinForm. You want to check for a certain object in the collection, but the collection doesn't have a <code>Contains()</code> method. There are several ways of dealing with this.</p...
[ { "answer_id": 8410, "author": "Orion Edwards", "author_id": 234, "author_profile": "https://Stackoverflow.com/users/234", "pm_score": 0, "selected": false, "text": "Controls ContainsKey ContainsValue" } ]
2008/08/11
[ "https://Stackoverflow.com/questions/8348", "https://Stackoverflow.com", "https://Stackoverflow.com/users/940/" ]
8,351
<p>I'm trying to fix some JavaScript bugs. Firebug makes debugging these issues a lot easier when working in Firefox, but what do you do when the code works fine on Firefox but IE is complaining?</p>
[ { "answer_id": 12003990, "author": "7dr3am7", "author_id": 615312, "author_profile": "https://Stackoverflow.com/users/615312", "pm_score": 0, "selected": false, "text": "<script type=\"text/javascript\" src=\"https://getfirebug.com/firebug-lite.js\"></script>\n" }, { "answer_id":...
2008/08/12
[ "https://Stackoverflow.com/questions/8351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/680/" ]
8,355
<p>What is the best way to transparently rewrite a URL over an SSL connection with Apache 2.2?</p> <p>Apache 2 does not natively support multiple name-based virtual hosts for an SSL connection and I have heard that mod_rewrite can help with this. I would like to do something like this:</p> <p>I have set up the server...
[ { "answer_id": 8389, "author": "UnkwnTech", "author_id": 115, "author_profile": "https://Stackoverflow.com/users/115", "pm_score": 0, "selected": false, "text": "<VirtualHost *>\nServerName subdomain.domain.com\nDocumentRoot /home/httpd/htdocs/subdomain/\n</VirtualHost>\n" }, { "...
2008/08/12
[ "https://Stackoverflow.com/questions/8355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/277/" ]
8,371
<p>How do you redirect HTTPS to HTTP?. That is, the opposite of what (seemingly) everyone teaches.</p> <p>I have a server on HTTPS for which I paid an SSL certification for and a mirror for which I haven't and keep around for just for emergencies so it doesn't merit getting a certification for.</p> <p>On my client's ...
[ { "answer_id": 8380, "author": "ejunker", "author_id": 796, "author_profile": "https://Stackoverflow.com/users/796", "pm_score": 8, "selected": true, "text": "RewriteEngine On\nRewriteCond %{HTTPS} on\nRewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}\n" }, { "answer_id": 122433...
2008/08/12
[ "https://Stackoverflow.com/questions/8371", "https://Stackoverflow.com", "https://Stackoverflow.com/users/547/" ]
8,398
<p>I just saw this mentioned in Stack Overflow question <em><a href="http://web.archive.org/web/20090503103538/http://stackoverflow.com:80/questions/7975/best-css-editor" rel="nofollow noreferrer">Best WYSIWYG CSS editor</a></em> and didn't know it could be done. I'm a Visual Studio newbie, so how do you do it?</p> <p>...
[ { "answer_id": 684749, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "debugger\n" } ]
2008/08/12
[ "https://Stackoverflow.com/questions/8398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/396/" ]
8,435
<p>I'd like to get the Tree icon to use for a homegrown app. Does anyone know how to extract the images out as .icon files? I'd like both the 16x16 and 32x32, or I'd just do a screen capture.</p>
[ { "answer_id": 24905798, "author": "Smylers", "author_id": 1366011, "author_profile": "https://Stackoverflow.com/users/1366011", "pm_score": 1, "selected": false, "text": "gextractwinicons" }, { "answer_id": 28091056, "author": "Shaun", "author_id": 2898010, "author_p...
2008/08/12
[ "https://Stackoverflow.com/questions/8435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/733/" ]
8,441
<p>I'm using <code>.htaccess</code> and <code>mod_rewrite</code> to point to files that reside behind the DocumentRoot. My folder structure looks like this:</p> <pre><code>home/ webroot/ other_files/ </code></pre> <p>I have a <code>.htaccess</code> file in webroot with the following content:</p> <pre> Rewrit...
[ { "answer_id": 8454, "author": "Ryan Ahearn", "author_id": 75, "author_profile": "https://Stackoverflow.com/users/75", "pm_score": 5, "selected": true, "text": "<Directory \"/home/other_files\">\n (options)\n</Directory>\n Alias /doc/ \"/usr/share/doc/\"\n<Directory \"/usr/share/doc/\">...
2008/08/12
[ "https://Stackoverflow.com/questions/8441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/57/" ]
8,447
<p>From time to time I see an enum like the following:</p> <pre><code>[Flags] public enum Options { None = 0, Option1 = 1, Option2 = 2, Option3 = 4, Option4 = 8 } </code></pre> <p>I don't understand what exactly the <code>[Flags]</code> attribute does.</p> <p>Anyone have a good explanation or...
[ { "answer_id": 8455, "author": "Jay Mooney", "author_id": 733, "author_profile": "https://Stackoverflow.com/users/733", "pm_score": 4, "selected": false, "text": "[Flags]\npublic enum DashboardItemPresentationProperties : long\n{\n None = 0,\n HideCollapse = 1,\n HideDelete = 2,...
2008/08/12
[ "https://Stackoverflow.com/questions/8447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/580/" ]
8,448
<p>Anyone have a decent example, preferably practical/useful, they could post demonstrating the concept?</p>
[ { "answer_id": 8457, "author": "Patrick", "author_id": 429, "author_profile": "https://Stackoverflow.com/users/429", "pm_score": 2, "selected": false, "text": "let concatStrings left right = left + right\nlet makeCommandPrompt= appendString \"c:\\> \"\n let readDWORD array i = array[i] |...
2008/08/12
[ "https://Stackoverflow.com/questions/8448", "https://Stackoverflow.com", "https://Stackoverflow.com/users/580/" ]
8,451
<p>I want to create an allocator which provides memory with the following attributes:</p> <ul> <li>cannot be paged to disk. </li> <li>is incredibly hard to access through an attached debugger</li> </ul> <p>The idea is that this will contain sensitive information (like licence information) which should be inaccessi...
[ { "answer_id": 8482, "author": "graham.reeds", "author_id": 342, "author_profile": "https://Stackoverflow.com/users/342", "pm_score": 3, "selected": false, "text": "* cannot be paged to disk.\n * is incredibly hard to access through an attached debugger\n" }, { "answer_id": 27194...
2008/08/12
[ "https://Stackoverflow.com/questions/8451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/716/" ]
8,452
<p>I've done some WPF programing and one thing I never got was the command pattern. Every example seems to be for built in ones, edit, cut, paste. Anyone have an example or suggestion of best practice for custom commands?</p>
[ { "answer_id": 8471, "author": "Nidonocu", "author_id": 483, "author_profile": "https://Stackoverflow.com/users/483", "pm_score": 6, "selected": true, "text": "public static class CommandBank\n{\n /// Command definition for Closing a window\n public static RoutedUICommand CloseWindow {...
2008/08/12
[ "https://Stackoverflow.com/questions/8452", "https://Stackoverflow.com", "https://Stackoverflow.com/users/580/" ]
8,472
<p>It looks like we'll be adding <a href="http://en.wikipedia.org/wiki/Captcha" rel="noreferrer">CAPTCHA</a> support to Stack Overflow. This is necessary to prevent bots, spammers, and other malicious scripted activity. We only want human beings to post or edit things here!</p> <p>We'll be using a JavaScript (jQuery) ...
[ { "answer_id": 8474, "author": "Jeff Atwood", "author_id": 1, "author_profile": "https://Stackoverflow.com/users/1", "pm_score": 2, "selected": false, "text": "<noscript>" }, { "answer_id": 8637, "author": "GateKiller", "author_id": 383, "author_profile": "https://Sta...
2008/08/12
[ "https://Stackoverflow.com/questions/8472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1/" ]
8,485
<p>I'm using ASP.NET MVC Preview 4 and would like to know how to use the routing engine for form submissions.</p> <p>For example, I have a route like this:</p> <pre><code>routes.MapRoute( "TestController-TestAction", "TestController.mvc/TestAction/{paramName}", new { controller = "...
[ { "answer_id": 32361, "author": "Haacked", "author_id": 598, "author_profile": "https://Stackoverflow.com/users/598", "pm_score": 2, "selected": false, "text": "<form url=\"foo\" method=\"get\"> param1=value1&...&paramn=valuen\n" }, { "answer_id": 49184, "author": "Matt Mitch...
2008/08/12
[ "https://Stackoverflow.com/questions/8485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/364/" ]
8,493
<p>Are there any handy general items you put in your .procmailrc file?</p>
[ { "answer_id": 8629, "author": "Marie Fischer", "author_id": 719, "author_profile": "https://Stackoverflow.com/users/719", "pm_score": 3, "selected": false, "text": ":0 \n* ^X-Spam # the he...
2008/08/12
[ "https://Stackoverflow.com/questions/8493", "https://Stackoverflow.com", "https://Stackoverflow.com/users/459/" ]
8,496
<p>I've moved from TFS to SVN (TortoiseSVN) with my current company. I really miss the "Shelve" feature of TFS. I've read various articles on how to "Shelve" with SVN, but I've read nothing that gives a very simple experience to "shelve" work.</p> <p>Ideally, I'd like extra items added to the TortoiseSVN context menu ...
[ { "answer_id": 6202975, "author": "Andriy Volkov", "author_id": 76859, "author_profile": "https://Stackoverflow.com/users/76859", "pm_score": 4, "selected": false, "text": "http://server/repository/project1/branches/shelf1 http://server/repository/project1/trunk" }, { "answer_id"...
2008/08/12
[ "https://Stackoverflow.com/questions/8496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708/" ]
8,532
<p>I've had an app doing prefix searches for a while. Recently the index size was increased and it turned out that some prefixes were too darned numerous for lucene to handle. It kept throwing me a <a href="http://web.archive.org/web/20080901205009/http://lucene.apache.org:80/java/2_3_2/api/core/org/apache/lucene/sear...
[ { "answer_id": 9085, "author": "Ryan Ahearn", "author_id": 75, "author_profile": "https://Stackoverflow.com/users/75", "pm_score": 4, "selected": true, "text": "public Query rewrite(IndexReader reader)\n throws IOException\n\n Expert: called to re-write queries into primi...
2008/08/12
[ "https://Stackoverflow.com/questions/8532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/459/" ]
8,546
<p>I need to try to lock on an object, and if its already locked just continue (after time out, or without it).</p> <p>The C# lock statement is blocking.</p>
[ { "answer_id": 8553, "author": "Ed S.", "author_id": 1053, "author_profile": "https://Stackoverflow.com/users/1053", "pm_score": 6, "selected": true, "text": "Monitor.TryEnter() Monitor.Enter() try catch" }, { "answer_id": 8557, "author": "Derek Park", "author_id": 872, ...
2008/08/12
[ "https://Stackoverflow.com/questions/8546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/195/" ]
8,549
<p>Is there any Visual Studio Add-In that can do the remove method refactoring?<br> Suppose you have the following method: </p> <pre><code>Result DoSomething(parameters) { return ComputeResult(parameters); } </code></pre> <p>Or the variant where Result is void.</p> <p>The purpose of the refactoring is t...
[ { "answer_id": 8563, "author": "Rob Cooper", "author_id": 832, "author_profile": "https://Stackoverflow.com/users/832", "pm_score": 0, "selected": false, "text": "Find & Replace" } ]
2008/08/12
[ "https://Stackoverflow.com/questions/8549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1065/" ]
8,566
<p>First off, this is a question about a desktop application using Windows Forms, not an <a href="http://en.wikipedia.org/wiki/ASP.NET" rel="nofollow noreferrer">ASP.NET</a> question.</p> <p>I need to interact with controls on other forms. I am trying to access the controls by using, for example, the following...</p> ...
[ { "answer_id": 8573, "author": "Jon Limjap", "author_id": 372, "author_profile": "https://Stackoverflow.com/users/372", "pm_score": 5, "selected": false, "text": "public bool ControlIsVisible\n{\n get { return control.Visible; }\n set { control.Visible = value; }\n}\n" }, { ...
2008/08/12
[ "https://Stackoverflow.com/questions/8566", "https://Stackoverflow.com", "https://Stackoverflow.com/users/551/" ]
8,569
<p>I'm currently trying to get into the Java EE development with the Spring framework. As I'm new to Spring, it is hard to imaging how a good running project should start off.</p> <p>Do you have any <em>best practices</em>, tipps or major <em>DO NOTs</em> for a starter? How did you start with Spring - big project or s...
[ { "answer_id": 13367, "author": "Brian Laframboise", "author_id": 1557, "author_profile": "https://Stackoverflow.com/users/1557", "pm_score": 6, "selected": true, "text": "MyProject / src / main / resources / spring / datasource.xml persistence.xml services.xml services.xml transactionPo...
2008/08/12
[ "https://Stackoverflow.com/questions/8569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/834/" ]
8,599
<p>Can anyone recommend a good binary XML format? It's for a JavaME application, so it needs to be a) Easy to implement on the server, and b) Easy to write a low-footprint parser for on a low-end JavaME client device.</p> <p>And it goes without saying that it needs to be smaller than XML, and faster to parse.</p> <hr...
[ { "answer_id": 8645, "author": "JaanusSiim", "author_id": 706, "author_profile": "https://Stackoverflow.com/users/706", "pm_score": 1, "selected": false, "text": "DataOutputStream" } ]
2008/08/12
[ "https://Stackoverflow.com/questions/8599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/974/" ]
8,604
<p>We are looking for a WYSIWYG editor control for our windows application (vb.net or c#) so that users can design HTML emails (to send using the SMTP objects in the dot net framework) before sending.</p> <p>Currently all the available editors we can find have one of the following issues:</p> <ol> <li><p>They rely on...
[ { "answer_id": 21809140, "author": "VampireKode", "author_id": 3315510, "author_profile": "https://Stackoverflow.com/users/3315510", "pm_score": 1, "selected": false, "text": "With RichTextBox1 \n    .SelStart = 0 \n    .SelLength = Len (. Text) \n    .SelColor = vbRed\nEnd With\n Privat...
2008/08/12
[ "https://Stackoverflow.com/questions/8604", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33/" ]
8,612
<p>I have a workspace for running an H.263 Video Encoder in a loop for 31 times i.e. the main is executed 31 times to generate 31 different encoded bit streams. This MS Visual Studio 2005 Workspace has all C source files. When i create a "DEBUG" configuration for the workspace and build and execute it, it runs fine, i....
[ { "answer_id": 8618, "author": "Rob Cooper", "author_id": 832, "author_profile": "https://Stackoverflow.com/users/832", "pm_score": 1, "selected": false, "text": "#if (DEBUG)\n// Debug Code here\n#else\n// Release Code here\n#endif\n" } ]
2008/08/12
[ "https://Stackoverflow.com/questions/8612", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2759376/" ]
8,625
<p>I have a class that I want to use to store "properties" for another class. These properties simply have a name and a value. Ideally, what I would like is to be able to add <em>typed</em> properties, so that the "value" returned is always of the type that I want it to be.</p> <p>The type should always be a primitive...
[ { "answer_id": 8632, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 2, "selected": false, "text": "get { return StringConverter<DataType>.FromString(base.Value); }\n" }, { "answer_id": 8633, "author": "lubos ha...
2008/08/12
[ "https://Stackoverflow.com/questions/8625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/832/" ]
8,626
<p>Is there anyplace where one can download a virtual machine containing a working install of some Linux distro with Globus Toolkit and some development tools (Java) for testing purposes? A real deployment of a grid is more complicated but I just need something portable, for development.</p>
[ { "answer_id": 8632, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 2, "selected": false, "text": "get { return StringConverter<DataType>.FromString(base.Value); }\n" }, { "answer_id": 8633, "author": "lubos ha...
2008/08/12
[ "https://Stackoverflow.com/questions/8626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1065/" ]
8,651
<p>I am trying to load Linq on my .Net 3.5 enabled web server by adding the following to my .aspx page:</p> <pre><code>&lt;%@ Import Namespace="System.Query" %&gt; </code></pre> <p>However, this fails and tells me it cannot find the namespace.</p> <blockquote> <p>The type or namespace name 'Query' does not exist i...
[ { "answer_id": 8657, "author": "Keith", "author_id": 905, "author_profile": "https://Stackoverflow.com/users/905", "pm_score": 0, "selected": false, "text": "var hello System.Core System.Core Import" }, { "answer_id": 8803, "author": "Lasse V. Karlsen", "author_id": 267, ...
2008/08/12
[ "https://Stackoverflow.com/questions/8651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/383/" ]
8,653
<p>Are there any codes that allow for numerical formatting of data when using string.format?</p>
[ { "answer_id": 8656, "author": "Keith", "author_id": 905, "author_profile": "https://Stackoverflow.com/users/905", "pm_score": 4, "selected": true, "text": "string.Format" }, { "answer_id": 8658, "author": "GateKiller", "author_id": 383, "author_profile": "https://Sta...
2008/08/12
[ "https://Stackoverflow.com/questions/8653", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1076/" ]
8,676
<p>Now that .NET v3.5 SP1 has been released (along with VS2008 SP1), we now have access to the .NET entity framework.</p> <p>My question is this. When trying to decide between using the Entity Framework and LINQ to SQL as an ORM, what's the difference?</p> <p>The way I understand it, the Entity Framework (when used ...
[ { "answer_id": 63476371, "author": "Robert Green MBA", "author_id": 663853, "author_profile": "https://Stackoverflow.com/users/663853", "pm_score": 2, "selected": false, "text": "var result = (from metattachType in _dbContext.METATTACH_TYPE\n join lineItemMetattachType in ...
2008/08/12
[ "https://Stackoverflow.com/questions/8676", "https://Stackoverflow.com", "https://Stackoverflow.com/users/475/" ]
8,681
<p>If you're using Opera 9.5x you may notice that our client-side <a href="http://docs.jquery.com/Plugins/Validation" rel="noreferrer">JQuery.Validate</a> code is disabled here at Stack Overflow.</p> <pre><code>function initValidation() { if (navigator.userAgent.indexOf("Opera") != -1) return; $("#post-text")....
[ { "answer_id": 8712, "author": "Neall", "author_id": 619, "author_profile": "https://Stackoverflow.com/users/619", "pm_score": 0, "selected": false, "text": ">>> $.browser.opera \nfalse\n" }, { "answer_id": 9269, "author": "Jeff Atwood", "author_id": 1, "author_profil...
2008/08/12
[ "https://Stackoverflow.com/questions/8681", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1/" ]
8,685
<p>I'm trying to use <code>strtotime()</code> to respond to a button click to advance -1 and +1 days (two buttons) relative to the day advanced to on the previous click. </p> <p><strong>Example:</strong> </p> <ul> <li>It's the 10th of the month, I click "-1 day" button, and now the date reads as the 9th. </li> <li...
[ { "answer_id": 8689, "author": "Philip Reynolds", "author_id": 1087, "author_profile": "https://Stackoverflow.com/users/1087", "pm_score": 1, "selected": false, "text": "int strtotime ( string $time [, int $now ] )\n $time = time();\n\nfor ($i = 0; $i < 10; $i++) {\n $time = strtot...
2008/08/12
[ "https://Stackoverflow.com/questions/8685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1149/" ]
8,691
<p>For a C# UserControl on Windows Mobile (though please answer if you know it for full Windows...it might work) how do you change what shows up in the Designer Properties window for one of the Control's public Properties. For example:</p> <pre><code>private Color blah = Color.Black; public Color Blah { get { re...
[ { "answer_id": 8693, "author": "John", "author_id": 33, "author_profile": "https://Stackoverflow.com/users/33", "pm_score": 3, "selected": false, "text": "DesignerCategory [System.ComponentModel.Category(\"Custom\")]\n [System.ComponentModel.Description(\"This is the description\")] [Sys...
2008/08/12
[ "https://Stackoverflow.com/questions/8691", "https://Stackoverflow.com", "https://Stackoverflow.com/users/194/" ]
8,692
<p>What are the libraries that support XPath? Is there a full implementation? How is the library used? Where is its website?</p>
[ { "answer_id": 9171, "author": "David Joyner", "author_id": 1146, "author_profile": "https://Stackoverflow.com/users/1146", "pm_score": 2, "selected": false, "text": "sudo apt-get install python-xml PY_USE_XMLPLUS if sys.platform.startswith('darwin'):\n os.environ['PY_USE_XMLPLUS'] = ...
2008/08/12
[ "https://Stackoverflow.com/questions/8692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
8,704
<p>I have an MFC application compiled with /clr and I'm trying to implement a final handler for otherwise un-caught managed exceptions. For native exceptions, overriding <code>CWinApp::ProcessWndProcException</code> works.</p> <p>The two events suggested in Jeff's <a href="http://www.codeproject.com/KB/exception/Excep...
[ { "answer_id": 15146, "author": "Aidan Ryan", "author_id": 1042, "author_profile": "https://Stackoverflow.com/users/1042", "pm_score": 1, "selected": false, "text": "extern \"C\" void wWinMainCRTStartup();\n\n// managed entry point\n[System::STAThread]\nint managedEntry( void )\n{\n F...
2008/08/12
[ "https://Stackoverflow.com/questions/8704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1042/" ]
8,715
<p>Jeff mentioned in one of the podcasts that one of the things he always does is put in instrumentation for database calls, so that he can tell what queries are causing slowness etc. This is something I've measured in the past using SQL Profiler, but I'm interested in what strategies other people have used to include...
[ { "answer_id": 8750, "author": "BTB", "author_id": 961, "author_profile": "https://Stackoverflow.com/users/961", "pm_score": 0, "selected": false, "text": "SET STATISTICS TIME ON" } ]
2008/08/12
[ "https://Stackoverflow.com/questions/8715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/908/" ]
8,726
<p>I have a script that checks responses from HTTP servers using the PEAR HTTP classes. However, I've recently found that the script fails on FTP servers (and probably anything that's not HTTP or HTTPS). I tried Google, but didn't see any scripts or code that returned the server status code from servers other than HTTP...
[ { "answer_id": 8794, "author": "Philip Reynolds", "author_id": 1087, "author_profile": "https://Stackoverflow.com/users/1087", "pm_score": 3, "selected": true, "text": "if (!($ftpfd = ftp_connect($hostname))) { ... } if (!ftp_login($ftpfd, $username, $password)) { ... } ftp_mdtm() ftp_nl...
2008/08/12
[ "https://Stackoverflow.com/questions/8726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/572/" ]
8,728
<p>I've got an MDI application written in Delphi 2006 which runs XP with the default theme. </p> <p>Is there a way of controlling the appearance of the MDI Children to avoid the large XP-style title bar on each window? </p> <p>I've tried setting the <code>BorderStyle</code> of the <code>MDIChildren</code> to <code>bs...
[ { "answer_id": 8868, "author": "Tim Sullivan", "author_id": 722, "author_profile": "https://Stackoverflow.com/users/722", "pm_score": 2, "selected": false, "text": "TMyForm = class(TForm)\nprivate\n FCurrentModule : TFrame;\npublic\n property CurrentModule : TFrame read FModule write S...
2008/08/12
[ "https://Stackoverflow.com/questions/8728", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1008/" ]
8,742
<p>I'm trying to rebuild an old metronome application that was originally written using MFC in C++ to be written in .NET using C#. One of the issues I'm running into is getting the timer to "tick" accurately enough.</p> <p>For example, assuming an easy BPM (beats per minute) of 120, the timer should tick every .5 sec...
[ { "answer_id": 3852682, "author": "yazanpro", "author_id": 465495, "author_profile": "https://Stackoverflow.com/users/465495", "pm_score": 0, "selected": false, "text": "System.Windows.Forms.Timer" }, { "answer_id": 27548804, "author": "yarony", "author_id": 59403, "a...
2008/08/12
[ "https://Stackoverflow.com/questions/8742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1108/" ]
8,756
<p>Does anyone have any good starting points for me when looking at making web pages/sites/applications specifically for viewing on the iPhone?</p> <p>I've looked at templates like the one <a href="http://blog.wired.com/monkeybites/2007/07/meet-joe-hewitt.html" rel="noreferrer">Joe Hewitt</a> has made, and also seen s...
[ { "answer_id": 9137754, "author": "Zungy", "author_id": 1260447, "author_profile": "https://Stackoverflow.com/users/1260447", "pm_score": 0, "selected": false, "text": "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://cache.saurik.com/menes/style.css\" /> body > panel > fieldset ...
2008/08/12
[ "https://Stackoverflow.com/questions/8756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/267/" ]
8,761
<p>I'm updating some of our legacy C++ code to use the "MFC feature pack" that Microsoft released for Visual Studio 2008. We've used the new classes to derive our application from CFrameWndEx, and are applying the Office 2007 styles to give our application a more modern appearance. This gives us gradient filled window ...
[ { "answer_id": 9733, "author": "Aidan Ryan", "author_id": 1042, "author_profile": "https://Stackoverflow.com/users/1042", "pm_score": 0, "selected": false, "text": "CMFCVisualManager::GetSmartDockingBaseGuideColors()\nCMFCVisualManager::GetToolbarHighlightColor()\n" }, { "answer_...
2008/08/12
[ "https://Stackoverflow.com/questions/8761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1078/" ]
8,763
<p>I'm trying to rebuild an old metronome application that was originally written using <code>MFC</code> in C++ to be written in <code>.NET</code> using <code>C#</code>. One of the issues I'm running into is playing the midi files that are used to represent the metronome "clicks".</p> <p>I've found a few articles onli...
[ { "answer_id": 8777, "author": "John Sibly", "author_id": 1078, "author_profile": "https://Stackoverflow.com/users/1078", "pm_score": 4, "selected": true, "text": "[DllImport(\"winmm.dll\")] \nstatic extern Int32 mciSendString(String command, StringBuilder buffer, \n ...
2008/08/12
[ "https://Stackoverflow.com/questions/8763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1108/" ]
8,790
<p>I have a build script and as part of that script it copies a jar file to a directory, for ease lets call it the utils jar. the utils jar is built by another build script sitting in another directory. What im trying to do have my build script run the utils build script so that I can ensure the utils jar is up to da...
[ { "answer_id": 8805, "author": "Theo", "author_id": 1109, "author_profile": "https://Stackoverflow.com/users/1109", "pm_score": 6, "selected": true, "text": "<target name=\"build-tests\">\n <subant target=\"build\">\n <fileset dir=\"${test.home}\" includes=\"build.xml\"/>\n </...
2008/08/12
[ "https://Stackoverflow.com/questions/8790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/292/" ]
8,795
<p>I would like to create a stored procedure in MySQL that took a list as argument. For example, say that I would like to be able to set multiple tags for an item in one call, then what I want to do is to define a procedure that takes the ID of the item and a list of tags to set. However, I can't seem to find any way t...
[ { "answer_id": 8823, "author": "GateKiller", "author_id": 383, "author_profile": "https://Stackoverflow.com/users/383", "pm_score": 0, "selected": false, "text": "SELECT SUBSTRING_INDEX(SUBSTRING_INDEX('www.google.com', '.', -2), '.', 1);\n" }, { "answer_id": 8837, "author": ...
2008/08/12
[ "https://Stackoverflow.com/questions/8795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1109/" ]
8,800
<p>So I've been poking around with C# a bit lately, and all the Generic Collections have me a little confused. Say I wanted to represent a data structure where the head of a tree was a key value pair, and then there is one optional list of key value pairs below that (but no more levels than these). Would this be suitab...
[ { "answer_id": 8811, "author": "Adam Haile", "author_id": 194, "author_profile": "https://Stackoverflow.com/users/194", "pm_score": 8, "selected": true, "text": "KeyValuePair<string, string> myKeyValuePair = new KeyValuePair<string,string>(\"defaultkey\", \"defaultvalue\");\n" }, { ...
2008/08/12
[ "https://Stackoverflow.com/questions/8800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/61/" ]
8,832
<p>I hope I can explain this clearly enough, but if not let me know and I'll try to clarify.</p> <p>I'm currently developing a site using ColdFusion and have a mod_rewrite rule in place to make it look like the site is using PHP. Any requests for index.php get processed by index.cfm (the rule maps *.php to *.cfm).</p>...
[ { "answer_id": 12062, "author": "T Percival", "author_id": 954, "author_profile": "https://Stackoverflow.com/users/954", "pm_score": 2, "selected": true, "text": "S 404 RewriteEngine on\n\n# Do not separate these two rules so long as the first has S=1\nRewriteRule (.*)\\.php$ $1.cfm [S=1...
2008/08/12
[ "https://Stackoverflow.com/questions/8832", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1025/" ]
8,864
<p>Is there a difference between <code>NULL</code> and <code>null</code> in PHP? Sometimes they seem to be interchangeable and sometimes not.</p> <p>edit: for some reason when I read the documentation linked to in the answer (before posting this question) I read it as "case sensitive" instead of "case insensitive" whi...
[ { "answer_id": 16629586, "author": "Desolator", "author_id": 326904, "author_profile": "https://Stackoverflow.com/users/326904", "pm_score": 4, "selected": false, "text": "True False" } ]
2008/08/12
[ "https://Stackoverflow.com/questions/8864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/58/" ]
8,880
<p>Using the Windows API, how can I get a list of domains on my network?</p>
[ { "answer_id": 8881, "author": "JosephStyons", "author_id": 672, "author_profile": "https://Stackoverflow.com/users/672", "pm_score": 2, "selected": false, "text": "SV_TYPE_DOMAIN_ENUM <snip>\ntype\n NET_API_STATUS = DWORD;\n PSERVER_INFO_100 = ^SERVER_INFO_100;\n SERVER_INFO_100 = pa...
2008/08/12
[ "https://Stackoverflow.com/questions/8880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/672/" ]
8,896
<p>Does anyone know <strong>IF</strong>, <strong>WHEN</strong> or <strong>HOW</strong> I can get <a href="https://memcached.org/" rel="noreferrer">Memcached</a> running on a Windows 64bit environment? </p> <p>I'm setting up a new hosting solution and would much prefer to run a 64bit OS, and since it's an ASP.Net MVC s...
[ { "answer_id": 57390546, "author": "David Ferenczy Rogožan", "author_id": 971141, "author_profile": "https://Stackoverflow.com/users/971141", "pm_score": 3, "selected": false, "text": "nssm install memcached c:\\path\\to\\memcached.exe\nnssm start memcached\n" } ]
2008/08/12
[ "https://Stackoverflow.com/questions/8896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1107/" ]
8,941
<p><strong>Is there a way to enforce/limit the types that are passed to primitives?</strong> <em>(bool, int, string, etc.)</em></p> <p>Now, I know you can limit the generic type parameter to a type or interface implementation via the <em>where</em> clause. However, this doesn't fit the bill for primitives (AFAIK) becau...
[ { "answer_id": 8945, "author": "Lars Mæhlum", "author_id": 960, "author_profile": "https://Stackoverflow.com/users/960", "pm_score": 6, "selected": false, "text": "public class Class1<GenericType> where GenericType : struct\n{\n}\n" }, { "answer_id": 8954, "author": "JoshL", ...
2008/08/12
[ "https://Stackoverflow.com/questions/8941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/832/" ]
8,948
<p>Is there a maintained package I can use to retrieve and set MP3 ID3 metadata using Python?</p>
[ { "answer_id": 9358, "author": "Harley Holcombe", "author_id": 1057, "author_profile": "https://Stackoverflow.com/users/1057", "pm_score": 4, "selected": false, "text": "from ID3 import *\ntry:\n id3info = ID3('file.mp3')\n print id3info\n # Change the tags\n id3info['TITLE'] = \"Gre...
2008/08/12
[ "https://Stackoverflow.com/questions/8948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/145/" ]
8,966
<p>I want to implement a paperless filing system and was looking to use WIA with C# for the image acquisition. There are quite a few sample projects on CodeProject, etc. However, after downloading every one of them that I can find, I have run into a problem.</p> <p>In each and every one of them, the reference to WIALi...
[ { "answer_id": 107940, "author": "Paul Jenkins", "author_id": 657177, "author_profile": "https://Stackoverflow.com/users/657177", "pm_score": 6, "selected": true, "text": "const string wiaFormatJPEG = \"{B96B3CAE-0728-11D3-9D7B-0000F81EF32E}\";\nCommonDialogClass wiaDiag = new CommonDial...
2008/08/12
[ "https://Stackoverflow.com/questions/8966", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1124/" ]
8,970
<p>Is it possible to access the iSight camera on a macbook programmatically? By this I mean I would like to be able to just grab still frames from the iSight camera on command and then do something with them. If so, is it only accessible using objective c, or could other languages be used as well? </p>
[ { "answer_id": 9975, "author": "Theo", "author_id": 1109, "author_profile": "https://Stackoverflow.com/users/1109", "pm_score": 1, "selected": false, "text": "isightcapture" }, { "answer_id": 10698, "author": "Nick Brosnahan", "author_id": 528, "author_profile": "http...
2008/08/12
[ "https://Stackoverflow.com/questions/8970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/85/" ]
9,002
<p>When I use the sp_send_dbmail stored procedure, I get a message saying that my mail was queued. However, it never seems to get delivered. I can see them in the queue if I run this SQL:</p> <pre><code>SELECT * FROM msdb..sysmail_allitems WHERE sent_status = 'unsent' </code></pre> <p>This SQL returns a 1:</p> <pre>...
[ { "answer_id": 9212, "author": "Stu", "author_id": 414, "author_profile": "https://Stackoverflow.com/users/414", "pm_score": 2, "selected": false, "text": "sysmail_stop_sp\n sysmail_start_sp\n" } ]
2008/08/12
[ "https://Stackoverflow.com/questions/9002", "https://Stackoverflow.com", "https://Stackoverflow.com/users/162/" ]
9,009
<p>This snippet of Perl code in my program is giving the wrong result.</p> <pre><code>$condition ? $a = 2 : $a = 3 ; print $a; </code></pre> <p>No matter what the value of <code>$condition</code> is, the output is always 3, how come?</p>
[ { "answer_id": 9011, "author": "Pat", "author_id": 238, "author_profile": "https://Stackoverflow.com/users/238", "pm_score": 7, "selected": true, "text": "($condition ? $a= 2 : $a ) = 3 ;\n $a = ( $condition ? 2 : 3 );\nprint $a;\n" }, { "answer_id": 21800, "author": "Tithoni...
2008/08/12
[ "https://Stackoverflow.com/questions/9009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/238/" ]
9,018
<p>I am working at a client site where there is a proxy server (<code>HTTP</code>) in place. If I do a hard reset of the emulator it forgets network connection settings for the emulator and settings in the hosted Windows Mobile OS. If I 'save state and exit' it will lose all of these settings. I need to do hard resets ...
[ { "answer_id": 9011, "author": "Pat", "author_id": 238, "author_profile": "https://Stackoverflow.com/users/238", "pm_score": 7, "selected": true, "text": "($condition ? $a= 2 : $a ) = 3 ;\n $a = ( $condition ? 2 : 3 );\nprint $a;\n" }, { "answer_id": 21800, "author": "Tithoni...
2008/08/12
[ "https://Stackoverflow.com/questions/9018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/636/" ]
9,019
<p>I have a stored procedure which takes as its parameter a <em>varchar</em> which needs to be cast as a <em>datetime</em> for later use:</p> <pre><code>SET @the_date = CAST(@date_string AS DATETIME) </code></pre> <p>I'm expecting the date string to be supplied in the format "DD-MON-YYYY", but in an effort to code de...
[ { "answer_id": 9023, "author": "Nick Berardi", "author_id": 17, "author_profile": "https://Stackoverflow.com/users/17", "pm_score": 0, "selected": false, "text": "----Invalid date\nSELECT ISDATE('30/2/2007')\nRETURNS : 0 (Zero)\n----Valid date\nSELECT ISDATE('12/12/20007')\nRETURNS : 1 (...
2008/08/12
[ "https://Stackoverflow.com/questions/9019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1030/" ]
9,022
<p>Inside an asp.net page, should I use</p> <pre><code>&lt;html&gt;&lt;title&gt;My page's title from México&lt;/title&gt;&lt;/html&gt; </code></pre> <p>Or </p> <pre><code>&lt;html&gt;&lt;title&gt;My page&amp;rsquo;s title from M&amp;eacute;xico&lt;/title&gt;&lt;/html&gt; </code></pre> <p>Both examples have the same...
[ { "answer_id": 9023, "author": "Nick Berardi", "author_id": 17, "author_profile": "https://Stackoverflow.com/users/17", "pm_score": 0, "selected": false, "text": "----Invalid date\nSELECT ISDATE('30/2/2007')\nRETURNS : 0 (Zero)\n----Valid date\nSELECT ISDATE('12/12/20007')\nRETURNS : 1 (...
2008/08/12
[ "https://Stackoverflow.com/questions/9022", "https://Stackoverflow.com", "https://Stackoverflow.com/users/296/" ]
9,024
<p>I'm using <code>IIS 5.1</code> in Windows XP on my development computer. I'm going to set up HTTPS on my company's web server, but I want to try doing it locally before doing it on a production system.</p> <p>But when I go into the Directory Security tab of my web site's configuration section, the "Secure communica...
[ { "answer_id": 9023, "author": "Nick Berardi", "author_id": 17, "author_profile": "https://Stackoverflow.com/users/17", "pm_score": 0, "selected": false, "text": "----Invalid date\nSELECT ISDATE('30/2/2007')\nRETURNS : 0 (Zero)\n----Valid date\nSELECT ISDATE('12/12/20007')\nRETURNS : 1 (...
2008/08/12
[ "https://Stackoverflow.com/questions/9024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/614/" ]
9,033
<p>This came to my mind after I learned the following from <a href="http://www.stackoverflow.com/questions/8941/generic-type-checking">this question</a>:</p> <pre><code>where T : struct </code></pre> <p>We, C# developers, all know the basics of C#. I mean declarations, conditionals, loops, operators, etc.</p> <p>Som...
[ { "answer_id": 9038, "author": "Nick Berardi", "author_id": 17, "author_profile": "https://Stackoverflow.com/users/17", "pm_score": 6, "selected": false, "text": "Decimal = M\nFloat = F\nDouble = D\n\n// for example\ndouble d = 30D;\n Long = L\nUnsigned Long = UL\nUnsigned Int = U\n" }...
2008/08/12
[ "https://Stackoverflow.com/questions/9033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31505/" ]
9,044
<p>I have a base class that represents a database test in TestNG, and I want to specify that all classes extending from this class are of a group "db-test", however I have found that this doesn't seem possible. I have tried the @Test annotation:</p> <pre><code>@Test(groups = { "db-test" }) public class DBTestBase { }...
[ { "answer_id": 154080, "author": "Jorge Ferreira", "author_id": 6508, "author_profile": "https://Stackoverflow.com/users/6508", "pm_score": 0, "selected": false, "text": "public class DBTestBase {\n\n @BeforeTest(groups = \"db-test\")\n public void beforeTest() {\n System.ou...
2008/08/12
[ "https://Stackoverflow.com/questions/9044", "https://Stackoverflow.com", "https://Stackoverflow.com/users/122/" ]
9,052
<p>I'm working on a spec for a piece of software for my company and as part of the auditing system I think it would be neat if there was a way to grab the current Active Directory user.</p> <p>Hopefully something like:</p> <pre><code>Dim strUser as String strUser = ActiveDirectory.User() MsgBox "Welcome back, " &amp;...
[ { "answer_id": 9054, "author": "JamesSugrue", "author_id": 1075, "author_profile": "https://Stackoverflow.com/users/1075", "pm_score": 4, "selected": true, "text": "Private Declare Function GetUserName Lib \"advapi32.dll\" Alias \"GetUserNameA\" _\n (ByVal IpBuffer As ...
2008/08/12
[ "https://Stackoverflow.com/questions/9052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/428190/" ]
9,081
<p>How do I <code>grep</code> and show the preceding and following 5 lines surrounding each matched line?</p>
[ { "answer_id": 9083, "author": "Pat Notz", "author_id": 825, "author_profile": "https://Stackoverflow.com/users/825", "pm_score": 13, "selected": true, "text": "grep -B num -A num grep -B 3 -A 2 foo README.txt\n -C num grep -C 3 foo README.txt\n" }, { "answer_id": 9084, "auth...
2008/08/12
[ "https://Stackoverflow.com/questions/9081", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116/" ]
9,104
<p>I'm thinking that the reason I can't do this is because it might be a huge security hole, but here goes...</p> <p>I want to have a bookmark on my browser (FF3, preferably) that is only a snippet of javascript code. It would merely construct a URL based on the current date and then do a window.location = on that UR...
[ { "answer_id": 9109, "author": "Dillie-O", "author_id": 71, "author_profile": "https://Stackoverflow.com/users/71", "pm_score": 3, "selected": false, "text": "javascript:alert('Wacky%20test%20yo');\n" }, { "answer_id": 476592, "author": "Community", "author_id": -1, "...
2008/08/12
[ "https://Stackoverflow.com/questions/9104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/232/" ]
9,122
<p>I'm trying to use a select statement to get all of the columns from a certain MySQL table except one. Is there a simple way to do this?</p> <p>EDIT: There are 53 columns in this table (NOT MY DESIGN)</p>
[ { "answer_id": 9123, "author": "Thomas Owens", "author_id": 572, "author_profile": "https://Stackoverflow.com/users/572", "pm_score": 5, "selected": false, "text": "SELECT col1, col2, col3, col4 FROM tbl\n SELECT * FROM tbl \n SELECT * FROM tbl\n SELECT col3, col6, col45, col 52 FROM tbl...
2008/08/12
[ "https://Stackoverflow.com/questions/9122", "https://Stackoverflow.com", "https://Stackoverflow.com/users/44/" ]
9,173
<p>My C# project - we'll call it the SuperUI - used to make use of a class from an external assembly. Now it doesn't, but the compiler won't let me build the project without the assembly reference in place. Let me elaborate.</p> <p>This project used to throw and catch a custom exception class - the <code>SuperExceptio...
[ { "answer_id": 9276, "author": "Orion Edwards", "author_id": 234, "author_profile": "https://Stackoverflow.com/users/234", "pm_score": 0, "selected": false, "text": "SuperException SpecializedSuperException SuperException SuperException" }, { "answer_id": 9350, "author": "Ber...
2008/08/12
[ "https://Stackoverflow.com/questions/9173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1135/" ]
9,191
<p>I'd like to ask a question then follow it up with my own answer, but also see what answers other people have.</p> <p>We have two large files which we'd like to read from two separate threads concurrently. One thread will sequentially read fileA while the other thread will sequentially read fileB. There is no lock...
[ { "answer_id": 9193, "author": "pauldoo", "author_id": 755, "author_profile": "https://Stackoverflow.com/users/755", "pm_score": 3, "selected": false, "text": "FILE_FLAG_NO_BUFFERING CreateFile ReadFile CreateFile FILE_FLAG_SEQUENTIAL_SCAN" }, { "answer_id": 9826, "author": "...
2008/08/12
[ "https://Stackoverflow.com/questions/9191", "https://Stackoverflow.com", "https://Stackoverflow.com/users/755/" ]
9,204
<p>Is there any IL level debugger in form of a VS plugin or standalone application?</p> <p>Visual studio’s debugger is great, but it allows you to debug on either HLL code level or assembly language, you can’t debug IL. It seems that in some situations it would be useful to have an opportunity to debug at IL level. </...
[ { "answer_id": 9210, "author": "Chris Smith", "author_id": 322, "author_profile": "https://Stackoverflow.com/users/322", "pm_score": 5, "selected": false, "text": "ildasm foo.exe /OUT=foo.exe.il /SOURCE ilasm foo.exe.il /DEBUG" }, { "answer_id": 29853999, "author": "BSalita",...
2008/08/12
[ "https://Stackoverflow.com/questions/9204", "https://Stackoverflow.com", "https://Stackoverflow.com/users/578/" ]
9,240
<p>Say you have an application divided into 3-tiers: GUI, business logic, and data access. In your business logic layer you have described your business objects: getters, setters, accessors, and so on... you get the idea. The interface to the business logic layer guarantees safe usage of the business logic, so all the ...
[ { "answer_id": 9251, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "public class BusinessObjectRecord : BusinessObject\n{\n}\n" }, { "answer_id": 9257, "author": "Community", "auth...
2008/08/12
[ "https://Stackoverflow.com/questions/9240", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]