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
57,919
09/11/2008 23:38:00
5,473
09/09/2008 21:20:03
8
0
Best way to send an email from a .NET application?
I'm working on a Windows Forms (.NET 3.5) application that has a built-in exception handler to catch any (heaven forbid) exceptions that may arrise. I'd like the exception handler to be able to prompt the user to click a "Send Error Report" button, which would then cause the app to send an email to my FogBugz email add...
.net
vb.net
email
null
null
null
open
Best way to send an email from a .NET application? === I'm working on a Windows Forms (.NET 3.5) application that has a built-in exception handler to catch any (heaven forbid) exceptions that may arrise. I'd like the exception handler to be able to prompt the user to click a "Send Error Report" button, which would the...
0
57,921
09/11/2008 23:38:25
479
08/06/2008 08:37:10
305
23
good c# asp.net open source project for code study.
Can anyone recommend a good asp.net c# open-source project for the purpose of studying the code to become a better programmer?
c#
.net
open-source
null
null
null
open
good c# asp.net open source project for code study. === Can anyone recommend a good asp.net c# open-source project for the purpose of studying the code to become a better programmer?
0
57,923
09/11/2008 23:38:58
1,821
08/18/2008 18:11:48
306
30
What exactly is "managed" code?
I've been writing C / C++ code for almost twenty years, and I know perl, python, php, and some java as well, and I'm teaching myself javascript. But I've never done any .NET, VB, or C# stuff. What exactly does "managed" code mean? [Wikipedia][1] describes it simply as "code that executes under the management of a virtu...
c#
.net
vb
null
null
null
open
What exactly is "managed" code? === I've been writing C / C++ code for almost twenty years, and I know perl, python, php, and some java as well, and I'm teaching myself javascript. But I've never done any .NET, VB, or C# stuff. What exactly does "managed" code mean? [Wikipedia][1] describes it simply as "code that exe...
0
57,927
09/11/2008 23:41:16
3,720
08/30/2008 10:00:40
302
17
Top ten ordering in Excel based on complex team rules
I have an excel spreadsheet in a format similar to the following... | NAME | CLUB | STATUS | SCORE | | Fred | a | Gent | 145 | | Bert | a | Gent | 150 | | Harry | a | Gent | 195 | | Jim | a | Gent | 150 | | Clare | a | Lady | 99 | | Simon | ...
excel
calculation
spreadsheet
null
null
null
open
Top ten ordering in Excel based on complex team rules === I have an excel spreadsheet in a format similar to the following... | NAME | CLUB | STATUS | SCORE | | Fred | a | Gent | 145 | | Bert | a | Gent | 150 | | Harry | a | Gent | 195 | | Jim | a | Gent | 150 ...
0
57,947
09/11/2008 23:47:50
6,004
09/11/2008 22:28:45
1
1
Help Understanding .Net Configuration Options
I'm really confused by the various configuration options for .Net configuration of dll's, ASP.net websites etc in .Net v2 - especially when considering the impact of a config file at the UI / end-user end of the chain. So, for example, some of the applications I work with use settings which we access with: st...
c#
.net
configuration
null
null
null
open
Help Understanding .Net Configuration Options === I'm really confused by the various configuration options for .Net configuration of dll's, ASP.net websites etc in .Net v2 - especially when considering the impact of a config file at the UI / end-user end of the chain. So, for example, some of the applications I wor...
0
57,958
09/11/2008 23:53:28
4,435
09/03/2008 18:46:12
651
24
When to use HtmlControls vs WebControls
I like HtmlControls because there is no HTML magic going on... the asp source looks similar to what the client sees. I can't argue with the utility of GridView, Repeater, CheckBoxLists, etc, so I use them when I need that functionality. Also, it looks weird to have code that mixes and matches: <asp:Butto...
asp.net
null
null
null
null
null
open
When to use HtmlControls vs WebControls === I like HtmlControls because there is no HTML magic going on... the asp source looks similar to what the client sees. I can't argue with the utility of GridView, Repeater, CheckBoxLists, etc, so I use them when I need that functionality. Also, it looks weird to have c...
0
57,962
09/11/2008 23:55:18
1,438
08/15/2008 15:44:20
599
33
What's your experience with Flash drives?
EMC is marketing [Solid State Flash Drives](http://www.emc.com/about/news/press/us/2008/011408-1.htm) and my project is thinking about moving that direction in the future. Does anyone have any experience with replacing traditional disk storage with flash drives? Besides price, have you experienced any downsides to th...
flash-drives
emc
hardware
harddrive
disks
null
open
What's your experience with Flash drives? === EMC is marketing [Solid State Flash Drives](http://www.emc.com/about/news/press/us/2008/011408-1.htm) and my project is thinking about moving that direction in the future. Does anyone have any experience with replacing traditional disk storage with flash drives? Besides ...
0
57,987
09/12/2008 00:10:25
39,040
11/19/2008 17:53:34
47
4
Writing into excel file with OLEDB
Does anyone know how to write to an excel file (.xls) via OLEDB in C#? I'm doing the following: OleDbCommand dbCmd = new OleDbCommand("CREATE TABLE [test$] (...)", connection); dbCmd.CommandTimeout = mTimeout; results = dbCmd.ExecuteNonQuery(); But I get an OleDbException thrown with messa...
c#
excel
oledb
null
null
null
open
Writing into excel file with OLEDB === Does anyone know how to write to an excel file (.xls) via OLEDB in C#? I'm doing the following: OleDbCommand dbCmd = new OleDbCommand("CREATE TABLE [test$] (...)", connection); dbCmd.CommandTimeout = mTimeout; results = dbCmd.ExecuteNonQuery(); But I...
0
57,990
09/12/2008 00:17:01
4,541
09/04/2008 17:37:04
162
3
What is the overhead cost associated with IoC containers like StructureMap?
After attending a recent Alt.NET group on IoC I got to thinking about the tools available and how they might work. StructureMap in particular uses both attributes and bootstrapper concepts to map requests for IThing to ConcreteThing. Attributes automatically throw up flags for me that either reflection or IL injectio...
c#
inversion-of-control
structuremap
null
null
null
open
What is the overhead cost associated with IoC containers like StructureMap? === After attending a recent Alt.NET group on IoC I got to thinking about the tools available and how they might work. StructureMap in particular uses both attributes and bootstrapper concepts to map requests for IThing to ConcreteThing. Att...
0
57,999
09/12/2008 00:23:23
3,146
08/27/2008 00:25:15
860
45
What is the difference between dllexport and dllimport?
I'm just looking for a simple, concise explanation of the difference between these two. MSDN doesn't go into a hell of a lot of detail here.
dll
vc++
import
export
null
null
open
What is the difference between dllexport and dllimport? === I'm just looking for a simple, concise explanation of the difference between these two. MSDN doesn't go into a hell of a lot of detail here.
0
58,006
09/12/2008 00:29:03
4,883
09/06/2008 10:24:59
763
5
Should we fix that bug?
When triaging bugs for a release, what criteria are typically used to determine whether the bug will be fixed for the release?
project-management
null
null
null
null
null
open
Should we fix that bug? === When triaging bugs for a release, what criteria are typically used to determine whether the bug will be fixed for the release?
0
58,024
09/12/2008 00:40:55
148
08/02/2008 15:01:32
21
2
Open a URL from Windows Forms
I'm trying to provide a link to my company's website from a Windows Form. I want to be well behaved and launch using the user's preferred browser. What is the best way to open a URL in the user's default browser from a Windows Forms application?
.net
winforms
null
null
null
null
open
Open a URL from Windows Forms === I'm trying to provide a link to my company's website from a Windows Form. I want to be well behaved and launch using the user's preferred browser. What is the best way to open a URL in the user's default browser from a Windows Forms application?
0
58,027
09/12/2008 00:42:13
3,146
08/27/2008 00:25:15
860
46
How to embed command shell in Visual Studio
I would like to be able to embed a command line interpreter inside a dockable window in Visual Studio. Is there any nice way to do this?
vs2005
command
window
null
null
null
open
How to embed command shell in Visual Studio === I would like to be able to embed a command line interpreter inside a dockable window in Visual Studio. Is there any nice way to do this?
0
58,035
09/12/2008 00:45:51
4,337
09/02/2008 22:43:39
1,017
100
Loading different versions of the same assembly
Using reflection, I need to load 2 different versions of the same assembly. Can I load the 2 versions in 2 different AppDomains in the same process? I need to do some data migration from the old version of the app to the new version. Please let me know if this is possible or should I use 2 separate processes.
c#
.net
reflection
assembly
dll
null
open
Loading different versions of the same assembly === Using reflection, I need to load 2 different versions of the same assembly. Can I load the 2 versions in 2 different AppDomains in the same process? I need to do some data migration from the old version of the app to the new version. Please let me know if this ...
0
58,036
09/12/2008 00:46:22
6,023
09/12/2008 00:46:22
1
0
How did my process exit?
From C# on a Windows box, is there a way to find out how a process was stopped? I've had a look at the [Process][1] class, managed to get a nice friendly callback from the Exited event once I set EnableRaisingEvents = true; but I have not managed to find out whether the process was killed or whether it exited natural...
c#
.net
system.diagnostics
null
null
null
open
How did my process exit? === From C# on a Windows box, is there a way to find out how a process was stopped? I've had a look at the [Process][1] class, managed to get a nice friendly callback from the Exited event once I set EnableRaisingEvents = true; but I have not managed to find out whether the process was kille...
0
58,054
09/12/2008 00:57:11
6,027
09/12/2008 00:57:11
1
0
How can I replace newline characters using JSP and JSTL?
I have a list of bean objects passed into my JSP page, and one of them is a comment field. This field may contain newlines, and I want to replace them with semicolons using JSTL, so that the field can be displayed in a text input. I have found one solution, but it's not very elegant. I'll post below as a possibility.
string
jsp
jstl
replace
newline
null
open
How can I replace newline characters using JSP and JSTL? === I have a list of bean objects passed into my JSP page, and one of them is a comment field. This field may contain newlines, and I want to replace them with semicolons using JSTL, so that the field can be displayed in a text input. I have found one solution, ...
0
58,058
09/12/2008 00:58:25
5,387
09/09/2008 12:03:03
21
2
Using C++ classes in .so libraries
I'm trying to write a small class library for a C++ course. I was wondering if it was possible to define a set of classes in my shared object and then using them directly in my main program that demos the library. Are there any tricks involved? I remember reading this long ago (before I started really programming) t...
c++
linux
class-library
null
null
null
open
Using C++ classes in .so libraries === I'm trying to write a small class library for a C++ course. I was wondering if it was possible to define a set of classes in my shared object and then using them directly in my main program that demos the library. Are there any tricks involved? I remember reading this long ago...
0
58,069
09/12/2008 01:07:06
5,832
09/11/2008 13:36:07
12
0
How to use getaddrinfo_a to do async resolve with glibc
An often overlooked function that requires no external library, but basically has no documentation whatsoever.
c
dns
glibc
getaddrinfo-a
null
null
open
How to use getaddrinfo_a to do async resolve with glibc === An often overlooked function that requires no external library, but basically has no documentation whatsoever.
0
58,070
09/12/2008 01:07:11
1,368
08/14/2008 18:57:47
225
10
OOP class design, Is this design inherintantly 'anti' OOP?
I remember back when MS released a forum sample application, the design of the application was like this: /Classes/User.cs /Classes/Post.cs ... /Users.cs /Posts.cs So the classes folder had just the class i.e. properties and getters/setters. The Users.cs, Post.cs, etc. have the actual methods that access the...
oop
null
null
null
null
null
open
OOP class design, Is this design inherintantly 'anti' OOP? === I remember back when MS released a forum sample application, the design of the application was like this: /Classes/User.cs /Classes/Post.cs ... /Users.cs /Posts.cs So the classes folder had just the class i.e. properties and getters/setters. The...
0
58,119
09/12/2008 01:35:33
1,892
08/19/2008 06:17:29
390
22
Does re.compile() or any given Python library call throw an exception?
I can't tell from the Python documentation whether the re.compile(x) function may throw an exception (assuming you pass in a string). I imagine there is something that could be considered an invalid regular expression. The larger question is, where do I go to find if a given Python library call may throw exception(s) a...
python
regex
exception
null
null
null
open
Does re.compile() or any given Python library call throw an exception? === I can't tell from the Python documentation whether the re.compile(x) function may throw an exception (assuming you pass in a string). I imagine there is something that could be considered an invalid regular expression. The larger question is, w...
0
58,123
09/12/2008 01:37:23
1,685
08/18/2008 00:34:30
31
4
Finding System.Web.UI.Page from HttpContext
This is actually a two part question. First,does the HttpContext.Current correspond to the current System.UI.Page object? And the second question, which is probably related to the first, is why can't I use the following to see if the current page implements an interface: private IWebBase FindWebBase() { ...
c#
asp.net
null
null
null
null
open
Finding System.Web.UI.Page from HttpContext === This is actually a two part question. First,does the HttpContext.Current correspond to the current System.UI.Page object? And the second question, which is probably related to the first, is why can't I use the following to see if the current page implements an interfa...
0
58,138
09/12/2008 01:50:34
5,263
09/08/2008 19:04:54
1
1
What is the best way to get back into programming after years of neglect?
What are the first steps to getting back into programming after many years of tech support?
self-improvement
null
null
null
null
03/03/2012 01:49:38
not constructive
What is the best way to get back into programming after years of neglect? === What are the first steps to getting back into programming after many years of tech support?
4
58,141
09/12/2008 01:52:15
5,469
09/09/2008 21:03:22
307
20
Why is it considered bad practice to use cursors in SQL Server?
I knew of some performance reasons back in the SQL 7 days, but do the same issues still exist in SQL Server 2005? If I have a resultset in a stored procedure that I want to act upon individually, are cursors still a bad choice? If so, why?
sql-server
null
null
null
null
null
open
Why is it considered bad practice to use cursors in SQL Server? === I knew of some performance reasons back in the SQL 7 days, but do the same issues still exist in SQL Server 2005? If I have a resultset in a stored procedure that I want to act upon individually, are cursors still a bad choice? If so, why?
0
58,146
09/12/2008 01:54:55
5,360
09/09/2008 10:50:44
1
0
Hierarchical Data In ASP.NET MVC
I am trying to come up with the best way to render some hierarchical data in to a nested unordered list using ASP.NET MVC. Does anyone have any tips on how to do this?
asp.net
asp.net-mvc
null
null
null
null
open
Hierarchical Data In ASP.NET MVC === I am trying to come up with the best way to render some hierarchical data in to a nested unordered list using ASP.NET MVC. Does anyone have any tips on how to do this?
0
58,163
09/12/2008 02:05:01
2,443
08/22/2008 10:53:30
735
39
When can/should you go whole hog with the ORM approach?
It seems to me that introducing an ORM tool is supposed to make your architecture cleaner, but for efficiency I've found myself bypassing it and iterating over a JDBC Result Set on occasion. This leads to an uncoordinated tangle of artifacts instead of a cleaner architecture. Is this because I'm applying the tool i...
java
architecture
orm
hibernate
null
null
open
When can/should you go whole hog with the ORM approach? === It seems to me that introducing an ORM tool is supposed to make your architecture cleaner, but for efficiency I've found myself bypassing it and iterating over a JDBC Result Set on occasion. This leads to an uncoordinated tangle of artifacts instead of a cle...
0
58,174
09/12/2008 02:16:12
4,903
09/06/2008 14:16:54
278
17
Does anyone know where to find free database design templates?
I'm obviously not talking about a full solution, but just a good starting point for common applications for software architects. It could be for a CMS, e-commerce storefront, address book, etc. A UML diagram is not essential, but a table schema with data types in the least. Thanks!
database
design
templates
null
null
02/26/2012 14:56:15
not constructive
Does anyone know where to find free database design templates? === I'm obviously not talking about a full solution, but just a good starting point for common applications for software architects. It could be for a CMS, e-commerce storefront, address book, etc. A UML diagram is not essential, but a table schema with da...
4
58,184
09/12/2008 02:23:37
6,024
09/12/2008 00:47:35
1
0
Something special about Safari for Windows and AJAX?
Some common pitfalls I should keep in mind?
ajax
null
null
null
null
null
open
Something special about Safari for Windows and AJAX? === Some common pitfalls I should keep in mind?
0
58,190
09/12/2008 02:27:12
5,023
09/07/2008 12:27:27
274
23
Are CLR stored procedures preferred over TSQL stored procedures in SQL 2005+ ?
My current view is no, prefer Transact SQL stored procedures because they are a lighter weight and (possibly) higher performing option, while CLR procedures allow developers to get up to all sorts of mischief. However recently I have needed to debug some very poorly written TSQL stored procs (yet again). As usual I...
.net
sql-server
tsql
null
null
null
open
Are CLR stored procedures preferred over TSQL stored procedures in SQL 2005+ ? === My current view is no, prefer Transact SQL stored procedures because they are a lighter weight and (possibly) higher performing option, while CLR procedures allow developers to get up to all sorts of mischief. However recently I have...
0
58,192
09/12/2008 02:29:36
5,702
09/11/2008 02:52:05
21
6
How to capture and present screencasts and but still have code legible?
I would like to find out from other's experience what is the best way to capture screencasts that include code and cuts to the program in action, and then present those screencasts online so that the code is **still legible**, and ideally making the most efficient use of display real estate. What capture tools work ...
screencasts
training
education
demonstration
documentation
null
open
How to capture and present screencasts and but still have code legible? === I would like to find out from other's experience what is the best way to capture screencasts that include code and cuts to the program in action, and then present those screencasts online so that the code is **still legible**, and ideally maki...
0
58,203
09/12/2008 02:36:20
1,154
08/12/2008 23:39:07
421
41
MacBook vs MacBook Pro for .NET development and other stuff
I am about to buy a notebook and I am between the MB or the MBPro any recomendation?
osx
developer-machine
null
null
null
null
open
MacBook vs MacBook Pro for .NET development and other stuff === I am about to buy a notebook and I am between the MB or the MBPro any recomendation?
0
58,207
09/12/2008 02:38:10
840
08/09/2008 08:37:29
129
7
Using the result of a command as an argument in bash?
To create a playlist for all of the music in a folder, I am using the following command in bash: ls > list.txt I would like to use the result of the **pwd** (print working directory) command for the name of the playlist. Something like: ls > ${pwd}.txt That doesn't work though - can anyone tell m...
bash
command-line
null
null
null
null
open
Using the result of a command as an argument in bash? === To create a playlist for all of the music in a folder, I am using the following command in bash: ls > list.txt I would like to use the result of the **pwd** (print working directory) command for the name of the playlist. Something like: ls >...
0
58,210
09/12/2008 02:39:35
6,040
09/12/2008 02:36:09
1
0
C++ SMTP Example
Does any one have a simple C++ example for sending e-mail using smtp api?
c++
smtp
null
null
null
null
open
C++ SMTP Example === Does any one have a simple C++ example for sending e-mail using smtp api?
0
58,213
09/12/2008 02:42:26
6,035
09/12/2008 01:54:15
1
2
Can you recommend a low cost automated testing tools for a .NET Winforms application?
Looking for an automated testing tool to support functional/regression testing for a .NET Winforms client server commercial application. The top tier products: HP QuickTest Pro, Borland SilkTest, IBM Rational Functional Tester and Compuware TestPartner are in the 5-10K price range. Would you recommend a lower cost ...
.net
winforms
testing
null
null
null
open
Can you recommend a low cost automated testing tools for a .NET Winforms application? === Looking for an automated testing tool to support functional/regression testing for a .NET Winforms client server commercial application. The top tier products: HP QuickTest Pro, Borland SilkTest, IBM Rational Functional Tester ...
0
58,245
09/12/2008 03:05:23
2,773
08/25/2008 00:43:07
500
22
Showing a tooltip for a MenuItem
I've got a menu that contains, among other things, some most-recently-used file paths. The paths to these files can be long, so the text sometimes gets clipped like "C:\Progra...\foo.txt" I'd like to pop a tooltip with the full path when the user hovers over the item, but this doesn't seem possible with the [Toolti...
.net
winforms
null
null
null
null
open
Showing a tooltip for a MenuItem === I've got a menu that contains, among other things, some most-recently-used file paths. The paths to these files can be long, so the text sometimes gets clipped like "C:\Progra...\foo.txt" I'd like to pop a tooltip with the full path when the user hovers over the item, but this ...
0
58,247
09/12/2008 03:06:13
3,111
08/26/2008 17:47:14
149
12
Compiling code on an external drive
To make things easier when switching between machines (my workstation at the office and my personal laptop) I have thought about trying an external hard drive to store my working directory on. Specifically I am looking at Firewire 800 drives (most are 5400 rpm 8mb cache). What I am wondering is if anyone has experien...
visual-studio
hardware
null
null
null
null
open
Compiling code on an external drive === To make things easier when switching between machines (my workstation at the office and my personal laptop) I have thought about trying an external hard drive to store my working directory on. Specifically I am looking at Firewire 800 drives (most are 5400 rpm 8mb cache). What...
0
58,278
09/12/2008 04:02:28
1,368
08/14/2008 18:57:47
233
10
Design by coding, its wrong but easier to visualize
I'm sure others agree, when code hits the pavement it is much easier to think of all the elements that will go into your application. Meaning, once you get going, you think of the <b>what's next</b> because you have reached a point where you have to design another table or class. The drawbacks of this approach are ...
design
null
null
null
null
null
open
Design by coding, its wrong but easier to visualize === I'm sure others agree, when code hits the pavement it is much easier to think of all the elements that will go into your application. Meaning, once you get going, you think of the <b>what's next</b> because you have reached a point where you have to design anoth...
0
58,280
09/12/2008 04:06:20
6,042
09/12/2008 03:35:00
1
0
UnhandledException handler in a .Net Windows Service
Is it possible to use an UnhandledException Handler in a Windows Service? Normally I would use a custom built Exception Handling Component that does logging, phone home, etc. This component adds a handler to System.AppDomain.CurrentDomain.UnhandledException but as far as I can tell this doesn’t achieve anything win ...
.net
exception-handling
windows-services
null
null
null
open
UnhandledException handler in a .Net Windows Service === Is it possible to use an UnhandledException Handler in a Windows Service? Normally I would use a custom built Exception Handling Component that does logging, phone home, etc. This component adds a handler to System.AppDomain.CurrentDomain.UnhandledException b...
0
58,289
09/12/2008 04:18:39
5,302
09/08/2008 22:49:47
76
10
Excel like server side control for ASP.NET
We have a requirement to increase the functionality of a grid we are using to edit on our webapp, and our manager keeps citing Excel as the perfect example for a data grid :/ He still doesn't really get that a Spreadsheet like control doesn't exist out of the box, but I thought I'd do a bit of searching nonetheless. ...
asp.net
excel
servercontrols
null
null
null
open
Excel like server side control for ASP.NET === We have a requirement to increase the functionality of a grid we are using to edit on our webapp, and our manager keeps citing Excel as the perfect example for a data grid :/ He still doesn't really get that a Spreadsheet like control doesn't exist out of the box, but I t...
0
58,294
09/12/2008 04:21:51
5,342
09/09/2008 09:55:09
64
4
How do I get the external IP of a socket in Python?
When I call `socket.getsockname()` on a socket object, it returns a tuple of my machine's internal IP and the port. However, I would like to retrieve my external IP. What's the cheapest, most efficient manner of doing this?
python
sockets
null
null
null
null
open
How do I get the external IP of a socket in Python? === When I call `socket.getsockname()` on a socket object, it returns a tuple of my machine's internal IP and the port. However, I would like to retrieve my external IP. What's the cheapest, most efficient manner of doing this?
0
58,300
09/12/2008 04:32:15
1,890
08/19/2008 05:01:52
3
1
Tools for manipulating PowerPoint files
Do you know managed tools for manipulating PowerPoint files? The tool should be 100% managed code and offer the option to handle .ppt and .pptx files.
c#
.net
powerpoint
null
null
null
open
Tools for manipulating PowerPoint files === Do you know managed tools for manipulating PowerPoint files? The tool should be 100% managed code and offer the option to handle .ppt and .pptx files.
0
58,305
09/12/2008 04:36:44
2,598
08/23/2008 13:13:34
457
30
Java: Is there a way to take a screenshot using java and save it to some sort of image?
Simple as the title states: Can you use only Java commands to take a screenshot and save it? Or, do I need to use an OS specific program to take the screenshot and then grab it off the clipboard?
java
image
screenshot
null
null
null
open
Java: Is there a way to take a screenshot using java and save it to some sort of image? === Simple as the title states: Can you use only Java commands to take a screenshot and save it? Or, do I need to use an OS specific program to take the screenshot and then grab it off the clipboard?
0
58,306
09/12/2008 04:36:51
3,534
08/29/2008 01:59:08
26
2
Graph Algorithm To Find All Connections Between Two Arbitrary Vertices
I am trying to find out what is the best (time efficient) algorithm to accomplish the task described below. I have a set of records. For this set of records I have connection data which indicates how pairs of records from this set connect to one another (basically a graph, the records being the vertices and the conn...
algorithms
graph
language-agnostic
connection
null
null
open
Graph Algorithm To Find All Connections Between Two Arbitrary Vertices === I am trying to find out what is the best (time efficient) algorithm to accomplish the task described below. I have a set of records. For this set of records I have connection data which indicates how pairs of records from this set connect to...
0
58,317
09/12/2008 04:47:42
6,050
09/12/2008 04:47:42
1
0
CSS / JavaScript Navigation Menu on top of Flash in Firefox
My site has a drop-down menu built in CSS and JavaScript that drops down over a Flash animation. In IE (6&7) the drop-down menus drop over the Flash animation, however, in Firefox (2&3) the menus appear underneath the Flash animation. Is there any way to get this dynamic menu to flow OVER the Flash in Firefox? In ...
flash
dynamic-css
null
null
null
null
open
CSS / JavaScript Navigation Menu on top of Flash in Firefox === My site has a drop-down menu built in CSS and JavaScript that drops down over a Flash animation. In IE (6&7) the drop-down menus drop over the Flash animation, however, in Firefox (2&3) the menus appear underneath the Flash animation. Is there any way t...
0
58,340
09/12/2008 05:08:09
3,826
08/31/2008 03:49:02
11
1
How to test a WPF user interface?
Using win forms with an [MVC][1]/[MVP][2] architecture, I would normally use a class to wrap a view to test the UI while using mocks for the model and controller/presenter. The wrapper class would make most everything in the UI an observable property for the test runner through properties and events. Would this be ...
.net
wpf
testing
null
null
null
open
How to test a WPF user interface? === Using win forms with an [MVC][1]/[MVP][2] architecture, I would normally use a class to wrap a view to test the UI while using mocks for the model and controller/presenter. The wrapper class would make most everything in the UI an observable property for the test runner through p...
0
58,353
09/12/2008 05:17:21
5,302
09/08/2008 22:49:47
81
10
Recent Projects panel on VS2008 not working for fresh installs
The Recent Projects panel on the Start Page of VS2008 Professional doesn't appear to work, and constantly remains empty. I've noticed this on 3 of our developers VS2008 installations, in fact all the installations that weren't updated from 2005 but installed from scratch. I generally treat this as a bit of a curiosi...
visual-studio-2008
null
null
null
null
null
open
Recent Projects panel on VS2008 not working for fresh installs === The Recent Projects panel on the Start Page of VS2008 Professional doesn't appear to work, and constantly remains empty. I've noticed this on 3 of our developers VS2008 installations, in fact all the installations that weren't updated from 2005 but ...
0
58,354
09/12/2008 05:17:35
3,957
09/01/2008 02:50:44
1
2
Algorithm/Data Structure Design Interview Questions
What are some simple algorithm or data structure related "white boarding" problems that you find effective during the candidate screening process? I have some simple ones that I use to validate problem solving skills and that can be simply expressed but have some opportunity for the application of some heuristics. ...
alrgorithm
data-structures
interview-questions
null
null
12/03/2011 09:02:48
not constructive
Algorithm/Data Structure Design Interview Questions === What are some simple algorithm or data structure related "white boarding" problems that you find effective during the candidate screening process? I have some simple ones that I use to validate problem solving skills and that can be simply expressed but have s...
4
58,384
09/12/2008 05:52:05
2,078
08/20/2008 08:00:36
102
14
Saving an open generic type in an array?
I am facing a problem with .NET generics. The thing I want to do is saving an array of generics types (GarphicsItem): public class GraphicsItem<T> { private T _item; public void Load(T item) { _item = item; } } How can I save such open generic t...
.net
generics
null
null
null
null
open
Saving an open generic type in an array? === I am facing a problem with .NET generics. The thing I want to do is saving an array of generics types (GarphicsItem): public class GraphicsItem<T> { private T _item; public void Load(T item) { _item = item; ...
0
58,399
09/12/2008 06:16:33
6,059
09/12/2008 06:14:24
1
0
Mac font rendering on Windows
I love the way Mac OS *beautifully* renders fonts (not just browsers). I was wondering if we could somehow get the same rendering in browsers running on Windows? Someone recommended sIFR but I guess that's useful when I need to use non-standard fonts? -- Swap
osx
font
rendering
null
null
null
open
Mac font rendering on Windows === I love the way Mac OS *beautifully* renders fonts (not just browsers). I was wondering if we could somehow get the same rendering in browsers running on Windows? Someone recommended sIFR but I guess that's useful when I need to use non-standard fonts? -- Swap
0
58,424
09/12/2008 07:04:31
6,061
09/12/2008 07:04:30
1
0
A lightweight application framework for PHP?
I have long been a fan of [_why's Camping](http://code.whytheluckystiff.net/camping) microframework -- lightweight, great for microscopic applications (low concurrency, easy to use and edit and maintain), which is what I do. I'd love to know if there's something similar for PHP; full-blown app frameworks like CakePHP o...
php
framework
small
null
null
null
open
A lightweight application framework for PHP? === I have long been a fan of [_why's Camping](http://code.whytheluckystiff.net/camping) microframework -- lightweight, great for microscopic applications (low concurrency, easy to use and edit and maintain), which is what I do. I'd love to know if there's something similar...
0
58,425
09/12/2008 07:06:37
148
08/02/2008 15:01:32
98
3
WPF Application fails on startup with TypeInitializationException
I have a simple WPF application which I am trying to start. I am following the Microsoft Patterns and Practices "Composite Application Guidance for WPF". I've followed their instructions however my WPF application fails immediately with a "TypeInitializationException". The InnerException property reveals that "The...
.net
wpf
prism
null
null
null
open
WPF Application fails on startup with TypeInitializationException === I have a simple WPF application which I am trying to start. I am following the Microsoft Patterns and Practices "Composite Application Guidance for WPF". I've followed their instructions however my WPF application fails immediately with a "TypeIni...
0
58,429
09/12/2008 07:09:22
4,489
09/04/2008 06:00:46
185
15
SQL set-based range
How can I have SQL repeat some set-based operation an arbitrary number of times without looping? How can I have SQL perform an operation against a range of numbers? I'm basically looking for a way to do a set-based for loop.<p> I know I can just create a small table with integers in it, say from 1 to 1000 and then use...
sql-server
sql
null
null
null
null
open
SQL set-based range === How can I have SQL repeat some set-based operation an arbitrary number of times without looping? How can I have SQL perform an operation against a range of numbers? I'm basically looking for a way to do a set-based for loop.<p> I know I can just create a small table with integers in it, say fr...
0
58,431
09/12/2008 07:10:21
4,991
09/07/2008 08:43:55
56
4
Algorithm for joining e.g. an array of strings
I have wondered for some time, what a nice, clean solution for joining an array of strings might look like. Example: I have ["Alpha, "Beta", "Gamma"] and want to join the strings into one, separated by commas – "Alpha, Beta, Gamma". Now I know that most programming languages offer some kind of join method for this....
language-agnostic
algorithm
string
arrays
null
null
open
Algorithm for joining e.g. an array of strings === I have wondered for some time, what a nice, clean solution for joining an array of strings might look like. Example: I have ["Alpha, "Beta", "Gamma"] and want to join the strings into one, separated by commas – "Alpha, Beta, Gamma". Now I know that most programmin...
0
58,457
09/12/2008 07:44:16
2,929
08/26/2008 06:32:53
176
13
Random Weighted Choice in T-SQL
How do you randomly select a table row in T-SQL based on an applied weight for all candidate rows? For example, I have a set of rows in a table weighted at 50, 25, and 25 (which adds up to 100 but does not need to), and I want to select one of them randomly with a statistical outcome equivalent to the respective wei...
sql-server
mssql
tsql
random
null
null
open
Random Weighted Choice in T-SQL === How do you randomly select a table row in T-SQL based on an applied weight for all candidate rows? For example, I have a set of rows in a table weighted at 50, 25, and 25 (which adds up to 100 but does not need to), and I want to select one of them randomly with a statistical out...
0
58,463
09/12/2008 07:50:56
5,729
09/11/2008 05:23:57
71
2
Preferred Operating System for web programmers - client or server
Which OS do you prefer to program on? Client or Server There is a school of though that if you are doing (mostly) web programming (or other server based code), you should use a server OS for your dev machine, since that's closer to the environment where your app will be running. Update: I should add, this is real...
operatingsystem
null
null
null
null
null
open
Preferred Operating System for web programmers - client or server === Which OS do you prefer to program on? Client or Server There is a school of though that if you are doing (mostly) web programming (or other server based code), you should use a server OS for your dev machine, since that's closer to the environmen...
0
58,478
09/12/2008 08:02:55
381
08/05/2008 10:39:26
2,240
33
How do I send mail from a Ruby program ?
I want to send email from a Ruby application. Is there a call in the core language to do this or is there a library I should use ? What's the best way to do this ?
ruby
email
null
null
null
null
open
How do I send mail from a Ruby program ? === I want to send email from a Ruby application. Is there a call in the core language to do this or is there a library I should use ? What's the best way to do this ?
0
58,482
09/12/2008 08:08:40
422
08/05/2008 15:11:55
1,100
47
Ruby - Get a Variable's Name
I'm not entirely sure if this is possible in Ruby, but hopefully there's an easy way to do this. I want to declare a variable and later find out the name of the variable. That is, for this simple snippet: foo = ["goo", "baz"] How can I get the name of the array (here, "foo") back? If it is indeed possible, does...
ruby
variables
null
null
null
null
open
Ruby - Get a Variable's Name === I'm not entirely sure if this is possible in Ruby, but hopefully there's an easy way to do this. I want to declare a variable and later find out the name of the variable. That is, for this simple snippet: foo = ["goo", "baz"] How can I get the name of the array (here, "foo") ba...
0
58,484
09/12/2008 08:10:47
5,642
09/10/2008 15:42:57
152
7
Getting Good Google PageRank
In SEO people talk a lot about Google [PageRank][1]. It's kind of a catch 22 because until your site is actually big and you don't really need search engines as much, it's unlikely that big sites will link to you and increase your PageRank! I've been told that it's easiest to simply get a couple high quality links t...
seo
pagerank
null
null
null
08/14/2011 14:42:20
off topic
Getting Good Google PageRank === In SEO people talk a lot about Google [PageRank][1]. It's kind of a catch 22 because until your site is actually big and you don't really need search engines as much, it's unlikely that big sites will link to you and increase your PageRank! I've been told that it's easiest to simply...
2
58,489
09/12/2008 08:14:11
2,954
08/26/2008 08:53:06
759
38
Are BPM solutions worth the investment in money, time and effort?
This is more an architecture related question than a programming one, but I think it might be useful to developers given that I have been wondering this myself for some time. I have no experience with Business Process Management tools use or implementation. (The closest thing I have used is BizTalk server, but I kno...
architecture
bpm
business
null
null
05/06/2012 23:06:12
not constructive
Are BPM solutions worth the investment in money, time and effort? === This is more an architecture related question than a programming one, but I think it might be useful to developers given that I have been wondering this myself for some time. I have no experience with Business Process Management tools use or impl...
4
58,493
09/12/2008 08:18:38
6,042
09/12/2008 03:35:00
6
2
Algorithm to find a common multiplier to convert decimal numbers to whole numbers
I have an array of numbers that potentially have up to 8 decimal places and I need to find the smallest common number I can multiply them by so that they are all whole numbers. I need this so they can all be multiplied out to the same scale and be processed by a sealed system that will only deal with whole numbers, the...
algorithm
math
null
null
null
null
open
Algorithm to find a common multiplier to convert decimal numbers to whole numbers === I have an array of numbers that potentially have up to 8 decimal places and I need to find the smallest common number I can multiply them by so that they are all whole numbers. I need this so they can all be multiplied out to the sam...
0
58,510
09/12/2008 08:35:39
2,674
08/24/2008 12:31:39
48
2
In C# how can you find the mime type of a file based on the file signature not the extension.
I am looking for a simple way to get a mime type where the file extension is incorrect or not given, something similar to [this][1] question only in .Net. [1]: http://stackoverflow.com/questions/51438/getting-a-files-mime-type-in-java
c#
mime-types
mime
null
null
null
open
In C# how can you find the mime type of a file based on the file signature not the extension. === I am looking for a simple way to get a mime type where the file extension is incorrect or not given, something similar to [this][1] question only in .Net. [1]: http://stackoverflow.com/questions/51438/getting-a-fi...
0
58,513
09/12/2008 08:38:29
230
08/03/2008 19:32:46
632
38
Unit testing MVC.net Redirection
How do I Unit Test a MVC redirection? > public ActionResult Create(Product product) > { > > _productTask.Save(product); > > return RedirectToAction("Success"); > > } > > public ActionResult Success() > { > ...
asp.net
unit-testing
null
null
null
null
open
Unit testing MVC.net Redirection === How do I Unit Test a MVC redirection? > public ActionResult Create(Product product) > { > > _productTask.Save(product); > > return RedirectToAction("Success"); > > } > > public A...
0
58,517
09/12/2008 08:42:07
5,055
09/07/2008 15:43:03
1
2
Combining Enums
Is there a way to combine Enums in VB.net?
vb.net
.net
enum
null
null
null
open
Combining Enums === Is there a way to combine Enums in VB.net?
0
58,520
09/12/2008 08:43:54
5,733
09/11/2008 06:29:13
72
9
Version control of deliverables
We need to regularly synchronize many dozens of binary files (project executables and DLLs) between many developers at several different locations, so that every developer has an up to date environment to build and test at. Due to nature of the project, updates must be done often and on-demand (overnight updates are no...
version-control
deployment
null
null
null
null
open
Version control of deliverables === We need to regularly synchronize many dozens of binary files (project executables and DLLs) between many developers at several different locations, so that every developer has an up to date environment to build and test at. Due to nature of the project, updates must be done often an...
0
58,538
09/12/2008 09:09:47
5,182
09/08/2008 11:20:40
250
10
How do you create an event log source using WiX
I'm creating an installer for a website that uses a custom event log source. I would like our WiX based installer to create that event log source during installation. Does anyone know the best way to do this using the WiX framework.
wix
event-log
eventlog-source
null
null
null
open
How do you create an event log source using WiX === I'm creating an installer for a website that uses a custom event log source. I would like our WiX based installer to create that event log source during installation. Does anyone know the best way to do this using the WiX framework.
0
58,540
09/12/2008 09:12:56
1,281
08/14/2008 11:19:51
163
7
SSIS Oracle Parameter Mapping
When trying to enter a SQL query with parameters using the Oracle OLE DB provider I get the following error: > Parameters cannot be extracted from the SQL command. The provider might not help to parse parameter information from the command. In that case, use the "SQL command from variable" access mode, in which the ...
oracle
ssis
null
null
null
null
open
SSIS Oracle Parameter Mapping === When trying to enter a SQL query with parameters using the Oracle OLE DB provider I get the following error: > Parameters cannot be extracted from the SQL command. The provider might not help to parse parameter information from the command. In that case, use the "SQL command from v...
0
58,543
09/12/2008 09:18:11
2,260
08/21/2008 11:39:22
887
72
<iframe> - How to show the whole height of referenced page?
I have an application that I would like to embed inside our companies CMS. The only way to do that (I am told), is to load it in an `<iframe>`. Easy: just set `height` and `width` to `100%`! Except, it doesn't work. I did find out about setting `frameborder` to `0`, so it at least *looks* like part of the site, b...
html
iframe
null
null
null
null
open
<iframe> - How to show the whole height of referenced page? === I have an application that I would like to embed inside our companies CMS. The only way to do that (I am told), is to load it in an `<iframe>`. Easy: just set `height` and `width` to `100%`! Except, it doesn't work. I did find out about setting `fra...
0
58,547
09/12/2008 09:24:49
1,007
08/11/2008 12:50:43
429
18
Painless resource management in java
In C++ we acquiring a resource in a constructor and release it in a destructor. So when an exception rises in a middle of a function there will be no resource leak or locked mutexes or whatever. AFAIK java classes don't have destructors. So how does one do the resource management in Java. For example: p...
java
resources
null
null
null
null
open
Painless resource management in java === In C++ we acquiring a resource in a constructor and release it in a destructor. So when an exception rises in a middle of a function there will be no resource leak or locked mutexes or whatever. AFAIK java classes don't have destructors. So how does one do the resource ma...
0
58,551
09/12/2008 09:27:47
5,736
09/11/2008 07:22:05
1
0
How do I configure Firebug to use Eclipse/Netbeans as editor
I want to use a real IDE for editing javascript files in combination with Firebug. In the 'Add editor' dialog for Firebug I'm allowed to specify executable and arguments. So the question is really how do I open a file in Eclipse/Netbeans from the command line. Extra points for allowing me to choose between opening ...
eclipse
netbeans
firebug
null
null
null
open
How do I configure Firebug to use Eclipse/Netbeans as editor === I want to use a real IDE for editing javascript files in combination with Firebug. In the 'Add editor' dialog for Firebug I'm allowed to specify executable and arguments. So the question is really how do I open a file in Eclipse/Netbeans from the command...
0
58,554
09/12/2008 09:28:55
2,095
08/20/2008 11:01:19
357
18
How to tweak Eclipse CDT's Indexer?
I'm using Eclipse as my IDE for a C++ project, and I would love for it to tell me where a given symbol is defined and what the parameters are for a function. However, there's a catch: I also use [Lazy C++][1], a tool that takes a single source file and generates the .h and the .cpp files. Those .lzz files look like ...
c++
eclipse
cdt
lazy-c++
indexer
null
open
How to tweak Eclipse CDT's Indexer? === I'm using Eclipse as my IDE for a C++ project, and I would love for it to tell me where a given symbol is defined and what the parameters are for a function. However, there's a catch: I also use [Lazy C++][1], a tool that takes a single source file and generates the .h and th...
0
58,556
09/12/2008 09:29:31
4,497
09/04/2008 08:49:10
8
3
Hardware recommendations for Ubuntu XEN server
We're planning to set up a XEN virtualization server using Ubuntu. I'm looking for any recommendations with regard to what to watch out for when buying hardware for the system. The server is going to host 4 or 5 instances of a Linux/Apache/MySQL/J2EE stack. Our Budget ist about 10,000 $ Any advice is greatly a...
xen
linux
hardware
ubuntu
null
null
open
Hardware recommendations for Ubuntu XEN server === We're planning to set up a XEN virtualization server using Ubuntu. I'm looking for any recommendations with regard to what to watch out for when buying hardware for the system. The server is going to host 4 or 5 instances of a Linux/Apache/MySQL/J2EE stack. Our ...
0
58,558
09/12/2008 09:31:40
4,702
09/05/2008 10:14:44
238
8
How do I remotely get a checksum for a file on a Windows machine?
I'm trying to check, using an automated discovery tool, when JAR files in remote J2EE application servers have changed content. Currently, the system downloads the whole JAR using WMI to checksum it locally, which is slow for large JARs. For UNIXy servers (and Windows servers with Cygwin), I can just log in over SSH...
windows
java-ee
wmi
checksum
null
null
open
How do I remotely get a checksum for a file on a Windows machine? === I'm trying to check, using an automated discovery tool, when JAR files in remote J2EE application servers have changed content. Currently, the system downloads the whole JAR using WMI to checksum it locally, which is slow for large JARs. For UNIX...
0
58,564
09/12/2008 09:38:38
6,082
09/12/2008 09:38:38
1
0
core dump files on Linux: how to get info on opened files?
I have a core dump file from a process that has probably a file descriptor leak (it opens files and sockets but apparently sometimes forgets to close some of them). Is there a way to find out which files and sockets the process had opened before crashing? I can't easily reproduce the crash, so analyzing the core file s...
linux
crash
null
null
null
null
open
core dump files on Linux: how to get info on opened files? === I have a core dump file from a process that has probably a file descriptor leak (it opens files and sockets but apparently sometimes forgets to close some of them). Is there a way to find out which files and sockets the process had opened before crashing? ...
0
58,584
09/12/2008 09:56:51
4,639
09/04/2008 23:07:22
135
1
In Vim, what is the best way to select, delete, or comment out large portions of multi-screen text?
Selecting a large amount of text that extends over many screens in an IDE like Eclipse is fairly easy since you can use the mouse, but what is the best way to e.g. select and delete multiscreen blocks of text or write e.g. three large methods out to another file and then delete them for testing purposes in Vim when usi...
perl
vim
vi
null
null
null
open
In Vim, what is the best way to select, delete, or comment out large portions of multi-screen text? === Selecting a large amount of text that extends over many screens in an IDE like Eclipse is fairly easy since you can use the mouse, but what is the best way to e.g. select and delete multiscreen blocks of text or wri...
0
58,614
09/12/2008 10:19:53
6,089
09/12/2008 10:19:53
1
0
Measuring stack usage for Linux multi-threaded app
I'm developing a multi-threaded app for a Linux embedded platform. At the moment I'm setting the stack size for each thread (via pthread_set_attr) to a fairly large default value. I would like to fine tune that value for each thread to something smaller to reduce my application's memory usage. I could go through the...
linux
multithreading
stack
null
null
null
open
Measuring stack usage for Linux multi-threaded app === I'm developing a multi-threaded app for a Linux embedded platform. At the moment I'm setting the stack size for each thread (via pthread_set_attr) to a fairly large default value. I would like to fine tune that value for each thread to something smaller to redu...
0
58,618
09/12/2008 10:23:30
1,008
08/11/2008 12:53:05
192
12
Delphi Network programming
I have a classic client/server (fat client and database) program written in Delphi 2006. When certain conditions are met in the client, I need to notify all the other clients very quickly. Up until now this has been done using UDP broadcasts, but this is no longer viable as clients now connect from outside the LAN and ...
delphi
network-programming
null
null
null
null
open
Delphi Network programming === I have a classic client/server (fat client and database) program written in Delphi 2006. When certain conditions are met in the client, I need to notify all the other clients very quickly. Up until now this has been done using UDP broadcasts, but this is no longer viable as clients now c...
0
58,620
09/12/2008 10:25:32
5,049
09/07/2008 15:03:23
61
7
Default button size?
How do I create a button control (with `CreateWindow` of a `BUTTON` window class) that has a standard system-wide size (especially height) that's consistent with the rest of Windows applications? I should of course take DPI into account and probably other settings. >**Remark:** Using `USE_CW_DEFAULT` for width and ...
winapi
null
null
null
null
null
open
Default button size? === How do I create a button control (with `CreateWindow` of a `BUTTON` window class) that has a standard system-wide size (especially height) that's consistent with the rest of Windows applications? I should of course take DPI into account and probably other settings. >**Remark:** Using `USE_...
0
58,621
09/12/2008 10:26:31
3,366
08/28/2008 08:58:39
106
1
How do I hash a string with Delphi?
What hash algorithms does Delphi support?
delphi
hash
md5
null
null
null
open
How do I hash a string with Delphi? === What hash algorithms does Delphi support?
0
58,622
09/12/2008 10:26:40
2,077
08/20/2008 07:26:21
372
8
Can I document Python code with doxygen (and does it make sense)?
I like doxygen to create documentation of C or PHP code. I have an upcoming Python project and I think I remember that Python doesn't have /* .. */ comments and also has its own self-documentation facility which seems to be the pythonian way to document. Can I just use doxygen? Anything particular to be aware of? ...
python
doxygen
null
null
null
null
open
Can I document Python code with doxygen (and does it make sense)? === I like doxygen to create documentation of C or PHP code. I have an upcoming Python project and I think I remember that Python doesn't have /* .. */ comments and also has its own self-documentation facility which seems to be the pythonian way to docu...
0
58,630
09/12/2008 10:31:35
475
08/06/2008 07:16:20
509
28
"Quoted-printable line longer than 76 chars" warning when sending HTML E-Mail
I have written some code in my VB.NET application to send an HTML e-mail (in this case, a lost password reminder). When I test the e-mail, it gets eaten by my spam filter. One of the things that it's scoring badly on is because of the following problem: <pre>MIME_QP_LONG_LINE RAW: Quoted-printable line longer t...
.net
html
email
null
null
null
open
"Quoted-printable line longer than 76 chars" warning when sending HTML E-Mail === I have written some code in my VB.NET application to send an HTML e-mail (in this case, a lost password reminder). When I test the e-mail, it gets eaten by my spam filter. One of the things that it's scoring badly on is because of th...
0
58,633
09/12/2008 10:34:14
3,634
08/29/2008 16:10:49
41
1
How do I keep RecipientTime when executing MailItem.Move in an Outlook macro?
In an Outlook 2003 macro; Is there a way to move a message between folders without changing the ReceivedTime-header? I currently use the method `MailItem.Move`. But that automatically sets the `ReceivedTime` property to the current time, which isn't really what I want.
vba
outlook
macros
null
null
null
open
How do I keep RecipientTime when executing MailItem.Move in an Outlook macro? === In an Outlook 2003 macro; Is there a way to move a message between folders without changing the ReceivedTime-header? I currently use the method `MailItem.Move`. But that automatically sets the `ReceivedTime` property to the current ti...
0
58,638
09/12/2008 10:36:38
5,932
09/11/2008 17:43:38
11
1
How do I convert a set of polygons into a bitmap
How do I take a set of polygons which contain arbitrary values and create a corresponding bitmap where each pixel contains the value of the polygon at that location? To put the question into context, my polygons contain information about the average number of people per square kilometre within the polygon. I need to...
algorithm
gis
null
null
null
null
open
How do I convert a set of polygons into a bitmap === How do I take a set of polygons which contain arbitrary values and create a corresponding bitmap where each pixel contains the value of the polygon at that location? To put the question into context, my polygons contain information about the average number of peo...
0
58,649
09/12/2008 10:43:49
6,091
09/12/2008 10:43:48
1
0
How to get the EXIF data from a file using C#
I would like to write a small program in C# which goes through my jpeg photos and, for example, sorts them into dated folders (using MY dating conventions, dammit...). Does anyone know a relatively easy way to get at the EXIF data such as Date And Time or Exposure programatically? Thanks!
c#
exif
photography
null
null
null
open
How to get the EXIF data from a file using C# === I would like to write a small program in C# which goes through my jpeg photos and, for example, sorts them into dated folders (using MY dating conventions, dammit...). Does anyone know a relatively easy way to get at the EXIF data such as Date And Time or Exposure ...
0
58,670
09/12/2008 10:53:52
3,225
08/27/2008 13:43:05
69
13
Windows CDROM Eject
Does anyone know a method to problematically close the CD tray on Windows 2000 or higher? Open CD tray exists, but I can't seem to make it close especially under W2k. I am especially looking for a method to do this from a batch file, if possible, but API calls would be OK.
winapi
windows
null
null
null
null
open
Windows CDROM Eject === Does anyone know a method to problematically close the CD tray on Windows 2000 or higher? Open CD tray exists, but I can't seem to make it close especially under W2k. I am especially looking for a method to do this from a batch file, if possible, but API calls would be OK.
0
58,671
09/12/2008 10:54:45
1,196
08/13/2008 12:33:04
3,453
243
Example of modern text editor architecutre
I'm looking for design\architectual guidance for modern text editors. *Modern* text editor means that: - It has support for syntax highlighting - It has auto-completion (something like IntelliSense) - It has advanced navigation capabilities (incremental search, etc.) Following properties will be a pl...
design
architecture
text-editor
null
null
null
open
Example of modern text editor architecutre === I'm looking for design\architectual guidance for modern text editors. *Modern* text editor means that: - It has support for syntax highlighting - It has auto-completion (something like IntelliSense) - It has advanced navigation capabilities (incremental se...
0
58,679
09/12/2008 10:58:23
994
08/11/2008 12:26:04
21
2
Visual Studio 2008 complains about trusted locations. What to do?
I was messing around with [RhinoMocks](http://www.ayende.com/projects/rhino-mocks.aspx) this morning and couldn't run my tests because RhinoMocks.dll was not in a "trusted location". The assembly is in my c:\documents and settings\<username>\My Documents\Visual Studio 2008\Projects (and so on) folder. What's the deal?
security
assembly
visual-studio
null
null
null
open
Visual Studio 2008 complains about trusted locations. What to do? === I was messing around with [RhinoMocks](http://www.ayende.com/projects/rhino-mocks.aspx) this morning and couldn't run my tests because RhinoMocks.dll was not in a "trusted location". The assembly is in my c:\documents and settings\<username>\My Docu...
0
58,694
09/12/2008 11:05:57
184
08/03/2008 05:34:19
2,389
43
How do I HTML Encode all the output in a web application?
I want to prevent XSS attacks in my web application. I found that HTML Encoding the output can really prevent XSS attacks. Now the problem is that how do I HTML encode every single output in my application? I there a way to automate this? I appreciate answers for JSP, ASP.net and PHP.
asp.net
php
jsp
null
null
null
open
How do I HTML Encode all the output in a web application? === I want to prevent XSS attacks in my web application. I found that HTML Encoding the output can really prevent XSS attacks. Now the problem is that how do I HTML encode every single output in my application? I there a way to automate this? I appreciate an...
0
58,697
09/12/2008 11:07:18
2,757
08/24/2008 21:53:16
834
40
Alternatives to XCopy for copying lots of files?
The situation: I have a pieceofcrapuous laptop. One of the things that make it pieceofcrapuous is that the battery is dead, and the power cable pulls out of the back with little effort. I recently received a non-pieceofcrapuous laptop, and I am in the process of copying everything from old to new. I'm trying to xcop...
xcopy
null
null
null
null
07/19/2012 00:12:30
off topic
Alternatives to XCopy for copying lots of files? === The situation: I have a pieceofcrapuous laptop. One of the things that make it pieceofcrapuous is that the battery is dead, and the power cable pulls out of the back with little effort. I recently received a non-pieceofcrapuous laptop, and I am in the process of ...
2
58,709
09/12/2008 11:17:23
4,164
09/02/2008 08:32:37
1
0
How to log in T-SQL
I'm using ADO.NET to access SQL Server 2005 and would like to be able to log from inside the T-SQL stored procedures that I'm calling. Is that somehow possible?
sql-server
tsql
ado.net
null
null
null
open
How to log in T-SQL === I'm using ADO.NET to access SQL Server 2005 and would like to be able to log from inside the T-SQL stored procedures that I'm calling. Is that somehow possible?
0
58,711
09/12/2008 11:18:04
745
08/08/2008 13:47:26
650
53
How would you design a very "Pythonic" UI framework?
I have been playing with the Ruby library "shoes". Basically you can write a GUI application in the following way: Shoes.app do t = para "Not clicked!" button "The Label" do alert "You clicked the button!" # when clicked, make an alert t.replace "Clicked!" # ..and replace the labe...
python
frameworks
user-interface
null
null
null
open
How would you design a very "Pythonic" UI framework? === I have been playing with the Ruby library "shoes". Basically you can write a GUI application in the following way: Shoes.app do t = para "Not clicked!" button "The Label" do alert "You clicked the button!" # when clicked, make an al...
0
58,730
09/12/2008 11:31:20
3,853
08/31/2008 11:35:10
319
15
Open source PDF library for C/C++ application?
I want to be able to generate PDF ouput from my (native) C++ Windows application. Are there any free/open source libraries available to do this? I looked at the answers to [this question](http://stackoverflow.com/questions/177/how-do-i-programmatically-create-a-pdf-in-my-net-application), but they mostly relate to ....
c
c++
pdf
null
null
null
open
Open source PDF library for C/C++ application? === I want to be able to generate PDF ouput from my (native) C++ Windows application. Are there any free/open source libraries available to do this? I looked at the answers to [this question](http://stackoverflow.com/questions/177/how-do-i-programmatically-create-a-pdf...
0
58,736
09/12/2008 11:35:22
123
08/02/2008 08:01:26
1,689
92
Good source on internet to read books..
Ofcourse, there are [Google Books][1], [Wikibooks][2], [Project Gutenburg][3] & [iBiblio][4]. What other libraries would you recommend on the internet? [1]: http://books.google.com/ [2]: http://en.wikibooks.org/wiki/Main_Page [3]: http://www.gutenberg.org/wiki/Main_Page [4]: http://www.ibiblio.org/
books
technical
null
null
null
09/24/2011 14:58:17
not constructive
Good source on internet to read books.. === Ofcourse, there are [Google Books][1], [Wikibooks][2], [Project Gutenburg][3] & [iBiblio][4]. What other libraries would you recommend on the internet? [1]: http://books.google.com/ [2]: http://en.wikibooks.org/wiki/Main_Page [3]: http://www.gutenberg.org/wik...
4
58,739
09/12/2008 11:36:58
5,147
09/08/2008 07:23:50
31
9
Interview questions: WPF Developer
What should every WPF developer know? **Entry Level** - Strong .NET 2.0 Background & willing to learn! - Explain dependency properties? - What's a style? - What's a template? - Differences between base classes: Visual, UIElement, FrameworkElement, Control - Visual vs Logical tree? **Mid-level*...
wpf
interview-questions
null
null
null
11/28/2011 18:39:35
off topic
Interview questions: WPF Developer === What should every WPF developer know? **Entry Level** - Strong .NET 2.0 Background & willing to learn! - Explain dependency properties? - What's a style? - What's a template? - Differences between base classes: Visual, UIElement, FrameworkElement, Control -...
2
58,743
09/12/2008 11:38:18
1,733
08/18/2008 11:22:07
53
11
Databinding an enum property to a ComboBox in WPF
As an example take the following code: public enum ExampleEnum { FooBar, BarFoo } public class ExampleClass : INotifyPropertyChanged { private ExampleEnum example; public ExampleEnum ExampleProperty { get { return example; } { /* set and notify */; } } } I want a...
wpf
.net
null
null
null
null
open
Databinding an enum property to a ComboBox in WPF === As an example take the following code: public enum ExampleEnum { FooBar, BarFoo } public class ExampleClass : INotifyPropertyChanged { private ExampleEnum example; public ExampleEnum ExampleProperty { get { return ex...
0
58,744
09/12/2008 11:38:52
905
08/10/2008 09:37:14
4,343
247
Best way to copy the entire contents of a directory in C#
I want to copy the entire contents of a directory from one location to another in C#. There doesn't appear to be a way to do this using `System.IO` classes without lots of recursion. There is a method in VB that we can use if we add a reference to `Microsoft.VisualBasic`: new Microsoft.VisualBasic.Devices....
c#
.net
copy
null
null
null
open
Best way to copy the entire contents of a directory in C# === I want to copy the entire contents of a directory from one location to another in C#. There doesn't appear to be a way to do this using `System.IO` classes without lots of recursion. There is a method in VB that we can use if we add a reference to `Mi...
0
58,750
09/12/2008 11:42:11
370,899
08/22/2008 12:32:04
88
8
How do I get raw logs from Google Analytics?
Is it possible to obtain raw logs from Google Analytic? Is there any tool that can generate the raw logs from GA?
google-analytics
null
null
null
null
null
open
How do I get raw logs from Google Analytics? === Is it possible to obtain raw logs from Google Analytic? Is there any tool that can generate the raw logs from GA?
0
58,755
09/12/2008 11:44:14
624
08/07/2008 11:42:08
21
3
What is the best way to do per-user database connections in Rails
What is the best way to do per-user database connections in Rails? I realize this is a poor Rails design practice, but we're gradually replacing an existing web application that uses one database per user. A complete redesign/rewrite is not feasible.
ruby-on-rails
null
null
null
null
null
open
What is the best way to do per-user database connections in Rails === What is the best way to do per-user database connections in Rails? I realize this is a poor Rails design practice, but we're gradually replacing an existing web application that uses one database per user. A complete redesign/rewrite is not feas...
0
58,757
09/12/2008 11:45:38
6,065
09/12/2008 07:45:05
1
0
Push or Pull for a near real time automation server?
We are currently developing a server whereby a client requests interest in changes to specific data elements and when that data changes the server pushes the data back to the client. There has vigorous debate at work about whether or not it would be better for the client to poll for this data. What is considered to...
performance
automation
networking
null
null
null
open
Push or Pull for a near real time automation server? === We are currently developing a server whereby a client requests interest in changes to specific data elements and when that data changes the server pushes the data back to the client. There has vigorous debate at work about whether or not it would be better for t...
0
58,768
09/12/2008 11:56:26
4,500
09/04/2008 09:26:22
128
11
SDK for writing DVD's
I need to add DVD writing functionality to an application I'm working on. However it needs to be able to write out files that are being grabbed "live" from a camera, over a long period of time. I can't wait until all the files are captured before I start writing them to the DVD, I need to write them out in chunks as I ...
.net
sdk
image-capture
dvd-burning
null
null
open
SDK for writing DVD's === I need to add DVD writing functionality to an application I'm working on. However it needs to be able to write out files that are being grabbed "live" from a camera, over a long period of time. I can't wait until all the files are captured before I start writing them to the DVD, I need to wri...
0
58,774
09/12/2008 11:59:15
6,096
09/12/2008 11:53:03
1
0
How do you pasted multiple tabed lines into Vi
I want paste into a file open in Vi something I have cut from my desktop. But if I paste the tabs embed on top of each other across the page. I think it is some sort of visual mode change but can find the command. thanks
vi
paste
null
null
null
04/05/2012 19:55:00
off topic
How do you pasted multiple tabed lines into Vi === I want paste into a file open in Vi something I have cut from my desktop. But if I paste the tabs embed on top of each other across the page. I think it is some sort of visual mode change but can find the command. thanks
2
58,783
09/12/2008 12:05:01
4,694
09/05/2008 09:30:26
107
9
What tool do you use for counting lines of source code in Visual Studio Projects ?
I know there are quite a few line count tools around. Is there something simple that's not a part some other big package that you use ?
visual-studio
code-analysis
null
null
null
null
open
What tool do you use for counting lines of source code in Visual Studio Projects ? === I know there are quite a few line count tools around. Is there something simple that's not a part some other big package that you use ?
0