qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
210,097
<p>I have a table that has an insert trigger on it. If I insert in 6000 records into this table in one insert statement from a stored procedure, will the stored procedure return before the insert trigger completes?</p> <p>Just to make sure that I'm thinking correctly, the trigger should only be called (i know 'called'...
[ { "answer_id": 210113, "author": "tom.dietrich", "author_id": 15769, "author_profile": "https://Stackoverflow.com/users/15769", "pm_score": 6, "selected": true, "text": "inserted" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21828/" ]
210,120
<p>I have a symlink to an important directory. I want to get rid of that symlink, while keeping the directory behind it. </p> <p>I tried <code>rm</code> and get back <code>rm: cannot remove 'foo'</code>.<br> I tried <code>rmdir</code> and got back <code>rmdir: failed to remove 'foo': Directory not empty</code><br> I ...
[ { "answer_id": 210130, "author": "Joe Phillips", "author_id": 20471, "author_profile": "https://Stackoverflow.com/users/20471", "pm_score": 10, "selected": false, "text": "$ unlink mySymLink\n" }, { "answer_id": 210133, "author": "Matthew Scharley", "author_id": 15537, ...
2008/10/16
[ "https://Stackoverflow.com/questions/210120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8508/" ]
210,122
<p>I recently downloaded the source tarball for a GTK application that I'd like to improve. It uses the standard <code>./configure</code> and <code>make</code> build sequence.</p> <p>The first time through, <code>configure</code> reported a bunch of unmet build dependencies, such as <code>libgnomeui-2.0</code>. As I...
[ { "answer_id": 210126, "author": "John Millikin", "author_id": 3560, "author_profile": "https://Stackoverflow.com/users/3560", "pm_score": 3, "selected": false, "text": "apt-get build-dep <package>" }, { "answer_id": 210192, "author": "ephemient", "author_id": 20713, ...
2008/10/16
[ "https://Stackoverflow.com/questions/210122", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20789/" ]
210,145
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/144833/most-useful-attributes-in-c">Most Useful Attributes in C#</a> </p> </blockquote> <p>besides:</p> <pre><code>[DefaultValue(100)] [Description("Some descriptive field here")] public int MyProperty{get; se...
[ { "answer_id": 210154, "author": "Greg D", "author_id": 6932, "author_profile": "https://Stackoverflow.com/users/6932", "pm_score": 2, "selected": false, "text": "[Browsable]\n" }, { "answer_id": 210160, "author": "TheSmurf", "author_id": 1975282, "author_profile": "h...
2008/10/16
[ "https://Stackoverflow.com/questions/210145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28717/" ]
210,169
<p>What would be the best way to port an existing Drupal site to a Django application? I have around 500 pages (mostly books module) and around 50 blog posts. I'm not using any 3rd party modules. I would like to keep the current URLS (for SEO purposes) and migrate database to Django. I will create a simple blog applica...
[ { "answer_id": 214984, "author": "akaihola", "author_id": 15770, "author_profile": "https://Stackoverflow.com/users/15770", "pm_score": 2, "selected": false, "text": "manage.py inspectdb" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,171
<p>I guess the real question is: </p> <p>If I don't care about dirty reads, will adding the <strong>with (NOLOCK)</strong> hint to a SELECT statement affect the performance of:</p> <ol> <li>the current SELECT statement </li> <li>other transactions against the given table</li> </ol> <p>Example:</p> <pre><code>Sele...
[ { "answer_id": 210227, "author": "tom.dietrich", "author_id": 15769, "author_profile": "https://Stackoverflow.com/users/15769", "pm_score": 9, "selected": true, "text": "NOLOCK NOLOCK NOLOCK NOLOCK NOLOCK NOLOCK" }, { "answer_id": 35228402, "author": "WonderWorker", "auth...
2008/10/16
[ "https://Stackoverflow.com/questions/210171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12424/" ]
210,178
<p>Given the Below Tables. How do I get the Distinct name given the other ID of 76 in LINQ?</p> <pre><code>**Table S** SID OtherID ------------------------------ 1 77 2 76 **Table Q** QID SID HighLevelNAme LoweLevelName --------------------------------------- 10 1 Name1 Engi...
[ { "answer_id": 210217, "author": "Troy Howard", "author_id": 19258, "author_profile": "https://Stackoverflow.com/users/19258", "pm_score": 4, "selected": true, "text": "var results = (from QItem in dataContext.QItems\n where QItem.SItem.OtherID == 76\n selec...
2008/10/16
[ "https://Stackoverflow.com/questions/210178", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469/" ]
210,180
<p>I've noticed for quite a long time that strange domains such like jsev.com, cssxx.com appered in my firefox status bar from time to time, I always wonder why so many web pages contains resources from these strange domains. I googled it, but found nothing. I guess it's some kind of virus which infect the servers and ...
[ { "answer_id": 210212, "author": "John Millikin", "author_id": 3560, "author_profile": "https://Stackoverflow.com/users/3560", "pm_score": 2, "selected": false, "text": "<head><title>Tutorial 2</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://yui.yahooapis.com/2.4.1/buil...
2008/10/16
[ "https://Stackoverflow.com/questions/210180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1925263/" ]
210,201
<p>Can somebody remember what was the command to create an empty file in MSDOS using BAT file?</p>
[ { "answer_id": 210209, "author": "TheSmurf", "author_id": 1975282, "author_profile": "https://Stackoverflow.com/users/1975282", "pm_score": 9, "selected": true, "text": "echo. 2>EmptyFile.txt\n" }, { "answer_id": 211045, "author": "ephemient", "author_id": 20713, "aut...
2008/10/16
[ "https://Stackoverflow.com/questions/210201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/446104/" ]
210,206
<p>I have this regex I built and tested in regex buddy.</p> <pre><code>"_ [ 0-9]{10}+ {1}+[ 0-9]{10}+ {2}+[ 0-9]{6}+ {2}[ 0-9]{2}" </code></pre> <p>When I use this in .Net C# </p> <p>I receive the exception</p> <pre><code>"parsing \"_ [ 0-9]{10}+ +[ 0-9]{10}+ +[ 0-9]{6}+ [ 0-9]{2}\" - Nested quantifier +." </code...
[ { "answer_id": 210243, "author": "Duncan", "author_id": 25035, "author_profile": "https://Stackoverflow.com/users/25035", "pm_score": 5, "selected": true, "text": "+ {n} {n} + + \"_ [ 0-9]{10} {1}[ 0-9]{10} {2}[ 0-9]{6} {2}[ 0-9]{2}\"\n" }, { "answer_id": 210265, "author": "C...
2008/10/16
[ "https://Stackoverflow.com/questions/210206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6161/" ]
210,225
<p>I made a simple game for the iPhone using OpenGL ES. Everything works fine except for this problem:</p> <p>I turn the phone completely off, then back on, then launch my app and I get this wierd flickering! Every other frame is correct... the incorrect frames are just the same frame over and over again. If I quit...
[ { "answer_id": 2808695, "author": "gulchrider", "author_id": 289447, "author_profile": "https://Stackoverflow.com/users/289447", "pm_score": 1, "selected": false, "text": "- (void) draw\n{\n [EAGLContext setCurrentContext:context]; \n glBindFramebufferOES(GL_FRAMEBUFFER_OES, defaultF...
2008/10/16
[ "https://Stackoverflow.com/questions/210225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22471/" ]
210,233
<p>I imagine there are many of you out there who have developed an application online which automates a lot of processes and saves people at your company time and money.</p> <p>The question is, what are your experiences with developing that application, having it all set in place, then "spicing" it up with some Ajax, ...
[ { "answer_id": 210242, "author": "IAmCodeMonkey", "author_id": 27613, "author_profile": "https://Stackoverflow.com/users/27613", "pm_score": 0, "selected": false, "text": "<asp:ScriptManager\n <asp:UpdatePanel\n" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26130/" ]
210,250
<p>I have an ASP.NET website and when I press F5 it automatically attaches to the ASP.NET Development Server, how do I attach to IIS worker process instead when I press F5?</p>
[ { "answer_id": 8438502, "author": "yoel halb", "author_id": 640195, "author_profile": "https://Stackoverflow.com/users/640195", "pm_score": 4, "selected": false, "text": "c:\\%systemroot%\\system32\\inetsrv\\appcmd list wp\n c:\\%systemroot%\\system32\\cscript iisapp.vbs\n" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210250", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1100768/" ]
210,256
<p>I have an XML document, and contained within one of the nodes, I have <code>&lt;li&gt;</code> tags. I don't need <code>&lt;ul&gt;&lt;/ul&gt;</code> tags for Flash because it only accepts <code>&lt;li&gt;</code> tags anyway. For example, here's part of the XML doc:</p> <pre><code>&lt;node&gt; &lt;li&gt;item1&lt;/li...
[ { "answer_id": 8438502, "author": "yoel halb", "author_id": 640195, "author_profile": "https://Stackoverflow.com/users/640195", "pm_score": 4, "selected": false, "text": "c:\\%systemroot%\\system32\\inetsrv\\appcmd list wp\n c:\\%systemroot%\\system32\\cscript iisapp.vbs\n" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210256", "https://Stackoverflow.com", "https://Stackoverflow.com/users/557/" ]
210,261
<p>I'm debugging a Cocoa application that can act as a handler to a custom URL protocol. The application works fine when I click on a link after the application has launched, but something is causing the app to crash if it has not launched at the time the link is clicked.</p> <p>Is there any way that I can start the a...
[ { "answer_id": 221172, "author": "Ken", "author_id": 17320, "author_profile": "https://Stackoverflow.com/users/17320", "pm_score": 2, "selected": false, "text": "gdb --wait myAppName\n" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26628/" ]
210,266
<p>In the Java code I'm working with we have an interface to define our Data Access Objects(DAO). Most of the methods take a parameter of a Data Transfer Object (DTO). The problem occurs when an implementation of the DAO needs to refer to a specific type of DTO. The method then needs to do a (to me completely unnecessa...
[ { "answer_id": 210282, "author": "johnstok", "author_id": 27929, "author_profile": "https://Stackoverflow.com/users/27929", "pm_score": 4, "selected": false, "text": "DAO<SpecificDTO> dao = new SpecificDAO();\ndao.save(new SpecificDTO());\netc.\n interface DAO<T extends DTO> {\n void ...
2008/10/16
[ "https://Stackoverflow.com/questions/210266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,296
<p>I've got a website that has windows authentication enable on it. From a page in the website, the users have the ability to start a service that does some stuff with the database.</p> <p>It works fine for me to start the service because I'm a local admin on the server. But I just had a user test it and they can't ge...
[ { "answer_id": 210813, "author": "Rich", "author_id": 28442, "author_profile": "https://Stackoverflow.com/users/28442", "pm_score": 1, "selected": false, "text": " <system.web>\n <identity impersonate=\"true\" userName=\"Username\" password=\"Password\" />\n </system.web\n" ...
2008/10/16
[ "https://Stackoverflow.com/questions/210296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21828/" ]
210,309
<p>I am having a problem with FCKeditor reverting html entities entered in the source view back to their original unicode representations. For example when I enter <code>&amp;euro;</code> into the source view, switch to html and then back to source view, the entity is replaced by an actual € symbol. The bigger proble...
[ { "answer_id": 210360, "author": "Anne Porosoff", "author_id": 28701, "author_profile": "https://Stackoverflow.com/users/28701", "pm_score": 2, "selected": false, "text": "&euro; &euro;" }, { "answer_id": 211521, "author": "mysomic", "author_id": 27241, "author_profil...
2008/10/16
[ "https://Stackoverflow.com/questions/210309", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27241/" ]
210,321
<p>What is the best method for determining if a users browser has cookies enabled in ASP.NET</p>
[ { "answer_id": 2583101, "author": "nuwan", "author_id": 309773, "author_profile": "https://Stackoverflow.com/users/309773", "pm_score": -1, "selected": false, "text": "function cc()\n{\n /* check for a cookie */\n if (document.cookie == \"\") \n {\n /* if a cookie is not found - ale...
2008/10/16
[ "https://Stackoverflow.com/questions/210321", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1375/" ]
210,342
<p>I have a html page open on my webbrowser object, I can enter username and password okay, but I'm stuck and don't know how to submit the info. Here is the html code for the username/password submit:</p> <pre><code>&lt;div id="signin"&gt; &lt;h2 class="ir"&gt; &lt;em&gt;&lt;/em&gt;Sign in&lt;/h2&gt; ...
[ { "answer_id": 281892, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "\nPublic Function LoginAsTech(ByVal UserID As String, ByVal Pass As String) As Boolean\n Dim MyDoc As New mshtml.HTMLDo...
2008/10/16
[ "https://Stackoverflow.com/questions/210342", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,344
<p>I just installed the first release candidate of Python 3.0 and got this error after typing:</p> <pre><code>&gt;&gt;&gt; help('modules foo') </code></pre> <pre>[...] LookupError: unknown encoding: uft-8</pre> <p>Notice that it says <strong>uft</strong>-8 and not <strong>utf</strong>-8</p> <p>Is this a py3k specif...
[ { "answer_id": 210395, "author": "Dan Lenski", "author_id": 20789, "author_profile": "https://Stackoverflow.com/users/20789", "pm_score": 0, "selected": false, "text": "__future__" }, { "answer_id": 210417, "author": "Alex Coventry", "author_id": 1941213, "author_prof...
2008/10/16
[ "https://Stackoverflow.com/questions/210344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23002/" ]
210,353
<p>I have a class that compares 2 instances of the same objects, and generates a list of their differences. This is done by looping through the key collections and filling a set of other collections with a list of what has changed (this may make more sense after viewing the code below). This works, and generates an o...
[ { "answer_id": 210361, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": false, "text": "if (NewStep.Id != Guid.Empty && SavedStep.Id != Guid.Empty)\n{\n // Body\n}\n if (NewStep.Id != Guid.Empty && SavedSt...
2008/10/16
[ "https://Stackoverflow.com/questions/210353", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18449/" ]
210,355
<p>I changed the folder that my WordPress installation was in.</p> <p>However, this worked fine, except now all my images are not showing up.</p> <p>The problem is that each post has the full url of the image in it. (not my doing, this seems to be the default setting)</p> <p>Is there a tool or a quick fix available ...
[ { "answer_id": 210362, "author": "Matthew Scharley", "author_id": 15537, "author_profile": "https://Stackoverflow.com/users/15537", "pm_score": 2, "selected": false, "text": "'=\"/'" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2490/" ]
210,359
<p>I have a <code>textbox</code> whose input is being handled by jQuery.</p> <pre><code>$('input.Search').bind("keyup", updateSearchTextbox); </code></pre> <p>When I press <code>Enter</code> in the textbox, I get a postback, which messes everything up. How can I trap that Enter and ignore it?</p> <p>(Just to preempt...
[ { "answer_id": 210366, "author": "FlySwat", "author_id": 1965, "author_profile": "https://Stackoverflow.com/users/1965", "pm_score": 5, "selected": true, "text": "<script language=\"JavaScript\">\n\nfunction disableEnterKey(e)\n{\n var key; \n if(window.event)\n key ...
2008/10/16
[ "https://Stackoverflow.com/questions/210359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/239663/" ]
210,371
<p>I've had success with <a href="http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/" rel="nofollow noreferrer">LuaSocket</a>'s TCP facility, but I'm having trouble with its FTP module. I always get a timeout when trying to retrieve a (small) file. I can download the file just fine using Firefox or ftp in p...
[ { "answer_id": 214462, "author": "Anders Eurenius", "author_id": 1421, "author_profile": "https://Stackoverflow.com/users/1421", "pm_score": 3, "selected": true, "text": "path/to/your/project/socket/ftp.lua - self.try(self.tp:command(\"user\", user or USER))\n+ self.try(self.tp:com...
2008/10/16
[ "https://Stackoverflow.com/questions/210371", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4323/" ]
210,375
<p>I have been attempting to write some routines to read RSS and ATOM feeds using the new routines available in System.ServiceModel.Syndication, but unfortunately the Rss20FeedFormatter bombs out on about half the feeds I try with the following exception:</p> <blockquote> <pre><code>An error was encountered when parsi...
[ { "answer_id": 2724742, "author": "CleverPatrick", "author_id": 22399, "author_profile": "https://Stackoverflow.com/users/22399", "pm_score": 5, "selected": false, "text": "WebClient client = new WebClient();\nusing (XmlReader reader = new SyndicationFeedXmlReader(client.OpenRead(feedUrl...
2008/10/16
[ "https://Stackoverflow.com/questions/210375", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4253/" ]
210,377
<p>What's the best way to get an array of all elements in an html document with a specific CSS class using javascript?</p> <p>No javascript frameworks like jQuery allowed here right now, and I could loop all the elements and check them manually myself. I'm hoping for something a little more elegant.</p>
[ { "answer_id": 210388, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 0, "selected": false, "text": "using document.getElementsByTagName('*') className" }, { "answer_id": 210393, "author": "Shog9", "author_i...
2008/10/16
[ "https://Stackoverflow.com/questions/210377", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3043/" ]
210,383
<p>If I have a VB.Net function that returns an Int32, but uses an unsigned int (UInt32) for calculations, etc. How can I convert a variable "MyUintVar32" with a value of say "3392918397 into a standard Int32 in VB.Net? </p> <p>In c# if I just do a "return (int)(MyUintVar32);", I get -902048899, not an error.</p> <p...
[ { "answer_id": 210401, "author": "Juanma", "author_id": 3730, "author_profile": "https://Stackoverflow.com/users/3730", "pm_score": 2, "selected": false, "text": "Dim myUInt32 As UInt32 = 3392918397\nDim myInt32 As Int32 = BitConverter.ToInt32(BitConverter.GetBytes(myUInt32), 0)\n" }, ...
2008/10/16
[ "https://Stackoverflow.com/questions/210383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,428
<p>Is it possible to somehow mark a <code>System.Array</code> as immutable. When put behind a public-get/private-set they can't be added to, since it requires re-allocation and re-assignment, but a consumer can still set any subscript they wish:</p> <pre><code>public class Immy { public string[] { get; private se...
[ { "answer_id": 210441, "author": "Matt", "author_id": 2338, "author_profile": "https://Stackoverflow.com/users/2338", "pm_score": 2, "selected": false, "text": "IList<> Array.AsReadOnly()" }, { "answer_id": 210444, "author": "Ray Jezek", "author_id": 28309, "author_pr...
2008/10/16
[ "https://Stackoverflow.com/questions/210428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9642/" ]
210,446
<p>The client connects to the server using GenuineChannels (we are considering switching to DotNetRemoting). What I mean by find is obtain the IP and port number of a server to connect to.</p> <p>It seems like a brute-force approach would be try every IP on the network try the active ports (not even sure if that's po...
[ { "answer_id": 210464, "author": "Jorge Ferreira", "author_id": 6508, "author_profile": "https://Stackoverflow.com/users/6508", "pm_score": 5, "selected": true, "text": "using System.Net;\nusing System.Net.Sockets;\n\n[STAThread]\nstatic void Main(string[] args)\n{\n Socket socket = n...
2008/10/16
[ "https://Stackoverflow.com/questions/210446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23822/" ]
210,455
<p>What's the best way for a common library to know what context - a.k.a. the calling app - it is in? I'm in a very controlled enterprise environment... is there a better way for the library to know what application it is getting called from than reading a setting in the config file? What do you use for this type of th...
[ { "answer_id": 210550, "author": "Troy Howard", "author_id": 19258, "author_profile": "https://Stackoverflow.com/users/19258", "pm_score": 0, "selected": false, "text": "public interface IIntranetApp\n{\n string GetApplicationName();\n void SetConnectionString(string connectionStri...
2008/10/16
[ "https://Stackoverflow.com/questions/210455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3226/" ]
210,460
<p>How can polymorphism be described in an easy-to-understand way?</p> <p>We can find a lot of information about the subject on the Internet and books, like in <em><a href="http://en.wikipedia.org/wiki/Type_polymorphism" rel="noreferrer">Type polymorphism</a></em>. But let's try to make it as simple as we can.</p>
[ { "answer_id": 210472, "author": "Craig", "author_id": 27294, "author_profile": "https://Stackoverflow.com/users/27294", "pm_score": 0, "selected": false, "text": "interface IJobLoader\n" }, { "answer_id": 210482, "author": "Mark A. Nicolosi", "author_id": 1103052, "a...
2008/10/16
[ "https://Stackoverflow.com/questions/210460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1409636/" ]
210,470
<p>Anyone know a QR decoder that works on mac or that might be online? I just need to decode one single image.</p>
[ { "answer_id": 22144524, "author": "clt60", "author_id": 632407, "author_profile": "https://Stackoverflow.com/users/632407", "pm_score": 4, "selected": true, "text": "Image::DecodeQR ./configure --disable-video --without-python --without-gtk --without-qt ImageMagick zbarimg qrcode_file.p...
2008/10/16
[ "https://Stackoverflow.com/questions/210470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26004/" ]
210,475
<p>I saw this question asked about C# I would like an answer for PHP. I have some old code that has 4 pages of foreach loops and conditions which just makes it hard to read and follow. How would I make this more OO? I was thinking of using SPL Functions but don't fully understand whats involved yet.</p>
[ { "answer_id": 210505, "author": "Jonathan Arkell", "author_id": 11052, "author_profile": "https://Stackoverflow.com/users/11052", "pm_score": 0, "selected": false, "text": "array_map array_walk" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25143/" ]
210,496
<p>I continue to get this error:</p> <pre><code>Object '%s' cannot be renamed because the object participates in enforced dependencies </code></pre> <p>I need to find a script that will help me to find all the dependencies that there is with this table. I will need to drop them, rename, then bring them back.</p> <p>...
[ { "answer_id": 210512, "author": "Craig", "author_id": 27294, "author_profile": "https://Stackoverflow.com/users/27294", "pm_score": 3, "selected": true, "text": "sp_msforeachtable \"ALTER TABLE ? NOCHECK CONSTRAINT all\"\ngo\nsp_msforeachtable \"ALTER TABLE ? DISABLE TRIGGER all\"\ngo\...
2008/10/16
[ "https://Stackoverflow.com/questions/210496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7952/" ]
210,504
<p>I'm creating an alt-tab replacement for Vista but I have some problems listing all active programs.</p> <p>I'm using EnumWindows to get a list of Windows, but this list is huge. It contains about 400 items when I only have 10 windows open. It seems to be a hwnd for every single control and a lot of other stuff.</p>...
[ { "answer_id": 210519, "author": "Michael Burr", "author_id": 12711, "author_profile": "https://Stackoverflow.com/users/12711", "pm_score": 5, "selected": false, "text": "BOOL IsAltTabWindow(HWND hwnd)\n{\n // Start at the root owner\n HWND hwndWalk = GetAncestor(hwnd, GA_ROOTOWNER);\n\n...
2008/10/16
[ "https://Stackoverflow.com/questions/210504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,506
<p>This may not be possible, but I figured I'd ask...</p> <p>Is there any way anyone can think of to track whether or not an automatic variable has been deleted without modifying the class of the variable itself? For example, consider this code:</p> <pre><code>const char* pStringBuffer; { std::string sString( "fo...
[ { "answer_id": 210593, "author": "Henk", "author_id": 4613, "author_profile": "https://Stackoverflow.com/users/4613", "pm_score": 0, "selected": false, "text": "new delete operator new operator delete" }, { "answer_id": 210698, "author": "John Zwinck", "author_id": 4323, ...
2008/10/16
[ "https://Stackoverflow.com/questions/210506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26240/" ]
210,509
<p>I have a bunch of records in several tables in a database that have a "process number" field, that's basically a number, but I have to store it as a string both because of some legacy data that has stuff like "89a" as a number and some numbering system that requires that process numbers be represented as number/year...
[ { "answer_id": 210521, "author": "Paolo Bergantino", "author_id": 16417, "author_profile": "https://Stackoverflow.com/users/16417", "pm_score": 1, "selected": false, "text": "SELECT process_order FROM your_table ORDER BY process_order + 0 ASC\n" }, { "answer_id": 210546, "aut...
2008/10/16
[ "https://Stackoverflow.com/questions/210509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2841/" ]
210,515
<p>Assume a table with the following columns:</p> <p><code>pri_id</code>, <code>item_id</code>, <code>comment</code>, <code>date</code></p> <p>What I want to have is a SQL query that will delete any records, for a specific <code>item_id</code> that are older than a given date, BUT only as long as there are more than ...
[ { "answer_id": 210532, "author": "Robert C. Barth", "author_id": 9209, "author_profile": "https://Stackoverflow.com/users/9209", "pm_score": 4, "selected": true, "text": "delete\nfrom\n MyTable\nwhere\n item_id in\n (\n select\n item_id\n from\n MyTable\n group by\n...
2008/10/16
[ "https://Stackoverflow.com/questions/210515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14230/" ]
210,518
<p>What do I use to search for multiple words in a string? I would like the logical operation to be AND so that all the words are in the string somewhere. I have a bunch of nonsense paragraphs and one plain English paragraph, and I'd like to narrow it down by specifying a couple common words like, "the" and "and", bu...
[ { "answer_id": 210539, "author": "brasskazoo", "author_id": 6340, "author_profile": "https://Stackoverflow.com/users/6340", "pm_score": 2, "selected": false, "text": "\\b(word1|word2)\\b(\\w+\\b)*(word1|word2)\\b(\\w+\\b)*\\.\n \\b" }, { "answer_id": 210565, "author": "Markus...
2008/10/16
[ "https://Stackoverflow.com/questions/210518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13611/" ]
210,522
<p>I'm building a code in which I'd like to be able to generate an event when the user changes the focus of the cursor from an Entry widget to anywhere, for example another entry widget, a button...</p> <p>So far i only came out with the idea to bind to TAB and mouse click, although if i bind the mouse click to the Ent...
[ { "answer_id": 225834, "author": "Bryan Oakley", "author_id": 7432, "author_profile": "https://Stackoverflow.com/users/7432", "pm_score": 3, "selected": false, "text": "from Tkinter import *\n\ndef main():\n global text\n\n root=Tk()\n\n l1=Label(root,text=\"Field 1:\")\n l2=...
2008/10/16
[ "https://Stackoverflow.com/questions/210522", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,541
<p>The scenario: 2 user controls (foo.ascx and fum.ascx)</p> <p>foo has a method that would really like to access a property from fum. They live on the same page, but I can't find a very simple way to accomplish this sort of communication. </p> <p>Any ideas?</p>
[ { "answer_id": 210571, "author": "Panos", "author_id": 8049, "author_profile": "https://Stackoverflow.com/users/8049", "pm_score": 2, "selected": false, "text": "OnMyPropertyValueChanged" }, { "answer_id": 210592, "author": "FlySwat", "author_id": 1965, "author_profil...
2008/10/16
[ "https://Stackoverflow.com/questions/210541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,564
<p>Is there a way to get the raw SQL string executed when calling PDOStatement::execute() on a prepared statement? For debugging purposes this would be extremely useful.</p>
[ { "answer_id": 210693, "author": "Bill Karwin", "author_id": 20860, "author_profile": "https://Stackoverflow.com/users/20860", "pm_score": 8, "selected": true, "text": "081016 16:51:28 2 Query prepare s1 from 'select * from foo where i = ?'\n 2 Prepare [2] select...
2008/10/16
[ "https://Stackoverflow.com/questions/210564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5291/" ]
210,567
<p>Whats the best practice for setting up package structures in a Java Web Application?</p> <p>How would you setup your src, unit test code, etc?</p>
[ { "answer_id": 52802639, "author": "Raj", "author_id": 5107365, "author_profile": "https://Stackoverflow.com/users/5107365", "pm_score": 3, "selected": false, "text": "The way I usually organise is\n- src\n - main\n - java\n - groovy\n ...
2008/10/16
[ "https://Stackoverflow.com/questions/210567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24717/" ]
210,590
<p>Why is it that <code>scanf()</code> needs the <code>l</code> in "<code>%lf</code>" when reading a <code>double</code>, when <code>printf()</code> can use "<code>%f</code>" regardless of whether its argument is a <code>double</code> or a <code>float</code>?</p> <p>Example code:</p> <pre><code>double d; scanf("%lf",...
[ { "answer_id": 210591, "author": "MSN", "author_id": 6210, "author_profile": "https://Stackoverflow.com/users/6210", "pm_score": 9, "selected": true, "text": "%lf %lg %le %la" }, { "answer_id": 210595, "author": "Tanktalus", "author_id": 23512, "author_profile": "http...
2008/10/16
[ "https://Stackoverflow.com/questions/210590", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7598/" ]
210,601
<p>In C#, what is the best way to access a property of the derived class when the generic list contains just the base class.</p> <pre><code>public class ClassA : BaseClass { public object PropertyA { get; set; } } public class ClassB: BaseClass { public object PropertyB { get; set; } } public class BaseClass ...
[ { "answer_id": 210615, "author": "tvanfosson", "author_id": 12950, "author_profile": "https://Stackoverflow.com/users/12950", "pm_score": 2, "selected": false, "text": " BaseClass o = MyList[i];\n if (o is ClassB)\n {\n object k = ((ClassB)o).PropertyB;\n }\n if (o is Clas...
2008/10/16
[ "https://Stackoverflow.com/questions/210601", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26327/" ]
210,606
<p>Is there a way to invoke an external script or batch file from VC6 (and later) project files?</p> <p>I have a background process that I need to kill before attempting to build certain projects (DLLS, executables) and haven't found a way to successfully do so from the project itself. I'd like simply to call a batch...
[ { "answer_id": 210689, "author": "Jason Bunting", "author_id": 1790, "author_profile": "https://Stackoverflow.com/users/1790", "pm_score": 0, "selected": false, "text": "<!-- To modify your build process, add your task inside one of the targets below and uncomment it. \n Other similar ...
2008/10/16
[ "https://Stackoverflow.com/questions/210606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,607
<p>I would like to know many minutes between 2 dates?</p> <p>Example : Now - tommorow at the exact time would return me 1440.</p>
[ { "answer_id": 210609, "author": "FlySwat", "author_id": 1965, "author_profile": "https://Stackoverflow.com/users/1965", "pm_score": 3, "selected": false, "text": " DateTime date1 = DateTime.Now;\n DateTime date2 = DateTime.Now.AddDays(1);\n\n TimeSpan diff = date2.S...
2008/10/16
[ "https://Stackoverflow.com/questions/210607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14441/" ]
210,616
<p>I'm reading this C++ open source code and I came to a constructor but I don't get it ( basically because I don't know C++ :P ) </p> <p>I understand C and Java very well.</p> <pre><code> TransparentObject::TransparentObject( int w, int x, int y, int z ) : _someMethod( 0 ), _someOtherMethod( 0 ), _so...
[ { "answer_id": 210636, "author": "dmckee --- ex-moderator kitten", "author_id": 2509, "author_profile": "https://Stackoverflow.com/users/2509", "pm_score": 2, "selected": false, "text": "{}" }, { "answer_id": 210638, "author": "Jason Baker", "author_id": 2147, "author...
2008/10/16
[ "https://Stackoverflow.com/questions/210616", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20654/" ]
210,620
<p>I have created HTTP handlers. </p> <p>How do I create global variables for these handlers like I can with ASP.net web pages in global.asax?</p>
[ { "answer_id": 210626, "author": "Jason Bunting", "author_id": 1790, "author_profile": "https://Stackoverflow.com/users/1790", "pm_score": 4, "selected": true, "text": "System.Web.HttpContext.Current.Application[\"MyGlobalVariable\"] = myValue;\n System.Web.HttpContext.Current.Items[\"My...
2008/10/16
[ "https://Stackoverflow.com/questions/210620", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1100768/" ]
210,629
<p>Trying to answer to another post whose solution deals with IP addresses and netmasks, I got stuck with plain bitwise arithmetic.</p> <p>Is there a standard way, in Python, to carry on bitwise AND, OR, XOR, NOT operations assuming that the inputs are "32 bit" (maybe negative) integers or longs, and that the result m...
[ { "answer_id": 210707, "author": "pixelbeat", "author_id": 4421, "author_profile": "https://Stackoverflow.com/users/4421", "pm_score": 4, "selected": false, "text": "from numpy import uint32\n" }, { "answer_id": 210740, "author": "DzinX", "author_id": 18745, "author_p...
2008/10/16
[ "https://Stackoverflow.com/questions/210629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18770/" ]
210,637
<p>I have been looking at <a href="http://jquery.com/demo/thickbox/" rel="nofollow noreferrer">jQUery thickbox</a> for showing modal dialogs with images, it is great. But now I have the need to display a hidden div of content that contains an iFrame in a similar fashion, with a link to open the content. So I'd have s...
[ { "answer_id": 210654, "author": "Craig", "author_id": 27294, "author_profile": "https://Stackoverflow.com/users/27294", "pm_score": 2, "selected": false, "text": "<div class=\"jqmWindow\" id=\"modalDialog\"> \n <iframe frameborder=\"0\" id=\"jqmContent\" src=\"\"> \n </iframe> \...
2008/10/16
[ "https://Stackoverflow.com/questions/210637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13279/" ]
210,643
<p>I'd like to make a click event fire on an <code>&lt;input type="file"&gt;</code> tag programmatically.</p> <p>Just calling click() doesn't seem to do anything or at least it doesn't pop up a file selection dialog.</p> <p>I've been experimenting with capturing events using listeners and redirecting the event, but I...
[ { "answer_id": 3030174, "author": "Romas", "author_id": 365407, "author_profile": "https://Stackoverflow.com/users/365407", "pm_score": 8, "selected": false, "text": "<div style=\"display: block; width: 100px; height: 20px; overflow: hidden;\">\n<button style=\"width: 110px; height: 30px...
2008/10/16
[ "https://Stackoverflow.com/questions/210643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28655/" ]
210,645
<p>I'm currently creating a website for a client that will basically involve selling various files. This is obviously a really common thing to do, which is making me feel kind of foolish for not thinking of a method for doing it.</p> <p>Once the purchase has been made the customer should be taken to a page containing ...
[ { "answer_id": 210672, "author": "Christian Lescuyer", "author_id": 341, "author_profile": "https://Stackoverflow.com/users/341", "pm_score": 1, "selected": false, "text": "// Now send the file with header() magic\n header(\"Expires: Mon, 26 Nov 1962 00:00:00 GMT\");\n header(\"Last-Mo...
2008/10/16
[ "https://Stackoverflow.com/questions/210645", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12765/" ]
210,646
<p>I'm trying to determine how I can detect when the user changes the Windows Font Size from Normal to Extra Large Fonts, the font size is selected by executing the following steps on a Windows XP machine:</p> <ol> <li>Right-click on the desktop and select Properties.</li> <li>Click on the Appearance Tab.</li> <li>Sel...
[ { "answer_id": 211790, "author": "Tim Farley", "author_id": 4425, "author_profile": "https://Stackoverflow.com/users/4425", "pm_score": 2, "selected": false, "text": "int GetScreenDPI()\n{\n HDC hdcScreen = ::GetDC(NULL);\n int iDPI = -1; // assume failure\n if (hdcScreen) {\n iDPI...
2008/10/16
[ "https://Stackoverflow.com/questions/210646", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28760/" ]
210,650
<p>I'm loading an image from a file, and I want to know how to validate the image before it is fully read from the file.</p> <pre><code>string filePath = "image.jpg"; Image newImage = Image.FromFile(filePath); </code></pre> <p>The problem occurs when image.jpg isn't really a jpg. For example, if I create an empty te...
[ { "answer_id": 210660, "author": "Enrico Murru", "author_id": 68336, "author_profile": "https://Stackoverflow.com/users/68336", "pm_score": 0, "selected": false, "text": "Image openImage(string filename);\n" }, { "answer_id": 210671, "author": "MusiGenesis", "author_id": ...
2008/10/16
[ "https://Stackoverflow.com/questions/210650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1994/" ]
210,657
<p>I've defined an error-page in my web.xml:</p> <pre><code> &lt;error-page&gt; &lt;exception-type&gt;java.lang.Exception&lt;/exception-type&gt; &lt;location&gt;/error.jsp&lt;/location&gt; &lt;/error-page&gt; </code></pre> <p>In that error page, I have a custom tag that I created. The tag handler for this tag ...
[ { "answer_id": 1833962, "author": "David Smiley", "author_id": 92186, "author_profile": "https://Stackoverflow.com/users/92186", "pm_score": 2, "selected": false, "text": "<script type=\"text/javascript\">\n var pageLoadSuccessful = false;//set to true in footer.jsp\n dojo....
2008/10/16
[ "https://Stackoverflow.com/questions/210657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2527/" ]
210,666
<p>I have a CircleButton class in Actionscript. I want to know when someone externally has changed the 'on' property. I try listening to 'onChange' but it never hits that event handler.</p> <p>I know I can write the 'on' property as a get/setter but I like the simplicity of just using [Bindable]</p> <p>Can an object ...
[ { "answer_id": 215440, "author": "Laura", "author_id": 5103, "author_profile": "https://Stackoverflow.com/users/5103", "pm_score": 4, "selected": true, "text": "this.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, onOnChange);\n [Bindable(event=\"myOnChangeEvent\")]\n" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24727/" ]
210,682
<p>our partners sites leverages our iframes in their own websites. I was wondering if there is a way to track the analytics on the iframes. </p> <p>The problem is, if we also utilize these iframes on our own website, how do i avoid duplicate tracking where a visit is counted on our domain's analytics and also counted ...
[ { "answer_id": 210704, "author": "stevemegson", "author_id": 25028, "author_profile": "https://Stackoverflow.com/users/25028", "pm_score": 2, "selected": false, "text": "if ( location.href.indexOf(\"utm_source=mysite\") < 0 )\n{\n // Google Analytics code here\n}\n" }, { "answ...
2008/10/16
[ "https://Stackoverflow.com/questions/210682", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,692
<p>We have a proprietry system that we develop scripting code in. We currently do not have a developer environment (apart from Notepad++) and cannot debug or compile this code. We have to submit it to the vendor to insert the code into the test or live system. The language is essentially C like and has the same syntax...
[ { "answer_id": 210701, "author": "Michael Burr", "author_id": 12711, "author_profile": "https://Stackoverflow.com/users/12711", "pm_score": 2, "selected": false, "text": "/Zs" } ]
2008/10/16
[ "https://Stackoverflow.com/questions/210692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,711
<p>In ASP.NET MVC is there an equivalent of the Html.ActionLink helper for Img tags? </p> <p>I have a controller action that outputs a dynamically generated JPEG and I wanted to use the same Lambda expressions to link to it as I do HREFs using ActionLink.</p> <p>Alternatively, a helper that just gives the URL to a ro...
[ { "answer_id": 309413, "author": "adamjcooper", "author_id": 27867, "author_profile": "https://Stackoverflow.com/users/27867", "pm_score": 2, "selected": false, "text": "<a href=\"<%=Html.BuildUrlFromExpression<MyController>(c => c.MyAction())%>\">\n <%=Html.Image(\"~/Content/MyImage...
2008/10/17
[ "https://Stackoverflow.com/questions/210711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27860/" ]
210,717
<p>How do I go about setting a <code>&lt;div&gt;</code> in the center of the screen using jQuery?</p>
[ { "answer_id": 210733, "author": "Tony L.", "author_id": 21905, "author_profile": "https://Stackoverflow.com/users/21905", "pm_score": 11, "selected": true, "text": "jQuery.fn.center = function () {\n this.css(\"position\",\"absolute\");\n this.css(\"top\", Math.max(0, (($(window)....
2008/10/17
[ "https://Stackoverflow.com/questions/210717", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27294/" ]
210,719
<p>I am using log.properties to configure logging for a Java app. Each class gets its own logger named after itself (e.g. com.company.program.ClassX).</p> <p>I want to set a custom formatter for just one log, and leave the handler with the SimpleFormatter. Is this possible?</p> <p>I am not interested in using log4j o...
[ { "answer_id": 212785, "author": "davetron5000", "author_id": 3029, "author_profile": "https://Stackoverflow.com/users/3029", "pm_score": 0, "selected": false, "text": "System.out.println" } ]
2008/10/17
[ "https://Stackoverflow.com/questions/210719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2204759/" ]
210,725
<p>I have a drop down like this on my page:</p> <pre><code>&lt;p&gt; &lt;%= f.label :episode_id %&gt;&lt;br /&gt; &lt;%= f.collection_select(:episode_id, @episodes, :id, :show) %&gt; &lt;/p&gt; </code></pre> <p>An episode has an id and <code>belongs_to</code> to a show which has a name. In the dropdown, I'...
[ { "answer_id": 210825, "author": "Michael Sepcot", "author_id": 6033, "author_profile": "https://Stackoverflow.com/users/6033", "pm_score": 2, "selected": true, "text": "show_name def show_name\n show.name\nend\n" }, { "answer_id": 210918, "author": "salt.racer", "author...
2008/10/17
[ "https://Stackoverflow.com/questions/210725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2109/" ]
210,729
<p>I need a data structure that can store non-overlapping ranges within a single dimension. The entire range of the dimension need not be completely covered.</p> <p>An example would be a conference room scheduler. The dimension is time. No two schedules may overlap. The conference room isn't always scheduled. In other...
[ { "answer_id": 210750, "author": "Sklivvz", "author_id": 7028, "author_profile": "https://Stackoverflow.com/users/7028", "pm_score": 1, "selected": false, "text": "(RoomId, StartTime)\n (boundary not between colBoudaryA and colBoundaryB)\n (startBoundary < endBoundary)\n" }, { "a...
2008/10/17
[ "https://Stackoverflow.com/questions/210729", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24396/" ]
210,738
<p>Could somebody please point me in the right direction for learning how to do networking in C#/.net 3.5? Code samples and explanations are welcome. Basically I am looking for how to do asynchronous/multithreaded server/client models.</p> <p>I am fairly comfortable with the basics in how to accomplish this in C++ wit...
[ { "answer_id": 210775, "author": "Scott Weinstein", "author_id": 25201, "author_profile": "https://Stackoverflow.com/users/25201", "pm_score": 0, "selected": false, "text": "System.Net.Sockets.Socket" } ]
2008/10/17
[ "https://Stackoverflow.com/questions/210738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,743
<p>How can I modify the <code>NSDatePickerElementFlags</code> for the <code>NSDatePicker</code> in row templates for <code>NSDate</code> properties returned by <code>[NSPredicateRowEditorTemplate templatesWithAttributeKeyPaths:inEntityDescription:]</code>? I would like the <code>NSDatePicker</code> to show hrs:minutes ...
[ { "answer_id": 210775, "author": "Scott Weinstein", "author_id": 25201, "author_profile": "https://Stackoverflow.com/users/25201", "pm_score": 0, "selected": false, "text": "System.Net.Sockets.Socket" } ]
2008/10/17
[ "https://Stackoverflow.com/questions/210743", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2140/" ]
210,761
<p>Upon page load I want to move the cursor to a particular field. No problem. But I also need to select and highlight the default value that is placed in that text field.</p>
[ { "answer_id": 210764, "author": "John Millikin", "author_id": 3560, "author_profile": "https://Stackoverflow.com/users/3560", "pm_score": 8, "selected": true, "text": "var input = document.getElementById('myTextInput');\ninput.focus();\ninput.select(); <input id=\"myTextInput\" value=\"...
2008/10/17
[ "https://Stackoverflow.com/questions/210761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4444/" ]
210,787
<p>I have a xml which is max 3 levels deep. Now by using C# or Xpath what the best method to check the whether all the child nodes under a parent node are empty.</p> <p>Thanks in Advance.</p>
[ { "answer_id": 210822, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 4, "selected": true, "text": "<foo>\n <bar>\n <baz/>\n <baz>Hello, world!</baz>\n <baz><qux/></baz>\n </bar>\n</foo>\n foo/bar foo/bar/*[count(*...
2008/10/17
[ "https://Stackoverflow.com/questions/210787", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28773/" ]
210,789
<p>While building a small experimental HTTP server, I need to implement the persistent connection feature of HTTP 1.1 (and the pipelining feature). How do I test it? Using a browser like Firefox gives me little or no control, and it's hard to check. Any ideas?</p> <p>Thanks</p>
[ { "answer_id": 210954, "author": "Javier", "author_id": 11649, "author_profile": "https://Stackoverflow.com/users/11649", "pm_score": 1, "selected": false, "text": "-k" } ]
2008/10/17
[ "https://Stackoverflow.com/questions/210789", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25645/" ]
210,809
<p>Essentially my question is, does anyone know of a utility for inspecting the <strong>buffer cache</strong> in linux?</p>
[ { "answer_id": 18398941, "author": "slm", "author_id": 33204, "author_profile": "https://Stackoverflow.com/users/33204", "pm_score": 4, "selected": true, "text": "fincore $ fincore [options] files...\n\n --pages=false Do not print pages\n --summarize When comparing multiple...
2008/10/17
[ "https://Stackoverflow.com/questions/210809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10747/" ]
210,820
<p>I have a webpage that redirects to another webpage like this:</p> <pre><code>http://www.myOtherServer.com/Sponsor.php?RedirectPage=http://mylink.com/whereIwasgoingtogo.html </code></pre> <p>Then the Sponsor.php page displays an ad with a link saying "Continue to your page" that links to the passed in RedirectPage....
[ { "answer_id": 1089103, "author": "Tom Ritter", "author_id": 8435, "author_profile": "https://Stackoverflow.com/users/8435", "pm_score": 4, "selected": true, "text": " http://cnn.com/sponsor.php?redirectpage=http://bit.ly/jh2l14\n http://cnn.com/sponsor.php?redirectpage=javascript:locat...
2008/10/17
[ "https://Stackoverflow.com/questions/210820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3291/" ]
210,821
<p>I have read the post <a href="http://www.julienlecomte.net/blog/2007/10/28/" rel="noreferrer">here</a> about using setTimeout() during intensive DOM processing (using JavaScript), but how can I integrate this function with the below code? The below code works fine for a small number of options, but when the number o...
[ { "answer_id": 210968, "author": "Borgar", "author_id": 27388, "author_profile": "https://Stackoverflow.com/users/27388", "pm_score": 4, "selected": false, "text": "function processLoop( actionFunc, numTimes, doneFunc ) {\n var i = 0;\n var f = function () {\n if (i < numTimes) {\n ...
2008/10/17
[ "https://Stackoverflow.com/questions/210821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2755/" ]
210,826
<p>I have a mobile .NET solution and decided to sign the assemblies. Compilation completes without errors but gives the warning</p> <p><strong>'CompactUI.Business.PocketPC.asmmeta, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not signed correctly.</strong></p> <p>The application is working fine but I can...
[ { "answer_id": 224328, "author": "Marcus Griep", "author_id": 28645, "author_profile": "https://Stackoverflow.com/users/28645", "pm_score": 1, "selected": false, "text": "null" }, { "answer_id": 225094, "author": "MysticSlayer", "author_id": 28139, "author_profile": "...
2008/10/17
[ "https://Stackoverflow.com/questions/210826", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14027/" ]
210,827
<p>I need to ask for input in console and wait for few sec may be a min after that I need to default to some value. How can basically time our on console input in c# and proceed with default settings? If you have sample code that would be great.</p>
[ { "answer_id": 210859, "author": "Nathan W", "author_id": 6335, "author_profile": "https://Stackoverflow.com/users/6335", "pm_score": 2, "selected": false, "text": "static void Main(string[] args)\n {\n System.Timers.Timer timer = new System.Timers.Timer(60000);\n ...
2008/10/17
[ "https://Stackoverflow.com/questions/210827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13432/" ]
210,829
<p>What is an NP-complete problem? Why is it such an important topic in computer science?</p>
[ { "answer_id": 210892, "author": "Vincent Ramdhanie", "author_id": 27439, "author_profile": "https://Stackoverflow.com/users/27439", "pm_score": 5, "selected": false, "text": "P NP NP-Complete" }, { "answer_id": 210932, "author": "Kyle Cronin", "author_id": 658, "auth...
2008/10/17
[ "https://Stackoverflow.com/questions/210829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15055/" ]
210,835
<p>What does the term <b>referential transparency</b> mean? I've heard it described as "it means you can replace equals with equals" but this seems like an inadequate explanation.</p>
[ { "answer_id": 210871, "author": "Brian R. Bondy", "author_id": 3153, "author_profile": "https://Stackoverflow.com/users/3153", "pm_score": 7, "selected": false, "text": "int plusOne(int x)\n{\n return x+1;\n}\n //global G\nint G = 10;\n\nint plusG(int x)\n{//G can be modified externall...
2008/10/17
[ "https://Stackoverflow.com/questions/210835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15055/" ]
210,836
<p>In xp 32bit this line compiles with not problem however in vista 64bit this line:</p> <pre><code>m_FuncAddr = ::GetProcAddress (somthing); </code></pre> <p>gives the following error</p> <blockquote> <p>error C2440: '=' : cannot convert from 'FARPROC' to 'int (__cdecl *)(void)'</p> </blockquote> <p>GetProcAdd...
[ { "answer_id": 210857, "author": "Nick", "author_id": 26240, "author_profile": "https://Stackoverflow.com/users/26240", "pm_score": 2, "selected": false, "text": "typedef int (WINAPI *FFuncType)();\nFFuncType m_FuncAddr;\nm_FuncAddr = (FFuncType)::GetProcAddress (somthing);\n" }, { ...
2008/10/17
[ "https://Stackoverflow.com/questions/210836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14587/" ]
210,837
<p>How do I share state amongst TestMethods in MSTest. These tests would be run as Ordered Tests and in sequence.</p> <pre><code> private TestContext testContext; public TestContext TestContext { get { return this.testContext; } set { this.testContext = value;} } [TestMethod] ...
[ { "answer_id": 403466, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "private static List<string> SharedValues = new List<string>();\n\n[TestMethod]\npublic void TestMethod1()\n{\n SharedValues....
2008/10/17
[ "https://Stackoverflow.com/questions/210837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28413/" ]
210,881
<p>I have a KML file overlay on an embedded Google Map using the GGeoXml object. I'd like to be able to access specific placemarks in the KML file from Javascript (for example to highlight a selected polygon on the map in response to user action). </p> <p>Ideally what I'd like to do is something like this (pseudo-code...
[ { "answer_id": 375726, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "GEvent.addListener(map, 'addoverlay', function(o) {\n kmlmarkers.push(o);\n}\n" }, { "answer_id": 422581, "auth...
2008/10/17
[ "https://Stackoverflow.com/questions/210881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/239663/" ]
210,882
<p>I'm being asked to add queryability to a database (Oracle) filled with mostly binary data. So I need to be able to query binary ranges within a blobs of a few kilobytes. I've never done this before, so I'm wondering what are some good practices and pitfalls to consider when starting a project like this.</p> <p>Than...
[ { "answer_id": 210963, "author": "Jamie Love", "author_id": 27308, "author_profile": "https://Stackoverflow.com/users/27308", "pm_score": 2, "selected": false, "text": "create or replace function retrieve_data_from_blob (\n b blob\n , tag_code\n)\nas\n lw long raw;\n data var...
2008/10/17
[ "https://Stackoverflow.com/questions/210882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15124/" ]
210,922
<p>What control type should I use - <code>Image</code>, <code>MediaElement</code>, etc.?</p>
[ { "answer_id": 213786, "author": "Joel B Fant", "author_id": 22211, "author_profile": "https://Stackoverflow.com/users/22211", "pm_score": 5, "selected": false, "text": "PictureBox System.Windows.Forms WindowsFormsIntegration System.Drawing <Window x:Class=\"GifExample.Window1\"\n xml...
2008/10/17
[ "https://Stackoverflow.com/questions/210922", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2522462/" ]
210,936
<p>Having an issue with some images using IE7 - work fine in 6 and in all versions of Firefox.</p> <p>Has anyone run across this before? I know I've had it happen in the past (and I googled a fix, but darned if I can find the fix again... note to self, document things like this for future ;) )</p> <pre><code>&lt;div ...
[ { "answer_id": 211028, "author": "Eric Wendelin", "author_id": 25066, "author_profile": "https://Stackoverflow.com/users/25066", "pm_score": 2, "selected": false, "text": "<a href=\"files/image.jsp\" title=\"Image\">\n <img src=\"files/images/image.jpg\" alt=\"Image\" width=\"171\" heig...
2008/10/17
[ "https://Stackoverflow.com/questions/210936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,939
<p>I've been developing a GUI library for Windows (as a personal side project, no aspirations of usefulness). For my main window class, I've set up a hierarchy of option classes (using the <a href="http://www.parashift.com/c++-faq-lite/named-parameter-idiom.html" rel="nofollow noreferrer">Named Parameter Idiom</a>), be...
[ { "answer_id": 211106, "author": "Patrick Johnmeyer", "author_id": 363, "author_profile": "https://Stackoverflow.com/users/363", "pm_score": 1, "selected": false, "text": "class sharedWindowOpts\n{\npublic:\n\n sharedWindowOpts() {};\n\n // Commonly used options\n template <class optT...
2008/10/17
[ "https://Stackoverflow.com/questions/210939", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12193/" ]
210,945
<p>I have seen many examples, with many 'no, you missed something' comments. What is the right way to match an e-mail address?</p> <p>For Sanity sake, only fully-qualified domain names, no @localhost allowed. (or, both ways)</p> <p>Subdomains must be allowed (issac@deptartment.company.museum)</p>
[ { "answer_id": 212008, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https://Stackoverflow.com/users/3043", "pm_score": -1, "selected": false, "text": "([a-zA-Z0-9_\\-])([a-zA-Z0-9_\\-\\.]*)@(\\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}|((([a-zA-Z0-9\\...
2008/10/17
[ "https://Stackoverflow.com/questions/210945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/144/" ]
210,975
<p>Looking for an example in linq about how to insert a row of a gridview into datacontext. </p>
[ { "answer_id": 212008, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https://Stackoverflow.com/users/3043", "pm_score": -1, "selected": false, "text": "([a-zA-Z0-9_\\-])([a-zA-Z0-9_\\-\\.]*)@(\\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}|((([a-zA-Z0-9\\...
2008/10/17
[ "https://Stackoverflow.com/questions/210975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
210,978
<p>I have a question about using <code>os.execvp</code> in Python. I have the following bit of code that's used to create a list of arguments:</p> <pre> args = [ "java" , classpath , "-Djava.library.path=" + lib_path() , ea , "-Xmx1000m" , "-server" , "code_swarm" , par...
[ { "answer_id": 210982, "author": "CesarB", "author_id": 28258, "author_profile": "https://Stackoverflow.com/users/28258", "pm_score": 5, "selected": true, "text": "#!/usr/bin/python\nimport sys\nprint sys.argv\n" } ]
2008/10/17
[ "https://Stackoverflow.com/questions/210978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28804/" ]
210,985
<p>I'm doing some optimising for my site and am trying to figure out just how big some inline code can be before it can justify having it's own file instead of being written inline.</p> <p>My guess on how to measure it would be that the amount of code (CSS or JS in this case) would need to be bigger than the HTTP pack...
[ { "answer_id": 217491, "author": "mjallday", "author_id": 6084, "author_profile": "https://Stackoverflow.com/users/6084", "pm_score": 0, "selected": false, "text": "HTTP/1.1 304 Not Modified\nCache-Control: max-age=604800, public\nLast-Modified: Tue, 17 Jun 2008 17:20:41 GMT\nDate: Mon, ...
2008/10/17
[ "https://Stackoverflow.com/questions/210985", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6084/" ]
210,986
<p>Newbie question...</p> <p>If I have a file that is in the root of the web app. How do I programmaticaly query the path of that file? ie, what directory it is in?</p>
[ { "answer_id": 210993, "author": "harpo", "author_id": 4525, "author_profile": "https://Stackoverflow.com/users/4525", "pm_score": 2, "selected": false, "text": "System.Web.HttpServerUtility.MapPath( \"~/filename.ext\" );\n System.Web.Hosting.VirtualPathUtility.ToAbsolute( \"~/filename.e...
2008/10/17
[ "https://Stackoverflow.com/questions/210986", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10431/" ]
210,996
<p>In spring you can initialize a bean by having the applicationContext.xml invoke a constructor, or you can set properties on the bean. What are the trade offs between the two approaches? Is it better to have a constructor (which enforces the contract of having everything it needs in one method) or is it better to h...
[ { "answer_id": 211112, "author": "Dónal", "author_id": 2648, "author_profile": "https://Stackoverflow.com/users/2648", "pm_score": 2, "selected": false, "text": "@PostConstruct afterProperties() afterPropertiesSet() <bean>" }, { "answer_id": 211141, "author": "lycono", "a...
2008/10/17
[ "https://Stackoverflow.com/questions/210996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6580/" ]
210,998
<p>I am attempting to insert a Canvas3D object inside a Swing JPanel, but the code doesn't seem to be working (i.e. nothing happens):</p> <pre> Canvas3D canvas = new Canvas3D(SimpleUniverse.getPreferredConfiguration()); SimpleUniverse universe = new SimpleUniverse(canvas); BranchGroup root = ne...
[ { "answer_id": 211131, "author": "Simon Lehmann", "author_id": 27011, "author_profile": "https://Stackoverflow.com/users/27011", "pm_score": 3, "selected": true, "text": "canvasPanel.setLayout(new BorderLayout());\n" } ]
2008/10/17
[ "https://Stackoverflow.com/questions/210998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23845/" ]
211,001
<p>In a normal web app w/ login and secure data, what is an easy way to secure that data and prevent it from being seen by using the browser's back button, once a user logs out? </p>
[ { "answer_id": 211079, "author": "Wedge", "author_id": 332, "author_profile": "https://Stackoverflow.com/users/332", "pm_score": 4, "selected": true, "text": " Cache-Control: no-cache\n Expires: Fri, 31 Dec 1998 12:00:00 GMT\n" } ]
2008/10/17
[ "https://Stackoverflow.com/questions/211001", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4444/" ]
211,008
<p>How can I detect in C# whether two files are absolutely identical (size, content, etc.)?</p>
[ { "answer_id": 211042, "author": "Charlie", "author_id": 18529, "author_profile": "https://Stackoverflow.com/users/18529", "pm_score": 5, "selected": false, "text": "static bool FilesAreEqual( string f1, string f2 )\n{\n // get file length and make sure lengths are identical\n long...
2008/10/17
[ "https://Stackoverflow.com/questions/211008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
211,025
<p>I have been maintaining <a href="http://github.com/Pistos/watir-mirror" rel="noreferrer">the git mirror</a> of <a href="http://wtr.rubyforge.org/" rel="noreferrer">the watir project</a>. Some time a couple weeks ago, we had someone ready to submit their first git-based patch. Unfortunately, we ran into some issues...
[ { "answer_id": 4938148, "author": "Todd Wagner", "author_id": 608775, "author_profile": "https://Stackoverflow.com/users/608775", "pm_score": 4, "selected": false, "text": "git svn reset --r XXXXX git svn find-rev XXXXX git svn reset -r XXXXX" }, { "answer_id": 16592981, "aut...
2008/10/17
[ "https://Stackoverflow.com/questions/211025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28558/" ]
211,034
<p>I'm working on a small UML editor project, in Java, that I started a couple of months ago. After a few weeks, I got a working copy for a UML class diagram editor.</p> <p>But now, I'm redesigning it completely to support other types of diagrams, such a sequence, state, class, etc. This is done by implementing a grap...
[ { "answer_id": 211105, "author": "Justin Bozonier", "author_id": 9401, "author_profile": "https://Stackoverflow.com/users/9401", "pm_score": 3, "selected": true, "text": "{ width:100, height:50, position:(10,25), content:\"Am I certain?\", edge-connections:null}\n DiagramController\n{\n ...
2008/10/17
[ "https://Stackoverflow.com/questions/211034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10687/" ]
211,035
<p>Today is officially my first day with C++ :P</p> <p>I've downloaded Visual C++ 2005 Express Edition and Microsoft Platform SDK for Windows Server 2003 SP1, because I want to get my hands on the open source <a href="http://code.google.com/p/enso" rel="nofollow noreferrer">Enso Project</a>. </p> <p>So, after install...
[ { "answer_id": 211117, "author": "Michael Burr", "author_id": 12711, "author_profile": "https://Stackoverflow.com/users/12711", "pm_score": 2, "selected": false, "text": "vsvars32.bat vcvars32.bat" }, { "answer_id": 211164, "author": "jussij", "author_id": 14738, "aut...
2008/10/17
[ "https://Stackoverflow.com/questions/211035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20654/" ]
211,037
<p>Similar question as <a href="https://stackoverflow.com/questions/56722/automated-processing-of-an-email-in-java">this one</a> but for a Microsoft Environment.</p> <p>Email --> Exchange Server -->[something]</p> <p>For the [something] I was using Outlook 2003 &amp; C# but it <em>feels</em> messy (A program is tryin...
[ { "answer_id": 1808996, "author": "Pawel Lesnikowski", "author_id": 80894, "author_profile": "https://Stackoverflow.com/users/80894", "pm_score": 1, "selected": false, "text": "using(Imap imap = new Imap())\n{\n imap.Connect(\"imap.company.com\");\n imap.UseBestLogin(\"user\", \"pa...
2008/10/17
[ "https://Stackoverflow.com/questions/211037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5188/" ]
211,041
<p>Should I be writing Doc Comments for all of my java methods? </p>
[ { "answer_id": 211060, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 7, "selected": true, "text": "/** \n * Get the current value of the foo property.\n * The foo property controls the initial guess used by the bla algorithm in...
2008/10/17
[ "https://Stackoverflow.com/questions/211041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24717/" ]
211,043
<p>The IntelliJ IDEA short-cut to reformat source code is <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>L</kbd>. This happens to lock the screen in KDE (Gnome too?). How can I disable this so IntelliJ receives the key sequence?</p>
[ { "answer_id": 32469733, "author": "Rodrigo Rodrigues", "author_id": 3128246, "author_profile": "https://Stackoverflow.com/users/3128246", "pm_score": 1, "selected": false, "text": "Global Keyboard shortcuts KDE Session Manager Lock Session" }, { "answer_id": 33958675, "autho...
2008/10/17
[ "https://Stackoverflow.com/questions/211043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
211,046
<p>What's a good way to generate an icon in-memory in python? Right now I'm forced to use pygame to draw the icon, then I save it to disk as an .ico file, and then I load it from disk as an ICO resource...</p> <p>Something like this:</p> <pre><code> if os.path.isfile(self.icon): icon_flags = win32con.LR_LO...
[ { "answer_id": 211304, "author": "Toni Ruža", "author_id": 6267, "author_profile": "https://Stackoverflow.com/users/6267", "pm_score": 3, "selected": true, "text": "from wx import EmptyIcon\nicon = EmptyIcon()\nicon.CopyFromBitmap(your_wxBitmap)\n frame.SetIcon(icon)\n" }, { "ans...
2008/10/17
[ "https://Stackoverflow.com/questions/211046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15055/" ]