Id
int64
4
8.51M
PostTypeId
int64
1
7
AcceptedAnswerId
int64
7
75.5M
ParentId
int64
4
41.8M
Score
int64
-208
27.7k
ViewCount
int64
11
12.4M
Body
stringlengths
0
45k
Title
stringlengths
2
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
225
CreationDate
stringdate
2008-07-31 21:42:52
2011-12-14 18:48:47
LastActivityDate
stringdate
2008-08-01 12:19:17
2023-03-05 04:40:26
LastEditDate
stringdate
2008-08-01 13:54:25
2023-03-05 03:12:45
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
-1
21.1M
Tags
listlengths
1
6
13,164
2
null
13,160
2
null
It depends on how often you are going to be calling the web service. If you're going to be calling it almost constantly, it would probably be better to use method #2. However, if it's not going to be getting called quite so often, you are better off using method #1, and only instantiating it when you need it.
null
CC BY-SA 2.5
null
2008-08-16T15:04:56.603
2008-08-16T15:04:56.603
null
null
423
null
13,127
2
null
8,398
6
null
To debug in Visual Studio 2005, make sure that "disable script debugging" is unchecked. Then load your webpage in Internet Explorer. From the debug menu inside of Visual Studio 2005, select "Attach to process" and pick the instance of Internet Explorer that has your web page loaded. Alternatively, the [Firebug](http:/...
null
CC BY-SA 3.0
null
2008-08-16T13:43:09.450
2012-11-01T20:10:08.373
2012-11-01T20:10:08.373
63,550
1,538
null
13,130
2
null
3,362
115
null
Even if you capture the `keydown`/`keyup` event, those are the only events that the tab key fires, you still need some way to prevent the default action, moving to the next item in the tab order, from occurring. In Firefox you can call the `preventDefault()` method on the event object passed to your event handler. In ...
null
CC BY-SA 4.0
null
2008-08-16T13:55:26.087
2018-07-11T04:17:08.470
2018-07-11T04:17:08.470
1,449,542
1,538
null
13,171
2
null
13,160
0
null
Right now I made a solution for a mobile device and it turns to be used on irregular times, it could be used in 10 minutes, 1 hour, 4 hours its very variable, it seems that the better aproach is the first strategy. Last year we went on a project where we used webservices, the fact is that we instantiated our webservic...
null
CC BY-SA 2.5
null
2008-08-16T15:24:19.807
2008-08-16T15:24:19.807
null
null
1,130,097
null
13,170
1
13,255
null
6
7,958
From time to time I get a System.Threading.ThreadStateException when attempting to restart a thread. The code in question is as follows: ``` // Make sure the thread is done stopping while (this.mThread.ThreadState == ThreadState.Running) { Thread.Sleep(0); } // Respawn a thread if the current one is stopped or do...
A ThreadStateException occures when trying to restart a thread
CC BY-SA 3.0
0
2008-08-16T15:24:19.153
2012-08-11T15:40:55.323
2012-08-11T15:40:55.323
1,477,076
1,185
[ "c#", ".net", "multithreading", "exception" ]
13,167
2
null
13,154
-8
null
SVN is very difficult to get setup in the Windows environment, at least if you want hosted SVN, a local repository is different. My suggestion is stick with the company or search out a cheaper SVN that will not cost as much money. They are not difficult to setup, but you would hate to lose all your source code becaus...
null
CC BY-SA 2.5
null
2008-08-16T15:19:18.943
2008-08-16T15:24:44.410
2008-08-16T15:24:44.410
17
17
null
13,194
2
null
13,021
3
null
The [YUI library](http://developer.yahoo.com/yui/yahoo/) library has code which handles namespacing using a function which you may find preferable. Other libraries may do this also.
null
CC BY-SA 2.5
null
2008-08-16T16:06:03.860
2008-08-16T16:06:03.860
null
null
199
null
13,195
2
null
12,896
1
null
You're probably not going to have much fun writing your own MIME parser. The reason you are finding "overdeveloped mail handling packages" is because MIME is a really complex set of rules/formats/encodings. MIME parts can be recursive, which is part of the fun. I think your best bet is to write the best MIME handler...
null
CC BY-SA 2.5
null
2008-08-16T16:06:14.577
2008-08-16T16:06:14.577
null
null
430
null
13,145
2
null
6,891
2
null
Don't do: ``` try { // some code } catch (Exception ex) { throw ex; } ``` As this will lose the stack trace. Instead do: ``` try { // some code } catch (Exception ex) { throw; } ``` Just the throw will do, you only need to pass the exception variable if you want it to be the inner exception on a new cust...
null
CC BY-SA 2.5
null
2008-08-16T14:24:37.277
2008-08-16T14:24:37.277
null
null
905
null
13,200
1
13,318
null
6
2,117
I use cruisecontrol.rb for CI and FogBugz for bug tracking, but the more general the answers, the better. First is the technical problem: is there an API for FogBugz? Are there good tutorials, or better yet, pre-written code? Second is the procedural problem: what, exactly, should the CI put in the bug tracker when ...
How do I integrate my continuous integration system with my bug tracking system?
CC BY-SA 2.5
0
2008-08-16T16:09:16.240
2008-09-23T08:41:01.510
null
null
1,190
[ "continuous-integration", "bug-tracking", "fogbugz", "cruisecontrol.rb" ]
13,160
1
13,164
null
2
764
I've created a webservice and when I want to use its methods I instantiate it in the a procedure, call the method, and I finally I dispose it, however I think also it could be okay to instantiate the webservice in the "private void Main_Load(object sender, EventArgs e)" event. The thing is that if I do it the first wa...
Best practice for webservices
CC BY-SA 3.0
null
2008-08-16T14:58:30.860
2012-06-13T15:55:28.943
2012-06-13T15:55:28.943
851,273
1,130,097
[ "web-services" ]
13,189
2
null
13,154
2
null
For simple security requirements, setting up Subversion with svnserve is almost trivial. Even getting it running under Apache for more extensive security needs is not overly difficult. This is a good walk-through: [http://donie.homeip.net:8080/pebble/Steve/2006/02/27/1141079943879.html](http://donie.homeip.net:8080/p...
null
CC BY-SA 2.5
null
2008-08-16T15:59:27.383
2008-08-16T15:59:27.383
null
null
1,554
null
13,185
2
null
3,088
0
null
My personal experience started back in elementary using Logo Writer (which in a way has evolved into Scratch), granted I was a little kid and computers where not as awesome as they are nowadays, but for the time being it took me places I hadn't been before... I think that's how I got hooked in the business... I could s...
null
CC BY-SA 3.0
null
2008-08-16T15:56:38.293
2011-10-18T14:10:18.433
2011-10-18T14:10:18.433
496,830
1,549
null
13,207
2
null
13,170
1
null
A ThreadStateException is thrown because you're trying to start a thread that's not in a startable state. The most likely situations would be that it's already running, or that it has fully exited. There are potentially a couple things that might be happening. First is, the thread might have transitioned from Running ...
null
CC BY-SA 2.5
null
2008-08-16T16:18:58.060
2008-08-16T16:18:58.060
null
null
1,554
null
13,197
2
null
7,937
8
null
I don't know anything better than an Iframe But it does occur to me that this could be added in JS by looking for a couple of variables 1. IE 6 2. A high Z-Index (you tend to have to set a z-index if you are floating a div over) 3. A box element Then a script that looks for these items and just add an iframe lay...
null
CC BY-SA 2.5
null
2008-08-16T16:06:35.840
2008-08-16T16:06:35.840
null
null
3,582
null
13,208
2
null
4,627
0
null
The new framework is .Net 3.5, you'll have a new assembly System.Core, + a few more if you use features like Linq .Net 3.5 comes with the new C#3.0 compiler ASP.Net is still version 2.0 Lovely and confusing isn't it ;-) You should upgrade the .Net framework on the server to .Net 3.5 SP1, but you're still going to b...
null
CC BY-SA 2.5
null
2008-08-16T16:20:43.673
2008-08-16T16:20:43.673
null
null
905
null
13,212
2
null
13,200
0
null
CC comes with a utility that warns you when builds fail, it probably isn't worth logging the failing build in FogBugz - you don't need to track issues that are immediately resolved (as most broken builds will be) To go the other way round (FogBugz showing checkins that fixed the issue) you need a web based repository ...
null
CC BY-SA 2.5
null
2008-08-16T16:23:57.770
2008-08-16T16:23:57.770
null
null
905
null
13,206
2
null
13,128
27
null
You could extract the object files from each library with ``` ar x <library name> ``` and then merge them all into a new library with ``` ar cs <new library name> <list each extracted object file> ```
null
CC BY-SA 4.0
null
2008-08-16T16:18:30.823
2022-06-27T21:20:50.907
2022-06-27T21:20:50.907
63,550
1,491
null
13,213
1
13,218
null
5
2,549
I see often (rewritten) URLs without ID in it, like on some wordpress installations. What is the best way of achieve this? Example: site.com/product/some-product-name/ Maybe to keep an array of page names and IDs in cache, to avoid DB query on every page request? How to avoid conflicts, and what are other issues on usi...
How to avoid conflict when not using ID in URLs
CC BY-SA 4.0
null
2008-08-16T16:24:58.827
2022-03-31T19:43:06.250
2022-03-31T19:43:06.250
5,446,749
1,407
[ "url", "url-rewriting" ]
13,216
2
null
13,213
1
null
As long as product names are unique it shouldn't be an issue. It won't take any longer (at least not significant) to look up a product by unique name than numeric ID as long as the column is indexed.
null
CC BY-SA 2.5
null
2008-08-16T16:30:10.143
2008-08-16T16:30:10.143
null
null
905
null
13,220
2
null
13,204
2
null
Are you sure the temporary file is being created correctly when running as a cron job? The working directory for your script will either be specified in the HOME environment variable, or the /etc/passwd entry for the user that installed the cron job. If deploy does not have write permissions for the directory in which ...
null
CC BY-SA 2.5
null
2008-08-16T16:34:37.357
2008-08-16T16:34:37.357
null
null
1,491
null
13,218
2
null
13,213
3
null
Using an ID presents the same conundrum, really--you're just checking for a different value in your database. The "some-product-name" part of your URL above is also something unique. Some people call them slugs (Wordpress, also permalinks). So instead of querying the database for a row that has the particular ID, you'r...
null
CC BY-SA 2.5
null
2008-08-16T16:32:16.787
2008-08-16T16:32:16.787
null
null
1,344
null
13,210
2
null
4,627
1
null
GateKiller, .NET 3.0 and .NET 3.5 did not change the version of the CLR, so "using ASP.NET 3.5" is a more complicated thing that it sounds like it should be at first. In essence, you're still running on the 2.0 CLR, but you're using the C# 3.0 compiler and linking against the 3.5 libraries. It means adding a bunch of ...
null
CC BY-SA 2.5
null
2008-08-16T16:22:39.737
2008-08-16T16:22:39.737
null
null
1,554
null
13,221
2
null
2,970
-1
null
We had been hacked from same guys apparently! Or bots, in our case. They used SQL injection in URL on some old classic ASP sites that nobody maintain anymore. We found attacking IPs and blocked them in IIS. Now we must refactor all old ASP. So, my advice is to take a look at IIS logs first, to find if problem is in you...
null
CC BY-SA 2.5
null
2008-08-16T16:35:18.043
2008-08-16T16:35:18.043
null
null
1,407
null
13,224
1
13,228
null
6
5,576
I've included a mobile web form in my asp.net project, I thought that it could/should be seen just for my mobile users but I realize that it can also be seen from any browser, I don't see problem there cause I could diff the access using HttpBrowserCapabilities.IsMobileDevice=true and transferring to the appropiate asp...
Mobile device is detected as non mobile device
CC BY-SA 2.5
0
2008-08-16T16:42:27.827
2010-10-28T09:51:44.667
2009-11-15T13:52:31.817
1,796
1,130,097
[ "asp.net", "mobile", "mobile-website" ]
13,214
2
null
13,170
6
null
It's possible for a thread to be in more than one state at once therefore the ThreadState property is actually a bitmap of possible states. So testing for equality with just one state will not give you the right result. You would need to do something like: ``` if((mThread.ThreadState & ThreadState.Running) != 0) ``` ...
null
CC BY-SA 2.5
null
2008-08-16T16:25:07.003
2008-08-16T16:25:07.003
null
null
887
null
13,193
2
null
13,021
19
null
Javascript doesn't have stand-alone namespaces. It has functions, which can provide scope for resolving names, and objects, which can contribute to the named data accessible in a given scope. Here's your example, corrected: ``` var namespaces = { com: { example: { /* example.com's data */ } } } ``` This is a varia...
null
CC BY-SA 3.0
null
2008-08-16T16:04:18.260
2012-07-22T06:54:14.040
2012-07-22T06:54:14.040
164,602
811
null
13,204
1
13,220
null
7
8,384
I have a cron job on an Ubuntu Hardy VPS that only half works and I can't work out why. The job is a Ruby script that uses mysqldump to back up a MySQL database used by a Rails application, which is then gzipped and uploaded to a remote server using SFTP. The gzip file is created and copied successfully but it's alway...
Why Doesn't My Cron Job Work Properly?
CC BY-SA 2.5
0
2008-08-16T16:15:18.363
2008-10-18T03:42:10.777
null
null
1,450
[ "ruby-on-rails", "ruby", "linux", "ubuntu", "cron" ]
13,228
2
null
13,224
2
null
Some are not recognized, because the UserAgent has been messed with or a new browser is being used. Such as Opera Mobile 9.5. To fix this you need to create a Browser (*.browser) file specifically for defining this. I had to do it for the new Mozilla based UserAgent that is being sent from Google.
null
CC BY-SA 2.5
null
2008-08-16T16:46:28.270
2008-08-16T16:46:28.270
null
null
17
null
13,250
2
null
13,225
1
null
One approach that comes to mind is that you could store the translated replacement parameters i.e. "address" and "contact information" in a separate properties file, one per locale. Then have your Action class (or probably some helper class) look up the values from the correct ResourceBundle for the current locale and ...
null
CC BY-SA 2.5
null
2008-08-16T17:40:46.880
2008-08-16T17:40:46.880
null
null
1,450
null
13,232
2
null
13,204
4
null
Looks like your `PATH` is missing a few directories, most importantly `/bin` (for `/bin/rm`). Here's what my system's `/etc/crontab` uses: ``` PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ```
null
CC BY-SA 2.5
null
2008-08-16T16:50:15.687
2008-08-16T16:50:15.687
null
null
954
null
13,217
1
16,648
null
5
4,477
I am uploading multiple files using the BeginGetRequestStream of HttpWebRequest but I want to update the progress control I have written whilst I post up the data stream. How should this be done, I have tried calling Dispatch.BeginInvoke (as below) from within the loop that pushes the data into the stream but it loc...
How do I update my UI from within HttpWebRequest.BeginGetRequestStream in Silverlight
CC BY-SA 2.5
null
2008-08-16T16:32:06.257
2012-08-11T16:04:03.773
2008-08-17T01:56:20.733
55
1,478
[ "c#", "silverlight" ]
13,239
2
null
13,225
0
null
Perhaps: ``` # alert=Please update your {0}address{1} and {2}contact information{3}. ```
null
CC BY-SA 2.5
null
2008-08-16T16:55:36.910
2008-08-16T16:55:36.910
null
null
304
null
13,254
1
null
null
23
7,084
I am a neophyte with Ruby on Rails but I've created a couple of small apps. Anyway, I'm really interested in OpenID and I would like to implement OpenID authentication and maybe some Sreg stuff in a Rails app. All of the research that I have done has come up with articles that are out of date or just don't work for me....
OpenID authentication in Ruby on Rails
CC BY-SA 3.0
0
2008-08-16T17:54:58.100
2020-07-24T01:30:57.897
2013-01-14T04:58:06.037
206,401
1,353
[ "ruby-on-rails", "ruby", "authentication", "openid" ]
13,233
2
null
13,213
1
null
Wordpress has a field in the wp_posts table for the slug. When you create the post, it creates a slug from the post title (if that's how you have it configured), replacing spaces with dashes (or I think you can set it to underscores). It also takes out the apostrophes, commas, or whatnot. I believe it also limits the o...
null
CC BY-SA 2.5
null
2008-08-16T16:50:44.393
2008-08-16T16:50:44.393
null
null
1,344
null
13,251
2
null
3,147
7
null
The upcoming release of the Framework Design Guidelines, 2nd Edition will have some guidance for implementing extension methods, but in general: You should only define extension methods "where they make semantic sense" and are providing helper functionality relevant to every implementation. You also should avoid exte...
null
CC BY-SA 2.5
null
2008-08-16T17:41:20.670
2008-08-16T17:41:20.670
null
null
1,559
null
13,255
2
null
13,170
3
null
The problem is that you have code that first checks if it should create a new thread object, and another piece of code that determines wether to start the thread object. Due to race conditions and similar things, your code might end up trying to call .Start on an existing thread object. Considering you don't post the d...
null
CC BY-SA 2.5
null
2008-08-16T17:56:47.147
2008-08-16T17:56:47.147
null
null
267
null
13,262
2
null
3,881
-1
null
The definitions from the links to the two exceptions above are IllegalArgumentException: Thrown to indicate that a method has been passed an illegal or inappropriate argument. NullPointerException: Thrown when an application attempts to use null in a case where an object is required. The big difference here is the Il...
null
CC BY-SA 2.5
null
2008-08-16T18:13:20.263
2008-08-16T18:13:20.263
null
null
1,353
null
13,259
2
null
13,200
4
null
At my company we've recently adopted the (commercial) Atlassian stack - including JIRA for issue tracking and Bamboo for builds. Much like the Microsoft world (I'm guessing - we're a Java shop), if you get all your products from a single vendor you get the bonus of tight integration. For an example of how they've done...
null
CC BY-SA 2.5
null
2008-08-16T18:02:03.717
2008-08-16T18:02:03.717
null
null
1,557
null
13,280
2
null
10,935
1
null
A good way to look up error (hresult) codes is HResult Plus or welt.exe (Windows Error Lookup Tool). I use logging internally in the COM-classes to see what is going on. Also, once the COM-class is loaded by the executable, you can attach the VS debugger to it and debug the COM code with breakpoints, watches, and all...
null
CC BY-SA 2.5
null
2008-08-16T19:00:30.167
2008-08-16T19:00:30.167
null
null
1,490
null
13,271
2
null
12,927
7
null
Facing the same problem I used [YourKit profiler](http://www.yourkit.com/overview/index.jsp). It's loader doesn't activate unless you actually connect to it (though it does open a port to listen for connections). The profiler itself has a nice "get amount of time spent in each method" while working in it's less obtrusi...
null
CC BY-SA 2.5
null
2008-08-16T18:26:17.587
2008-08-16T18:26:17.587
null
null
931
null
13,270
2
null
12,896
1
null
I'm not sure if this will be of help to you - hope so - but it will surely help others interested in finding out more about email. [Marcus Bointon](http://marcus.bointon.com/) did one of the best presentations entitled "Mail() and life after Mail()" at the PHP London conference in March this year and the [slides](http:...
null
CC BY-SA 3.0
null
2008-08-16T18:19:41.810
2011-08-15T12:46:08.863
2011-08-15T12:46:08.863
137
137
null
13,258
2
null
163
28
null
We do this with [xUnit.net](http://www.codeplex.com/xunit) for our automated builds. We use `CruiseControl.net` (and are trying out TeamCity). The MSBuild task that we run for continuous integration automatically changes the build number for us, so the resulting build ZIP file contains a properly versioned set of DLLs ...
null
CC BY-SA 3.0
null
2008-08-16T18:00:22.303
2015-12-29T06:29:07.750
2015-12-29T06:29:07.750
3,787,519
1,554
null
13,279
1
47,187
null
9
510
We have an enterprise web application where every bit of text in the system is localised to the user's browser's culture setting. So far we have only supported English, American (similar but mis-spelt ;-) and French (for the Canadian Gov't - app in English or French depending on user preference). During development we...
Any good resources or advice for working with languages with different orientations? (such as Japanese or Chinese)
CC BY-SA 2.5
0
2008-08-16T18:57:53.887
2022-06-13T02:51:46.713
2008-09-02T13:41:50.680
905
905
[ "internationalization", "multilingual" ]
13,277
2
null
4,080
12
null
All of the following we use and integrate easiy in both our Maven 2.x builds and Eclipse/RAD 7: - - - In addition, in our Maven builds we have: - - Furthermore, if you're using Maven 2.x, CodeHaus has a collection of handy Maven plugins in their [Mojo project](http://mojo.codehaus.org/plugins.html). Note: Clover...
null
CC BY-SA 2.5
null
2008-08-16T18:48:43.267
2008-08-16T18:48:43.267
null
null
1,557
null
13,225
1
13,381
null
9
2,720
I've recently inherited a internationalized and text-heavy Struts 1.1 web application. Many of the JSP files look like: ``` <p> <bean:message key="alert" /> </p> ``` and the properties files look like: ``` messages.properties alert=Please update your <a href="/address.do">address</a> and <a href="/contact.do">c...
How can I refactor HTML markup out of my property files?
CC BY-SA 3.0
null
2008-08-16T16:42:50.070
2013-06-11T14:23:30.093
2013-06-11T14:18:45.163
2,156,756
1,557
[ "java", "jsp", "internationalization", "struts" ]
13,284
2
null
1,644
1
null
I do enjoy all the podcasts from the TWIT network, though FLOSS Weekly and Security Now are my favorite "techie" podcasts. I actually have never heard the Stack Overflow podcast, but will definitely be giving it a try after seeing all the recommendations here. Also, I believe that Alex Lindsay (of the Pixel Corps, and...
null
CC BY-SA 2.5
null
2008-08-16T19:06:55.553
2008-08-16T19:06:55.553
null
null
1,572
null
13,287
2
null
13,279
8
null
As an Arabic speaker, when I do look at Arabic websites, I do expect things like OK/Cancel to be swapped. When reading Arabic, my eyes read from right to left. So, in situations where you'd want to reader to view an affirmative/action button (e.g. OK, Submit, Yes, etc.) before a negative/inaction button (Cancel, Clear,...
null
CC BY-SA 2.5
null
2008-08-16T19:11:16.900
2008-08-16T19:11:16.900
null
null
1,572
null
13,286
2
null
13,154
3
null
I use VisualSVN Server from [http://www.visualsvn.com/server/](http://www.visualsvn.com/server/), very easy to install and can be integrate with active directory. It's install on a win2008 with no problem.
null
CC BY-SA 2.5
null
2008-08-16T19:10:08.120
2009-05-04T21:24:24.603
2009-05-04T21:24:24.603
1,154
1,154
null
13,293
1
13,369
null
19
6,898
I am thinking of using a PHP framework called [CodeIgniter](http://codeigniter.com/). One of the things I am interested in is its speed. I have, however, no way to find out how fast it is, and would rather not simply take the word of their website for it. Does anybody know how I can determine its speed myself, or can...
How can I determine CodeIgniter speed?
CC BY-SA 3.0
0
2008-08-16T19:27:20.473
2015-12-14T11:44:07.980
2012-07-21T10:13:16.177
782,535
1,384,652
[ "php", "performance", "codeigniter", "benchmarking" ]
13,315
2
null
10,935
1
null
COM objects don't throw exceptions. They return HRESULTs, most of which indicate a failure. So if you're looking for the equivalent of an exception stack trace, you're out of luck. You're going to have to walk through the code by hand and figure out what's going on.
null
CC BY-SA 2.5
null
2008-08-16T19:55:19.620
2008-08-16T19:55:19.620
null
null
1,554
null
13,306
2
null
13,293
2
null
i'd recommend testing it for yourself. use [xdebug's profiler](http://www.xdebug.org/docs/profiler) to create a cachegrind compatible file and [webgrind](http://code.google.com/p/webgrind/) to visualize the file. that way you end up with very reliable information.
null
CC BY-SA 2.5
null
2008-08-16T19:51:18.273
2008-08-16T19:51:18.273
null
null
1,532
null
13,299
1
136,925
null
12
6,700
Is there any alternative image manipulation library for .net? I would prefer something that is managed and open source. I ask this because of two reasons: 1. I have encountered hard to debug GDI+ errors with System.Drawing in the past 2. I have read that using System.Drawing in asp.net web applications is not 100%...
Image manipulation in asp.net/c# without System.Drawing/GDI+
CC BY-SA 2.5
0
2008-08-16T19:42:42.937
2008-12-19T17:35:27.210
2008-08-16T20:55:10.670
1,573
1,573
[ "asp.net", "system.drawing" ]
13,312
2
null
104
15
null
Using CLR Profiler from Microsoft [http://www.microsoft.com/downloads/details.aspx?familyid=86ce6052-d7f4-4aeb-9b7a-94635beebdda&displaylang=en](http://www.microsoft.com/downloads/details.aspx?familyid=86ce6052-d7f4-4aeb-9b7a-94635beebdda&displaylang=en) is a great way to determine which objects are holding memory, wha...
null
CC BY-SA 2.5
null
2008-08-16T19:54:30.497
2008-08-16T19:54:30.497
null
null
1,490
null
13,283
2
null
7,596
28
null
I've really come to like Maven's [Standard Directory Layout](http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html). One of the key ideas for me is to have two source roots - one for production code and one for test code like so: ``` MyProject/src/main/java/com/acme/Widget.jav...
null
CC BY-SA 4.0
null
2008-08-16T19:06:10.267
2018-10-16T17:11:27.253
2018-10-16T17:11:27.253
4,506,678
1,557
null
13,288
2
null
13,154
3
null
It depends on how far you want to consider this issue. If you want to install a Subversion server on your own, it looks like you have two options: - - In either case, the problem isn't what the two do, but what the two . If there are bugs in Apache that allows an outside attacker to gain access to your data, then ...
null
CC BY-SA 2.5
null
2008-08-16T19:17:01.710
2008-08-16T19:17:01.710
null
null
267
null
13,333
2
null
13,299
1
null
Anecdotal evidence #1: I have used GDI+ for on-the-fly image creation within ASP.NET with no problems. I'm not sure what the problems would even be.
null
CC BY-SA 2.5
null
2008-08-16T20:13:46.480
2008-08-16T20:13:46.480
null
null
404
null
13,328
2
null
13,299
0
null
With respect to (1), most of the hard to debug errors are due to not closing open handles (Dispose() in managed-land). I'm curious where you heard (2).
null
CC BY-SA 2.5
null
2008-08-16T20:05:50.910
2008-08-16T20:05:50.910
null
null
1,490
null
13,319
2
null
2,874
1
null
Are any of the [ControlPaint](http://msdn.microsoft.com/en-us/library/system.windows.forms.controlpaint_members.aspx) methods useful for this? That's what I usually use for custom-rendered controls.
null
CC BY-SA 2.5
null
2008-08-16T19:58:44.013
2008-08-16T19:58:44.013
null
null
1,490
null
13,323
2
null
7,517
1
null
I'm not sure, if Derek's approach works. You haven't mark it as best answer yet. If not: with SQL Server 2005 it should be possible, I guess. There they introduced exceptions (which I've not used yet). So drop the table, catch the exception, if one occurs and try the next table till they are all gone. You can store ...
null
CC BY-SA 2.5
null
2008-08-16T20:00:05.243
2008-08-16T20:00:05.243
null
null
1,069
null
13,275
2
null
13,049
1,244
null
In .NET, there are two categories of types, and . Structs are and classes are . The general difference is that a lives on the heap, and a lives inline, that is, wherever it is your variable or field is defined. A variable containing a contains the entire value. For a struct, that means that the variable contai...
null
CC BY-SA 3.0
null
2008-08-16T18:41:38.037
2017-12-20T11:47:03.247
2017-12-20T11:47:03.247
267
267
null
13,340
2
null
1,625
1
null
I use [Notepad++](http://notepad-plus.sourceforge.net/uk/site.htm) as my editor. You can also add [plugins](http://sourceforge.net/projects/npp-plugins/) for dealing with XML specifically.
null
CC BY-SA 2.5
null
2008-08-16T20:25:09.920
2008-08-16T20:25:09.920
null
null
525
null
13,338
2
null
1,625
2
null
Recently I was editing XSLT files with Eclipse but for some reason Eclipse wouldn't do any auto-completion anymore. So I switched to Emacs's brilliant nxml-mode, and I'm not sure I'm going back. You get auto-completion that's really easy to use, and it's very fast. The only glitch is that you must provide a RELAX NG ve...
null
CC BY-SA 2.5
null
2008-08-16T20:22:16.930
2008-08-16T20:22:16.930
null
null
1,428
null
13,341
2
null
11,491
4
null
You should also review [this question](https://stackoverflow.com/questions/11635/case-insensitive-string-comparison-in-c). Basically the problem is that the standard C/C++ libraries weren't built to handle Unicode data, so you will have to look to other libraries. This may change as the C++ standard is updated. I ...
null
CC BY-SA 2.5
null
2008-08-16T20:25:51.290
2008-08-16T20:25:51.290
2017-05-23T11:45:33.393
-1
803
null
13,346
2
null
13,343
2
null
To answer some of my own questions: The current team I'm on does only does gross task estimation, so it's hard to track hours per days. I would say that, for my career, the time spent coding has been anywhere between 25% (mostly management) to 85%+ (working from home 4 days a week, get together for a meeting for half ...
null
CC BY-SA 2.5
null
2008-08-16T20:36:02.877
2008-08-16T23:05:47.583
2008-08-16T23:05:47.583
1,554
1,554
null
13,349
2
null
13,348
10
null
Well, what if one of your clients tells you to restore to an earlier version of their data due to some botched import job or similar? Imagine how your clients would feel if you told them "you can't do that, since your data is shared between all our clients" or "Sorry, but your changes were lost because client X demande...
null
CC BY-SA 2.5
null
2008-08-16T20:45:23.920
2008-08-16T20:45:23.920
null
null
267
null
13,351
2
null
13,345
2
null
You may want to look at [Comet](http://en.wikipedia.org/wiki/Comet_(programming)) which is a fancy name for a long running HTTP connection where the server can push updates to the page.
null
CC BY-SA 2.5
null
2008-08-16T20:47:26.553
2008-08-16T20:47:26.553
null
null
200
null
13,343
1
13,370
null
28
11,266
I've been thinking about software estimation lately, and I have a bunch of questions around time spent coding. I'm curious to hear from people who have had at least a couple years of experience developing software. When you have to estimate the amount of time you'll spend working on something, how many hours of the da...
How much of your work day is spent coding?
CC BY-SA 2.5
0
2008-08-16T20:30:56.273
2012-03-21T07:33:49.087
2008-08-16T20:51:49.243
437
1,554
[ "estimation", "time-management" ]
13,345
1
13,351
null
4
4,522
I've always wanted a way to make a socket connection to a server and allow the server to manipulate the page DOM. For example, this could be used in a stock quotes page, so the server can push new quotes as they become available. I know this is a classic limitation (feature?) of HTTP's request/response protocol, bu...
Firefox plugin - sockets
CC BY-SA 2.5
0
2008-08-16T20:31:44.867
2012-09-17T20:14:19.783
null
null
null
[ "firefox", "dom", "sockets", "plugins" ]
13,354
2
null
13,348
6
null
Scalability. Security. Our company uses 1 DB per customer approach as well. It also makes code a bit easier to maintain as well.
null
CC BY-SA 2.5
null
2008-08-16T20:48:35.193
2008-08-16T20:48:35.193
null
null
77
null
13,348
1
13,352
null
67
20,132
In a database-centric application that is designed for multiple clients, I've always thought it was "better" to use a single database for ALL clients - associating records with proper indexes and keys. In listening to the Stack Overflow podcast, I heard Joel mention that FogBugz uses one database per client (so if the...
What are the advantages of using a single database for EACH client?
CC BY-SA 2.5
0
2008-08-16T20:39:26.070
2009-09-03T11:09:05.780
2009-09-03T11:09:05.780
23,118
1,581
[ "database", "database-design", "multi-tenant" ]
13,355
2
null
13,347
4
null
It's annoying when I drag a window to another monitor, and then if the application generates a popup dialog, or spawns another window, if that popup/dialog gets displayed back on the primary monitor. I haven't developed for multi-monitors, but I think this can be better handled if you position child windows/dialogs ce...
null
CC BY-SA 2.5
null
2008-08-16T20:50:47.373
2008-08-16T20:50:47.373
null
null
803
null
13,353
1
13,358
null
5
3,473
I have a UserControl that consists of three TextBoxes. On a form I can have one or more or my UserControl. I want to implement my own tab behavior so if the user presses Tab in the second TextBox I should only move to the third TextBox if the the second TextBox has anything entered. If nothing is entered in the second ...
Override tab behavior in WinForms
CC BY-SA 2.5
null
2008-08-16T20:48:00.590
2008-10-22T20:18:13.150
2008-08-18T21:16:28.410
null
143
[ "c#", ".net", "winforms" ]
13,358
2
null
13,353
3
null
As a general rule, I would say overriding the standard behavior of the TAB key would be a bad idea. Maybe you can do something like disabling the 3rd text box until a valid entry is made in the 2nd text box.
null
CC BY-SA 2.5
null
2008-08-16T20:55:29.483
2008-08-17T00:27:15.970
2008-08-17T00:27:15.970
803
803
null
13,357
2
null
12,865
2
null
If the locked repo was the original, I can't imagine it was it to clone it, so it was only preventing you from changing it in the middle and messing up the clone. It should be fine after removing the lock. The new cloned copy (if it was a local clone) could be in any sort of malformed state, though, so you should thr...
null
CC BY-SA 2.5
null
2008-08-16T20:54:27.880
2008-08-16T20:54:27.880
null
null
1,472
null
13,352
2
null
13,348
51
null
Assume there's no scaling penalty for storing all the clients in one database; for most people, and well configured databases/queries, this will be fairly true these days. If you're not one of these people, well, then the benefit of a single database is obvious. In this situation, benefits come from the encapsulation ...
null
CC BY-SA 2.5
null
2008-08-16T20:48:00.403
2008-08-16T20:48:00.403
null
null
1,200
null
13,347
1
13,375
null
9
1,472
We are currently working on a new version of our main application. one thing that I really wish to work on is providing support for multiple monitors. Increasingly, our target users are adding second screens to their desktops and I think our product could leverage this extra space to improve user performance. Our ap...
Developing for multiple monitors
CC BY-SA 2.5
0
2008-08-16T20:37:09.053
2008-10-21T03:37:22.220
2008-08-17T01:24:32.997
1
770
[ "user-interface", "hardware", "monitor", "environment" ]
13,369
2
null
13,293
17
null
Code Igniter also has some built-in benchmarking tools: [http://codeigniter.com/user_guide/general/profiling.html](http://codeigniter.com/user_guide/general/profiling.html)
null
CC BY-SA 2.5
null
2008-08-16T21:19:51.167
2008-08-16T21:19:51.167
null
null
1,384
null
13,365
2
null
13,362
46
null
`scrollHeight` should be the total height of content. `scrollTop` specifies the pixel offset into that content to be displayed at the top of the element's client area. So you really want (still using jQuery): ``` $("#thediv").each( function() { // certain browsers have a bug such that scrollHeight is too small ...
null
CC BY-SA 2.5
null
2008-08-16T21:10:20.827
2008-08-16T21:10:20.827
null
null
811
null
13,362
1
13,365
null
50
71,312
I've got a div that uses overflow:auto to keep the contents inside the div as it is resized and dragged around the page. I'm using some ajax to retrieve lines of text from the server, then append them to the end of the div, so the content is growing downwards. Every time this happens, I'd like to use JS to scroll the d...
Scrolling Overflowed DIVs with JavaScript
CC BY-SA 2.5
0
2008-08-16T21:04:17.250
2019-04-03T07:32:16.400
2009-08-18T22:10:12.437
1,892
1,384
[ "javascript", "jquery", "ajax", "html", "scroll" ]
13,376
2
null
13,353
1
null
I don't think there's a built-in way that you could do it. All of the WinForms focus events (GotFocus,LostFocus,Enter,Leave) are called with empty EventArgs parameters, which will not give you any additional information. Personally, I would disable the third textbox, as Rob Thomas said. If you're determined to do this...
null
CC BY-SA 2.5
null
2008-08-16T21:38:26.090
2008-08-16T21:38:26.090
null
null
1,975,282
null
13,375
2
null
13,347
14
null
Few random tips: - - - -
null
CC BY-SA 2.5
null
2008-08-16T21:37:14.360
2008-08-16T21:37:14.360
null
null
838
null
13,378
2
null
13,347
3
null
Definitely keep dialogs near where you clicked to bring them up. Remember what monitor the window is on between sessions. Be aware that if they have less monitors than the last time your app was run that you need to bring the windows back to a visible area. Provide an icon or button to switch monitors. Depending on ...
null
CC BY-SA 2.5
null
2008-08-16T21:44:17.203
2008-08-17T00:53:11.687
2008-08-17T00:53:11.703
791
791
null
13,377
2
null
13,343
18
null
Realistically, it probably averages out to 4 or 5 hours a day. Although its "lumpy" - there may be days where there could be 8 or 9 hours of it. Of all the software developers I know, the ones that write production code (as opposed to research) 4 to 5 seems to be the max of actual coding. There is a lot of other stuf...
null
CC BY-SA 2.5
null
2008-08-16T21:38:59.863
2008-08-16T21:38:59.863
null
null
699
null
13,370
2
null
13,343
21
null
I'm a corporate developer, the kind Joel Spolsky called "depressed" in a couple of the StackOverflow podcasts. Because my company is not a software company it has little business reason to implement many of the measures software experts recommend companies engage for developer productivity. We don't get private offic...
null
CC BY-SA 2.5
null
2008-08-16T21:25:03.607
2008-08-16T22:27:35.087
2008-08-16T22:27:35.087
1,577
1,577
null
13,379
2
null
13,343
5
null
I spend about 40% of my day coding. 40% goes to non-coding activites (such as fighting with our sketchy build server or figuring out why NUnit failed with no error message again or trying to figure out why our code has stopped talking to the Oracle server downstaird... junk like that). The other 20% is usually spent pr...
null
CC BY-SA 2.5
null
2008-08-16T21:47:45.137
2008-08-16T21:47:45.137
null
null
1,975,282
null
13,382
2
null
13,353
0
null
I agree with DannySmurf. Messing with the tab order might give you hell later on if the requirements for the application change. Another thing that you could do is to implement some kind of wizard for the user to go through.
null
CC BY-SA 2.5
null
2008-08-16T22:02:07.150
2008-08-16T22:02:07.150
null
null
936
null
13,372
2
null
2,874
11
null
I'm not 100% sure if this is what you are looking for but you should check out the in the System.Windows.Forms.VisualStyles-namespace. 1. VisualStyleRenderer class (MSDN) 2. How to: Render a Visual Style Element (MSDN) 3. VisualStyleElement.ComboBox.DropDownButton.Disabled (MSDN) Since VisualStyleRenderer won't w...
null
CC BY-SA 2.5
null
2008-08-16T21:28:33.287
2011-03-06T08:23:04.370
2011-03-06T08:23:04.370
366,904
936
null
13,389
2
null
13,347
4
null
I'm going to have to a give a nod in dbkk's direction as they captured a couple of the major points that you need to remember. Also, I would suggestion paying attention to how you use dual monitors and try to keep that in mind as you are developing. Generally you should try to avoid doing the things that applications ...
null
CC BY-SA 2.5
null
2008-08-16T22:21:59.793
2008-08-16T22:21:59.793
null
null
1,185
null
13,387
2
null
1,898
1
null
I had to use a CSV parser in .NET for a project this summer and settled on the Microsoft Jet Text Driver. You specify a folder using a connection string, then query a file using a SQL Select statement. You can specify strong types using a schema.ini file. I didn't do this at first, but then I was getting bad results...
null
CC BY-SA 2.5
null
2008-08-16T22:15:51.133
2008-08-16T22:15:51.133
null
null
1,266
null
13,367
2
null
8,569
28
null
Small tip - I've found it helpful to modularize and clearly label my Spring xml context files based on application concern. Here's an example for a web app I worked on: - `MyProject / src / main / resources / spring /`- - `datasource.xml`- `persistence.xml`- `services.xml`- This list is neither perfect nor exhaustiv...
null
CC BY-SA 2.5
null
2008-08-16T21:12:19.233
2008-08-16T21:12:19.233
null
null
1,557
null
13,381
2
null
13,225
2
null
> Avoid creating links within long blocks of text. Prefer shorter text that can act as a logically complete and independent link. Generally, it will lead to fewer problems. Sometimes you have to compromise your UI design to accommodate localization; sometimes you need to compromise your localization process to a...
null
CC BY-SA 3.0
null
2008-08-16T21:59:07.157
2013-06-11T14:20:36.847
2013-06-11T14:20:36.847
2,156,756
304
null
13,359
2
null
13,225
0
null
> The message message tag API allows only 5 parametric arguments Ah! I blame my complete ignorance of the Struts API. To quote the [manual](http://struts.apache.org/1.2.7/userGuide/dev_bean.html): > Some of the features in this taglib are also available in the JavaServer Pages Standard Tag Library (JSTL). The...
null
CC BY-SA 3.0
null
2008-08-16T20:56:26.517
2013-06-11T14:23:30.093
2013-06-11T14:23:30.093
2,156,756
304
null
13,390
2
null
1,644
14
null
I found this on a similar discussion, I think it was at Reddit: [UC Berkeley Webcast](http://webcast.berkeley.edu/course_feeds.php) I found it most useful, since it podcasts entire classes from Berkley courses such as Operating Systems and System Programming, The Structure and Interpretation of Computer Programs, Data ...
null
CC BY-SA 2.5
null
2008-08-16T22:23:30.477
2009-08-20T19:41:05.930
2009-08-20T19:41:05.930
63,550
1,492
null
13,396
1
13,435
null
12
639
I love list comprehensions in Python, because they concisely represent a transformation of a list. However, in other languages, I frequently find myself writing something along the lines of: ``` foreach (int x in intArray) if (x > 3) //generic condition on x x++ //do other processing ``` This example is ...
Replacement for for... if array iteration
CC BY-SA 2.5
null
2008-08-16T22:28:39.827
2011-06-25T12:18:42.583
2008-09-12T05:14:06.150
-1
1,266
[ ".net", "python", "arrays", "loops", "iteration" ]
13,318
2
null
13,200
3
null
All the CI setups I've worked with send an email (to a list), but if you did want—especially if your team uses FogBugz much as a todo system—you could just open a case in FogBugz 6. [It has an API](http://www.fogcreek.com/FogBugz/docs/60/topics/advanced/API.html) that lets you open cases. For that matter, you could jus...
null
CC BY-SA 2.5
null
2008-08-16T19:56:45.093
2008-08-16T20:16:22.247
2017-05-23T12:13:34.637
-1
1,472
null
13,398
2
null
13,343
6
null
I work a 37.5 hour week. 30 of those hours (80%) I am supposed to be billing our clients. In reality I find that I use about 60% coding on actual client systems, 20% experimenting with new techniques and reading blogs, and 20% is wasted on office politics and "socializing". Am I happy about it? Do I wish that I coul...
null
CC BY-SA 2.5
null
2008-08-16T22:30:51.413
2008-08-16T22:30:51.413
null
null
960
null
13,399
2
null
13,396
-1
null
Depends on the language and what you need to do, a "map" as it's called in many languages could be what you're looking for. I don't know C#, but according to [this](http://blogs.msdn.com/devdev/archive/2006/06/30/652802.aspx) page, .NET 2.0 calls map "ConvertAll". The meaning of "map" is pretty simple - take a list, a...
null
CC BY-SA 2.5
null
2008-08-16T22:37:06.690
2008-08-16T22:37:06.690
null
null
242,853
null
13,401
2
null
11,612
0
null
I don't know if this is exactly what you're looking for, but I know many of 37 Signals' products support adding data through email. I use Highrise to keep track of some of my business correspondence, and I'm able to CC or forward emails to Highrise and they get added to the appropriate contact.
null
CC BY-SA 2.5
null
2008-08-16T22:37:46.453
2008-08-16T22:37:46.453
null
null
1,266
null
13,384
2
null
7,489
3
null
This question is very similar to one I was going to post, only mine is for Sony PSP programming. I've been toying with something for a while, I've consulted some books and [VTMs](http://www.3dbuzz.com/xcart/product.php?productid=30&cat=12&page=1), and so far this is a rough idea of a simple ui systems. ``` class uiEl...
null
CC BY-SA 2.5
null
2008-08-16T22:05:03.323
2008-08-16T22:05:03.323
null
null
3,180
null