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
30,833
08/27/2008 18:38:31
777
08/08/2008 19:35:20
11
3
Compile a referenced dll
Using VS2005 and vb.net ... I have a project that is an api for a datastore that I created. When compiled creates api.dll. I have a second project in the same solution that has a project reference to the api project which when compiled will create wrapper.dll. This is basically a wrapper for the api that is specific ...
net
visualstudio
null
null
null
null
open
Compile a referenced dll === Using VS2005 and vb.net ... I have a project that is an api for a datastore that I created. When compiled creates api.dll. I have a second project in the same solution that has a project reference to the api project which when compiled will create wrapper.dll. This is basically a wrapper...
0
30,835
08/27/2008 18:38:54
2,535
08/22/2008 17:36:15
21
2
Source Versioning for Visual Studio Express
Is there any Visual Studio Express plug ins for source versioning? I am starting a project on my own and only have the Express version of Visual Studio 2008.
visual-studio-2008-expre
version-control
plugins
null
null
null
open
Source Versioning for Visual Studio Express === Is there any Visual Studio Express plug ins for source versioning? I am starting a project on my own and only have the Express version of Visual Studio 2008.
0
30,847
08/27/2008 18:43:21
80
08/01/2008 16:11:11
124
4
Regex to validate URIs
How do you produce a regex that matches only valid URI. The description for URIs can be found here: http://en.wikipedia.org/wiki/URI_scheme. It doesn't need to extract any parts, just test if a URI is valid. (preferred format is .Net RegularExpression)
regex
.net
null
null
null
null
open
Regex to validate URIs === How do you produce a regex that matches only valid URI. The description for URIs can be found here: http://en.wikipedia.org/wiki/URI_scheme. It doesn't need to extract any parts, just test if a URI is valid. (preferred format is .Net RegularExpression)
0
30,856
08/27/2008 18:48:04
2,363
08/21/2008 20:55:49
408
15
MySQL Results to a File
How do I write the results from a mysql query to file? I just need something quick. Output can be CSV, XML, HTML, etc.
database
mysql
db
null
null
null
open
MySQL Results to a File === How do I write the results from a mysql query to file? I just need something quick. Output can be CSV, XML, HTML, etc.
0
30,877
08/27/2008 18:54:44
3,063
08/26/2008 14:19:28
1
0
Fastest way to calculate primes in C#?
I actually have an answer to my question but it is not parallelized so I am interested in ways to improve the algorithm. Anyway it might be useful as-is for some people. int Until = 20000000; BitArray PrimeBits = new BitArray(Until, true); /* * Sieve of Eratosthenes * PrimeBits is a simpl...
c#
.net
primes
performance
null
null
open
Fastest way to calculate primes in C#? === I actually have an answer to my question but it is not parallelized so I am interested in ways to improve the algorithm. Anyway it might be useful as-is for some people. int Until = 20000000; BitArray PrimeBits = new BitArray(Until, true); /* * Sieve ...
0
30,879
08/27/2008 18:55:30
2,858
08/25/2008 15:42:32
11
0
Is there a pattern using Linq to dynamically create a filter?
Is there a pattern using Linq to dynamically create a filter? I have the need to create custom filtering on a list, in the past I would just dynamically create the SQL...it doesn't seem like this is possible with Linq.
linq
linq-to-sql
.net-3.5
null
null
null
open
Is there a pattern using Linq to dynamically create a filter? === Is there a pattern using Linq to dynamically create a filter? I have the need to create custom filtering on a list, in the past I would just dynamically create the SQL...it doesn't seem like this is possible with Linq.
0
30,884
08/27/2008 18:57:17
247
08/04/2008 00:50:51
26
7
What is the best way to share MasterPages across projects
Suppose you have two seperate ASP.NET Web Application projects that both need to use a common MasterPage. What's the best way to share the MasterPage across projects without having to duplicate code?
asp.net
null
null
null
null
null
open
What is the best way to share MasterPages across projects === Suppose you have two seperate ASP.NET Web Application projects that both need to use a common MasterPage. What's the best way to share the MasterPage across projects without having to duplicate code?
0
30,903
08/27/2008 19:00:34
3,071
08/26/2008 14:30:11
22
6
Good Mercurial repository viewer for Mac
Is there a good, native Mac tool to view Mercurial repositories, similar to gitnub for Git?
mercurial
null
null
null
null
12/20/2011 14:02:22
not constructive
Good Mercurial repository viewer for Mac === Is there a good, native Mac tool to view Mercurial repositories, similar to gitnub for Git?
4
30,915
08/27/2008 19:05:24
1,063
08/12/2008 05:40:42
389
40
Cool open source projects
This is a similar question to [one posted earlier][1], but slightly different. I'm interested in what your favorite Open Source app is. I don't care if it's well coded or if it isn't active anymore, I just am interesteed in apps that work and do something useful. The internet is a big place, so with a few suggestions s...
opensource
program
suggestions
null
null
null
open
Cool open source projects === This is a similar question to [one posted earlier][1], but slightly different. I'm interested in what your favorite Open Source app is. I don't care if it's well coded or if it isn't active anymore, I just am interesteed in apps that work and do something useful. The internet is a big pla...
0
30,928
08/27/2008 19:11:30
1,600
08/17/2008 13:46:47
634
51
A WYSIWYG Markdown control for Windows Forms?
[We have a Windows Forms database front-end application that, among other things, can be used as a CMS; clients create the structure, fill it, and then use a ASP.NET WebForms-based site to present the results to publicly on the Web. For added flexibility, they are sometimes forced to input actual HTML markup right into...
markdown
html
winforms
asp.net
null
null
open
A WYSIWYG Markdown control for Windows Forms? === [We have a Windows Forms database front-end application that, among other things, can be used as a CMS; clients create the structure, fill it, and then use a ASP.NET WebForms-based site to present the results to publicly on the Web. For added flexibility, they are some...
0
30,931
08/27/2008 19:12:36
3,306
08/27/2008 19:12:36
1
0
Register file extensions / mime types in Linux
I'm developing a Linux application that has its own file format. I want my app to open when you double-click on those files. How can I register a file extension and associate it with my application on Linux? I'm looking for a way that that is standard (works with GNOME and KDE based systems) and can be done automati...
mime
file-type
freedesktop
linux
installation
null
open
Register file extensions / mime types in Linux === I'm developing a Linux application that has its own file format. I want my app to open when you double-click on those files. How can I register a file extension and associate it with my application on Linux? I'm looking for a way that that is standard (works with G...
0
30,940
08/27/2008 19:14:29
2,025
08/19/2008 20:59:50
1,087
119
How to handle error logging
Until recently I've been using `syslog` in my `System_Exception` exception handler to log important errors - a pretty useful concept I thought. However my host just cut me off, and it appears that loveable `syslog` has actually been sending my error reports to everyone on the server (it's a shared server). They weren't...
php
error-logging
null
null
null
null
open
How to handle error logging === Until recently I've been using `syslog` in my `System_Exception` exception handler to log important errors - a pretty useful concept I thought. However my host just cut me off, and it appears that loveable `syslog` has actually been sending my error reports to everyone on the server (it...
0
30,946
08/27/2008 19:17:47
2,147
08/20/2008 15:14:13
229
36
Simple password encryption
What is a good, simple encryption scheme for protecting passwords in a database? I don't necessarily need anything that's hyper-secure nor do I need anything that's lightning fast, but those things would be nice. Primarily, I just want something that's easy to implement without being terribly slow or insecure.
database
language-agnostic
passwords
null
null
null
open
Simple password encryption === What is a good, simple encryption scheme for protecting passwords in a database? I don't necessarily need anything that's hyper-secure nor do I need anything that's lightning fast, but those things would be nice. Primarily, I just want something that's easy to implement without being t...
0
30,947
08/27/2008 19:17:55
1,946
08/19/2008 14:53:06
93
4
Visual Studio 08 Spell Check Addin?
If possible one that supports at least spell checking: - C# string literals - HTML content - Comments
visualstudio
vs2008
add-in
null
null
null
open
Visual Studio 08 Spell Check Addin? === If possible one that supports at least spell checking: - C# string literals - HTML content - Comments
0
30,953
08/27/2008 19:19:52
3,022
08/26/2008 12:28:45
31
2
Is there a multiplatform framework for developing iPhone / Android applications?
I am interested in writing applications for the iPhone and the Android platform. I was hoping to find a middleware / framework that abstracted away some of the differences in the APIs and allow me to specify the target platform at build time. Is there such a framework existing or planned?
iphone
framework
android
middleware
null
null
open
Is there a multiplatform framework for developing iPhone / Android applications? === I am interested in writing applications for the iPhone and the Android platform. I was hoping to find a middleware / framework that abstracted away some of the differences in the APIs and allow me to specify the target platform at bui...
0
30,962
08/27/2008 19:24:18
1,175
08/13/2008 10:21:54
794
82
Finding City and Zip Code for a Location
Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location. (This is similar to http://beta.stackoverflow.com/questions/23572/latitude-longitude-database, except I want to convert in the opposite direction.)
maps
gis
mapping
geocoding
location
null
open
Finding City and Zip Code for a Location === Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location. (This is similar to http://beta.stackoverflow.com/questions/23572/latitude-longitude-database, except I want to convert in the opposite direction.)
0
30,972
08/27/2008 19:26:47
260
08/04/2008 08:21:41
71
4
OS X InputManager, anything similar on Windows
Is there anything similar on Windows what would achieve the same as the InputManager on OS X?
windows
osx
apple
windows-api
null
null
open
OS X InputManager, anything similar on Windows === Is there anything similar on Windows what would achieve the same as the InputManager on OS X?
0
30,985
08/27/2008 19:31:40
292
08/04/2008 13:14:31
390
16
querying 2 tables with the same spec for the differences.
I recently had to solve this problem and find I've needed this info many times in the past so I thought I would post it. Assuming the following table def, how would you write a query to find all differences between the two? table def: CREATE TABLE feed_tbl ( code varchar(15), name varchar(40),...
sql
delta
null
null
null
null
open
querying 2 tables with the same spec for the differences. === I recently had to solve this problem and find I've needed this info many times in the past so I thought I would post it. Assuming the following table def, how would you write a query to find all differences between the two? table def: CREATE TABL...
0
30,995
08/27/2008 19:35:40
3,012
08/26/2008 11:55:24
11
4
"File Save Failed" error when working with Crystal Reports in VS2008
Occasionally while attempting to save a Crystal Report that I'm working on in VS2008, a dialog titled "File Save Failed" pops up saying "The document could not be saved in C:\Users\Phillip\AppData\Local\Temp\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.rpt. It has been saved in C:\Users\Phillip\AppData\Local\Temp\~zzz{YYYYY...
crystal-reports
vs2008
vb.net
null
null
null
open
"File Save Failed" error when working with Crystal Reports in VS2008 === Occasionally while attempting to save a Crystal Report that I'm working on in VS2008, a dialog titled "File Save Failed" pops up saying "The document could not be saved in C:\Users\Phillip\AppData\Local\Temp\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}...
0
30,998
08/27/2008 19:36:18
2,566
08/22/2008 22:30:40
1
0
using too much static bad or good ?
i like to use static functions in c++ as a way to categorize them, like c# does. Console::WriteLine("hello") but is it good or bad ? if the functions are often used i guess it doesn't matter, but if not do they put pressure on memory ? The same goes for static const...
c++
static
null
null
null
null
open
using too much static bad or good ? === i like to use static functions in c++ as a way to categorize them, like c# does. Console::WriteLine("hello") but is it good or bad ? if the functions are often used i guess it doesn't matter, but if not do they put pressure on memory ? The same goes for static con...
0
31,007
08/27/2008 19:39:07
2,723
08/24/2008 17:49:45
13
0
Pass reference to element in C# Array
I build up an array of strings with string[] parts = string.spilt(" "); And get an array with X parts in it, I would like to get a copy of the array of strings starting at element parts[x-2] Other than the obvious brute force approach (make a new array and insert strings), is there a more elegant w...
c#
arrays
null
null
null
null
open
Pass reference to element in C# Array === I build up an array of strings with string[] parts = string.spilt(" "); And get an array with X parts in it, I would like to get a copy of the array of strings starting at element parts[x-2] Other than the obvious brute force approach (make a new array and...
0
31,031
08/27/2008 19:45:34
177
08/03/2008 02:15:39
48
3
What's the best way to allow a user to browse for a file in C#?
What's the best way to allow a user to browse for a file in C#?
c#
null
null
null
null
null
open
What's the best way to allow a user to browse for a file in C#? === What's the best way to allow a user to browse for a file in C#?
0
31,044
08/27/2008 19:49:41
302
08/04/2008 13:39:41
343
14
Is there an "exists" function for jQuery
So I know that you can do: if ($(selector).length>0) { // Do something } But is there a more elegant method?
jquery
exists
null
null
null
null
open
Is there an "exists" function for jQuery === So I know that you can do: if ($(selector).length>0) { // Do something } But is there a more elegant method?
0
31,051
08/27/2008 19:51:09
2,170
08/20/2008 17:55:07
96
5
Setting up replicated repositories in Plastic SCM
So we're trying to set up replicated repositories using PlasticSCM, one in the US, and one in Australia and running into a bit of a snag. The US configuration is Active Directory, the AU configuration is User/Password. This in itself is not a big deal, I've already set up the SID translation table. The problem...
plasticscm
repositories
version-control
distributed
null
null
open
Setting up replicated repositories in Plastic SCM === So we're trying to set up replicated repositories using PlasticSCM, one in the US, and one in Australia and running into a bit of a snag. The US configuration is Active Directory, the AU configuration is User/Password. This in itself is not a big deal, I've alr...
0
31,053
08/27/2008 19:51:30
838
08/09/2008 08:08:30
217
7
Regex (C#): Replace \n with \r\n
How can I replace lone instances of \n with \r\n (LF alone with CRLF) using a regular expression in C#? Sorry if it's a stupid question, I'm new to Regex. I know to do it by: myStr.Replace("\n", "\r\n"); myStr.Replace("\r\r\n", "\r\n"); But this is inelegant, and would destroy any "\r+\r\n" alre...
c#
regex
null
null
null
null
open
Regex (C#): Replace \n with \r\n === How can I replace lone instances of \n with \r\n (LF alone with CRLF) using a regular expression in C#? Sorry if it's a stupid question, I'm new to Regex. I know to do it by: myStr.Replace("\n", "\r\n"); myStr.Replace("\r\r\n", "\r\n"); But this is inelegant...
0
31,057
08/27/2008 19:53:01
1,284
08/14/2008 11:34:29
3
4
How to insert a line break in a SQL Server VARCHAR/NVARCHAR string
I didn't see any similar questions asked on this topic, and I had to research this for something I'm working on right now. Thought I would post the answer for it in case anyone else had the same question.
sql
sql-server
null
null
null
null
open
How to insert a line break in a SQL Server VARCHAR/NVARCHAR string === I didn't see any similar questions asked on this topic, and I had to research this for something I'm working on right now. Thought I would post the answer for it in case anyone else had the same question.
0
31,059
08/27/2008 19:54:16
2,547
08/22/2008 19:10:02
48
5
How do you configure an OpenFileDIalog to select folders?
In VS .NET, when you are selecting a folder for a project, a dialog that looks like an OpenFileDialog or SaveFileDialog is displayed, but is set up to accept only folders. Ever since I've seen this I've wanted to know how it's done. I am aware of the FolderBrowserDialog, but I've never really liked that dialog. It s...
.net
windows
null
null
null
null
open
How do you configure an OpenFileDIalog to select folders? === In VS .NET, when you are selecting a folder for a project, a dialog that looks like an OpenFileDialog or SaveFileDialog is displayed, but is set up to accept only folders. Ever since I've seen this I've wanted to know how it's done. I am aware of the Fold...
0
31,068
08/27/2008 19:56:44
3,313
08/27/2008 19:56:44
1
0
How do I find the 'temp' directory in Linux?
How do I find the 'temp' directory in Linux? I am writing a platform neutral C++ function that returns the temp directory. In Mac an Windows, there is an API that returns these results. In Linux, I'm stomped.
linux
directory
temp
null
null
null
open
How do I find the 'temp' directory in Linux? === How do I find the 'temp' directory in Linux? I am writing a platform neutral C++ function that returns the temp directory. In Mac an Windows, there is an API that returns these results. In Linux, I'm stomped.
0
31,077
08/27/2008 19:58:50
26
08/01/2008 12:18:14
1,917
96
How do I display a PDF in Adobe Flex?
Looking for a way to display a PDF in Flex. I'm sure there are several ways. Looking for the easiest to maintain / integrate / most user friendly. I'm guessing it's possible to display a browser window in the app and render it, but if it goes off of IE / FireFox it's not acceptable for this project. Thanks...
flex
pdf
adobe
null
null
null
open
How do I display a PDF in Adobe Flex? === Looking for a way to display a PDF in Flex. I'm sure there are several ways. Looking for the easiest to maintain / integrate / most user friendly. I'm guessing it's possible to display a browser window in the app and render it, but if it goes off of IE / FireFox it's not accep...
0
31,088
08/27/2008 20:02:00
327
08/04/2008 17:08:49
468
26
What is the best way to inherit an array that needs to store subclass specific data?
I'm trying to set up an inheritance hierarchy similar to the following: abstract class Vehicle { public string Name; public List<Axle> Axles; } class Motorcycle : Vehicle { } class Car : Vehicle { } abstract class Axle { pub...
c#
oop
inheritance
null
null
null
open
What is the best way to inherit an array that needs to store subclass specific data? === I'm trying to set up an inheritance hierarchy similar to the following: abstract class Vehicle { public string Name; public List<Axle> Axles; } class Motorcycle : Vehicle { } ...
0
31,090
08/27/2008 20:03:03
3,043
08/26/2008 13:24:14
281
41
What control is this?
The "Open" button on the open file dialog used in certain windows applications includes a dropdown arrow with a list of additional options -- namely "Open with..". I haven't seen this in every windows application, so you may have to try a few to get it, but SQL Server Management Studio and Visual Studio 2005 will ...
.net
.net-2.0
windowscontrols
null
null
null
open
What control is this? === The "Open" button on the open file dialog used in certain windows applications includes a dropdown arrow with a list of additional options -- namely "Open with..". I haven't seen this in every windows application, so you may have to try a few to get it, but SQL Server Management Studio a...
0
31,096
08/27/2008 20:05:23
3,314
08/27/2008 20:05:23
1
0
Process Memory Size - Different Counters
I'm trying to find out how much memory my own .Net server process is using (for monitoring and logging purposes). I'm using: Process.GetCurrentProcess().PrivateMemorySize64 However, the Process object has several different properties that let me read the memory space used: Paged, NonPaged, PagedSystem, No...
memory
process
.net
null
null
null
open
Process Memory Size - Different Counters === I'm trying to find out how much memory my own .Net server process is using (for monitoring and logging purposes). I'm using: Process.GetCurrentProcess().PrivateMemorySize64 However, the Process object has several different properties that let me read the memory...
0
31,097
08/27/2008 20:05:30
83
08/01/2008 16:31:56
808
70
Is there a lang-vb or lang-basic option for prettify.js from Google?
Visual Basic code does not render correctly with [prettify.js][1] from Google. on Stack Overflow: Partial Public Class WebForm1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'set page title ...
prettify
stackoverflow
visual-basic
null
null
null
open
Is there a lang-vb or lang-basic option for prettify.js from Google? === Visual Basic code does not render correctly with [prettify.js][1] from Google. on Stack Overflow: Partial Public Class WebForm1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As ...
0
31,121
08/27/2008 20:13:07
3,305
08/27/2008 18:56:35
1
2
Multi-site development
Most of the development teams I have worked with have been geographically dispersed often across several continents. What techniques and tools have you found effective when working with a team which does not sit together in the same office?
teamwork
outsourcing
null
null
null
09/23/2011 05:06:27
off topic
Multi-site development === Most of the development teams I have worked with have been geographically dispersed often across several continents. What techniques and tools have you found effective when working with a team which does not sit together in the same office?
2
31,127
08/27/2008 20:14:07
2,598
08/23/2008 13:13:34
102
14
Java Swing: Displaying images from within a Jar
When running a Java app from eclipse my ImageIcon shows up just fine. But after creating a jar the path to the image obviously gets screwed up. Is there a way to extract an image from the jar at runtime so I can then open it up? Or, is there a better way to do this? I'd like to distribute a single jar file if...
java
image
null
null
null
null
open
Java Swing: Displaying images from within a Jar === When running a Java app from eclipse my ImageIcon shows up just fine. But after creating a jar the path to the image obviously gets screwed up. Is there a way to extract an image from the jar at runtime so I can then open it up? Or, is there a better way to d...
0
31,128
08/27/2008 20:14:15
2,822
08/25/2008 11:42:23
122
7
Enforcing web standards
The HTML standard defines a clear separation of concerns between CSS (presentation) and HTML (semantics or structure). Does anyone use a coding standards document for CSS and XHTML that has clauses which help to maintain this separation? What would be good clauses to include in such a coding standards document?
css
xhtml
coding-style
null
null
null
open
Enforcing web standards === The HTML standard defines a clear separation of concerns between CSS (presentation) and HTML (semantics or structure). Does anyone use a coding standards document for CSS and XHTML that has clauses which help to maintain this separation? What would be good clauses to include in such a co...
0
31,129
08/27/2008 20:14:19
2,993
08/26/2008 10:45:59
211
9
How can I return a variable from a $.getJSON function
I want to return StudentId to use elsewhere outside of the scope of the $.getJSON() j.getJSON(url, data, function(result) { var studentId = result.Something; }); //use studentId here I would imagine this has to do with scoping, but it doesn't seem to work the same way c# does ...
jquery
javascript
null
null
null
null
open
How can I return a variable from a $.getJSON function === I want to return StudentId to use elsewhere outside of the scope of the $.getJSON() j.getJSON(url, data, function(result) { var studentId = result.Something; }); //use studentId here I would imagine this has to do with sc...
0
31,140
08/27/2008 20:16:58
2,899
08/25/2008 20:31:14
11
2
Accessing a Component on an inherited form from the base form
A number of forms in my project inherit from a base form. It is easy to get at the Controls collection of the derived forms, but I have not found a simple way to access the Components collection, since VS marks this as private. I assume this could be done with reflection, but I'm not really sure how best to go abou...
.net
winforms
reflection
inheritance
null
null
open
Accessing a Component on an inherited form from the base form === A number of forms in my project inherit from a base form. It is easy to get at the Controls collection of the derived forms, but I have not found a simple way to access the Components collection, since VS marks this as private. I assume this could b...
0
31,151
08/27/2008 20:19:45
366
08/05/2008 06:49:49
96
4
ASP.NET - How do you Unit Test WebControls?
Alright. So I figure it's about time I get into unit testing, since everyone's been banging on about it for long enough. I've installed NUnit and gone through a few "intro to unit testing" type tutorials. I'm currently putting together a small framework to help with the rebuild of one of our web apps, so I've cr...
asp.net
unit-testing
null
null
null
null
open
ASP.NET - How do you Unit Test WebControls? === Alright. So I figure it's about time I get into unit testing, since everyone's been banging on about it for long enough. I've installed NUnit and gone through a few "intro to unit testing" type tutorials. I'm currently putting together a small framework to help wi...
0
31,163
08/27/2008 20:22:53
3,259
08/27/2008 15:24:02
1
0
Forcing the Solution Explorer to select the file in the editor in visual studio 2005
In Visual Studio 2005, whenever I would view a file in the main editor, the Solution Explorer would find and highlight that file. Some time ago, this stopped working and the Solution Explorer would do nothing. This has become quite a pain since following a chain of "Go To Definition"s can lead you all over your sol...
visual-studio
null
null
null
null
null
open
Forcing the Solution Explorer to select the file in the editor in visual studio 2005 === In Visual Studio 2005, whenever I would view a file in the main editor, the Solution Explorer would find and highlight that file. Some time ago, this stopped working and the Solution Explorer would do nothing. This has become ...
0
31,173
08/27/2008 20:25:07
1,372
08/14/2008 21:03:27
13
4
Ubiquity Hack
What's the most useful hack you've discovered for Mozilla's new [Ubiquity][1] tool? [1]: http://labs.mozilla.com/2008/08/introducing-ubiquity/
ubiquity
hacks
firefox
efficiency
null
null
open
Ubiquity Hack === What's the most useful hack you've discovered for Mozilla's new [Ubiquity][1] tool? [1]: http://labs.mozilla.com/2008/08/introducing-ubiquity/
0
31,192
08/27/2008 20:32:18
1,302
08/14/2008 13:04:10
1
1
Migrating from ASP Classic to .NET and pain mitigation
We're in the process of redesigning the customer facing section of our site in .NET 3.5. It's been going well so far, we're using the same workflow and stored procedures for the most part, the biggest changes are the UI, the ORM (from dictionaries to LINQ), and obviously the language. Most of the pages to this point ha...
asp.net
asp
migration
null
null
null
open
Migrating from ASP Classic to .NET and pain mitigation === We're in the process of redesigning the customer facing section of our site in .NET 3.5. It's been going well so far, we're using the same workflow and stored procedures for the most part, the biggest changes are the UI, the ORM (from dictionaries to LINQ), an...
0
31,200
08/27/2008 20:36:00
100
08/01/2008 20:41:59
823
27
Outlook synchronization on multiple machines
<i>This isn't much of a programming question, but I'm sure I'm not the only person here who has this issue.</i> Currently I have two machines with Outlook 2007. They both sync e-mail from Google Apps. One of the machines publishes my calendar to a secure server, which my other machine is subscribed to. The problem w...
outlook
exchange
synchronization
null
null
null
open
Outlook synchronization on multiple machines === <i>This isn't much of a programming question, but I'm sure I'm not the only person here who has this issue.</i> Currently I have two machines with Outlook 2007. They both sync e-mail from Google Apps. One of the machines publishes my calendar to a secure server, whic...
0
31,201
08/27/2008 20:36:14
1,288
08/14/2008 12:14:17
290
29
How do you get a reference to the enclosing class from an anonymous inner class in Java?
I'm currently creating an explicit reference to this in the outer class so that I have a name to refer to in the anonymous inner class. Is there a better way to do this?
java
null
null
null
null
null
open
How do you get a reference to the enclosing class from an anonymous inner class in Java? === I'm currently creating an explicit reference to this in the outer class so that I have a name to refer to in the anonymous inner class. Is there a better way to do this?
0
31,215
08/27/2008 20:39:51
1,865
08/19/2008 00:17:22
36
12
Constructors with the same argument type
I have a Person object with two constructors - one takes an int (personId), the other a string (logonName). I would like another constructor that takes a string (badgeNumber). I know this can't be done, but seems it might be a common situation. Is there a graceful way of handling this? I suppose this would apply to...
c#
.net
oop
null
null
null
open
Constructors with the same argument type === I have a Person object with two constructors - one takes an int (personId), the other a string (logonName). I would like another constructor that takes a string (badgeNumber). I know this can't be done, but seems it might be a common situation. Is there a graceful way of...
0
31,221
08/27/2008 20:41:23
1,226
08/13/2008 13:55:55
125
11
Response.Redirect using ~ Path
I have a method that where I want to redirect the user back to a login page located at the root of my web application. I'm using the following code: Response.Redirect("~/Login.aspx?ReturnPath=" + Request.Url.ToString()); This doesn't work though. My assumption was that ASP.NET would automatically resolve ...
c#
asp.net
response.redirect
null
null
null
open
Response.Redirect using ~ Path === I have a method that where I want to redirect the user back to a login page located at the root of my web application. I'm using the following code: Response.Redirect("~/Login.aspx?ReturnPath=" + Request.Url.ToString()); This doesn't work though. My assumption was that ...
0
31,226
08/27/2008 20:42:22
3,044
08/26/2008 13:31:46
222
19
Lightweight rich-text XML format?
I am writing a basic word processing application, and I am trying to settle on a native "internal" format, the one that my code parsers in order to render to the screen. I'd like this to be XML, so that I can, in the future, just write XSLT to convert it to ODF or XHTML or whatever. However, when searching for exist...
xml
standards
null
null
null
null
open
Lightweight rich-text XML format? === I am writing a basic word processing application, and I am trying to settle on a native "internal" format, the one that my code parsers in order to render to the screen. I'd like this to be XML, so that I can, in the future, just write XSLT to convert it to ODF or XHTML or whateve...
0
31,237
08/27/2008 20:45:36
1,075
08/12/2008 10:13:30
1,020
73
Objective-C: Passing around sets of data
A question that has pondered me for the last while. I am primarily a .net developer who dabbles in Objective-C for iPhone and Mac. How do you go about sending "datasets" between methods in objective-c. For example in C# you can populate a custom class with data and pass it around in a List of type custom class. EG i...
objective-c
sqlite
null
null
null
null
open
Objective-C: Passing around sets of data === A question that has pondered me for the last while. I am primarily a .net developer who dabbles in Objective-C for iPhone and Mac. How do you go about sending "datasets" between methods in objective-c. For example in C# you can populate a custom class with data and pass ...
0
31,238
08/27/2008 20:45:53
634
08/07/2008 12:15:58
166
10
C#: instantiating classes from XML
What I have is a collection of classes that all implement the same interface but can be pretty wildly different under the hood. I want to have a config file control which of the classes go into the collection upon starting the program, taking something that looks like <class1 prop1="foo" prop2="bar"/> and turn...
c#
xml
null
null
null
null
open
C#: instantiating classes from XML === What I have is a collection of classes that all implement the same interface but can be pretty wildly different under the hood. I want to have a config file control which of the classes go into the collection upon starting the program, taking something that looks like <cl...
0
31,242
08/27/2008 20:47:09
620,435
08/25/2008 16:34:25
41
2
.Net Compact Framework scrollbars - horizontal always show when vertical shows
I am new to the .Net Compact Framework and have been unable to find an answer via Google. Gasp! Yes, it's true, but that is part of why stackoverflow is here, right? I have a form that is longer than the screen, so a vertical scrollbar appears as expected. However, this appears to force a horizontal scrollbar to app...
.net
forms
compactframework
null
null
null
open
.Net Compact Framework scrollbars - horizontal always show when vertical shows === I am new to the .Net Compact Framework and have been unable to find an answer via Google. Gasp! Yes, it's true, but that is part of why stackoverflow is here, right? I have a form that is longer than the screen, so a vertical scrollb...
0
31,249
08/27/2008 20:48:17
3,047
08/26/2008 13:36:37
5
3
WPF set ItemTemplate dynamically
Using WPF, I have a TreeView control that I want to set it's ItemTemplate dynamically through procedural code. How do I do this? I assume I need to find the resource somewhere. myTreeViewControl.ItemTemplate = ??
wpf
null
null
null
null
null
open
WPF set ItemTemplate dynamically === Using WPF, I have a TreeView control that I want to set it's ItemTemplate dynamically through procedural code. How do I do this? I assume I need to find the resource somewhere. myTreeViewControl.ItemTemplate = ??
0
31,250
08/27/2008 20:48:23
2,141
08/20/2008 14:38:34
300
5
Content Type for MHT files
What is the content type for MHT files?
content-type
null
null
null
null
null
open
Content Type for MHT files === What is the content type for MHT files?
0
31,285
08/27/2008 21:01:11
45,603
08/25/2008 09:52:34
31
2
VMWare Tools for Ubuntu Hardy
I've been having a very tough time with VMWare tools for Ubuntu Hardy. For some reason, vmware-install.pl finds fault with my linux headers. Saying the "address space size" doesn't match. I have resorted to vmware-any-any-update117 and here is the error I am getting now: <pre> In file included from include/asm...
vmware-tools
ubuntu
hardy
vmware
virtualization
null
open
VMWare Tools for Ubuntu Hardy === I've been having a very tough time with VMWare tools for Ubuntu Hardy. For some reason, vmware-install.pl finds fault with my linux headers. Saying the "address space size" doesn't match. I have resorted to vmware-any-any-update117 and here is the error I am getting now: <pre> ...
0
31,287
08/27/2008 21:02:03
785
08/08/2008 22:08:29
115
12
Using Virtual PC for Web Development with Oracle
I'm new to the Virtual PC party. I was recently introduced to it while working on a small WinForms application and it has been wonderful. I would love to use it when I go back to my real job, which is far more resource intensive. Namely, maintaining and extending multiple very large websites, in Visual Studio 2003 a...
virtual-pc
performance
null
null
null
null
open
Using Virtual PC for Web Development with Oracle === I'm new to the Virtual PC party. I was recently introduced to it while working on a small WinForms application and it has been wonderful. I would love to use it when I go back to my real job, which is far more resource intensive. Namely, maintaining and extending...
0
31,295
08/27/2008 21:07:38
1,615
08/17/2008 15:19:59
38
1
Javascript Animation with Safari
I'm trying to create web applications that use Javascript. I'd like to be able to use animation in these applications. I've tried to use basic Javascript, but I've decided that the best thing to do is to use a library (such as YUI or JQuery). I'm running into a problem. On Safari, when I run animation scripts, th...
javascript
animation
safari
webapplication
null
null
open
Javascript Animation with Safari === I'm trying to create web applications that use Javascript. I'd like to be able to use animation in these applications. I've tried to use basic Javascript, but I've decided that the best thing to do is to use a library (such as YUI or JQuery). I'm running into a problem. On Sa...
0
31,296
08/27/2008 21:08:15
162
08/02/2008 20:09:15
89
7
Fast SQL Server 2005 script generation
It seems like the generation of SQL scripts from the SQL Server Management Studio is terribly slow. I think that the old Enterprise Manager could run laps around the newer script generation tool. I've seen a few posts here and there with other folks complaining about the speed, but I haven't seen much offered in the wa...
sql-server
scripting
null
null
null
null
open
Fast SQL Server 2005 script generation === It seems like the generation of SQL scripts from the SQL Server Management Studio is terribly slow. I think that the old Enterprise Manager could run laps around the newer script generation tool. I've seen a few posts here and there with other folks complaining about the spee...
0
31,297
08/27/2008 21:08:24
1,130,097
08/16/2008 14:58:30
178
22
Cannot access a webservice from mobile device
I developed a program in a mobile device (Pocket PC 2003) to access a web service, the web service is installed on a Windows XP SP2 PC with IIS, the PC has the IP 192.168.5.2. The device obtains from the wireless network the IP 192.168.5.118 and the program works OK, it calls the method from the web service and exe...
mobile
null
null
null
null
null
open
Cannot access a webservice from mobile device === I developed a program in a mobile device (Pocket PC 2003) to access a web service, the web service is installed on a Windows XP SP2 PC with IIS, the PC has the IP 192.168.5.2. The device obtains from the wireless network the IP 192.168.5.118 and the program works O...
0
31,303
08/27/2008 21:11:20
116
08/02/2008 05:51:57
4,255
207
Checklist for Database Schema Upgrades
Having to upgrade a database schema makes installing a new release of software a lot trickier. What are the best practices for doing this? I'm looking for a checklist or timeline of action items, such as - shut down apps - modify schema - install new apps - restart db etc, showing how to minimize risk and ...
database
installation
version-control
null
null
null
open
Checklist for Database Schema Upgrades === Having to upgrade a database schema makes installing a new release of software a lot trickier. What are the best practices for doing this? I'm looking for a checklist or timeline of action items, such as - shut down apps - modify schema - install new apps - restart ...
0
31,312
08/27/2008 21:17:17
1,632
08/17/2008 17:09:25
297
24
Problems passing special chars with observe_field
I am working on a rails project. Using the tag observe_field, I am taking text typed into a text area, processing it in a control, and displaying the result in a div (very similar to the preview in stack overflow). Everything works fine until I type certain special chars. 1. ? => causes the variable not to be found...
ruby-on-rails
ajax
null
null
null
null
open
Problems passing special chars with observe_field === I am working on a rails project. Using the tag observe_field, I am taking text typed into a text area, processing it in a control, and displaying the result in a div (very similar to the preview in stack overflow). Everything works fine until I type certain special...
0
31,324
08/27/2008 23:33:35
2,894
08/25/2008 20:06:55
121
19
SSIS: Adding a constant column value when doing a CSV to SQL conversion
I am reading in CSV file and translating it to a SQl Table. The kicker is that one of the columns in the table is a type ID that needs to be set to a constant (in this case 2). I am not sure how to do this.
sql-server
csv
ssis
null
null
null
open
SSIS: Adding a constant column value when doing a CSV to SQL conversion === I am reading in CSV file and translating it to a SQl Table. The kicker is that one of the columns in the table is a type ID that needs to be set to a constant (in this case 2). I am not sure how to do this.
0
31,326
08/27/2008 23:34:19
71
08/01/2008 15:05:56
989
98
Is there a browser equivalent to IE's ClearAuthenticationCache?
I have a few internal .net web application here that require users to "log out" of them. I know this may seem moot on an Intranet application, but nonetheless it is there. We are using Windows authentication for our Intranet apps, so we tie in to our Active Directory with Basic Authentication and the credentials get...
cross-browser
authentication
asp.net
null
null
null
open
Is there a browser equivalent to IE's ClearAuthenticationCache? === I have a few internal .net web application here that require users to "log out" of them. I know this may seem moot on an Intranet application, but nonetheless it is there. We are using Windows authentication for our Intranet apps, so we tie in to o...
0
31,340
08/27/2008 23:44:47
242,853
08/15/2008 16:00:39
126
23
How do threads work in python, and what are common python-threading specific pitfalls?
I've been trying to wrap my head around how threads work in python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official docs aren't very thorough on the subject, and I haven't been able to find a good write-up. From what I can tell, on...
python
multithreading
null
null
null
null
open
How do threads work in python, and what are common python-threading specific pitfalls? === I've been trying to wrap my head around how threads work in python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official docs aren't very thorough ...
0
31,343
08/27/2008 23:46:21
572
08/06/2008 20:56:54
1,862
165
Do you need the .NET 1.0 framework to target the .NET 1.0 framework?
I have a bunch of .NET frameworks installed on my machine. I know that with the Java JDK, I can use the 6.0 version to target 5.0 and earlier. Can I do something similar with the .NET framework - target 1.0 and 2.0 with the 3.0 framework?
.net
null
null
null
null
null
open
Do you need the .NET 1.0 framework to target the .NET 1.0 framework? === I have a bunch of .NET frameworks installed on my machine. I know that with the Java JDK, I can use the 6.0 version to target 5.0 and earlier. Can I do something similar with the .NET framework - target 1.0 and 2.0 with the 3.0 framework?
0
31,346
08/27/2008 23:48:36
5
07/31/2008 14:22:31
2,304
96
What's the best way to display a video with rounded corners in Silverlight?
The MediaElement doesn't support rounded corners (radiusx, radiusy). Should I use a VideoBrush on a Rectangle with rounded corners?
silverlight
null
null
null
null
null
open
What's the best way to display a video with rounded corners in Silverlight? === The MediaElement doesn't support rounded corners (radiusx, radiusy). Should I use a VideoBrush on a Rectangle with rounded corners?
0
31,356
08/27/2008 23:52:39
3,149
08/27/2008 01:05:12
21
1
High School Programming
I have been asked to teach a high schooler how to program. His math skills include Algebra II and Geometry as well as an understanding of computers. My programming experience lies primarily within C# and Java, with a fairly decent understanding of most database technologies. Given I do not do any game programmin...
teaching
null
null
null
null
null
open
High School Programming === I have been asked to teach a high schooler how to program. His math skills include Algebra II and Geometry as well as an understanding of computers. My programming experience lies primarily within C# and Java, with a fairly decent understanding of most database technologies. Given I ...
0
31,366
08/27/2008 23:55:28
274
08/04/2008 10:43:23
277
18
XSLT Find and Replace with Unique
I am performing a find and replace on the line feed character (`&#10;`) and replacing it with the paragraph close and paragraph open tags using the following code: <xsl:template match="/STORIES/STORY"> <component> <xsl:if test="boolean(ARTICLEBODY)"> <p> <xsl:call-template name="re...
xslt
null
null
null
null
null
open
XSLT Find and Replace with Unique === I am performing a find and replace on the line feed character (`&#10;`) and replacing it with the paragraph close and paragraph open tags using the following code: <xsl:template match="/STORIES/STORY"> <component> <xsl:if test="boolean(ARTICLEBODY)"> <...
0
31,380
08/28/2008 00:07:06
338
08/04/2008 18:34:44
477
42
Is there a reason to use BufferedReader over InputStreamReader when reading all characters?
I currently use the following function to do a simple HTTP GET. public static String download(String url) throws java.io.IOException { java.io.InputStream s = null; java.io.InputStreamReader r = null; //java.io.BufferedReader b = null; StringBuilder content = new StringBuilder...
java
performance
http
io
buffer
null
open
Is there a reason to use BufferedReader over InputStreamReader when reading all characters? === I currently use the following function to do a simple HTTP GET. public static String download(String url) throws java.io.IOException { java.io.InputStream s = null; java.io.InputStreamReader r = nul...
0
31,394
08/28/2008 00:17:21
2,598
08/23/2008 13:13:34
107
14
Java: Programatic Way to Determine Current Windows User
I see many similar questions, however I want to find the Username of the currently logged in user using Java. Its probably something like: System.getProperty(current.user); But, I'm not quite sure.
java
windows
null
null
null
null
open
Java: Programatic Way to Determine Current Windows User === I see many similar questions, however I want to find the Username of the currently logged in user using Java. Its probably something like: System.getProperty(current.user); But, I'm not quite sure.
0
31,408
08/28/2008 00:23:38
2,993
08/26/2008 10:45:59
247
11
Where can I find a good ASP.NET MVC sample?
I have been using Castle MonoRail for the last two years, but in a new job I am going to be the one to bring in ASP.NET MVC with me. I understand the basics of views, actions and the like. I just need a good sample for someone with MVC experience. Any good links besides Scott's Northwind traders sample?
c#
asp.net-mvc
null
null
null
null
open
Where can I find a good ASP.NET MVC sample? === I have been using Castle MonoRail for the last two years, but in a new job I am going to be the one to bring in ASP.NET MVC with me. I understand the basics of views, actions and the like. I just need a good sample for someone with MVC experience. Any good links besides ...
0
31,410
08/28/2008 00:25:47
3,331
08/28/2008 00:25:47
1
0
Visual Studio 2008 debugging issue...
I'm working in VS 2008 and have three projects in one solution. I'm debugging by attaching to a .net process invoked by a third party app (SalesLogix, a CRM app). Once it has attached to the process and I attempt to set a breakpoint in one of the projects, it doesn't set a breakpoint in that file. It actually sw...
c#
vs2008
debugging
null
null
null
open
Visual Studio 2008 debugging issue... === I'm working in VS 2008 and have three projects in one solution. I'm debugging by attaching to a .net process invoked by a third party app (SalesLogix, a CRM app). Once it has attached to the process and I attempt to set a breakpoint in one of the projects, it doesn't set...
0
31,412
08/28/2008 00:26:35
3,002
08/26/2008 11:21:07
81
8
Proprietary plug-ins for GPL programs: what about interpreted languages?
I am developing a GPL-licensed application in Python and need to know if the GPL allows my program to use proprietary plug-ins. This is [what the FSF has to say][1] on the issue: > **If a program released under the GPL uses plug-ins, what are the requirements for the licenses of a plug-in?** > It depends on how...
python
interpreted
licensing
opensource
plugins
null
open
Proprietary plug-ins for GPL programs: what about interpreted languages? === I am developing a GPL-licensed application in Python and need to know if the GPL allows my program to use proprietary plug-ins. This is [what the FSF has to say][1] on the issue: > **If a program released under the GPL uses plug-ins, what ...
0
31,415
08/28/2008 00:28:36
2,644
08/23/2008 21:56:47
242
25
Quick way to find a value in HTML (Java)
Using regex, how is the simplest way to fetch a websites HTML and find the value inside this tag (or any attribute's value for that matter): <html> <head> [snip] <meta name="generator" value="thevalue i'm looking for" /> [snip]
java
html
parse
null
null
null
open
Quick way to find a value in HTML (Java) === Using regex, how is the simplest way to fetch a websites HTML and find the value inside this tag (or any attribute's value for that matter): <html> <head> [snip] <meta name="generator" value="thevalue i'm looking for" /> [snip]
0
31,424
08/28/2008 00:33:45
493
08/06/2008 10:25:05
2,399
158
NHIbernate: Difference between Restriction.In and Restriction.InG
When creating a criteria in NHibernate I can use Restriction.In() or Restriction.InG() What is the difference between them?
c#
nhibernate
orm
null
null
null
open
NHIbernate: Difference between Restriction.In and Restriction.InG === When creating a criteria in NHibernate I can use Restriction.In() or Restriction.InG() What is the difference between them?
0
31,446
08/28/2008 00:53:21
506
08/06/2008 12:56:30
88
10
Detach an entity from JPA/EJB3 persistence context
What would be the easiest way to detach a specific JPA Entity Bean that was acquired through an EntityManager. Alternatively, could I have a query return detached objects in the first place so they would essentially act as 'read only'? The reason why I want to do this is becuase I want to modify the data within the ...
java
jpa
ejb-3.0
null
null
null
open
Detach an entity from JPA/EJB3 persistence context === What would be the easiest way to detach a specific JPA Entity Bean that was acquired through an EntityManager. Alternatively, could I have a query return detached objects in the first place so they would essentially act as 'read only'? The reason why I want to ...
0
31,462
08/28/2008 01:20:18
2,644
08/23/2008 21:56:47
242
26
How to fetch HTML in Java
Without the use of any external library, what is the simplest way to fetch a website's HTML content into a String?
java
html
null
null
null
null
open
How to fetch HTML in Java === Without the use of any external library, what is the simplest way to fetch a website's HTML content into a String?
0
31,465
08/28/2008 01:24:10
493
08/06/2008 10:25:05
2,409
162
Stackoverflow Style Notifications in asp.net Ajax
When you get a badge or aren't logged in to stack overflow there's a groovy little notification bar at the top of the page that lets you know there's something going on. I know the SOflow team use JQuery, but I was wondering if anyone knew of an implementation of the same style of notification sytem in asp.net AJAX....
asp.net
ajax
notificationbar
null
null
null
open
Stackoverflow Style Notifications in asp.net Ajax === When you get a badge or aren't logged in to stack overflow there's a groovy little notification bar at the top of the page that lets you know there's something going on. I know the SOflow team use JQuery, but I was wondering if anyone knew of an implementation o...
0
31,466
08/28/2008 01:25:52
446,497
08/18/2008 01:08:53
553
45
Does Amazon S3 fails sometimes?
We just added an autoupdater in our software and got some bug report saying that the autoupdate wouldn't complete properly because the downloaded file's sha1 checksum wasn't matching. We're hosted on Amazon S3... That's either something wrong with my code or something wrong with S3. I reread my code for suspicio...
amazon
amazon-s3
experience
download
null
null
open
Does Amazon S3 fails sometimes? === We just added an autoupdater in our software and got some bug report saying that the autoupdate wouldn't complete properly because the downloaded file's sha1 checksum wasn't matching. We're hosted on Amazon S3... That's either something wrong with my code or something wrong with...
0
31,480
08/28/2008 01:38:47
2,976
08/26/2008 09:42:25
85
11
How stable is WPF?
My question is how stable is WPF not in term of stability of a WPF program, but in terms of the 'stability' of the API itself. Let me explain: Microsoft is notorious for changing it's whole methodology around with new technology. Like with the move from silverlight 1 to silverlight 2. With WPF, I know that MS cha...
wpf
null
null
null
null
null
open
How stable is WPF? === My question is how stable is WPF not in term of stability of a WPF program, but in terms of the 'stability' of the API itself. Let me explain: Microsoft is notorious for changing it's whole methodology around with new technology. Like with the move from silverlight 1 to silverlight 2. Wit...
0
31,494
08/28/2008 01:54:18
486
08/06/2008 09:19:11
537
48
How to detect duplicate data?
I have got a simple contacts database but I'm having problems with users entering in duplicate data. I have implemented a simple data comparison but unfortunately the duplicated data that is being entered is not exactly the same. For example, names are incorrectly spelled or one person will put in 'Bill Smith' and anot...
duplicate
data
language-agnostic
algorithm
null
null
open
How to detect duplicate data? === I have got a simple contacts database but I'm having problems with users entering in duplicate data. I have implemented a simple data comparison but unfortunately the duplicated data that is being entered is not exactly the same. For example, names are incorrectly spelled or one perso...
0
31,496
08/28/2008 01:56:34
327
08/04/2008 17:08:49
475
29
How do I check the active solution configuration Visual Studio built with at runtime?
I would like to enable/disable some code based on a custom solution configuration I added in Visual Studio. How do I check this value at runtime?
visual-studio
microsoft
null
null
null
null
open
How do I check the active solution configuration Visual Studio built with at runtime? === I would like to enable/disable some code based on a custom solution configuration I added in Visual Studio. How do I check this value at runtime?
0
31,497
08/28/2008 01:58:53
1,635
08/17/2008 17:33:54
38
11
Where do I use delegates?
What are some real world places that call for delegates? I'm curious what situations or patterns are present where this method is the best solution. No code required.
design-patterns
tutorials
software-engineering
null
null
null
open
Where do I use delegates? === What are some real world places that call for delegates? I'm curious what situations or patterns are present where this method is the best solution. No code required.
0
31,498
08/28/2008 02:00:00
67
08/01/2008 14:49:18
94
11
Best way to test if a generic type is a string? (c#)
I have a generic class that should allow any type, primitive or otherwise. The only problem with this is using `default(T)`. When you call default on a value type or a string, it initializes it to a reasonable value (such as empty string). When you call `default(T)` on an object, it returns null. For various reasons we...
c#
generics
null
null
null
null
open
Best way to test if a generic type is a string? (c#) === I have a generic class that should allow any type, primitive or otherwise. The only problem with this is using `default(T)`. When you call default on a value type or a string, it initializes it to a reasonable value (such as empty string). When you call `default...
0
31,500
08/28/2008 02:00:09
493
08/06/2008 10:25:05
2,416
162
Do indexes work with "IN" clause
If I have a query like: Select EmployeeId From Employee Where EmployeeTypeId IN (1,2,3) and I have an index on the EmployeeTypeId field, does SQL server still use that index?
sql
query
indexing
null
null
05/03/2012 19:49:26
not a real question
Do indexes work with "IN" clause === If I have a query like: Select EmployeeId From Employee Where EmployeeTypeId IN (1,2,3) and I have an index on the EmployeeTypeId field, does SQL server still use that index?
1
31,534
08/28/2008 02:22:19
820
08/09/2008 04:48:45
1
0
Has anyone moved to HNibernate 2.0 in a production environment?
If so, have you run into any immediate gotchas?
nhibernate
c#
persistence
null
null
null
open
Has anyone moved to HNibernate 2.0 in a production environment? === If so, have you run into any immediate gotchas?
0
31,535
08/28/2008 02:23:12
2,644
08/23/2008 21:56:47
249
27
Best way to fetch an "unstandard" HTML tag
I'm trying to fetch some HTML from various blogs and I've noticed that different providers use the same tag in different ways. For example, here are two major providers that use the Generator differently: Blogger: `<meta content='blogger' name='generator'/>` (content first, name later and, yes, single quotes!) ...
regex
html
null
null
null
null
open
Best way to fetch an "unstandard" HTML tag === I'm trying to fetch some HTML from various blogs and I've noticed that different providers use the same tag in different ways. For example, here are two major providers that use the Generator differently: Blogger: `<meta content='blogger' name='generator'/>` (conten...
0
31,551
08/28/2008 02:33:56
2,027
08/19/2008 21:06:37
11
1
Good way to use table alias in Update statement?
Using SqlServer, and trying to update rows from within the same table. I want to use a table alias for readability. This is the way I am doing it at the moment: <code><br /> UPDATE ra <br /> SET ra.ItemValue = rb.ItemValue<br /> FROM dbo.Rates ra, dbo.Rates rb<br /> WHERE ra.ResourceID = rb.Re...
sql-server
null
null
null
null
null
open
Good way to use table alias in Update statement? === Using SqlServer, and trying to update rows from within the same table. I want to use a table alias for readability. This is the way I am doing it at the moment: <code><br /> UPDATE ra <br /> SET ra.ItemValue = rb.ItemValue<br /> FROM dbo.Rates r...
0
31,561
08/28/2008 02:41:53
3,326
08/27/2008 23:34:17
1
0
Keeping CL and Scheme straight in your head
Depending on my mood I seem to waffle back and forth between wanting a Lisp-1 and a Lisp-2. Unfortunately beyond the obvious name space differences, this leaves all kinds of amusing function name/etc problems you run into. Case in point, trying to write some code tonight I tried to do (map #'function listvar) which, ...
scheme
lisp
commonlisp
null
null
null
open
Keeping CL and Scheme straight in your head === Depending on my mood I seem to waffle back and forth between wanting a Lisp-1 and a Lisp-2. Unfortunately beyond the obvious name space differences, this leaves all kinds of amusing function name/etc problems you run into. Case in point, trying to write some code tonig...
0
31,566
08/28/2008 02:50:38
1,293
08/14/2008 12:38:08
380
46
Query to list all tables that contain a specific column with SQL Server 2005.
http://blog.sqlauthority.com/2008/08/06/sql-server-query-to-find-column-from-all-tables-of-database/ USE AdventureWorks GO SELECT t.name AS table_name, SCHEMA_NAME(schema_id) AS schema_name, c.name AS column_name FROM sys.tables AS t INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJEC...
sql-server-2005
null
null
null
null
null
open
Query to list all tables that contain a specific column with SQL Server 2005. === http://blog.sqlauthority.com/2008/08/06/sql-server-query-to-find-column-from-all-tables-of-database/ USE AdventureWorks GO SELECT t.name AS table_name, SCHEMA_NAME(schema_id) AS schema_name, c.name AS column_na...
0
31,567
08/28/2008 02:50:55
1,880
08/19/2008 03:12:41
114
7
How to properly cast objects created through reflection
I'm trying to wrap my head around reflection, so I decided to add plugin capability to a program that I'm writing. The only way to understand a concept is to get your fingers dirty and write the code, so I went the route of creating a simple interface library consisting of the IPlugin and IHost interfaces, a plugin imp...
reflection
.net
c#
null
null
null
open
How to properly cast objects created through reflection === I'm trying to wrap my head around reflection, so I decided to add plugin capability to a program that I'm writing. The only way to understand a concept is to get your fingers dirty and write the code, so I went the route of creating a simple interface library...
0
31,581
08/28/2008 03:01:10
3,279
08/27/2008 16:46:21
11
1
How scalable is System.Threading.Timer?
I'm writing an app that will need to make use of `Timer`s, but potentially very many of them. How scalable is the `System.Threading.Timer` class? The documentation merely say it's "lightweight", but doesn't explain further. Do these timers get sucked into a single thread (or very small threadpool) that processes all...
c#
.net
multithreading
timer
null
null
open
How scalable is System.Threading.Timer? === I'm writing an app that will need to make use of `Timer`s, but potentially very many of them. How scalable is the `System.Threading.Timer` class? The documentation merely say it's "lightweight", but doesn't explain further. Do these timers get sucked into a single thread ...
0
31,584
08/28/2008 03:03:53
2,644
08/23/2008 21:56:47
274
28
Design: Java and returning self-reference in setter methods
I have already proposed this in [my blog][1], but I find this place the most appropriate. For classes that have a long list of setters that are used frequently, I found this way very useful (although I have recently read about the [Builder pattern][2] in Effective Java that is kinda the same). Basically, all setter ...
java
design
null
null
null
null
open
Design: Java and returning self-reference in setter methods === I have already proposed this in [my blog][1], but I find this place the most appropriate. For classes that have a long list of setters that are used frequently, I found this way very useful (although I have recently read about the [Builder pattern][2] ...
0
31,592
08/28/2008 03:09:28
2,975
08/26/2008 09:40:04
48
8
How to get the libraries you need into the bin folder when using IoC/DI
I'm using Castle Windsor to do some dependency injection, specifically I've abstracted the DAL layer to interfaces that are now being loaded by DI. Once the project is developed & deployed all the .bin files will be in the same location, but for while I'm developing in Visual Studio, the only ways I can see of getti...
inversionofcontrol
dependency-injection
castle-windsor
visual-studio
null
null
open
How to get the libraries you need into the bin folder when using IoC/DI === I'm using Castle Windsor to do some dependency injection, specifically I've abstracted the DAL layer to interfaces that are now being loaded by DI. Once the project is developed & deployed all the .bin files will be in the same location, bu...
0
31,598
08/28/2008 03:21:39
1,651
08/17/2008 19:21:26
46
2
Testing a client-server application
I am coding a client-server application using Eclipse's RCP. We are having trouble testing the interaction between the two sides as they both contain a lot of GUI and provide no command-line or other remote API. Got any ideas?
testing
eclipse
rcp
null
null
null
open
Testing a client-server application === I am coding a client-server application using Eclipse's RCP. We are having trouble testing the interaction between the two sides as they both contain a lot of GUI and provide no command-line or other remote API. Got any ideas?
0
31,610
08/28/2008 03:31:47
1,965
08/19/2008 15:51:08
1,702
105
Overcoming Programmers UI
I am decidedly a programmer, and not a UI designer, so when I am working on internal tools, I really struggle with laying out controls in a useful manner. For example, all those questions I've been asking for the last two days have been for building this tool: http://www.gfilter.net/junk/taskmanager.jpg And wh...
user-interface
design
language-agnostic
null
null
09/19/2011 05:15:33
not constructive
Overcoming Programmers UI === I am decidedly a programmer, and not a UI designer, so when I am working on internal tools, I really struggle with laying out controls in a useful manner. For example, all those questions I've been asking for the last two days have been for building this tool: http://www.gfilter.net...
4
31,627
08/28/2008 03:40:16
1,433
08/15/2008 15:34:09
109
20
alternative to VSS for a one man show (army of one?)
I've been programming for 10+ years now for the same employer and only source code control we've ever used is VSS. (Sorry - That's what they had when I stated). There's only ever been a few of us; two right now and we usually work alone, so VSS has worked ok for us. So, I have two questions: 1) Should we switch to some...
source
version-control
null
null
null
null
open
alternative to VSS for a one man show (army of one?) === I've been programming for 10+ years now for the same employer and only source code control we've ever used is VSS. (Sorry - That's what they had when I stated). There's only ever been a few of us; two right now and we usually work alone, so VSS has worked ok for...
0
31,672
08/28/2008 04:36:25
1,390
08/15/2008 02:41:16
21
2
Learning FORTRAN In the Modern Era
I've recently come to maintain a large amount of scientific calculation-intensive FORTRAN code. I'm having difficulties getting a handle on all of the, say, nuances, of a forty year old language, despite google & two introductory level books. The code is rife with "performance enhancing improvements". Does anyone ha...
fortran
null
null
null
null
null
open
Learning FORTRAN In the Modern Era === I've recently come to maintain a large amount of scientific calculation-intensive FORTRAN code. I'm having difficulties getting a handle on all of the, say, nuances, of a forty year old language, despite google & two introductory level books. The code is rife with "performance ...
0
31,673
08/28/2008 04:38:15
2,514
08/22/2008 15:47:48
1
0
Wifi Management on XP (SP2/SP3)
Wifi support on Vista is fine, but [Native Wifi on XP][1] is half baked. [NDIS 802.11 Wireless LAN Miniport Drivers][2] only gets you part of the way there (e.g. network scanning). From what I've read (and tried), the 802.11 NDIS drivers on XP will *not* allow you to configure a wireless connection. You have to use the...
networking
wireless
windows-xp
null
null
null
open
Wifi Management on XP (SP2/SP3) === Wifi support on Vista is fine, but [Native Wifi on XP][1] is half baked. [NDIS 802.11 Wireless LAN Miniport Drivers][2] only gets you part of the way there (e.g. network scanning). From what I've read (and tried), the 802.11 NDIS drivers on XP will *not* allow you to configure a wir...
0
31,693
08/28/2008 05:08:06
2,644
08/23/2008 21:56:47
299
31
Differences in Generics
I mostly use Java and generics are relatively new. I keep reading that Java made the wrong decision or that .NET has better implementations etc. etc. So, what are the main differences between C++, C#, Java in generics? Pros/cons of each?
generics
java
c#
c++
null
null
open
Differences in Generics === I mostly use Java and generics are relatively new. I keep reading that Java made the wrong decision or that .NET has better implementations etc. etc. So, what are the main differences between C++, C#, Java in generics? Pros/cons of each?
0
31,701
08/28/2008 05:17:19
2,785
08/25/2008 03:48:53
51
7
How to control layer ordering in Virtual Earth
I have a mapping application that needs to draw a path, and then display icons on top of the path. I can't find a way to control the order of virtual earth layers, other than the order in which they are added. Does anyone know how to change the z index of Virtual Earth shape layers, or force a layer to the front?
javascript
virtual-earth
null
null
null
null
open
How to control layer ordering in Virtual Earth === I have a mapping application that needs to draw a path, and then display icons on top of the path. I can't find a way to control the order of virtual earth layers, other than the order in which they are added. Does anyone know how to change the z index of Virtual ...
0
31,708
08/28/2008 05:21:26
202
08/03/2008 13:02:31
1,012
47
How can I convert IEnumerable<T> to List<T> in C#?
I am using LINQ to query a generic dictionary and then use the result as the datasource for my ListView (WebForms). Simplified code: Dictionary<Guid, Record> dict = GetAllRecords(); myListView.DataSource = dict.Values.Where(rec => rec.Name == "foo"); myListView.DataBind(); I thought that would wo...
listview
linq
c#
null
null
null
open
How can I convert IEnumerable<T> to List<T> in C#? === I am using LINQ to query a generic dictionary and then use the result as the datasource for my ListView (WebForms). Simplified code: Dictionary<Guid, Record> dict = GetAllRecords(); myListView.DataSource = dict.Values.Where(rec => rec.Name == "foo")...
0