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
54,188
09/10/2008 14:26:41
4,240
09/02/2008 13:51:18
1
0
Are C++ Reads and Writes of an int atomic
I have two threads, one updating an int and one reading it. This value is a statistic where the order of the read and write is irrelevant. My question is, do I need to synchronize access to this multi-byte value anyway? Or, put another way, can part of the write be complete and get interrupted, and then the read h...
c++
multithreading
synchronization
null
null
null
open
Are C++ Reads and Writes of an int atomic === I have two threads, one updating an int and one reading it. This value is a statistic where the order of the read and write is irrelevant. My question is, do I need to synchronize access to this multi-byte value anyway? Or, put another way, can part of the write be co...
0
54,199
09/10/2008 14:30:59
5,596
09/10/2008 14:30:57
1
0
How to implement Repository pattern withe LinqToEntities?
How to implement Repository pattern withe LinqToEntities how to implement the interface
.net
.net-3.5
linq-to-entities
null
null
null
open
How to implement Repository pattern withe LinqToEntities? === How to implement Repository pattern withe LinqToEntities how to implement the interface
0
54,200
09/10/2008 14:31:04
2,208
08/20/2008 22:18:12
121
16
Encrypting appSettings in web.config
I am developing a web app which requires a username and password to be stored in the web.Config, it also refers to some URLs which will be requested by the web app itself and never the client. I know the .Net framework will not allow a web.config file to be served, however I still think its bad practice to leave thi...
encryption
security
settings
null
null
null
open
Encrypting appSettings in web.config === I am developing a web app which requires a username and password to be stored in the web.Config, it also refers to some URLs which will be requested by the web app itself and never the client. I know the .Net framework will not allow a web.config file to be served, however I...
0
54,207
09/10/2008 14:32:19
2,595
08/23/2008 12:52:27
13
6
Soap logging in .net
I have an internal enterprise app that currently consumes 10 different web services. They're consumed via old style "Web References" instead of using WCF. The problem I'm having is trying to work with the other teams in the company who are authoring the services I'm consuming. I found I needed to capture the exact S...
c#
web-services
soap
null
null
null
open
Soap logging in .net === I have an internal enterprise app that currently consumes 10 different web services. They're consumed via old style "Web References" instead of using WCF. The problem I'm having is trying to work with the other teams in the company who are authoring the services I'm consuming. I found I nee...
0
54,217
09/10/2008 14:34:44
1,096,640
09/08/2008 13:10:56
1
1
AJAX XMLHttpRequest object limt
Is there a security limit to the number of AJAX XMLHttpRequest objects you can create on a single page? If so, does this vary from one browser to another?
ajax
null
null
null
null
null
open
AJAX XMLHttpRequest object limt === Is there a security limit to the number of AJAX XMLHttpRequest objects you can create on a single page? If so, does this vary from one browser to another?
0
54,219
09/10/2008 14:36:26
2,547
08/22/2008 19:10:02
916
44
How should I handle a situation where I need to store several unrelated types but provide specific types on demand?
I'm working on an editor for files that are used by an important internal testing tool we use. The tool itself is large, complicated, and refactoring or rewriting would take more resources than we are able to devote to it for the forseeable future, so my hands are tied when it comes to large modifications. I must use...
.net
generics
null
null
null
null
open
How should I handle a situation where I need to store several unrelated types but provide specific types on demand? === I'm working on an editor for files that are used by an important internal testing tool we use. The tool itself is large, complicated, and refactoring or rewriting would take more resources than we a...
0
54,221
09/10/2008 14:37:10
1,310
08/14/2008 13:42:16
804
37
How would I allow a user to stream video to a web application for storage?
I'd like to add some functionality to a site that would allow users to record video using their webcam and easily store it online. I don't even know if this is possible right now, but I think flash has access to local webcams running through the browser. Do you have any suggestions or resources to get me started on ...
java
flash
web-applications
applet
null
null
open
How would I allow a user to stream video to a web application for storage? === I'd like to add some functionality to a site that would allow users to record video using their webcam and easily store it online. I don't even know if this is possible right now, but I think flash has access to local webcams running throug...
0
54,222
09/10/2008 14:37:24
1,108
08/12/2008 12:16:28
42
6
Linq to SQL - Accessing System Databases/Tables?
Right now I have an SSIS package that runs every morning and gives me a report on the number of packages that failed or succeeded from the day before. The information for these packages is contained partly within the <code>sysjobs</code> table (a system table) within the <code>msdb</code> database (a system database) ...
c#
sql-server
linq
linq-to-sql
null
null
open
Linq to SQL - Accessing System Databases/Tables? === Right now I have an SSIS package that runs every morning and gives me a report on the number of packages that failed or succeeded from the day before. The information for these packages is contained partly within the <code>sysjobs</code> table (a system table) with...
0
54,227
09/10/2008 14:38:33
5,599
09/10/2008 14:32:15
1
0
Asp.net path compaction
I have an asp.net url path which is being generated in a web form, and is coming out something like "/foo/bar/../bar/path.aspx", and is coming out in the generated html like this too. It should be shortened to "/foo/bar/path.aspx". Path.Combine didn't fix it. Is there a function to clean this path up?
c#
asp.net
asp
path
combine
null
open
Asp.net path compaction === I have an asp.net url path which is being generated in a web form, and is coming out something like "/foo/bar/../bar/path.aspx", and is coming out in the generated html like this too. It should be shortened to "/foo/bar/path.aspx". Path.Combine didn't fix it. Is there a function to clea...
0
54,230
09/10/2008 14:39:38
5,564
09/10/2008 14:08:33
1
0
CakePHP ACL Database Setup: ARO / ACO structure?
I'm struggling to implement ACL in CakePHP. After reading the documentation in the [cake manual][1] as well as several other tutorials, blog posts etc, I found Aran Johnson's excellent tutorial which has helped fill in many of the gaps. His examples seem to conflict with others I've seen though in a few places - spec...
cakephp
acl
null
null
null
null
open
CakePHP ACL Database Setup: ARO / ACO structure? === I'm struggling to implement ACL in CakePHP. After reading the documentation in the [cake manual][1] as well as several other tutorials, blog posts etc, I found Aran Johnson's excellent tutorial which has helped fill in many of the gaps. His examples seem to confli...
0
54,237
09/10/2008 14:41:43
4,906
09/06/2008 14:21:25
69
4
Is there a way to highlight the target of a bookmark? (www.site.com/page.htm#bookmark) ?
I want to link to bookmark on a page (mysite.com/mypage.htm#bookmark) AND visually highlight the item that was bookmarked (maybe having a red boarder). Naturally, there would be multiple items bookmarked. So that if someone clicked on <page>#bookmark2 then *that* other area would be highlighted). I can see how...
css
null
null
null
null
null
open
Is there a way to highlight the target of a bookmark? (www.site.com/page.htm#bookmark) ? === I want to link to bookmark on a page (mysite.com/mypage.htm#bookmark) AND visually highlight the item that was bookmarked (maybe having a red boarder). Naturally, there would be multiple items bookmarked. So that if someon...
0
54,249
09/10/2008 14:43:51
4,877
09/06/2008 09:50:35
1
0
Will a hard drive survive in a fire resistant safe?
I've been working with a friend trying to come up with a way to backup his important data. He's wanting to put a flash drive or portable drive in a fire safe. I'm thinking the temperature in the safe, while not enough to damage paper, will damage the delicate electronics in a flash drive or warp the platters on a har...
backup
data-protection
null
null
null
null
open
Will a hard drive survive in a fire resistant safe? === I've been working with a friend trying to come up with a way to backup his important data. He's wanting to put a flash drive or portable drive in a fire safe. I'm thinking the temperature in the safe, while not enough to damage paper, will damage the delicate e...
0
54,255
09/10/2008 14:46:35
4,639
09/04/2008 23:07:22
84
1
In vim is there a way to delete without putting text in the register?
Using vim I often want to replace a block of code with a block that I just yanked. But when I delete the block of code that is to be replaced, that block itself goes into the register which erases the block I just yanked. So I've got in the habit of yanking, then inserting, then deleting what I didn't want, but with l...
vim
vi
null
null
null
null
open
In vim is there a way to delete without putting text in the register? === Using vim I often want to replace a block of code with a block that I just yanked. But when I delete the block of code that is to be replaced, that block itself goes into the register which erases the block I just yanked. So I've got in the hab...
0
54,264
09/10/2008 14:49:45
1,175
08/13/2008 10:21:54
1,558
118
Tracking Refactorings in a Bug Database
Let's say you work someplace where every change to source code must be associated with a bug-report or feature-request, and there is no way to get that policy reformed. In such an environment, what is the best way to deal with code refactorings (that is, changes that improve the code but do not fix a bug or add a feat...
refactoring
bug-tracking
null
null
null
null
open
Tracking Refactorings in a Bug Database === Let's say you work someplace where every change to source code must be associated with a bug-report or feature-request, and there is no way to get that policy reformed. In such an environment, what is the best way to deal with code refactorings (that is, changes that improv...
0
54,295
09/10/2008 15:00:48
5,084
09/07/2008 19:06:24
1
0
Writing java.util.Properties to xml does not sort keys.
I'd like to store a properties file as XML. Is there a way to sort the keys when doing this so that the generated XML file will be in alphabetical order? String propFile = "/path/to/file"; Properties props = new Properties(); /*set some properties here*/ try { FileOutputStream xmlStrea...
java
xml
null
null
null
null
open
Writing java.util.Properties to xml does not sort keys. === I'd like to store a properties file as XML. Is there a way to sort the keys when doing this so that the generated XML file will be in alphabetical order? String propFile = "/path/to/file"; Properties props = new Properties(); /*set some pr...
0
54,299
09/10/2008 15:01:48
4,144
09/02/2008 02:27:42
95
6
Is it possible to over OO?
My question is simple; is it possible to over object orientate your code? How much is too much? At what point are you giving up readability and maintainability for the sake of OO? I am a huge OO person but sometimes I wonder if I am over-complicating my code.... Thoughts?
oop
null
null
null
null
null
open
Is it possible to over OO? === My question is simple; is it possible to over object orientate your code? How much is too much? At what point are you giving up readability and maintainability for the sake of OO? I am a huge OO person but sometimes I wonder if I am over-complicating my code.... Thoughts?
0
54,318
09/10/2008 15:07:18
1,341
08/14/2008 15:30:17
412
14
Any tools to get code churn metrics for a Subversion repository?
I'm looking for any tools that can give you code churn metrics (graphs and charts would be even better) for a Subversion repository. One tool I know of is [statsvn][1] - a Java tool that creates some HTML reports and some code churn metrics. I wanted to know if there are any others that are maybe open source, ext...
svn
project-management
null
null
null
null
open
Any tools to get code churn metrics for a Subversion repository? === I'm looking for any tools that can give you code churn metrics (graphs and charts would be even better) for a Subversion repository. One tool I know of is [statsvn][1] - a Java tool that creates some HTML reports and some code churn metrics. I ...
0
54,320
09/10/2008 15:07:33
1,980
08/19/2008 16:40:39
143
6
How can I become a better communicator?
Sometimes it takes me two or three attempts to explain how a piece of code functions or how a process works within an application so that the person I am speaking to understands (or at least responds as if they understand). I'm reading a few different books on Technical Writing but what can I do to become a better v...
self-improvement
null
null
null
null
03/01/2012 19:48:14
not constructive
How can I become a better communicator? === Sometimes it takes me two or three attempts to explain how a piece of code functions or how a process works within an application so that the person I am speaking to understands (or at least responds as if they understand). I'm reading a few different books on Technical W...
4
54,334
09/10/2008 15:11:42
2,017
08/19/2008 20:01:30
149
16
How do I concatenate text in a query in sql server?
SELECT notes + 'SomeText' FROM NotesTable a gives `The data types nvarchar and text are incompatible in the add operator.` as an error.
sql
sql-server
null
null
null
null
open
How do I concatenate text in a query in sql server? === SELECT notes + 'SomeText' FROM NotesTable a gives `The data types nvarchar and text are incompatible in the add operator.` as an error.
0
54,337
09/10/2008 15:12:19
2,894
08/25/2008 20:06:55
563
52
How can you find out where the style for a ASP .Net web page element came from?
I have a quandary. My web application (C#, .Net 3.0, etc) has Themes, CSS sheets and, of course, inline style definitions. Now that's alot of chefs adding stuff to the soup. All of this results, not surprisingly, in my pages having bizarre styling on occasion. I am sure that all these styles are applied in a hier...
c#
asp.net
css
themes
null
null
open
How can you find out where the style for a ASP .Net web page element came from? === I have a quandary. My web application (C#, .Net 3.0, etc) has Themes, CSS sheets and, of course, inline style definitions. Now that's alot of chefs adding stuff to the soup. All of this results, not surprisingly, in my pages having ...
0
54,364
09/10/2008 15:17:06
2,144
08/20/2008 14:49:43
95
8
Using ActiveDirectoryMembershipProvider with two domain controllers
We have an ASP.NET applicatoin running at a customer site that uses ActiveDirectory for user login via the ActiveDirectoryMembershipProvider. Their primary domain controller that we were pointing to went down this morning, and in getting everything set back up the client was wondering if we could have a redundant conne...
asp.net
directoryservices
activedirectory
null
null
null
open
Using ActiveDirectoryMembershipProvider with two domain controllers === We have an ASP.NET applicatoin running at a customer site that uses ActiveDirectory for user login via the ActiveDirectoryMembershipProvider. Their primary domain controller that we were pointing to went down this morning, and in getting everythin...
0
54,365
09/10/2008 15:17:09
1,277,510
09/07/2008 10:45:49
81
7
prepend to a file one liner shell?
This is probably [a complex solution][1]. I am looking for a simple operator like ">>", but for prepending. I am afraid it does not exist. I'll have to do something like <pre> mv $F tmp cat header tmp > $F </pre> Anything smarter? (I am not fond of tmp files) [1]: http://www.linuxtopia.org/online_b...
shell
null
null
null
null
null
open
prepend to a file one liner shell? === This is probably [a complex solution][1]. I am looking for a simple operator like ">>", but for prepending. I am afraid it does not exist. I'll have to do something like <pre> mv $F tmp cat header tmp > $F </pre> Anything smarter? (I am not fond of tmp files) ...
0
54,380
09/10/2008 15:21:15
5,431
09/09/2008 14:45:50
1
0
Problem rolling out ADO.Net Data Service application to IIS
I am adding a ADO.Net Data Service lookup feature to an existing web page. Everything works great when running from visual studio, but when I roll it out to IIS, I get the following error: > The server encountered an error processing the request. See server logs for more details. I get this even when trying to ...
.net
wcf-data-services
web-services
null
null
null
open
Problem rolling out ADO.Net Data Service application to IIS === I am adding a ADO.Net Data Service lookup feature to an existing web page. Everything works great when running from visual studio, but when I roll it out to IIS, I get the following error: > The server encountered an error processing the request. See...
0
54,387
09/10/2008 15:23:26
1,324,220
08/23/2008 19:01:43
552
30
Exposing .net methods as Excel functions?
I have a set of calculation methods sitting in a .Net DLL. I would like to make those methods available to Excel (2003+) users so they can use them in their spreadsheets. For example, my .net method: public double CalculateSomethingReallyComplex(doube a, double b) {...} I would like enable them to call th...
.net
excel
interop
null
null
null
open
Exposing .net methods as Excel functions? === I have a set of calculation methods sitting in a .Net DLL. I would like to make those methods available to Excel (2003+) users so they can use them in their spreadsheets. For example, my .net method: public double CalculateSomethingReallyComplex(doube a, double ...
0
54,401
09/10/2008 15:27:50
4,639
09/04/2008 23:07:22
102
1
What is the best strategy for code chunks and macros in vim?
As I develop more with vim, I find myself wanting to copy in blocks of useful code, similar to "templates" in Eclipse. I was thinking of making a separate file for each code chunk and just reading them in with <code>:r code-fornext</code><br/> but that just seems kind of primitive. Googling around I find vim macr...
vim
vi
null
null
null
null
open
What is the best strategy for code chunks and macros in vim? === As I develop more with vim, I find myself wanting to copy in blocks of useful code, similar to "templates" in Eclipse. I was thinking of making a separate file for each code chunk and just reading them in with <code>:r code-fornext</code><br/> but ...
0
54,418
09/10/2008 15:33:10
4,915
09/06/2008 15:29:52
1
0
How do I (or can I) SELECT DISTINCT on multiple columns (postgresql)?
I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the sales that do not have any other sales that happened on the same day for the same price. The sales that are unique based on day and price will get updated to an active status. So I'm thinking: UPDATE s...
sql
postgresql
null
null
null
null
open
How do I (or can I) SELECT DISTINCT on multiple columns (postgresql)? === I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the sales that do not have any other sales that happened on the same day for the same price. The sales that are unique based on day and price wi...
0
54,419
09/10/2008 15:33:23
5,408
09/09/2008 13:23:01
59
5
How to host 2 WCF services in 1 Windows Service?
I have a WCF application that has two Services that I am trying to host in a single Windows Service using net.tcp. I can run either of the services just fine, but as soon as I try to put them both in the Windows Service only the first one loads up. I have determined that the second services ctor is being called but the...
wcf
windows-services
null
null
null
null
open
How to host 2 WCF services in 1 Windows Service? === I have a WCF application that has two Services that I am trying to host in a single Windows Service using net.tcp. I can run either of the services just fine, but as soon as I try to put them both in the Windows Service only the first one loads up. I have determined...
0
54,421
09/10/2008 15:33:49
577
08/06/2008 21:36:25
433
17
What is the design pattern for processing command line arguments
If you are writing a program that is executable from the command line, you often want to offer the user several options or flags, along with possibly more than one argument. I have stumbled my way through this many times, but is there some sort of design pattern for looping through args and spinning off the appropriate...
design-patterns
command-line
arguments
null
null
null
open
What is the design pattern for processing command line arguments === If you are writing a program that is executable from the command line, you often want to offer the user several options or flags, along with possibly more than one argument. I have stumbled my way through this many times, but is there some sort of de...
0
54,426
09/10/2008 15:35:31
5,613
09/10/2008 14:51:53
1
1
What's cleanest, shortest Javascript to submit a URL the user is at to another process via URL?
Like the Delicious submission bookmarklet, I'd like to have some standard Javascript I can use to submit any visited URL to a 3rd party site when that's possible by URL. Suggestions? For example, I've been using javascript:void(location.href="http://www.yacktrack.com/home?query="+encodeURI(location.href)) ...
javascript
submission
urlhacks
null
null
null
open
What's cleanest, shortest Javascript to submit a URL the user is at to another process via URL? === Like the Delicious submission bookmarklet, I'd like to have some standard Javascript I can use to submit any visited URL to a 3rd party site when that's possible by URL. Suggestions? For example, I've been using ...
0
54,440
09/10/2008 15:37:24
3,797
08/30/2008 21:52:47
11
2
Adding Items Using DataBinding from TreeView to ListBox WPF
I want to add the selected item from the TreeView to the ListBox control using DataBinding (If it can work with Databinding). <TreeView HorizontalAlignment="Left" Margin="30,32,0,83" Name="treeView1" Width="133" > </TreeView> <ListBox Margin="208,36,93,0" ...
wpf
null
null
null
null
null
open
Adding Items Using DataBinding from TreeView to ListBox WPF === I want to add the selected item from the TreeView to the ListBox control using DataBinding (If it can work with Databinding). <TreeView HorizontalAlignment="Left" Margin="30,32,0,83" Name="treeView1" Width="133" > ...
0
54,459
09/10/2008 15:42:43
1,694
08/18/2008 02:45:22
1,450
42
Website load testing
My team has just developed a website for a client and wants to test that it'll work under the expected usage for 50 simultaneous users. So the plan is to write a test program that will act as 50 simultaneous users. We need this test program to be able to: 1. Be logged in with a cookie. Our session ids are not emb...
performance
stresstesting
null
null
null
null
open
Website load testing === My team has just developed a website for a client and wants to test that it'll work under the expected usage for 50 simultaneous users. So the plan is to write a test program that will act as 50 simultaneous users. We need this test program to be able to: 1. Be logged in with a cookie. O...
0
54,475
09/10/2008 15:46:58
5,079
09/07/2008 18:47:39
1
1
Help with aggressive JavaScript caching
I've run into a problem where I make changes to a few JavaScript files that are referenced in an HTML file, but the browser doesn't see the changes. It holds onto the copy cached in the browser, even though the web server has a newer version. Not until I force the browser to clear the cache do I see the changes. ...
javascript
caching
null
null
null
null
open
Help with aggressive JavaScript caching === I've run into a problem where I make changes to a few JavaScript files that are referenced in an HTML file, but the browser doesn't see the changes. It holds onto the copy cached in the browser, even though the web server has a newer version. Not until I force the browser...
0
54,482
09/10/2008 15:48:21
886
08/10/2008 07:46:39
133
10
How do I list user defined types in a SQL Server database?
I need to enumerate all the user defined types created in a SQL Server database with CREATE TYPE, and/or find out whether they have already been defined. With tables or stored procedures I'd do something like this: if exists (select * from dbo.sysobjects where name='foobar' and xtype='U') drop table ...
sql-server
null
null
null
null
null
open
How do I list user defined types in a SQL Server database? === I need to enumerate all the user defined types created in a SQL Server database with CREATE TYPE, and/or find out whether they have already been defined. With tables or stored procedures I'd do something like this: if exists (select * from dbo.sy...
0
54,495
09/10/2008 15:52:40
1,368
08/14/2008 18:57:47
168
11
Demanding better work environments, how to say it in a polite way?
We all know that a programmers working environment is vital for productivity. What techniques have you guys used to sway your employer to improve your situation? Improvements include: - dual monitors - faster computer - ergo chair - quite working environment (not by the photocopier, sheesh!) - we...
work
null
null
null
null
11/17/2011 16:09:22
off topic
Demanding better work environments, how to say it in a polite way? === We all know that a programmers working environment is vital for productivity. What techniques have you guys used to sway your employer to improve your situation? Improvements include: - dual monitors - faster computer - ergo chair ...
2
54,500
09/10/2008 15:55:30
145
08/02/2008 14:40:17
905
36
Storing Images in PostgreSQL
Alright, so I'm working on an application which will use a Linux back-end running PostgreSQL to serve up images to a Windows box with the front end written in C#.NET, though the front-end should hardly matter. My question is: - **What is the best way to deal with storing images in Postgres?** The images are ar...
postgresql
image
null
null
null
null
open
Storing Images in PostgreSQL === Alright, so I'm working on an application which will use a Linux back-end running PostgreSQL to serve up images to a Windows box with the front end written in C#.NET, though the front-end should hardly matter. My question is: - **What is the best way to deal with storing images i...
0
54,512
09/10/2008 15:58:05
83
08/01/2008 16:31:56
1,171
82
How should I store short text strings into a MS SQL Server database?
varchar(255), varchar(256), nvarchar(255), nvarchar(256), nvarchar(max), etc? 256 seems like a nice, round, space-efficient number. But I've seen 255 used a lot. Why? What's the difference between varchar and nvarchar?
sql
sql-server
database
mssql
database-design
null
open
How should I store short text strings into a MS SQL Server database? === varchar(255), varchar(256), nvarchar(255), nvarchar(256), nvarchar(max), etc? 256 seems like a nice, round, space-efficient number. But I've seen 255 used a lot. Why? What's the difference between varchar and nvarchar?
0
54,522
09/10/2008 16:01:23
5,648
09/10/2008 16:01:23
1
0
Printing data into a preprinted form in C# .Net 3.5 SP1
I need to print out data into a pre-printed A6 form (1/4 the size of a landsacpe A4). I do not need to print paragraphs of text, just short lines scattered about on the page. All the stuff on MSDN is about priting paragraphs of text. Thanks for any help you can give, Roberto
c#
.net
printing
null
null
null
open
Printing data into a preprinted form in C# .Net 3.5 SP1 === I need to print out data into a pre-printed A6 form (1/4 the size of a landsacpe A4). I do not need to print paragraphs of text, just short lines scattered about on the page. All the stuff on MSDN is about priting paragraphs of text. Thanks for any hel...
0
54,536
09/10/2008 16:07:58
5,429
09/09/2008 14:35:58
31
2
win32 GUI app that writes usage text to stdout when invoked as "app.exe --help"
How do I create a windows application that does the following: * it's a regular GUI app when invoked with no command line arguments * specifying the optional "--help" command line argument causes the app to write usage text to stdout then terminate * it must be a single executable. No cheating by making a console...
windows
null
null
null
null
null
open
win32 GUI app that writes usage text to stdout when invoked as "app.exe --help" === How do I create a windows application that does the following: * it's a regular GUI app when invoked with no command line arguments * specifying the optional "--help" command line argument causes the app to write usage text to stdo...
0
54,539
09/10/2008 16:08:24
1,942
08/19/2008 14:45:43
384
30
Prevent Use of the Back Button (in IE)
So the SMEs at my current place of employment want to try and disable the back button for certain pages. We have a page where the user makes some selections and submits them to be processed. In some instances they have to enter a comment on another page. What the users have figured out is that they don't have to ent...
javascript
internet-explorer
backbutton
null
null
null
open
Prevent Use of the Back Button (in IE) === So the SMEs at my current place of employment want to try and disable the back button for certain pages. We have a page where the user makes some selections and submits them to be processed. In some instances they have to enter a comment on another page. What the users hav...
0
54,546
09/10/2008 16:10:35
533
08/06/2008 15:17:04
1,167
53
How can I indicate that multiple versions of a dependent assembly are okay?
Assemblies A and B are privately deployed and strongly named. Assembly A contains references to Assembly B. There are two versions of Assembly B: B1 and B2. I want to be able to indicate for Assembly A that it may bind to either B1 or B2 -- ideally, by incorporating this information into the assembly itself. What a...
.net
versioning
null
null
null
null
open
How can I indicate that multiple versions of a dependent assembly are okay? === Assemblies A and B are privately deployed and strongly named. Assembly A contains references to Assembly B. There are two versions of Assembly B: B1 and B2. I want to be able to indicate for Assembly A that it may bind to either B1 or B...
0
54,566
09/10/2008 16:19:57
2,863
08/25/2008 16:09:56
75
8
Call to a member function on a non-object
So I'm refactoring my code to implement more OOP. I set up a class to hold page attributes. class PageAtrributes { private $db_connection; private $page_title; public function __construct($db_connection) { $this->db_connection = $db_connection; $this->page_title = ''; } public f...
php
oop
null
null
null
null
open
Call to a member function on a non-object === So I'm refactoring my code to implement more OOP. I set up a class to hold page attributes. class PageAtrributes { private $db_connection; private $page_title; public function __construct($db_connection) { $this->db_connection = $db_connection...
0
54,567
09/10/2008 16:20:21
2,443
08/22/2008 10:53:30
510
29
How do I get InputVerifier to work with an editable JComboBox
I've got an JComboBox with a custom inputVerifyer set to limit MaxLength when it's set to editable. The verify method never seems to get called. The same verifyer gets invoked on a JTextField fine. What might I be doing wrong? Thanks.
java
swing
null
null
null
null
open
How do I get InputVerifier to work with an editable JComboBox === I've got an JComboBox with a custom inputVerifyer set to limit MaxLength when it's set to editable. The verify method never seems to get called. The same verifyer gets invoked on a JTextField fine. What might I be doing wrong? Thanks.
0
54,578
09/10/2008 16:23:47
5,429
09/09/2008 14:35:58
41
2
How to capture output of "pnputil.exe -e"
How do I capture the output of "%windir%/system32/pnputil.exe -e"? (assume windows vista 32-bit) Bonus for technical explanation of why the app normally writes output to the cmd shell, but when stdout and/or stderr are redirected then the app writes nothing to the console or to stdout/stderr? <pre> C:\Windows\S...
windows
null
null
null
null
null
open
How to capture output of "pnputil.exe -e" === How do I capture the output of "%windir%/system32/pnputil.exe -e"? (assume windows vista 32-bit) Bonus for technical explanation of why the app normally writes output to the cmd shell, but when stdout and/or stderr are redirected then the app writes nothing to the cons...
0
54,579
09/10/2008 16:25:29
5,469
09/09/2008 21:03:22
1
7
WCF Configuration without a config file
Does anyone know of a good example of how to expose a WCF service programatically without the use of a configuration file? I know the service object model is much richer now with WCF, so I know it's possible. I just have not seen an example of how to do so. Conversely, I would like to see how consuming without a config...
wcf
configuration
configurationfiles
null
null
null
open
WCF Configuration without a config file === Does anyone know of a good example of how to expose a WCF service programatically without the use of a configuration file? I know the service object model is much richer now with WCF, so I know it's possible. I just have not seen an example of how to do so. Conversely, I wou...
0
54,585
09/10/2008 16:29:54
5,436
09/09/2008 15:18:48
1
0
When should you use a class vs a struct in C++?
In what scenarios is it better to use a struct vs a class in C++?
c++
class
struct
null
null
null
open
When should you use a class vs a struct in C++? === In what scenarios is it better to use a struct vs a class in C++?
0
54,586
09/10/2008 16:30:43
2,523
08/22/2008 16:13:28
41
3
Solid Config for webdev in emacs under linux AND windows ?
I have a windows laptop (thinkpad) and somewhat recently rediscovered emacs and the benefit that all those wacky shortcuts can be when the arrow keys are located somewhere near you right armpit. I was discouraged after php-mode, css-mode, etc, under mmm-mode was inconsistent, buggy, and refused to properly interpret...
windows
linux
emacs
cross-platform
null
null
open
Solid Config for webdev in emacs under linux AND windows ? === I have a windows laptop (thinkpad) and somewhat recently rediscovered emacs and the benefit that all those wacky shortcuts can be when the arrow keys are located somewhere near you right armpit. I was discouraged after php-mode, css-mode, etc, under mmm...
0
54,590
09/10/2008 16:33:56
5,291
09/08/2008 21:37:17
1
0
Best PHP Framework w/ AJAX Support?
I'm fairly familiar with many of the PHP frameworks out there, but I'm wondering which ones actually integrate AJAX functionality and which ones do it well? Ideally I'd love to find a framework that would allow me to avoid JavaScript alltogether (at least for typical/basic JavaScript functionality). Does such a thin...
javascript
php
ajax
frameworks
null
09/10/2011 23:44:20
not constructive
Best PHP Framework w/ AJAX Support? === I'm fairly familiar with many of the PHP frameworks out there, but I'm wondering which ones actually integrate AJAX functionality and which ones do it well? Ideally I'd love to find a framework that would allow me to avoid JavaScript alltogether (at least for typical/basic JavaS...
4
54,606
09/10/2008 16:38:27
307
08/04/2008 14:26:05
806
35
Software to Creative UI Mockups
What are good Open Source / Free software packages that let you design GUIs quickly, like "on a napkin" style, but also give a bit of polish that you could throw into a slide deck? Preference would be to use some clipart/objects ala Visio, but not required. NOT: + Visio + PowerPoint + KeyNote
gui
design
recommendation
userexperience
null
null
open
Software to Creative UI Mockups === What are good Open Source / Free software packages that let you design GUIs quickly, like "on a napkin" style, but also give a bit of polish that you could throw into a slide deck? Preference would be to use some clipart/objects ala Visio, but not required. NOT: + Visio + ...
0
54,612
09/10/2008 16:39:14
4,778
09/05/2008 15:06:23
28
1
Fast Disk Cloning
Is there a way to have Linux read ahead when cloning a disk? I use the program named "dd" to clone disks. The last time I did this it seemed as though the OS was reading then writing but never at the same time. Ideally, the destination disk would be constantly writing without waiting that's of course if the source d...
dd
linux
hdd
null
null
null
open
Fast Disk Cloning === Is there a way to have Linux read ahead when cloning a disk? I use the program named "dd" to clone disks. The last time I did this it seemed as though the OS was reading then writing but never at the same time. Ideally, the destination disk would be constantly writing without waiting that's of...
0
54,626
09/10/2008 16:42:35
4,903
09/06/2008 14:16:54
231
15
How do I get an XML file as XML (and not a string) with Ajax in Prototype.js?
This code is from Prototype.js. I've looked at probably 20 different tutorials, and I can't figure out why this is not working. The response I get is null. new Ajax.Request( /path/to/xml/file.xml, { method: "get", contentType: "application/xml", onSuccess: function( transport ) { alert( ...
xml
prototype
javascript
null
null
null
open
How do I get an XML file as XML (and not a string) with Ajax in Prototype.js? === This code is from Prototype.js. I've looked at probably 20 different tutorials, and I can't figure out why this is not working. The response I get is null. new Ajax.Request( /path/to/xml/file.xml, { method: "get", cont...
0
54,652
09/10/2008 16:48:46
380
08/05/2008 10:39:18
2,434
195
Need help with Programming Environment
I am a .net developer (currently using Visual Studio 2008). I am looking to buy a new computer which I don't want to change for the next 3 years. Among the choices I have, I am thinking whether a dual core 3 GHz machine will be better, or will a 2.4 GHz quad core machine be better? Please help.
development-environment
null
null
null
null
null
open
Need help with Programming Environment === I am a .net developer (currently using Visual Studio 2008). I am looking to buy a new computer which I don't want to change for the next 3 years. Among the choices I have, I am thinking whether a dual core 3 GHz machine will be better, or will a 2.4 GHz quad core machine b...
0
54,658
09/10/2008 16:50:57
247
08/04/2008 00:50:51
78
10
Is there a ClientScriptManager.RegisterClientScriptInclude equivalent for CSS
The [ClientScriptManager.RegisterClientScriptInclude][1] method allows you to register a JavaScript reference with the Page object (checking for duplicates). Is there an equivalent of this method for CSS references? Similar questions apply for [ClientScriptManager.RegisterClientScriptBlock][2] and [ClientScriptMa...
asp.net
css
null
null
null
null
open
Is there a ClientScriptManager.RegisterClientScriptInclude equivalent for CSS === The [ClientScriptManager.RegisterClientScriptInclude][1] method allows you to register a JavaScript reference with the Page object (checking for duplicates). Is there an equivalent of this method for CSS references? Similar questio...
0
54,669
09/10/2008 16:53:16
999
08/11/2008 12:32:21
684
50
Apache Download: Make sure that page was viewed before download
The job at hand: I want to make sure that my website's users view a page before they start a download. If they have not looked at the page but try to hotlink to the files directly they should go to the webpage before the download is allowed. Any suggestions that are better than my idea to send out a cookie and - ...
apache
download
php
cookie
protection
null
open
Apache Download: Make sure that page was viewed before download === The job at hand: I want to make sure that my website's users view a page before they start a download. If they have not looked at the page but try to hotlink to the files directly they should go to the webpage before the download is allowed. Any...
0
54,674
09/10/2008 16:54:04
1,876
08/19/2008 02:26:08
90
6
Any good building tools for a C++ project, which can replaceme make ??
i'm wondering if there is any nice and neat tool to replace the GNU Autotools or Make to build a very large C++ project, which are such a complicated thing to use. It is simple to generate all the files that de Autotools require if the project is small, but if the source code is divided in many directories, with mu...
c++
build-process
make
null
null
null
open
Any good building tools for a C++ project, which can replaceme make ?? === i'm wondering if there is any nice and neat tool to replace the GNU Autotools or Make to build a very large C++ project, which are such a complicated thing to use. It is simple to generate all the files that de Autotools require if the proj...
0
54,702
09/10/2008 17:02:00
1,491,425
08/13/2008 13:49:51
15
0
AJAX Dropdown extender question
I am using the example on the AJAX website for the dropdown extender. I'm looking to make the target control, the label, have the dropdown image appear always instead of just when I hover over it. Is there any way to do this?
asp.net
ajax
dropdownextender
null
null
null
open
AJAX Dropdown extender question === I am using the example on the AJAX website for the dropdown extender. I'm looking to make the target control, the label, have the dropdown image appear always instead of just when I hover over it. Is there any way to do this?
0
54,703
09/10/2008 17:02:03
2,362
08/21/2008 20:46:43
148
14
Should I choose scripting or compiled code for small tasks?
I'm a Java programmer, and I like my compiler, static analysis tools and unit testing frameworks as tools that help me quickly deliver robust and efficient code. The JRE is pretty much everywhere I would work, too. Given that situation, I can't see a reason why I would ever choose to use shell scripting, vb scriptin...
testing
scripting
null
null
null
null
open
Should I choose scripting or compiled code for small tasks? === I'm a Java programmer, and I like my compiler, static analysis tools and unit testing frameworks as tools that help me quickly deliver robust and efficient code. The JRE is pretty much everywhere I would work, too. Given that situation, I can't see a r...
0
54,708
09/10/2008 17:03:10
1,734
08/18/2008 11:25:32
28
3
Programmatically accessing Data in an ASP.net 2.0 Repeater
This is an ASP.Net 2.0 web app. The Item template looks like this, for reference: <ItemTemplate> <tr> <td class="class1" align=center><a href='url'><img src="img.gif"></a></td> <td class="class1"><%# DataBinder.Eval(Container.DataItem,"field1") %></td> <td class="class1"><%# DataBinder.Eval(Containe...
asp.net
repeater
dataaccess
null
null
null
open
Programmatically accessing Data in an ASP.net 2.0 Repeater === This is an ASP.Net 2.0 web app. The Item template looks like this, for reference: <ItemTemplate> <tr> <td class="class1" align=center><a href='url'><img src="img.gif"></a></td> <td class="class1"><%# DataBinder.Eval(Container.DataItem,"fiel...
0
54,709
09/10/2008 17:03:20
4,872
09/06/2008 09:14:55
113
3
What is the best style/syntax to use with Rhino Mocks?
Multiple approaches exist to write your unit tests when using Rhino Mocks: - The Standard Syntax - Record/Replay Syntax - The Fluent Syntax What is the ideal and less frictionless way?
c#
unit-testing
syntax
mocking
rhino-mocks
null
open
What is the best style/syntax to use with Rhino Mocks? === Multiple approaches exist to write your unit tests when using Rhino Mocks: - The Standard Syntax - Record/Replay Syntax - The Fluent Syntax What is the ideal and less frictionless way?
0
54,725
09/10/2008 17:08:37
1,412
08/15/2008 15:05:57
703
43
Change the "From:" address in Unix "mail"
Sending a message from the Unix command line using `mail TO_ADDR` results in an email from `$USER@$HOSTNAME`. Is there a way to change the "From:" address inserted by `mail`?
unix
email
null
null
null
null
open
Change the "From:" address in Unix "mail" === Sending a message from the Unix command line using `mail TO_ADDR` results in an email from `$USER@$HOSTNAME`. Is there a way to change the "From:" address inserted by `mail`?
0
54,753
09/10/2008 17:16:45
5,241
09/08/2008 16:53:54
11
1
Tool for debugging makefiles
I have a large legacy codebase with very complicated makefiles, with lots of variables. Sometimes I need to change them, and I find that it's very difficult to figure out why the change isn't working the way I expect. What I'd like to find is a tool that basically does step-through-debugging of the "make" process, wh...
make
null
null
null
null
null
open
Tool for debugging makefiles === I have a large legacy codebase with very complicated makefiles, with lots of variables. Sometimes I need to change them, and I find that it's very difficult to figure out why the change isn't working the way I expect. What I'd like to find is a tool that basically does step-through-d...
0
54,754
09/10/2008 17:16:53
4,872
09/06/2008 09:14:55
123
3
How can you do paging with NHibernate?
For example, I want to populate a gridview control in an ASP.NET web page with only the data necessary for the # of rows displayed. How can NHibernate support this?
.net
nhibernate
orm
pagination
null
null
open
How can you do paging with NHibernate? === For example, I want to populate a gridview control in an ASP.NET web page with only the data necessary for the # of rows displayed. How can NHibernate support this?
0
54,758
09/10/2008 17:17:21
536
08/06/2008 15:30:22
630
28
Getting the back/fwd history of web browser in C# WinForms
In C# WinForms, what's the proper way to get the backward/forward history stack for the System.Windows.Forms.WebBrowser?
c#
webbrowser
winforms
mshtml
navigation
null
open
Getting the back/fwd history of web browser in C# WinForms === In C# WinForms, what's the proper way to get the backward/forward history stack for the System.Windows.Forms.WebBrowser?
0
54,760
09/10/2008 17:20:03
4,233
09/02/2008 13:24:50
1
2
Unfiltering NSPasteboard
Is there a way to unfilter an NSPasteboard for what the source application specifically declared it would provide? I'm attempting to serialize pasteboard data in my application. When another application places an RTF file on a pasteboard and then I ask for the available types, I get eleven different flavors of said...
cocoa
filtering
pasteboard
null
null
null
open
Unfiltering NSPasteboard === Is there a way to unfilter an NSPasteboard for what the source application specifically declared it would provide? I'm attempting to serialize pasteboard data in my application. When another application places an RTF file on a pasteboard and then I ask for the available types, I get el...
0
54,770
09/10/2008 17:24:56
3,465
08/28/2008 16:49:35
16
2
ClickOnce Deployment, system update required Microsoft.mshtml
We have an application that works with MS Office and uses Microsoft.mshtml.dll. We use ClickOnce to deploy the application. The application deploys without issues on most machines, but sometimes we get errors saying "System Update Required, Microsoft.mshtl.dll should be in the GAC". We tried installing the PIA for ...
clickonce
microsoft.mshtml
null
null
null
null
open
ClickOnce Deployment, system update required Microsoft.mshtml === We have an application that works with MS Office and uses Microsoft.mshtml.dll. We use ClickOnce to deploy the application. The application deploys without issues on most machines, but sometimes we get errors saying "System Update Required, Microsoft.ms...
0
54,771
09/10/2008 17:25:19
354
08/05/2008 00:31:33
31
2
Website Monitoring Libraries
There has been some talk of Website performance monitoring tools and services on stackoverflow, however, they seem fairly expensive for what they actually do. Are there any good opensource libraries for automating checking/monitoring the availability of a website?
monitoring
null
null
null
null
null
open
Website Monitoring Libraries === There has been some talk of Website performance monitoring tools and services on stackoverflow, however, they seem fairly expensive for what they actually do. Are there any good opensource libraries for automating checking/monitoring the availability of a website?
0
54,789
09/10/2008 17:35:36
1,768
08/18/2008 13:32:15
185
13
What is the correct .NET exception to throw when try to insert a duplicate object into a collection?
I have an Asset object that has a property AssignedSoftware, which is a collection. I want to make sure that the same piece of Software is not assigned to an Asset more than once. In Add method I check to see if the Software already exist, and if it does, I want to throw an exception. Is there a standard .NET...
c#
exception
collections
null
null
null
open
What is the correct .NET exception to throw when try to insert a duplicate object into a collection? === I have an Asset object that has a property AssignedSoftware, which is a collection. I want to make sure that the same piece of Software is not assigned to an Asset more than once. In Add method I check to see...
0
54,790
09/10/2008 17:36:00
3,798
08/30/2008 22:09:59
309
18
Is it possible to build MSBuild files (visual studio sln) from the command line in Mono?
Is it possible to build Visual Studio solutions without having to fire up MonoDevelop?
mono
null
null
null
null
null
open
Is it possible to build MSBuild files (visual studio sln) from the command line in Mono? === Is it possible to build Visual Studio solutions without having to fire up MonoDevelop?
0
54,791
09/10/2008 17:36:30
5,208
09/08/2008 13:23:19
13
1
Conferences and training for architects, best practices,
It's getting close to the time when I need to submit training and travel requests. I'm looking for conferences and classes in the coming 12 months that are geared toward improving coding and software development, best practices, system architecture, etc. They need to be in the US or Canada since I'll never get approval...
architecture
self-improvement
education
null
null
null
open
Conferences and training for architects, best practices, === It's getting close to the time when I need to submit training and travel requests. I'm looking for conferences and classes in the coming 12 months that are geared toward improving coding and software development, best practices, system architecture, etc. Th...
0
54,795
09/10/2008 17:37:57
4,381
09/03/2008 10:48:17
66
3
Limiting CPU speed for profiling
I'm trying to optimize several bottlenecks on an application which is supposed to run on a really wide range of CPUs and architectures (some of them very close to embeded devices). The results of my profiler, however, aren't really significant because of the speed of my CPU. Is there any way (preferably under Window...
c++
profiling
cpu
null
null
null
open
Limiting CPU speed for profiling === I'm trying to optimize several bottlenecks on an application which is supposed to run on a really wide range of CPUs and architectures (some of them very close to embeded devices). The results of my profiler, however, aren't really significant because of the speed of my CPU. Is ...
0
54,797
09/10/2008 17:38:05
672
08/07/2008 16:18:07
578
40
How do you implement Levenshtein distance in Delphi?
I'm posting this in the spirit of answering your own questions. The question I had was: How can I implement the Levenshtein algorithm for calculating edit-distance between two strings, as [described here][1], in Delphi? [1]: http://en.wikipedia.org/wiki/Levenshtein_distance
edit-distance
algorithm
null
null
null
null
open
How do you implement Levenshtein distance in Delphi? === I'm posting this in the spirit of answering your own questions. The question I had was: How can I implement the Levenshtein algorithm for calculating edit-distance between two strings, as [described here][1], in Delphi? [1]: http://en.wikipedia.org/wik...
0
54,808
09/10/2008 17:41:28
5,495
09/10/2008 02:23:09
1
0
How to best merge information, at a server, into a "form", a PDF being generated as the final output
**Background**: I have a VB6 application I've "inherited" that generates a PDF for the user to review using unsupported Acrobat Reader OCX integration. The program generates an FDF file with the data, then renders the merged result when the FDF is merged with a PDF. It only works correctly with Acrobat Reader 4 :-(....
.net
forms
pdf-generation
null
null
null
open
How to best merge information, at a server, into a "form", a PDF being generated as the final output === **Background**: I have a VB6 application I've "inherited" that generates a PDF for the user to review using unsupported Acrobat Reader OCX integration. The program generates an FDF file with the data, then render...
0
54,833
09/10/2008 17:48:28
1,980
08/19/2008 16:40:39
165
6
Prevent Multi-Line ASP:Textbox from trimming line feeds
I have the following webform: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestWebApp.Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http:/...
c#
asp.net
textbox
postback
null
null
open
Prevent Multi-Line ASP:Textbox from trimming line feeds === I have the following webform: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestWebApp.Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xh...
0
54,836
09/10/2008 17:48:49
327
08/04/2008 17:08:49
660
47
How can I monitor trace output of a .Net app?
I'm working on some code that uses the System.Diagnostics.Trace class and I'm wondering how to monitor what is written via calls to Trace.WriteLine() both when running in debug mode in Visual Studio and when running outside the debugger.
.net
visual-studio
windows
null
null
null
open
How can I monitor trace output of a .Net app? === I'm working on some code that uses the System.Diagnostics.Trace class and I'm wondering how to monitor what is written via calls to Trace.WriteLine() both when running in debug mode in Visual Studio and when running outside the debugger.
0
54,837
09/10/2008 17:49:24
5,640
09/10/2008 15:33:37
31
4
Modbus - .NET
Does anyone know of a good (preferably open source) library for dealing with the Modbus protocol? I have seen a few libraries, but I am looking for some people's personal experiences, not just the top ten Google hits. I figure there has to be at least one other person who deals with PLCs and automation hardware like I ...
.net
open-source
protocols
plc
modbus
null
open
Modbus - .NET === Does anyone know of a good (preferably open source) library for dealing with the Modbus protocol? I have seen a few libraries, but I am looking for some people's personal experiences, not just the top ten Google hits. I figure there has to be at least one other person who deals with PLCs and automati...
0
54,851
09/10/2008 17:55:01
1,768
08/18/2008 13:32:15
192
14
What are some best practices for creating my own custom exception?
In a follow-up to a [previous question][1] regarding exceptions, what are best practices for creating a custom exception in .NET? More specifically should you inherit from System.Exception, System.ApplicationException or some other base exception? [1]: http://stackoverflow.com/questions/54789/what-is-the-co...
c#
.net
exception
null
null
null
open
What are some best practices for creating my own custom exception? === In a follow-up to a [previous question][1] regarding exceptions, what are best practices for creating a custom exception in .NET? More specifically should you inherit from System.Exception, System.ApplicationException or some other base except...
0
54,861
09/10/2008 17:58:19
2,443
08/22/2008 10:53:30
535
31
How do I open a Document from Java?
I've been using the following code to open Office Documents, PDF, etc. on my windows machines using Java and it's working fine, except for some reason when a filename has embedded it within it multiple contiguous spaces like "File[SPACE][SPACE]Test.doc". How can I make this work? I'm not averse to canning the whole...
java
processes
windows
null
null
null
open
How do I open a Document from Java? === I've been using the following code to open Office Documents, PDF, etc. on my windows machines using Java and it's working fine, except for some reason when a filename has embedded it within it multiple contiguous spaces like "File[SPACE][SPACE]Test.doc". How can I make this w...
0
54,864
09/10/2008 17:59:25
1,536,194
09/02/2008 18:08:27
61
10
How well does .NET scale?
(I'll begin by making it clear, I am not a .NET developer and am not tied to any other environment.) Recently, I heard that the London Stock Exchange went down for an entire day. I've also heard that the software was written in .NET. Up to this point they would experience performance hits on busy days. People seem t...
.net
architecture
web-applications
scalability
null
null
open
How well does .NET scale? === (I'll begin by making it clear, I am not a .NET developer and am not tied to any other environment.) Recently, I heard that the London Stock Exchange went down for an entire day. I've also heard that the software was written in .NET. Up to this point they would experience performance h...
0
54,866
09/10/2008 18:00:12
1,965
08/19/2008 15:51:08
3,856
226
Best way to parse Space Seperated Text
I have string like this /c SomeText\MoreText "Some Text\More Text\Lol" SomeText I want to tokenize it, however I can't just split on the spaces. I've come up with somewhat ugly parser that works, but I'm wondering if anyone has a more elegant design. This is in C# btw.
c#
string
tokenize
null
null
null
open
Best way to parse Space Seperated Text === I have string like this /c SomeText\MoreText "Some Text\More Text\Lol" SomeText I want to tokenize it, however I can't just split on the spaces. I've come up with somewhat ugly parser that works, but I'm wondering if anyone has a more elegant design. This is in ...
0
54,867
09/10/2008 18:01:27
4,883
09/06/2008 10:24:59
585
5
Old style and new style classes in Python
What is the difference between old style and new style classes in Python? Is there ever a reason to use old-style classes these days?
python
null
null
null
null
null
open
Old style and new style classes in Python === What is the difference between old style and new style classes in Python? Is there ever a reason to use old-style classes these days?
0
54,868
09/10/2008 18:01:36
2,841
08/25/2008 13:38:48
148
12
What is the best HTML editor for Eclipse?
I was amazed to find out that apparently Eclipse doesn't come with a decent HTML editor by default (it opened my .html file in some kind of browser view and apparently tried to render it). And the basic text editor is not good enough (I need at least some syntax highlighting and automatic indenting). Any suggestions...
html
eclipse
editor
null
null
null
open
What is the best HTML editor for Eclipse? === I was amazed to find out that apparently Eclipse doesn't come with a decent HTML editor by default (it opened my .html file in some kind of browser view and apparently tried to render it). And the basic text editor is not good enough (I need at least some syntax highlighti...
0
54,877
09/10/2008 18:03:12
404
08/05/2008 13:34:59
627
43
jQuery "after" selector question
I can't seem to figure out a good way to do this, but it seems like it should be simple. I have an element that I want to append a div to. Then I have another element that I want to clone and shove into that intermediate div. Here's what I was hoping to do: $("#somediv > ul").after("<div id='xxx'></div>").app...
jquery
selectors
null
null
null
null
open
jQuery "after" selector question === I can't seem to figure out a good way to do this, but it seems like it should be simple. I have an element that I want to append a div to. Then I have another element that I want to clone and shove into that intermediate div. Here's what I was hoping to do: $("#somediv > ...
0
54,882
09/10/2008 18:04:26
4,220
09/02/2008 11:59:43
58
4
How do I in java add a stacktrace to my debugging printout
What's the easiest way to print a stacktrace from a debugging printout? Often during testing you would like to know the callstack leading up to the situation provoking a debug message.
java
debugging
null
null
null
null
open
How do I in java add a stacktrace to my debugging printout === What's the easiest way to print a stacktrace from a debugging printout? Often during testing you would like to know the callstack leading up to the situation provoking a debug message.
0
54,886
09/10/2008 18:05:39
5,659
09/10/2008 17:19:31
1
0
Hidden / Tricks for Eclipse
Alright it can be a lame question, but everybody uses these things differently. What's some of the best time savers out there for this IDE. <BR><BR>Tom
java
ide
eclipse
null
null
09/26/2011 23:04:58
not constructive
Hidden / Tricks for Eclipse === Alright it can be a lame question, but everybody uses these things differently. What's some of the best time savers out there for this IDE. <BR><BR>Tom
4
54,889
09/10/2008 18:05:54
5,471
09/09/2008 21:13:23
1
1
As a ASP.NET programmer, do I need to be concern about email injection attacks ?
There are lots of PHP articles about the subject so is this a PHP only problem.
asp.net
security
email
null
null
null
open
As a ASP.NET programmer, do I need to be concern about email injection attacks ? === There are lots of PHP articles about the subject so is this a PHP only problem.
0
54,909
09/10/2008 18:11:50
1,288
08/14/2008 12:14:17
870
58
How do I clone a generic List in Java?
I have an ArrayList of Strings that I'd like to return a copy of. The ArrayList clone method has the following signature: public Object clone() After I call this method, how do I cast the returned Object back to an ArrayList of Strings? EDIT: Unfortunately markdown syntax doesn't allow me to express Java...
java
clone
null
null
null
null
open
How do I clone a generic List in Java? === I have an ArrayList of Strings that I'd like to return a copy of. The ArrayList clone method has the following signature: public Object clone() After I call this method, how do I cast the returned Object back to an ArrayList of Strings? EDIT: Unfortunately mark...
0
54,926
09/10/2008 18:18:28
2,598
08/23/2008 13:13:34
477
30
Java: Make a JPanel not draw its background
Is it possible, in Java, to make a JPanel skip drawing its background thus being transparent except for the components on it?
java
gui
null
null
null
null
open
Java: Make a JPanel not draw its background === Is it possible, in Java, to make a JPanel skip drawing its background thus being transparent except for the components on it?
0
54,929
09/10/2008 18:20:47
380
08/05/2008 10:39:18
2,549
198
What are the hidden features of Asp.Net?
There are always features that would be useful in fringe scenarios, but for that very reason most people don't know them. What are the ones that you know?
asp.net
null
null
null
null
02/12/2012 02:11:31
not constructive
What are the hidden features of Asp.Net? === There are always features that would be useful in fringe scenarios, but for that very reason most people don't know them. What are the ones that you know?
4
54,943
09/10/2008 18:27:38
4,872
09/06/2008 09:14:55
153
3
How do I know when to use state based testing versus mock testing?
Which scenarios, areas of an application/system, etc. are best suited for 'classic' state based testing versus using mock objects?
unit-testing
null
null
null
null
null
open
How do I know when to use state based testing versus mock testing? === Which scenarios, areas of an application/system, etc. are best suited for 'classic' state based testing versus using mock objects?
0
54,952
09/10/2008 18:30:55
1,430,323
09/10/2008 18:30:55
1
0
Java, UTF-8 and Windows console
We try to use Java and UTF-8 on Windows. The application writes logs on the console, and we would like to use UTF-8 for the logs as our application has internationalized logs. It is possible to configure the JVM so it generates UTF-8, using `-Dfile.encoding=UTF-8` as arguments to the JVM. It works fine, but the outp...
java
windows
console
utf8
null
null
open
Java, UTF-8 and Windows console === We try to use Java and UTF-8 on Windows. The application writes logs on the console, and we would like to use UTF-8 for the logs as our application has internationalized logs. It is possible to configure the JVM so it generates UTF-8, using `-Dfile.encoding=UTF-8` as arguments to...
0
54,953
09/10/2008 18:31:37
4,257
09/02/2008 14:39:35
477
40
Count Xpaths in XmlSpy
I am using XmlSpy to analyze an xml file, and I want to get a quick count of the number of nodes that match a given xpath. I know how to enter the xpath and get the list of nodes, but I am really just interested in the count. Is it possible to get this? I'm using XmlSpy Professional Edition version 2007 sp2, if it...
xml
xpath
xmlspy
null
null
null
open
Count Xpaths in XmlSpy === I am using XmlSpy to analyze an xml file, and I want to get a quick count of the number of nodes that match a given xpath. I know how to enter the xpath and get the list of nodes, but I am really just interested in the count. Is it possible to get this? I'm using XmlSpy Professional Edi...
0
54,955
09/10/2008 18:32:18
4,883
09/06/2008 10:24:59
595
5
What is a prepared statement?
I see a bunch of lines in the .log files in the postgres pg_log directory that say something like: > ERROR: prepared statement "pdo_pgsql_stmt_09e097f4" does not exist What are prepared statements, and what kinds of things can cause these error messages to be displayed?
postgresql
null
null
null
null
null
open
What is a prepared statement? === I see a bunch of lines in the .log files in the postgres pg_log directory that say something like: > ERROR: prepared statement "pdo_pgsql_stmt_09e097f4" does not exist What are prepared statements, and what kinds of things can cause these error messages to be displayed?
0
54,957
09/10/2008 18:33:08
5,663
09/10/2008 18:22:28
1
0
Pls recommend a good platform (environment / language /reuseable component) for data visualization
I have lots and lots of data in various structures. Are there any better platforms other than Excel charts which can help me. thanks
datavisualization
null
null
null
null
null
open
Pls recommend a good platform (environment / language /reuseable component) for data visualization === I have lots and lots of data in various structures. Are there any better platforms other than Excel charts which can help me. thanks
0
54,963
09/10/2008 18:34:57
5,486
09/09/2008 23:09:59
111
3
How would you refactor this LINQ code?
I've got a lot of ugly code that looks like this: if (!string.IsNullOrEmpty(ddlFileName.SelectedItem.Text)) results = results.Where(x => x.FileName.Contains(ddlFileName.SelectedValue)); if (chkFileName.Checked) results = results.Where(x => string.IsNullOrEmpty(x.FileName)); if (!str...
c#
.net
linq
linq-to-sql
null
null
open
How would you refactor this LINQ code? === I've got a lot of ugly code that looks like this: if (!string.IsNullOrEmpty(ddlFileName.SelectedItem.Text)) results = results.Where(x => x.FileName.Contains(ddlFileName.SelectedValue)); if (chkFileName.Checked) results = results.Where(x => string...
0
54,966
09/10/2008 18:35:47
1,385,358
08/25/2008 03:05:06
892
46
Replacing Windows Explorer With Third Party Tool
How would I go about replacing Windows Explorer with a third party tool such as TotalCommander, explorer++, etc? I would like to have one of those load instead of win explorer when I type "C:\directoryName" into the run window. Is this possible?
windows
windows-vista
filemanagement
null
null
null
open
Replacing Windows Explorer With Third Party Tool === How would I go about replacing Windows Explorer with a third party tool such as TotalCommander, explorer++, etc? I would like to have one of those load instead of win explorer when I type "C:\directoryName" into the run window. Is this possible?
0
54,971
09/10/2008 18:37:57
4,761
09/05/2008 13:41:59
516
26
Profiling visualization tools?
I need to display profiling information pulled from a deeply embedded CPU, presenting it in a way which other developers on my team will be able to act upon. The profiling data is a snapshot of a cycle counter at the entry and exit of every function, so we have a call graph annotated with sub-microsecond timing accurac...
performance
null
null
null
null
null
open
Profiling visualization tools? === I need to display profiling information pulled from a deeply embedded CPU, presenting it in a way which other developers on my team will be able to act upon. The profiling data is a snapshot of a cycle counter at the entry and exit of every function, so we have a call graph annotated...
0
54,972
09/10/2008 18:38:07
730
08/08/2008 12:40:04
215
34
How to Prevent the "Please tell Microsoft about this problem" Dialog Boxes
We have an error that we can't seem to find and don't have the need/resources to try and track it down. What we do need to do is just keep the freaking "Please tell Microsoft about this problem" dialog boxes from cluttering up the server. It is from an MS-Access error (we think) but I can't find where Access is ins...
ms-access
windows2003
dialog
null
null
null
open
How to Prevent the "Please tell Microsoft about this problem" Dialog Boxes === We have an error that we can't seem to find and don't have the need/resources to try and track it down. What we do need to do is just keep the freaking "Please tell Microsoft about this problem" dialog boxes from cluttering up the server. ...
0
54,978
09/10/2008 18:40:33
4,593
09/04/2008 19:05:18
33
5
Command parsing library
My team has a command parsing library for console apps. Each team around us has their own as well. There isn't anything in the BCL so I suppose this is natural. I've look at the the module in Mono, which seems solid, and the one on CodePlex looks fine as well. There are probably others out there that will work (and ...
.net
console
null
null
null
null
open
Command parsing library === My team has a command parsing library for console apps. Each team around us has their own as well. There isn't anything in the BCL so I suppose this is natural. I've look at the the module in Mono, which seems solid, and the one on CodePlex looks fine as well. There are probably others o...
0
54,989
09/10/2008 18:45:04
1,807
08/18/2008 16:52:32
216
17
Change windows hostname from command line
Is it possible to change the hostname in Windows 2003 from the command line with out-of-the-box tools?
windows
null
null
null
null
null
open
Change windows hostname from command line === Is it possible to change the hostname in Windows 2003 from the command line with out-of-the-box tools?
0
54,991
09/10/2008 18:45:15
231
08/03/2008 19:35:19
130
10
Generating Random Passwords
Could not find a duplicate for this so will ask it. When a user on our site looses his password and heads off to the Lost Password page we need to give him a new temporary password. I don't really mind how random this is, or if it matches all the "needed" strong password rules, all I want to do is give them a passwo...
random
passwords
c#
null
null
null
open
Generating Random Passwords === Could not find a duplicate for this so will ask it. When a user on our site looses his password and heads off to the Lost Password page we need to give him a new temporary password. I don't really mind how random this is, or if it matches all the "needed" strong password rules, all I...
0
54,998
09/10/2008 18:47:58
383
08/05/2008 10:46:37
2,734
257
How Scalable is Sqlite?
I recently read this Question about [Sqlite Vs MySql][1] and the answer pointed out that Sqlite doesn't scale well and the official website [sort-of confirms this][2], however. How scalable is Sqlite and what are its upper most limits? [1]: http://beta.stackoverflow.com/questions/3630/sqlite-vs-mysql [2]: ht...
sqlite
scalability
null
null
null
null
open
How Scalable is Sqlite? === I recently read this Question about [Sqlite Vs MySql][1] and the answer pointed out that Sqlite doesn't scale well and the official website [sort-of confirms this][2], however. How scalable is Sqlite and what are its upper most limits? [1]: http://beta.stackoverflow.com/questions/36...
0