PostId
int64
4
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
1
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-55
461k
OwnerUndeletedAnswerCountAtPostTime
int64
0
21.5k
Title
stringlengths
3
250
BodyMarkdown
stringlengths
5
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
3,315
08/06/2008 12:17:31
503
08/06/2008 12:17:31
1
0
C#: Can I have a method return IEnumerator<T> and use it in a foreach loop?
I need to set the height of every textbox on my form, some of which are nested within other controls. I thought I could do something like this: private static IEnumerator<TextBox> FindTextBoxes(Control rootControl) { foreach (Control control in rootControl.Controls) { if (con...
c#
ienumerable
ienumerator
foreach
null
null
open
C#: Can I have a method return IEnumerator<T> and use it in a foreach loop? === I need to set the height of every textbox on my form, some of which are nested within other controls. I thought I could do something like this: private static IEnumerator<TextBox> FindTextBoxes(Control rootControl) { ...
0
3,319
08/06/2008 12:23:22
383
08/05/2008 10:46:37
482
60
CSS Background Color in Javascript
How can I set the CSS background color of a HTML element via JavaScript?
javascript
css
null
null
null
null
open
CSS Background Color in Javascript === How can I set the CSS background color of a HTML element via JavaScript?
0
3,362
08/06/2008 13:27:05
357
08/05/2008 01:29:23
76
6
JavaScript - Capturing TAB key in text box
Here on Stack Overflow, I would like to be able to use the tab key within the WMD editor text box to tab over 4 spaces. The way it is now, the tab key jumps my cursor down to the Tags. Vote for this feature at UserVoice: [http://stackoverflow.uservoice.com/pages/general/suggestions/15889][1] Is there some JavaScr...
stackoverflow
javascript
null
null
null
02/10/2011 20:27:58
too localized
JavaScript - Capturing TAB key in text box === Here on Stack Overflow, I would like to be able to use the tab key within the WMD editor text box to tab over 4 spaces. The way it is now, the tab key jumps my cursor down to the Tags. Vote for this feature at UserVoice: [http://stackoverflow.uservoice.com/pages/genera...
3
3,374
08/06/2008 13:37:39
302
08/04/2008 13:39:41
57
2
OpenVPN Config file to prevent timeout
I am using OpenVPN with an *.opvn config file under Windows XP to connect to a VPN server. Everything works fine, I connect successfully, but after 2 minutes or so of inactivity my connection dies. Does anyone know if this is a: * OpenVPN config problem * Windows problem * Client network problem * Server ...
windows
vpn
null
null
null
null
open
OpenVPN Config file to prevent timeout === I am using OpenVPN with an *.opvn config file under Windows XP to connect to a VPN server. Everything works fine, I connect successfully, but after 2 minutes or so of inactivity my connection dies. Does anyone know if this is a: * OpenVPN config problem * Windows prob...
0
3,385
08/06/2008 13:43:44
384
08/05/2008 11:03:36
86
8
MAC addresses in JavaScript
I know that we can get the MAC address of a user via IE (ActiveX objects). Is there a way to do the same thing in all browsers? (Especially since FF is gaining browser share everyday!)
javascript
null
null
null
null
null
open
MAC addresses in JavaScript === I know that we can get the MAC address of a user via IE (ActiveX objects). Is there a way to do the same thing in all browsers? (Especially since FF is gaining browser share everyday!)
0
3,400
08/06/2008 13:52:29
35
08/01/2008 12:43:07
123
18
How do you get leading wildcard full-text searches to work in MS SQL?
I've read in several places now that "leading wildcard" searches (e.g. using "*overflow" to match "stackoverflow") is not supported in MS SQL. I'm considering using a [CLR function to add regex matching][1], but I'm curious to see what other solutions people might have. [1]: http://blogs.msdn.com/sqlclr/archive...
mssql
null
null
null
null
null
open
How do you get leading wildcard full-text searches to work in MS SQL? === I've read in several places now that "leading wildcard" searches (e.g. using "*overflow" to match "stackoverflow") is not supported in MS SQL. I'm considering using a [CLR function to add regex matching][1], but I'm curious to see what other so...
0
3,404
08/06/2008 13:56:42
547
08/06/2008 16:09:22
1
0
Javascript troubleshooting tools in IE
I use Firebug and the Mozilla JS console like crazy, but every now and then run into an IE-only Javascript bug, which everyone knows are really hard to locate even though you know theyre there (ex: error on line 724, when your source html only has 200 lines!) I would love to have a lightweight JS tool (a la firebug)...
javascript
ie
null
null
null
null
open
Javascript troubleshooting tools in IE === I use Firebug and the Mozilla JS console like crazy, but every now and then run into an IE-only Javascript bug, which everyone knows are really hard to locate even though you know theyre there (ex: error on line 724, when your source html only has 200 lines!) I would love ...
0
3,408
08/06/2008 13:59:16
514
08/06/2008 13:59:16
1
0
Ruby On Rails with Windows Vista - Best Setup?
What do you think is the best set-up for RoR in a Win Vista environment? I've tried the radrails eclipse plug-in, and it just seemed too bulky for me, I've also started to just use Textpad and the command line, but I'm used to having somewhat of an IDE to work with. Thanks for the help!
rubyonrails
windows
ide
null
null
null
open
Ruby On Rails with Windows Vista - Best Setup? === What do you think is the best set-up for RoR in a Win Vista environment? I've tried the radrails eclipse plug-in, and it just seemed too bulky for me, I've also started to just use Textpad and the command line, but I'm used to having somewhat of an IDE to work with. ...
0
3,437
08/06/2008 14:14:29
308
08/04/2008 14:34:46
225
15
Options for Google Maps over SSL
We recently discovered that the Google Maps API does not play nicely with SSL. Fair enough, but what are some options for overcoming this that others have used effectively? > [Will the Maps API work over SSL (HTTPS)?][1] > > At this time, the Maps API is not > available over a secure (SSL) > connection. If you...
ssl
google
https
iframe
maps
null
open
Options for Google Maps over SSL === We recently discovered that the Google Maps API does not play nicely with SSL. Fair enough, but what are some options for overcoming this that others have used effectively? > [Will the Maps API work over SSL (HTTPS)?][1] > > At this time, the Maps API is not > available ove...
0
3,452
08/06/2008 14:25:17
437
08/05/2008 18:13:45
8
2
SQL Server Client for OSX
What's a good SQL client for OSX that works with MS SQL Server? I don't really need a GUI, but it's nice to have for the color coding and result set grid. I'd be willing to pay up to $100.
sql-server
osx
null
null
null
07/03/2012 13:47:17
not constructive
SQL Server Client for OSX === What's a good SQL client for OSX that works with MS SQL Server? I don't really need a GUI, but it's nice to have for the color coding and result set grid. I'd be willing to pay up to $100.
4
3,486
08/06/2008 14:44:09
527
08/06/2008 14:44:09
1
0
Block user access to internals of a site using HTTP_REFERER
I have control over the HttpServer but not over the ApplicationServer or the Java Applications sitting there but I need to block direct access to certain pages on those applications. Precisely, I don't want users automating access to forms issuing direct GET/POST HTTP requests to the appropriate servlet. So, I deci...
security
apache
mod-rewrite
http-referer
null
null
open
Block user access to internals of a site using HTTP_REFERER === I have control over the HttpServer but not over the ApplicationServer or the Java Applications sitting there but I need to block direct access to certain pages on those applications. Precisely, I don't want users automating access to forms issuing direct ...
0
3,505
08/06/2008 14:50:47
507
08/06/2008 13:04:33
1
3
What are you favorite .NET ORMs?
What sort of ORM systems do you use on various projects? What scale is the project? What features do you use and look for in an ORM?
.net
databases
orm
null
null
12/20/2011 16:46:00
not constructive
What are you favorite .NET ORMs? === What sort of ORM systems do you use on various projects? What scale is the project? What features do you use and look for in an ORM?
4
3,510
08/06/2008 14:54:52
383
08/05/2008 10:46:37
635
73
BODMAS
What is BODMAS and why is it useful in programming?
maths
null
null
null
null
null
open
BODMAS === What is BODMAS and why is it useful in programming?
0
3,512
08/06/2008 14:57:16
517
08/06/2008 14:01:37
1
0
Searching directories for tons of files?
I'm using MSVE, and I have my own tiles I'm displaying in layers on top. Problem is, there's a ton of them, and they're on a network server. In certain directories, there are something on the order of 30,000+ files. Initially I called Directory.GetFiles, but once I started testing in a pseudo-real environment, it timed...
c#
filemanagement
directory
null
null
null
open
Searching directories for tons of files? === I'm using MSVE, and I have my own tiles I'm displaying in layers on top. Problem is, there's a ton of them, and they're on a network server. In certain directories, there are something on the order of 30,000+ files. Initially I called Directory.GetFiles, but once I started ...
0
3,530
08/06/2008 15:15:54
1,388,162
08/06/2008 14:01:12
1
1
How do I rake tasks within a ruby script?
I've got a Rakefile with a rake task that I would normally call from the commandline (rake blog:post Title). I'd like to write a ruby script that calls that rake task multiple times, but the only solution I see is shelling out (`` or system). What's the right way to do this?
ruby
cli
rake
null
null
null
open
How do I rake tasks within a ruby script? === I've got a Rakefile with a rake task that I would normally call from the commandline (rake blog:post Title). I'd like to write a ruby script that calls that rake task multiple times, but the only solution I see is shelling out (`` or system). What's the right way to ...
0
3,544
08/06/2008 15:25:51
30
08/01/2008 12:25:44
451
30
What is the best way to deploy a VB.NET application?
Generally when I use ClickOnce when I build a VB.NET program but it has a few downsides. I've never really used anything else, so I'm not sure what my options are. Downsides to ClickOnce: - Consists of multiple files - Seems easier to distribute one file than manageing a bunch of file and the downloader to dow...
visual-studio
vb.net
installer
clickonce
null
null
open
What is the best way to deploy a VB.NET application? === Generally when I use ClickOnce when I build a VB.NET program but it has a few downsides. I've never really used anything else, so I'm not sure what my options are. Downsides to ClickOnce: - Consists of multiple files - Seems easier to distribute one fil...
0
3,567
08/06/2008 15:41:13
230
08/03/2008 19:32:46
169
13
Sql to query a dbs scheme
In SqlServer. How do you query a db to bring back all the tables that have a field of a specific name?
sql-server
sqlquery
null
null
null
null
open
Sql to query a dbs scheme === In SqlServer. How do you query a db to bring back all the tables that have a field of a specific name?
0
3,585
08/06/2008 15:50:49
124
08/02/2008 08:24:47
91
3
How do I create a new Ruby on Rails application using MySQL instead of SQLite?
I want to create my Rails application with MySQL, because I like it so much. How can I do that in the latest version of Rails?
rubyonrails
mysql
null
null
null
null
open
How do I create a new Ruby on Rails application using MySQL instead of SQLite? === I want to create my Rails application with MySQL, because I like it so much. How can I do that in the latest version of Rails?
0
3,589
08/06/2008 15:53:51
44
08/01/2008 13:03:39
30
2
Backup SQL Schema Only?
I need to create a backup of a SQL Server 2005 Database that's only the structure...no records, just the schema. Is there any way to do this? EDIT: I'm trying to create a backup file to use with old processes, so a script wouldn't work for my purposes, sorry
sql
mssql
null
null
null
null
open
Backup SQL Schema Only? === I need to create a backup of a SQL Server 2005 Database that's only the structure...no records, just the schema. Is there any way to do this? EDIT: I'm trying to create a backup file to use with old processes, so a script wouldn't work for my purposes, sorry
0
3,594
08/06/2008 15:59:04
539
08/06/2008 15:37:07
1
0
Are there any good public SAP Business Intelligence developer networks out there?
So far I just use the SAP Developers' network at [sdn.sap.com][1] but I would love something a bit more grassroots with bleeding-edge social features. Blogs and forums and any opportunity to seek help and critique outside of my immediate team would be great... [1]: https://www.sdn.sap.com/irj/sdn
sap
communities
social
null
null
09/18/2011 14:45:58
not constructive
Are there any good public SAP Business Intelligence developer networks out there? === So far I just use the SAP Developers' network at [sdn.sap.com][1] but I would love something a bit more grassroots with bleeding-edge social features. Blogs and forums and any opportunity to seek help and critique outside of my im...
4
3,607
08/06/2008 16:10:44
58
08/01/2008 13:56:33
1,275
51
Integrating Fogbugz with TortoiseSVN with no URL/Subversion backend
I've got TotroiseSVN installed and have all of my repositories checking in and out from C:\subversion\. This means that I don't have a "subversion" server per-se. How do I integrate TortoiseSVN and Fogbugz?
fogbugz
tortoisesvn
integration
svn
null
null
open
Integrating Fogbugz with TortoiseSVN with no URL/Subversion backend === I've got TotroiseSVN installed and have all of my repositories checking in and out from C:\subversion\. This means that I don't have a "subversion" server per-se. How do I integrate TortoiseSVN and Fogbugz?
0
3,611
08/06/2008 16:13:02
402
08/05/2008 13:24:03
73
7
PHP Error - Uploading a file
I'm trying to write some php to upload a file to a folder on my webserver. Here's what I have: <?php if ( !empty($_FILES['file']['tmp_name']) ) { move_uploaded_file($_FILES['file']['tmp_name'], './' . $_FILES['file']['name']); header('Location: http://www.mywebsite.com/dump/'); exit; ...
iis
windows
php
upload
null
null
open
PHP Error - Uploading a file === I'm trying to write some php to upload a file to a folder on my webserver. Here's what I have: <?php if ( !empty($_FILES['file']['tmp_name']) ) { move_uploaded_file($_FILES['file']['tmp_name'], './' . $_FILES['file']['name']); header('Location: http://www.mywebs...
0
3,615
08/06/2008 16:14:15
534
08/06/2008 15:17:19
11
2
Using SQLite with Visual Studio 2008 and Silverlight
Any one know decent way to reference a SQLite database using the above mentioned tools? I tried using ODBC (the SQLite driver) but while the connection is good, I get no data returned. Like I can't see any tables in Data Connection (VS 2008). Is there a better way? *Edit: corrected typos*
.net
silverlight
sqlite
null
null
null
open
Using SQLite with Visual Studio 2008 and Silverlight === Any one know decent way to reference a SQLite database using the above mentioned tools? I tried using ODBC (the SQLite driver) but while the connection is good, I get no data returned. Like I can't see any tables in Data Connection (VS 2008). Is there a better w...
0
3,625
08/06/2008 16:20:06
549
08/06/2008 16:20:06
1
0
What's the Developer Express equivalent of System.Windows.Forms.LinkButton?
I can't seem to find Developer Express' version of the LinkButton. HyperLinkEdit doesn't seem to be what I'm looking for since it looks like a TextEdit/TextBox. Anyone know what their version of it is? I'm using the latest DevX controls: 8.2.1. Thanks. JK
developerexpress
null
null
null
null
null
open
What's the Developer Express equivalent of System.Windows.Forms.LinkButton? === I can't seem to find Developer Express' version of the LinkButton. HyperLinkEdit doesn't seem to be what I'm looking for since it looks like a TextEdit/TextBox. Anyone know what their version of it is? I'm using the latest DevX contro...
0
3,630
08/06/2008 16:22:32
1,384,652
08/01/2008 12:01:23
289
30
SQLite vs MySQL
SQLite is a flat-file database and MySQL is a normal database. That's great but I'm not sure which is faster where or better for what? What are the pros and cons of each option?
mysql
sqlite
null
null
null
null
open
SQLite vs MySQL === SQLite is a flat-file database and MySQL is a normal database. That's great but I'm not sure which is faster where or better for what? What are the pros and cons of each option?
0
3,636
08/06/2008 16:28:16
1,384,652
08/01/2008 12:01:23
294
30
Two man team
I'll soon be starting a company with a friend. There will be several parts of it where we work on the same section of a site and as far as I can forsee, the potential for muck-ups is huge. It's just two people so do we really need to use a version control system and are there any suggestions that you can give in hel...
project
teamwork
groupwork
null
null
null
open
Two man team === I'll soon be starting a company with a friend. There will be several parts of it where we work on the same section of a site and as far as I can forsee, the potential for muck-ups is huge. It's just two people so do we really need to use a version control system and are there any suggestions that y...
0
3,654
08/06/2008 16:40:23
269
08/04/2008 10:13:44
484
61
HTML version choice
When developing a new web based application which version of html should you aim for?
html
xml
xhtml
null
null
08/01/2012 16:00:12
not constructive
HTML version choice === When developing a new web based application which version of html should you aim for?
4
3,666
08/06/2008 16:47:41
26
08/01/2008 12:18:14
180
34
Can you access the windows registry from Adobe Air?
(y/N)
air
flex
actionscript-3
null
null
null
open
Can you access the windows registry from Adobe Air? === (y/N)
0
3,667
08/06/2008 16:48:24
556
08/06/2008 16:48:23
1
0
what is your favorite web app deployment workflow with SVN?
We are currently using a somewhat complicated deployment setup that involves a remote SVN server, 3 SVN branches for DEV, STAGE, and PROD, promoting code between them through patches, etc. I wonder what do you use for deployment in a small dev team situation?
svn
deployment
null
null
null
null
open
what is your favorite web app deployment workflow with SVN? === We are currently using a somewhat complicated deployment setup that involves a remote SVN server, 3 SVN branches for DEV, STAGE, and PROD, promoting code between them through patches, etc. I wonder what do you use for deployment in a small dev team situat...
0
3,670
08/06/2008 16:50:10
1,384,652
08/01/2008 12:01:23
330
31
Criticising code
What is the best way to point out flaws in a developers code? Stuff they've been working on a while and though you'd love to not say anything, it's bad code and something has to be said. How do you go about it without them getting angry at you?
codingstyle
teamwork
diplomacy
null
null
05/05/2012 13:34:42
not constructive
Criticising code === What is the best way to point out flaws in a developers code? Stuff they've been working on a while and though you'd love to not say anything, it's bad code and something has to be said. How do you go about it without them getting angry at you?
4
3,682
08/06/2008 16:58:34
136
08/02/2008 10:21:53
728
23
SQL: Distribution of table in time
I have a MySQL table with approximately 3000 rows per user. One of the columns is a datetime field. I'd like to visualize the time distribution in a chart. 20 datapoints would be enough. I could do this: select timefield from entries where uid = ? order by timefield; and look at every 150th row. Or ...
sql
mysql
null
null
null
null
open
SQL: Distribution of table in time === I have a MySQL table with approximately 3000 rows per user. One of the columns is a datetime field. I'd like to visualize the time distribution in a chart. 20 datapoints would be enough. I could do this: select timefield from entries where uid = ? order by timefield...
0
3,713
08/06/2008 17:16:36
557
08/06/2008 17:12:26
1
0
Call ASP.NET Function From Javascript?
I'm writing a web page in ASP.NET. I have some Javascript, and I have a submit button with an onClick event. Is it possible to call a method I created in ASP with Javascript's onCall event?
javascript
asp.net
null
null
null
null
open
Call ASP.NET Function From Javascript? === I'm writing a web page in ASP.NET. I have some Javascript, and I have a submit button with an onClick event. Is it possible to call a method I created in ASP with Javascript's onCall event?
0
3,725
08/06/2008 17:22:27
551
08/06/2008 16:24:59
1
0
Best method for creating a "tree-view preferences dialog" type of interface in C#?
I'm writing an application that is basically just a preferences dialog much like the tree-view preferences dialog that Visual Studio itself uses. The function of the application is simply a pass-through for data from a serial device to a file. It performs many, many transformations on the data before writing it to the ...
c#
gui
null
null
null
null
open
Best method for creating a "tree-view preferences dialog" type of interface in C#? === I'm writing an application that is basically just a preferences dialog much like the tree-view preferences dialog that Visual Studio itself uses. The function of the application is simply a pass-through for data from a serial device...
0
3,748
08/06/2008 17:38:35
514
08/06/2008 13:59:16
16
4
Storing Images in DB - Yay or Nay?
So im using an app that stores images heavily in the DB, whats your outlook on this, im more of a type to store the location, than store it directly in the DB. What do you think are the pros/cons?
db
theory
image
null
null
null
open
Storing Images in DB - Yay or Nay? === So im using an app that stores images heavily in the DB, whats your outlook on this, im more of a type to store the location, than store it directly in the DB. What do you think are the pros/cons?
0
3,757
08/06/2008 17:42:43
404
08/05/2008 13:34:59
150
11
Looking for ASP.NET code to render a form that displays a view of an object
I've got the task of displaying a web form to represent the properties in a .NET class. In WinForms, there's a pre-fab control named PropertyGrid that is a lot like what I need. I'm just looking for something to display a simple layout of property names next to an appropriate control like a textbox or a dropdownlist ...
asp.net
propertygrid
control
null
null
null
open
Looking for ASP.NET code to render a form that displays a view of an object === I've got the task of displaying a web form to represent the properties in a .NET class. In WinForms, there's a pre-fab control named PropertyGrid that is a lot like what I need. I'm just looking for something to display a simple layout o...
0
3,767
08/06/2008 17:54:26
525
08/06/2008 14:41:28
1
0
What is the best choice for building Windows installers?
I have primarily used Visual Studio 2003, and its tool for building an installer was pretty painful. Files and folders had to be added manually, one by one. I am looking at upgrading to VS 2008, and I'm not sure what its installer is like. Also I'm interested in installers for non-.net applications. Are there...
.net
installer
installation
null
null
06/14/2012 11:48:16
not constructive
What is the best choice for building Windows installers? === I have primarily used Visual Studio 2003, and its tool for building an installer was pretty painful. Files and folders had to be added manually, one by one. I am looking at upgrading to VS 2008, and I'm not sure what its installer is like. Also I'm in...
4
3,781
08/06/2008 18:10:23
381
08/05/2008 10:39:26
208
4
Prototyping a GUI with a customer
When prototyping initial GUI functionality with a customer is it better to use a pen/paper drawing or to mock something up using a tool and show them that ? The argument against a tool generated design being that the customer can sometimes focus on the low-level specifics of the mock-up rather than taking a higher l...
gui
prototyping
null
null
null
null
open
Prototyping a GUI with a customer === When prototyping initial GUI functionality with a customer is it better to use a pen/paper drawing or to mock something up using a tool and show them that ? The argument against a tool generated design being that the customer can sometimes focus on the low-level specifics of th...
0
3,790
08/06/2008 18:15:43
560
08/06/2008 17:55:23
1
0
Is there a WMI Redistributable Package?
I've been working on a project that accesses the WMI to get information about the software installed on a user's machine. We've been querying Win32_Product only to find that it doesn't exist in 64-bit versions of Windows because it's an ["optional component"][1].<br /> <br /> I know there are a lot of really good alt...
wmi
windows
64bit
null
null
null
open
Is there a WMI Redistributable Package? === I've been working on a project that accesses the WMI to get information about the software installed on a user's machine. We've been querying Win32_Product only to find that it doesn't exist in 64-bit versions of Windows because it's an ["optional component"][1].<br /> <br ...
0
3,793
08/06/2008 18:16:55
205
08/03/2008 13:31:27
72
4
Best way to get InnerXml of an XElement?
What's the best way to get the contents of the mixed "body" element in the code below? The element might contain either XHTML or text, but I just want its contents in string form. The XmlElement type has the InnerXml property which is exactly what I'm after. The code as written *almost* does what I want, but inclu...
xml
xelement
innerxml
dotnet
null
null
open
Best way to get InnerXml of an XElement? === What's the best way to get the contents of the mixed "body" element in the code below? The element might contain either XHTML or text, but I just want its contents in string form. The XmlElement type has the InnerXml property which is exactly what I'm after. The code a...
0
3,798
08/06/2008 18:24:42
547
08/06/2008 16:09:22
25
7
Full complete mysql DB replication? Ideas? What do people do?
Currently I have two linux servers wunning MySQL, one sitting on a rack right next to me under a 10Mbit upload pipe (main server) and another some couple of miles away on a 3Mbit upload pipe (mirror). I want to be able to replicate data on both servers continuously, but have run into several roadblocks. One of them ...
mysql
replication
null
null
null
null
open
Full complete mysql DB replication? Ideas? What do people do? === Currently I have two linux servers wunning MySQL, one sitting on a rack right next to me under a 10Mbit upload pipe (main server) and another some couple of miles away on a 3Mbit upload pipe (mirror). I want to be able to replicate data on both serve...
0
3,801
08/06/2008 18:28:04
91
08/01/2008 17:55:22
2,112
156
Dual vs. Quadcore on a Webserver
The discussion of Dual vs. Quadcore is as old as the Quadcores itself and the answer is usually "it depends on your scenario". So here the scenario is a Web Server (Windows 2003 (not sure if x32 or x64), 4 GB RAM, IIS, ASP.net 3.0). My impression is that the CPU in a Webserver does not need to be THAT fast because r...
asp.net
windows
iis
null
null
null
open
Dual vs. Quadcore on a Webserver === The discussion of Dual vs. Quadcore is as old as the Quadcores itself and the answer is usually "it depends on your scenario". So here the scenario is a Web Server (Windows 2003 (not sure if x32 or x64), 4 GB RAM, IIS, ASP.net 3.0). My impression is that the CPU in a Webserver d...
0
3,802
08/06/2008 18:28:38
59
08/01/2008 14:02:13
341
17
How do you typeset code elements in normal text?
Something I've run into posting on SO: when you refer to a function with arguments, what is the best way to typeset it for readibility, brevity, and accuracy? I tend to put empty parentheses after the function name like `func()`, even if there are actually arguments for the function. I have trouble including the argu...
language-agnostic
format
null
null
null
null
open
How do you typeset code elements in normal text? === Something I've run into posting on SO: when you refer to a function with arguments, what is the best way to typeset it for readibility, brevity, and accuracy? I tend to put empty parentheses after the function name like `func()`, even if there are actually argument...
0
3,809
08/06/2008 18:32:37
479
08/06/2008 08:37:10
21
1
Setup Visual Studio 2005 to print line numbers
How can I get line numbers to print in Visual Studio 2005 when printing code listings?
visual-studio
null
null
null
null
null
open
Setup Visual Studio 2005 to print line numbers === How can I get line numbers to print in Visual Studio 2005 when printing code listings?
0
3,823
08/06/2008 18:39:33
423
08/05/2008 15:24:44
69
20
Suggestions for implementing audit tables in SQL Server?
One simple method I've used in the past is basically just creating a second table whose structure mirrors the one I want to audit, and then create an update/delete trigger on the main table. Before a record is updated/deleted, the current state is saved to the audit table via the trigger. While effective, the data ...
database
sql-server
db
audit
null
null
open
Suggestions for implementing audit tables in SQL Server? === One simple method I've used in the past is basically just creating a second table whose structure mirrors the one I want to audit, and then create an update/delete trigger on the main table. Before a record is updated/deleted, the current state is saved to ...
0
3,831
08/06/2008 18:44:06
83
08/01/2008 16:31:56
417
36
How do I best detect an ASP.NET expired session?
I need to detect when a session has expired in my Visuial Basic web application. This is what I'm using... Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If CurrentSession.IsNew AndAlso (Not Page.Request.Headers("Cookie") Is Nothing) AndAlso (Page.Request...
http
aspnet
session
null
null
null
open
How do I best detect an ASP.NET expired session? === I need to detect when a session has expired in my Visuial Basic web application. This is what I'm using... Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If CurrentSession.IsNew AndAlso (Not Page.Reque...
0
3,839
08/06/2008 18:47:24
547
08/06/2008 16:09:22
25
7
How do I Concatenate entire result sets in MySQL?
I'm trying out the following query: SELECT A,B,C FROM table WHERE field LIKE 'query%' UNION SELECT A,B,C FROM table WHERE field LIKE '%query' UNION SELECT A,B,C FROM table WHERE field LIKE '%query%' GROUP BY B ORDER BY B ASC LIMIT 5 That's three queries stuck together, kindasorta. Howev...
mysql
query
union
null
null
null
open
How do I Concatenate entire result sets in MySQL? === I'm trying out the following query: SELECT A,B,C FROM table WHERE field LIKE 'query%' UNION SELECT A,B,C FROM table WHERE field LIKE '%query' UNION SELECT A,B,C FROM table WHERE field LIKE '%query%' GROUP BY B ORDER BY B ASC LIMIT 5 ...
0
3,856
08/06/2008 18:57:38
26
08/01/2008 12:18:14
191
35
Adobe Flex component events
I have a component I wrote that display a filename, a thumbnail, and has a button to click on to load/play the file. The component is databound to a repeater. How can I make it so the button event fires to the main application and tells it which file to play?
flex
actionscript-3
null
null
null
null
open
Adobe Flex component events === I have a component I wrote that display a filename, a thumbnail, and has a button to click on to load/play the file. The component is databound to a repeater. How can I make it so the button event fires to the main application and tells it which file to play?
0
3,859
08/06/2008 18:58:53
1,384,652
08/01/2008 12:01:23
386
36
Version control
After being told by at least 10 people on SO that version control was a good thing even if it's just me I now have a followup question. What is the difference between all the different types of version control and is there a guide that anybody knows of for version control that's very simple and easy to understand?
versioncontrol
null
null
null
null
null
open
Version control === After being told by at least 10 people on SO that version control was a good thing even if it's just me I now have a followup question. What is the difference between all the different types of version control and is there a guide that anybody knows of for version control that's very simple and ...
0
3,867
08/06/2008 19:04:51
42
08/01/2008 13:00:11
66
4
Automated release script and Visual Studio Setup projects
I think most people here understand the importance of fully automated builds. The problem is one of our project is now using an integrated Visual Studio Setup project (vdproj) and has recently been ported to Visual Studio 2008. Unfortunatly, those won't build in MSBuild and calling devenv.exe /build on 2008 just cra...
visual-studio
setup
build-automation
msbuild
null
null
open
Automated release script and Visual Studio Setup projects === I think most people here understand the importance of fully automated builds. The problem is one of our project is now using an integrated Visual Studio Setup project (vdproj) and has recently been ported to Visual Studio 2008. Unfortunatly, those won't ...
0
3,868
08/06/2008 19:08:19
163
08/02/2008 20:40:09
40
1
How can I turn a string of HTML into a DOM object in a Firefox extension?
I'm downloading a web page with XMLHttpRequest and I want to take the output and turn it into a DOM object that I can then run XPATH queries on. How do I convert from a string into DOM object?
firefox
javascript
null
null
null
null
open
How can I turn a string of HTML into a DOM object in a Firefox extension? === I'm downloading a web page with XMLHttpRequest and I want to take the output and turn it into a DOM object that I can then run XPATH queries on. How do I convert from a string into DOM object?
0
3,881
08/06/2008 19:26:30
122
08/02/2008 07:56:07
747
35
IllegalArgumentException or NullPointerException for a null parameter?
I have a simple setter method for a Java property and null is not appropriate for this particular property. I have always been torn, in this situation: should I throw an [IllegalArgumentException][1], or a [NullPointerException][2]? From the javadocs, both seem appropriate. Is there some kind of understood standard?...
java
bestpractices
exception
null
null
null
open
IllegalArgumentException or NullPointerException for a null parameter? === I have a simple setter method for a Java property and null is not appropriate for this particular property. I have always been torn, in this situation: should I throw an [IllegalArgumentException][1], or a [NullPointerException][2]? From the ...
0
3,894
08/06/2008 19:34:47
76
08/01/2008 15:56:38
9
2
T-Sql Remove Decimal Point From Money Data Type
Given the constraint of only using T-Sql in Sql Server 2005, is there a better way to remove the decimal point from a money datatype than a conversion to a varchar (here implicitly) and then a replace of the decimal point? Here is what I have currently. SELECT REPLACE(1.23, '.', ''), REPLACE(19.99, '.', '') ...
sql-server
tsql
null
null
null
null
open
T-Sql Remove Decimal Point From Money Data Type === Given the constraint of only using T-Sql in Sql Server 2005, is there a better way to remove the decimal point from a money datatype than a conversion to a varchar (here implicitly) and then a replace of the decimal point? Here is what I have currently. SEL...
0
3,927
08/06/2008 20:14:57
121
08/02/2008 07:34:46
63
5
What Are Some Good .NET Profilers?
What profilers have you used when working with .net programs, and which would you particularly recommend?
c#
.net
profiler
null
null
null
open
What Are Some Good .NET Profilers? === What profilers have you used when working with .net programs, and which would you particularly recommend?
0
3,942
08/06/2008 20:26:21
443
08/05/2008 19:27:20
60
1
What's the best way to find long-running code in a Windows Forms Application
I inherited a Windows Forms app written in VB.Net. Certain parts of the app run dreadfully slow. What's the easiest way to find which parts of the code are holding things up? I'm looking for a way to quickly find the slowest subroutines and tackle them first in an attempt to speed up the app. I know that there ar...
visualbasic
null
null
null
null
null
open
What's the best way to find long-running code in a Windows Forms Application === I inherited a Windows Forms app written in VB.Net. Certain parts of the app run dreadfully slow. What's the easiest way to find which parts of the code are holding things up? I'm looking for a way to quickly find the slowest subroutine...
0
3,975
08/06/2008 20:59:58
162
08/02/2008 20:09:15
33
2
SQL Server 2005 index recommendations
We're in the process of upgrading one of our SQL Server instances from 2000 to 2005. I installed the performance dashboard (<http://www.microsoft.com/downloads/details.aspx?FamilyId=1d3a4a0d-7e0c-4730-8204-e419218c1efc&displaylang=en>) for access to some high level reporting. One of the reports shows missing (recommend...
sql-server
null
null
null
null
null
open
SQL Server 2005 index recommendations === We're in the process of upgrading one of our SQL Server instances from 2000 to 2005. I installed the performance dashboard (<http://www.microsoft.com/downloads/details.aspx?FamilyId=1d3a4a0d-7e0c-4730-8204-e419218c1efc&displaylang=en>) for access to some high level reporting. ...
0
3,976
08/06/2008 21:00:01
556
08/06/2008 16:48:23
45
3
Talking to a Serial Port in OS X
I have a Prolite LED sign that I like to set up to show scrolling search queries from a apache logs and other fun statistics. The problem is, my G5 does not have a serial port, so I have to use a usb to serial dongle. It shows up as /dev/cu.usbserial and /dev/tty.usbserial . When i do this everything seems to be hu...
serial
port
os
x
python
null
open
Talking to a Serial Port in OS X === I have a Prolite LED sign that I like to set up to show scrolling search queries from a apache logs and other fun statistics. The problem is, my G5 does not have a serial port, so I have to use a usb to serial dongle. It shows up as /dev/cu.usbserial and /dev/tty.usbserial . W...
0
3,978
08/06/2008 21:02:16
572
08/06/2008 20:56:54
1
0
Multi-Paradigm Languages
In a language such as (since I'm working in it now) PHP, which supports procedural and object-oriented paradigms, is there a good rule of thumb for determining which paradigm best suits a new project? If not, how can you make the decision?
php
object-oriented
paradigms
procedural
null
null
open
Multi-Paradigm Languages === In a language such as (since I'm working in it now) PHP, which supports procedural and object-oriented paradigms, is there a good rule of thumb for determining which paradigm best suits a new project? If not, how can you make the decision?
0
3,984
08/06/2008 21:06:32
571
08/06/2008 20:19:59
1
2
TestDriven.NET is not running my SetUp methods for MbUnit
I've created some MbUnit test fixtures that have SetUp methods marked with the SetUp attribute. These methods run before the tests just fine using the MbUnit GUI, the console runner, and the ReSharper MbUnit plugin. However, when I run the tests with TestDriven.NET it does not run the SetUp methods at all. Does ...
mbunit
.net
tdd
null
null
null
open
TestDriven.NET is not running my SetUp methods for MbUnit === I've created some MbUnit test fixtures that have SetUp methods marked with the SetUp attribute. These methods run before the tests just fine using the MbUnit GUI, the console runner, and the ReSharper MbUnit plugin. However, when I run the tests with Test...
0
3,996
08/06/2008 21:14:57
575
08/06/2008 21:14:57
1
0
How do I configure a Vista Ultimate (64bit) account so it can access a SMB share on OSX?
I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible via \\rudy\myshare for all the Windows users on the network, except for one guy running Vista Ultimate 64-bit edition. All the other users are running Vista or XP, all 32-bit. All the workgroup information is the same, all login with the ...
osx
windows-vista
smb
null
null
null
open
How do I configure a Vista Ultimate (64bit) account so it can access a SMB share on OSX? === I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible via \\rudy\myshare for all the Windows users on the network, except for one guy running Vista Ultimate 64-bit edition. All the other users are r...
0
3,999
08/06/2008 21:16:23
1,384,652
08/01/2008 12:01:23
414
37
Why .NET?
I've often wondered, what is so great about .NET and MsSQL? I can see a downside being that you **have** to run it on Windows but I am unaware of any upsides besides it being quite fast, yet so many here use it.
.net
c#
mssql
null
null
null
open
Why .NET? === I've often wondered, what is so great about .NET and MsSQL? I can see a downside being that you **have** to run it on Windows but I am unaware of any upsides besides it being quite fast, yet so many here use it.
0
4,004
08/06/2008 21:18:47
525
08/06/2008 14:41:28
6
1
How do I add SSL to a .net application that uses httplistener - it will *not* be running on IIS
I am using the .net HttpListener class, but I'm won't be running on IIS and am not using ASP.net. This [web site][1] describes what code to actual use to implement SSL with asp.net and [this site][2] describes how to set up the certificates (although I'm not sure if it works only for IIS or not). When I the class...
ssl
authentication
encryption
.net
null
null
open
How do I add SSL to a .net application that uses httplistener - it will *not* be running on IIS === I am using the .net HttpListener class, but I'm won't be running on IIS and am not using ASP.net. This [web site][1] describes what code to actual use to implement SSL with asp.net and [this site][2] describes how to s...
0
4,034
08/06/2008 21:43:33
571
08/06/2008 20:19:59
6
4
Multiple languages in an ASP.NET MVC application?
What is the best way to support multiple languages for the interface in an ASP.NET MVC application. I've seen people use resource files for other applications. Is this still the best way?
asp.net
asp.netmvc
language
multilingual
internationalization
null
open
Multiple languages in an ASP.NET MVC application? === What is the best way to support multiple languages for the interface in an ASP.NET MVC application. I've seen people use resource files for other applications. Is this still the best way?
0
4,051
08/06/2008 22:01:25
381
08/05/2008 10:39:26
231
4
Passing multidimensional arrays as function arguments in C
In C can I pass a multidimensional array to a function as a single argument ?
c
null
null
null
null
null
open
Passing multidimensional arrays as function arguments in C === In C can I pass a multidimensional array to a function as a single argument ?
0
4,052
08/06/2008 22:02:33
576
08/06/2008 21:34:52
1
0
How to enable Full-text Indexing in MSSQL 2005 Express?
I am trying to enable Full-text indexing in MSSQL 2005 Express. I am running this on my laptop with Vista Ultimate. I understand that the standard version of MSSQLExpress does not have full-text indexing. I have already downloaded and installed "MSSQL 2005 Express with Advanced Services" ([download][1]). I have a...
mssql
null
null
null
null
null
open
How to enable Full-text Indexing in MSSQL 2005 Express? === I am trying to enable Full-text indexing in MSSQL 2005 Express. I am running this on my laptop with Vista Ultimate. I understand that the standard version of MSSQLExpress does not have full-text indexing. I have already downloaded and installed "MSSQL 2005...
0
4,062
08/06/2008 22:21:55
1,384,652
08/01/2008 12:01:23
451
38
Caching
Currently I know of only two ways to cache data (I use PHP but I assume that the same will apply to most languages). 1. Save the cache to a file 2. Save the cache to a large DB field Are there any other (perhaps better) ways of caching or is it really just this simple?
language-agnostic
caching
null
null
null
null
open
Caching === Currently I know of only two ways to cache data (I use PHP but I assume that the same will apply to most languages). 1. Save the cache to a file 2. Save the cache to a large DB field Are there any other (perhaps better) ways of caching or is it really just this simple?
0
4,072
08/06/2008 22:30:26
122
08/02/2008 07:56:07
774
36
SVN merge merged extra stuff
I just did a merge using something like: svn merge -r 67212:67213 https://my.svn.repository/trunk . I only had 2 files, one of which is a simple ChangeLog. Rather than just merging my ChangeLog changes, it actually pulled mine plus some previous ones that were not in the destination ChangeLog. I noticed the...
svn
merge
null
null
null
null
open
SVN merge merged extra stuff === I just did a merge using something like: svn merge -r 67212:67213 https://my.svn.repository/trunk . I only had 2 files, one of which is a simple ChangeLog. Rather than just merging my ChangeLog changes, it actually pulled mine plus some previous ones that were not in the des...
0
4,080
08/06/2008 22:45:27
235
08/03/2008 20:30:43
36
1
What code analysis tools do you use for your Java projects?
What code analysis tools do you use on your Java projects? I am interested in all kinds - static code analysis tools (FindBugs, PMD, and any others) - code coverage tools (Cobertura, Emma, and any others) - any other instrumentation-based tools - anything else, if I'm missing something If applicable, also...
java
coverage
null
null
null
05/05/2012 13:39:59
not constructive
What code analysis tools do you use for your Java projects? === What code analysis tools do you use on your Java projects? I am interested in all kinds - static code analysis tools (FindBugs, PMD, and any others) - code coverage tools (Cobertura, Emma, and any others) - any other instrumentation-based tools ...
4
4,110
08/06/2008 23:19:50
369
08/05/2008 08:33:43
76
5
What program can I use to generate diagrams of SQL view/table structure?
I've been tasked with redesigning part of a ms-sql database structure which currently involves a lot of views, some of which contain joins to other views. Anyway, I wonder if anyone here could recommend a utility to automatically generate diagrams to help me visualise the whole structure. What's the best program...
database
sql
mssql
diagram
null
null
open
What program can I use to generate diagrams of SQL view/table structure? === I've been tasked with redesigning part of a ms-sql database structure which currently involves a lot of views, some of which contain joins to other views. Anyway, I wonder if anyone here could recommend a utility to automatically generate...
0
4,121
08/06/2008 23:32:27
326
08/04/2008 16:59:58
21
3
[Team] Coding Styles
[Assuming you write code on a team] Does your team actually agree on a coding style standard? Independent of what language you are using, I'm curious to know A) do you agree and B) are the styles something you created as a group or did you decide to use a "third party's" style guide? Our team uses C# primarily, a...
codingstyle
language-agnostic
null
null
null
05/08/2012 17:51:23
off topic
[Team] Coding Styles === [Assuming you write code on a team] Does your team actually agree on a coding style standard? Independent of what language you are using, I'm curious to know A) do you agree and B) are the styles something you created as a group or did you decide to use a "third party's" style guide? Our...
2
4,138
08/06/2008 23:46:24
83
08/01/2008 16:31:56
467
45
Best SVN Client Ignore Pattern for VB.NET Solutions?
What SVN Ignore Pattern should TortoiseSVN have for a VB.NET solution?
svn
vb.net
subversion
tortoisesvn
vb
null
open
Best SVN Client Ignore Pattern for VB.NET Solutions? === What SVN Ignore Pattern should TortoiseSVN have for a VB.NET solution?
0
4,149
08/06/2008 23:57:10
488
08/06/2008 09:52:47
1
1
How do I use Java to read from a file that is actively being written?
I have an application that writes information to file. This information is used post-execution to determine pass/failure/correctness of the application. I'd like to be able to read the file as it is being written so that I can do these pass/failure/correctness checks in realtime. I assume it is possible to do this, but...
java
file
file-io
null
null
null
open
How do I use Java to read from a file that is actively being written? === I have an application that writes information to file. This information is used post-execution to determine pass/failure/correctness of the application. I'd like to be able to read the file as it is being written so that I can do these pass/fail...
0
4,151
08/06/2008 23:58:47
453
08/05/2008 20:59:40
91
4
Best way to cache data in .NET
I am in the process of figuring out a cache strategy for our current setup, currently have multiple web servers and wanted to know what is the best way to cache data in this environment. I have done research about MemCache and the native asp.net caching but wanted to get some feedback first. Should I go with a Linux bo...
.net
caching
null
null
null
null
open
Best way to cache data in .NET === I am in the process of figuring out a cache strategy for our current setup, currently have multiple web servers and wanted to know what is the best way to cache data in this environment. I have done research about MemCache and the native asp.net caching but wanted to get some feedbac...
0
4,157
08/07/2008 00:12:55
551
08/06/2008 16:24:59
8
2
ConfigurationManager.AppSettings Performance Concerns
I plan to be storing all my config settings in my application's app.config section (using the ConfigurationManager.AppSettings class). As the user changes settings using the app's UI (clicking checkboxes, choosing radio buttons, etc.), I plan to be writing those changes out to the AppSettings. At the same time, while t...
c#
.net
configuration
performance
null
null
open
ConfigurationManager.AppSettings Performance Concerns === I plan to be storing all my config settings in my application's app.config section (using the ConfigurationManager.AppSettings class). As the user changes settings using the app's UI (clicking checkboxes, choosing radio buttons, etc.), I plan to be writing thos...
0
4,164
08/07/2008 00:20:03
50
08/01/2008 13:29:54
233
18
What is a good barebones CMS or framework?
I'm about to start a project for a customer who wants CMS-like functionality. They want users to be able to log in, modify a profile, and a basic forum. They also wish to be able to submit things to a front page. Is there a framework or barebones CMS that I could expand on or tailor to my needs? I don't need anythin...
content-management-system
framework
null
null
null
06/10/2012 15:43:06
not constructive
What is a good barebones CMS or framework? === I'm about to start a project for a customer who wants CMS-like functionality. They want users to be able to log in, modify a profile, and a basic forum. They also wish to be able to submit things to a front page. Is there a framework or barebones CMS that I could expan...
4
4,168
08/07/2008 00:22:54
588
08/07/2008 00:22:53
1
0
graph serialization
I'm looking for a simple algorithm to 'serialize' a directed graph. In particular I've got a set of files with interdependencies on their execution order, and I want to find the correct order at compile time. I know it must be a fairly common thing to do - compilers do it all the time - but my google-fu has been weak t...
algorithm
directedgraph
null
null
null
null
open
graph serialization === I'm looking for a simple algorithm to 'serialize' a directed graph. In particular I've got a set of files with interdependencies on their execution order, and I want to find the correct order at compile time. I know it must be a fairly common thing to do - compilers do it all the time - but my ...
0
4,208
08/07/2008 00:39:17
55
08/01/2008 13:40:09
596
46
Windows Equivalent of 'nice'
Is there a Windows equivalent of the Unix command, *nice*? I'm specifically looking for something I can use at the command line, and **not** the "Set Priority" menu from the task manager. My attempts at finding this on Google have been thwarted by those who can't come up with better adjectives.
windows
unix
null
null
null
null
open
Windows Equivalent of 'nice' === Is there a Windows equivalent of the Unix command, *nice*? I'm specifically looking for something I can use at the command line, and **not** the "Set Priority" menu from the task manager. My attempts at finding this on Google have been thwarted by those who can't come up with bet...
0
4,219
08/07/2008 00:43:33
423
08/05/2008 15:24:44
76
25
Experience with SVN vs. Team Foundation Server?
A few months back my team switched our source control over to [Subversion][1] from [Visual SourceSafe][2], and we haven't been happier. Recently I've been looking at [Team Foundation Server][3], and at least on the surface, it seems very impressive. There is some great integration with Visual Studio, and lots of grea...
svn
subversion
tfs
teamfoundationserver
sourcecontrol
null
open
Experience with SVN vs. Team Foundation Server? === A few months back my team switched our source control over to [Subversion][1] from [Visual SourceSafe][2], and we haven't been happier. Recently I've been looking at [Team Foundation Server][3], and at least on the surface, it seems very impressive. There is some g...
0
4,221
08/07/2008 00:45:51
519
08/06/2008 14:09:46
36
2
LinqDataSource - Can you limit the amount of records returned?
I'd like to use a LinqDataSource control on a page and limit the amount of records returned. I know if I use code behind I could do something like this: IEnumerable<int> values = Enumerable.Range(0, 10); IEnumerable<int> take3 = values.Take(3); Does anyone know if something like this is possible with a ...
asp.net
c#
linq
linq-to-sql
null
null
open
LinqDataSource - Can you limit the amount of records returned? === I'd like to use a LinqDataSource control on a page and limit the amount of records returned. I know if I use code behind I could do something like this: IEnumerable<int> values = Enumerable.Range(0, 10); IEnumerable<int> take3 = values.Tak...
0
4,225
08/07/2008 00:48:04
364
08/05/2008 05:33:41
31
5
Territory Map Generation
Is there a trivial, or at least moderately straight-forward way to generate territory maps (e.g. Risk)? I have looked in the past and the best I could find were vague references to Voronoi diagrams. An example of a Voronoi diagram is [here][1]. These hold promise, but I guess i haven't seen any straight-forward ...
language-agnostic
maps
null
null
null
null
open
Territory Map Generation === Is there a trivial, or at least moderately straight-forward way to generate territory maps (e.g. Risk)? I have looked in the past and the best I could find were vague references to Voronoi diagrams. An example of a Voronoi diagram is [here][1]. These hold promise, but I guess i have...
0
4,227
08/07/2008 00:51:21
91
08/01/2008 17:55:22
2,131
174
C#: Accessing a Dictionary.Keys Key through a numeric index
I'm using a Dictionary&lt;string, int&gt; where the int is a count of the key. Now, I need to access the last-inserted Key inside the Dictionary, but i do not know the name of it. The obvious attempt: int LastCount = mydict[mydict.keys[mydict.keys.Count]]; does not work, because Dictionary.Keys does not im...
c#
.net
null
null
null
null
open
C#: Accessing a Dictionary.Keys Key through a numeric index === I'm using a Dictionary&lt;string, int&gt; where the int is a count of the key. Now, I need to access the last-inserted Key inside the Dictionary, but i do not know the name of it. The obvious attempt: int LastCount = mydict[mydict.keys[mydict.ke...
0
4,230
08/07/2008 00:54:31
392
08/05/2008 12:29:07
21
6
The Difference Between a DataGrid and a GridView in ASP.NET?
I've been doing ASP.NET development for a little while now, and I've used both the GridView and the DataGrid controls before for various things, but I never could find a really good reason to use one or the other. I'd like to know: What is the difference between these 2 ASP.NET controls? What are the advantages or d...
asp.net
null
null
null
null
null
open
The Difference Between a DataGrid and a GridView in ASP.NET? === I've been doing ASP.NET development for a little while now, and I've used both the GridView and the DataGrid controls before for various things, but I never could find a really good reason to use one or the other. I'd like to know: What is the differe...
0
4,234
08/07/2008 00:56:41
590
08/07/2008 00:24:39
1
4
What to use for Messaging with C#
So my company stores alot of data in a foxpro database and trying to get around the performance hit of touching it directly I was thinking of messaging anything that can be done asynchronously for a snappier user experience. I started looking at [ActiveMQ][1] but don't know how well C# will hook with it. Wanting to h...
c#
messaging
null
null
null
null
open
What to use for Messaging with C# === So my company stores alot of data in a foxpro database and trying to get around the performance hit of touching it directly I was thinking of messaging anything that can be done asynchronously for a snappier user experience. I started looking at [ActiveMQ][1] but don't know how w...
0
4,242
08/07/2008 01:05:15
122
08/02/2008 07:56:07
793
39
Why can't I call toString on a primitive?
I want to convert a primitive to a string, and I tried: myInt.toString(); This fails with the error: int cannot be dereferenced Now, I get that primitives are not reference types (ie, not an Object) and so cannot have methods. However, Java 5 introduced autoboxing and unboxing (a la C#... which I n...
java
primitive
autoboxing
null
null
null
open
Why can't I call toString on a primitive? === I want to convert a primitive to a string, and I tried: myInt.toString(); This fails with the error: int cannot be dereferenced Now, I get that primitives are not reference types (ie, not an Object) and so cannot have methods. However, Java 5 introduce...
0
4,246
08/07/2008 01:09:04
162
08/02/2008 20:09:15
33
2
What is best practice for FTP from a SQL Server stored procedure?
What is the best method for executing FTP commands from a SQL Server stored procedure? we currently use something like this: EXEC master..xp_cmdshell 'ftp -n -s:d:\ftp\ftpscript.xmt 172.1.1.1' The problem is that the command seems to succeed even if the FTP ended in error. Also, the use of xp_cmdshell require...
sql-server
ftp
null
null
null
null
open
What is best practice for FTP from a SQL Server stored procedure? === What is the best method for executing FTP commands from a SQL Server stored procedure? we currently use something like this: EXEC master..xp_cmdshell 'ftp -n -s:d:\ftp\ftpscript.xmt 172.1.1.1' The problem is that the command seems to succe...
0
4,269
08/07/2008 01:28:03
357
08/05/2008 01:29:23
218
12
Programmatic SMS
What is the best way to programmatically send an SMS text message? Are there any free Web Service based SMS gateways? I know that if I happen to know the user's carrier (Sprint, AT&T, etc), I can send an [SMS by emailing an address][1] based on phone number + carrier. I would like a good solution that does not re...
mobile
sms
textmessage
null
null
null
open
Programmatic SMS === What is the best way to programmatically send an SMS text message? Are there any free Web Service based SMS gateways? I know that if I happen to know the user's carrier (Sprint, AT&T, etc), I can send an [SMS by emailing an address][1] based on phone number + carrier. I would like a good sol...
0
4,287
08/07/2008 01:54:12
121
08/02/2008 07:34:46
73
6
How Do You Determine The PID of the Parent of a Process
I have a process in erlang that is supposed to do something immediately after spawn, then send the result back to the parent when it is finished. How do I figure out the PID of the process that spawned it?
erlang
null
null
null
null
null
open
How Do You Determine The PID of the Parent of a Process === I have a process in erlang that is supposed to do something immediately after spawn, then send the result back to the parent when it is finished. How do I figure out the PID of the process that spawned it?
0
4,303
08/07/2008 02:27:03
358
08/05/2008 01:41:40
222
7
Why should I practice Test Driven Development and how should I start?
Lots of people talk about writing tests for their code before they start writing their code. This practice is generally known as Test Driven Development or TDD for short. What benefits do I gain from writing software this way? How do I get started with this practice?
testing
tdd
null
null
null
null
open
Why should I practice Test Driven Development and how should I start? === Lots of people talk about writing tests for their code before they start writing their code. This practice is generally known as Test Driven Development or TDD for short. What benefits do I gain from writing software this way? How do I get start...
0
4,305
08/07/2008 02:27:58
34
08/01/2008 12:39:52
1,563
85
Grid Hosting for Windows
Are there any **good** grid-hosting companies out there that offer .NET stacks? Something like MediaTemple - which won't host the worlds fastest websites, but for the price is far better than "shared hosting". I've used Rackspace's Mosso, but it sucked - it never felt like a normal .NET stack (caching was odd, site rec...
.net
hosting
null
null
null
null
open
Grid Hosting for Windows === Are there any **good** grid-hosting companies out there that offer .NET stacks? Something like MediaTemple - which won't host the worlds fastest websites, but for the price is far better than "shared hosting". I've used Rackspace's Mosso, but it sucked - it never felt like a normal .NET st...
0
4,306
08/07/2008 02:29:58
522
08/06/2008 14:24:03
11
4
What is the best way to create a sparse array?
I am working on a project that requires the manipulation of enourmous matrices, particularly pyramidal summation for a copula calculation. In short, I need to keep track of a relatively small number of values (usually a value of 1, and in rare cases more than 1) in a sea of zeros in the matrix (multidimensional array)...
c++
c
data
datastructure
tree
null
open
What is the best way to create a sparse array? === I am working on a project that requires the manipulation of enourmous matrices, particularly pyramidal summation for a copula calculation. In short, I need to keep track of a relatively small number of values (usually a value of 1, and in rare cases more than 1) in a...
0
4,314
08/07/2008 02:37:07
358
08/05/2008 01:41:40
222
7
What is Object Mocking and when do I need it?
Many people use Mock Objects when they are writing unit tests. What is a **Mock Object**? Why would I ever need one? Do I need a Mock Object Framework?
testing
mocking
null
null
null
null
open
What is Object Mocking and when do I need it? === Many people use Mock Objects when they are writing unit tests. What is a **Mock Object**? Why would I ever need one? Do I need a Mock Object Framework?
0
4,320
08/07/2008 02:41:24
1,525,924
08/06/2008 22:24:49
100
5
ASP.Net 2.0 Application without Business Logic Layer?
Is it "acceptable" to have an ASP.Net 2.0 application without the BLL (Business Logic Layer) as the following? 1. SQL Server Data Storage & Stored Procedures 2. Data Link Layer (Strongly Typed Table Adapters) connecting to Stored Procs 3. Presentation Layer ASPX Pages with Code behind and ObjectDataSource for conn...
asp.net
asp
applications
businesslogiclayer
datalinklayer
null
open
ASP.Net 2.0 Application without Business Logic Layer? === Is it "acceptable" to have an ASP.Net 2.0 application without the BLL (Business Logic Layer) as the following? 1. SQL Server Data Storage & Stored Procedures 2. Data Link Layer (Strongly Typed Table Adapters) connecting to Stored Procs 3. Presentation Laye...
0
4,335
08/07/2008 02:50:13
20,207
09/22/2008 05:12:48
1
0
WCF - High availability
Is there anyway to configure a WCF service with a failover endpoint if the primary endpoint dies? Kind of like being able to specify a failover server in a SQL cluster... Specifically I am using the TCP/IP binding for speed, but on the rare occurrence that the machine is not available I would like to redirect traffi...
c#
.net
wcf
soa
null
null
open
WCF - High availability === Is there anyway to configure a WCF service with a failover endpoint if the primary endpoint dies? Kind of like being able to specify a failover server in a SQL cluster... Specifically I am using the TCP/IP binding for speed, but on the rare occurrence that the machine is not available I ...
0
4,347
08/07/2008 03:06:19
522
08/06/2008 14:24:03
26
9
Where is a good place to start programming GUIs for windows?
I have experience writing console and network client/server apps in C and C++, but I know next to nothing about using the win32 visual API, MFC, QT, WxWidgets, etc. Where is a good place to start, and what method should I specialize in, so as to be future ready and robust?
c++
c
mfc
winapi
windows-api
null
open
Where is a good place to start programming GUIs for windows? === I have experience writing console and network client/server apps in C and C++, but I know next to nothing about using the win32 visual API, MFC, QT, WxWidgets, etc. Where is a good place to start, and what method should I specialize in, so as to be futu...
0
4,363
08/07/2008 03:23:45
396
08/05/2008 12:46:44
58
5
What is the best way to do unit testing for ASP web pages (C#)?
Any suggestions? Using visual studio in C#. Are there any specific tools to use or methods to approach this?
c#
asp.net
visual-studio
asp
test
07/14/2012 14:23:36
not constructive
What is the best way to do unit testing for ASP web pages (C#)? === Any suggestions? Using visual studio in C#. Are there any specific tools to use or methods to approach this?
4
4,369
08/07/2008 03:46:47
264
08/04/2008 09:58:18
489
18
Include files requiring a absolute path
I have a directory structure like the following; >/script.php > >/inc/include1.php<br/> >/inc/include2.php > >/objects/object1.php<br/> >/objects/object2.php > >/soap/soap.php Now, I use those objects in both script.php and /soap/soap.php, I could move them, but I want the directory structure like that for ...
php
null
null
null
null
null
open
Include files requiring a absolute path === I have a directory structure like the following; >/script.php > >/inc/include1.php<br/> >/inc/include2.php > >/objects/object1.php<br/> >/objects/object2.php > >/soap/soap.php Now, I use those objects in both script.php and /soap/soap.php, I could move them, but ...
0
4,371
08/07/2008 03:54:14
131
08/02/2008 08:58:50
41
1
How do I retrieve my MySQL username and password?
I lost my MySQL username and password. How do I retrieve it?
mysql
null
null
null
null
null
open
How do I retrieve my MySQL username and password? === I lost my MySQL username and password. How do I retrieve it?
0
4,387
08/07/2008 04:24:11
525
08/06/2008 14:41:28
36
2
Best Multi-Language Documentation Generator
What is the best documentation generator? I want to something that will easily add templates for documenting functions, classes, etc. I know there are several tools out there -- * which is the best? * are there any documentation tools that could be used for multiple languages (e.g. VB.net and JavaScript) Bonus ...
documentation
polls
null
null
null
05/05/2012 13:40:05
not constructive
Best Multi-Language Documentation Generator === What is the best documentation generator? I want to something that will easily add templates for documenting functions, classes, etc. I know there are several tools out there -- * which is the best? * are there any documentation tools that could be used for multiple...
4
4,392
08/07/2008 04:41:24
525
08/06/2008 14:41:28
36
2
Best Debbuging Tools for JavaScript Development
In the past few months I began my first serious JavaScript development, as I began developing XUL applications. I use Notepad++ as my editor, but I was pretty appalled to find (as far as I can tell) that Venkman/Javascript Debugger is **the** tool for debugging. It seems like a poor replacement to Visual Studio for ....
javascript
tools
debugging
ide
null
null
open
Best Debbuging Tools for JavaScript Development === In the past few months I began my first serious JavaScript development, as I began developing XUL applications. I use Notepad++ as my editor, but I was pretty appalled to find (as far as I can tell) that Venkman/Javascript Debugger is **the** tool for debugging. It...
0
4,416
08/07/2008 05:13:31
404
08/05/2008 13:34:59
220
16
Where can I get the Windows Workflow "wca.exe" application?
I am walking through the MS Press Windows Workflow Step-by-Step book and in chapter 8 it mentions a tool with the filename "wca.exe". This is supposed to be able to generate workflow communication helper classes based on an interface you provide it. I can't find that file. I thought it would be in the latest .NET 3....
windows
workflow
sdk
null
null
null
open
Where can I get the Windows Workflow "wca.exe" application? === I am walking through the MS Press Windows Workflow Step-by-Step book and in chapter 8 it mentions a tool with the filename "wca.exe". This is supposed to be able to generate workflow communication helper classes based on an interface you provide it. I c...
0
4,418
08/07/2008 05:21:16
307
08/04/2008 14:26:05
260
24
How do I update Ruby Gems from behind a Proxy (ISA-NTLM)
Firewall I'm behind is running Microsoft ISA server (NTLM only mode), anyone have success getting their Ruby gems to install/update via Ruby SSPI gem or other method? ... or am I just being lazy? Edit: **rubysspi-1.2.4 does not work**
ruby
hacks
proxy
gem
null
null
open
How do I update Ruby Gems from behind a Proxy (ISA-NTLM) === Firewall I'm behind is running Microsoft ISA server (NTLM only mode), anyone have success getting their Ruby gems to install/update via Ruby SSPI gem or other method? ... or am I just being lazy? Edit: **rubysspi-1.2.4 does not work**
0