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
35,560
08/30/2008 01:46:19
2,701
08/24/2008 15:51:24
92
8
Lazy Loading with a WCF Service Domain Model?
I'm looking to push my domain model into a WCF Service API and wanted to get some thoughts on lazy loading techniques with this type of setup. Any suggestions when taking this approach?
web-services
wcf
ddd
null
null
null
open
Lazy Loading with a WCF Service Domain Model? === I'm looking to push my domain model into a WCF Service API and wanted to get some thoughts on lazy loading techniques with this type of setup. Any suggestions when taking this approach?
0
35,563
08/30/2008 01:48:42
3,499
08/28/2008 19:39:37
86
12
How do I make bash reverse-search work in Terminal.app without it displaying garbled output?
Using Terminal.app on OS X 10.5, often you see the commands get garbled when you do a reverse-search with Bash. Is there some kind of termcap or perhaps a bash shopt command that can fix this? It is very annoying. Steps to reproduce: Open Terminal.app, reverse-search to a longish command. Hit <ctrl>-E once you...
osx
bash
null
null
null
null
open
How do I make bash reverse-search work in Terminal.app without it displaying garbled output? === Using Terminal.app on OS X 10.5, often you see the commands get garbled when you do a reverse-search with Bash. Is there some kind of termcap or perhaps a bash shopt command that can fix this? It is very annoying. S...
0
35,564
08/30/2008 01:48:51
2,066
08/20/2008 03:59:13
11
2
RoR on Windows with Mongrel
Where is the best tutorial for getting RoR working on a windows box with Mongrel? I'm a complete noob at server management, so the more detailed the better!
ruby
windows
null
null
null
null
open
RoR on Windows with Mongrel === Where is the best tutorial for getting RoR working on a windows box with Mongrel? I'm a complete noob at server management, so the more detailed the better!
0
35,569
08/30/2008 01:51:05
3,594
08/29/2008 08:46:29
47
5
Why does Python's __iter__ on a mapping return keys() instead of iteritems()?
It seems like if you want to get the keys of a mapping, you ask for them; otherwise, give me the _whole_ mapping (constituted by a set of key-value pairs). Is there a historical reason for this?
python
mapping
iteration
null
null
null
open
Why does Python's __iter__ on a mapping return keys() instead of iteritems()? === It seems like if you want to get the keys of a mapping, you ask for them; otherwise, give me the _whole_ mapping (constituted by a set of key-value pairs). Is there a historical reason for this?
0
35,599
08/30/2008 02:25:53
1,368
08/14/2008 18:57:47
114
8
What makes the Unix file system more superior to the Windows file system?
I'll admit that I don't know the inner workings of the unix operating system, so I was hoping someone could shed some light on this topic. Why is the unix file system better than the windows file system? Would grep work just as well on windows, or is their something fundamentally different that makes it more powe...
unix
filesystems
null
null
null
null
open
What makes the Unix file system more superior to the Windows file system? === I'll admit that I don't know the inner workings of the unix operating system, so I was hoping someone could shed some light on this topic. Why is the unix file system better than the windows file system? Would grep work just as well on...
0
35,610
08/30/2008 02:37:19
2,523
08/22/2008 16:13:28
21
2
What programs should I write to truly experience this fancy new lanauge ?
<p>Tried Scheme at one point, just built up half of a "math" and "string" library before getting bored...</p> <p>Similar experience with Java, but stopped early because I was appalled at the lack of operator overloading.</p> <p>When you try out a new language, is there a program/game/function/exercise/problem tha...
lanaguage
discuss
null
null
null
null
open
What programs should I write to truly experience this fancy new lanauge ? === <p>Tried Scheme at one point, just built up half of a "math" and "string" library before getting bored...</p> <p>Similar experience with Java, but stopped early because I was appalled at the lack of operator overloading.</p> <p>When yo...
0
35,615
08/30/2008 02:42:38
1,349,865
08/28/2008 22:42:35
26
7
What is a good online resource for css 'design patterns'?
Can anyone out there recommend a good online resource for CSS 'design patterns'? I know design patterns in a software context usually refer to OO based design patterns, but I mean design patterns in the broader sense of the term: i.e. common, clean solutions to common problems / tasks. An example of such a resour...
html
css
xhtml
null
null
03/29/2012 17:31:01
not constructive
What is a good online resource for css 'design patterns'? === Can anyone out there recommend a good online resource for CSS 'design patterns'? I know design patterns in a software context usually refer to OO based design patterns, but I mean design patterns in the broader sense of the term: i.e. common, clean solut...
4
35,634
08/30/2008 03:04:54
3,594
08/29/2008 08:46:29
56
5
Ruby "is" equivalent
Is there a Ruby equivalent for Python's "is"? It tests whether two objects are identical (i.e. have the same memory location).
python
ruby
identical
null
null
null
open
Ruby "is" equivalent === Is there a Ruby equivalent for Python's "is"? It tests whether two objects are identical (i.e. have the same memory location).
0
35,639
08/30/2008 03:16:38
113
08/02/2008 05:39:54
1
2
Using Office to programatically convert documents?
I'm interested in using Office 2007 to convert between the pre-2007 binary formats (.doc, .xls, .ppt) and the new Office Open XML formats (.docx, .xlsx, .pptx) How would I do this? I'd like to write a simple command line app that takes in two filenames (input and output) and perhaps the source and/or destination typ...
microsoftoffice
null
null
null
null
null
open
Using Office to programatically convert documents? === I'm interested in using Office 2007 to convert between the pre-2007 binary formats (.doc, .xls, .ppt) and the new Office Open XML formats (.docx, .xlsx, .pptx) How would I do this? I'd like to write a simple command line app that takes in two filenames (input a...
0
35,646
08/30/2008 03:26:11
577
08/06/2008 21:36:25
101
6
Do you continue development in a branch or in the trunk?
Suppose you're developing a software product that has periodic releases. What are the best practices with regard to branching and merging? Slicing off periodic release branches to the public (or whomever your customer is) and then continuing development on the trunk, or considering the trunk the stable version, tagging...
svn
version-control
releasing
null
null
03/07/2012 16:14:46
not constructive
Do you continue development in a branch or in the trunk? === Suppose you're developing a software product that has periodic releases. What are the best practices with regard to branching and merging? Slicing off periodic release branches to the public (or whomever your customer is) and then continuing development on t...
4
35,662
08/30/2008 03:54:57
372
08/05/2008 09:16:41
2,208
163
Best practices when "going dark"
I'm sure some of you would have read Jeff's Atwood's [Don't Go Dark][1] article. The gist is that it is anathema to go "lock yourself in a room" and perform a development task or project for long periods of time. The best practice would be to have a team (at least another person) with you, [commit early and commit ofte...
productivity
null
null
null
null
10/28/2011 07:35:32
off topic
Best practices when "going dark" === I'm sure some of you would have read Jeff's Atwood's [Don't Go Dark][1] article. The gist is that it is anathema to go "lock yourself in a room" and perform a development task or project for long periods of time. The best practice would be to have a team (at least another person) w...
2
35,669
08/30/2008 04:01:53
2,600
08/23/2008 13:40:14
372
27
Windows Home Server versus Vista Backup and Restore Center
I've been using Window Home Server for my backups here at home for most of a year now, and I'm really pleased with it. It's far better than the software I was using previously (Acronis). I'm thinking about a backup strategy for my work machine and I'd like to know how WHS compares with Vista's built-in backup and res...
windows-vista
backup
home-server
null
null
null
open
Windows Home Server versus Vista Backup and Restore Center === I've been using Window Home Server for my backups here at home for most of a year now, and I'm really pleased with it. It's far better than the software I was using previously (Acronis). I'm thinking about a backup strategy for my work machine and I'd li...
0
35,670
08/30/2008 04:01:55
115
08/02/2008 05:44:40
408
60
Begining SVN
I am ready to start using SVN, but I have NO (as in the money required for free bear) experience with source control. I have installed subversion on my server (that was easy, 'apt-get install subversion') but now I don't know what to do, how to configure it, or how to use it.<br /><br />What suggestions do you have, a...
svn
subversion
null
null
null
null
open
Begining SVN === I am ready to start using SVN, but I have NO (as in the money required for free bear) experience with source control. I have installed subversion on my server (that was easy, 'apt-get install subversion') but now I don't know what to do, how to configure it, or how to use it.<br /><br />What suggesti...
0
35,677
08/30/2008 04:11:35
2,659
08/24/2008 02:37:40
41
3
What is the best architecture to bridge to XMPP?
If I have a separate system with its own concept of users and presence, what is the most appropriate architecture for creating a bridge to an XMPP server network? As far as I can tell there are three primary ways: 1. Act as a server. This creates one touchpoint, but I fear it has implications for compatibility, an...
architecture
xmpp
bridge
null
null
null
open
What is the best architecture to bridge to XMPP? === If I have a separate system with its own concept of users and presence, what is the most appropriate architecture for creating a bridge to an XMPP server network? As far as I can tell there are three primary ways: 1. Act as a server. This creates one touchpoint...
0
35,698
08/30/2008 05:26:02
3,542
08/29/2008 04:24:06
86
8
"Multi-agent computing" in simple terms
I've encountered the term "multi-agent computing" as of late, and I don't quite get what it is. I've read a book about it, but that didn't answer the fundamental question of what an agent was. Does someone out there have a pointer to some reference which is clear and concise and answers the question without a load o...
multi-agent
null
null
null
null
null
open
"Multi-agent computing" in simple terms === I've encountered the term "multi-agent computing" as of late, and I don't quite get what it is. I've read a book about it, but that didn't answer the fundamental question of what an agent was. Does someone out there have a pointer to some reference which is clear and conc...
0
35,699
08/30/2008 05:28:40
3,499
08/28/2008 19:39:37
116
15
On a two-column page, how can I grow the left div to the same height of the right div using CSS or Javascript?
I'm trying to make a two-column page using a div-based layout (no tables please!). Problem is, I can't grow the left div to match the height of the right one. My right div typically has a lot of content. Here's is a paired down example of my template to illustrate the problem. <div style="float:left; width...
javascript
html
css
null
null
null
open
On a two-column page, how can I grow the left div to the same height of the right div using CSS or Javascript? === I'm trying to make a two-column page using a div-based layout (no tables please!). Problem is, I can't grow the left div to match the height of the right one. My right div typically has a lot of content....
0
35,700
08/30/2008 05:30:24
356
08/05/2008 01:13:09
89
10
Writing cross-platform apps in C
What things should be kept most in mind when writing cross-platform applications in C? Targeted platforms: 32-bit Intel based PC, Mac, and Linux. I'm especially looking for the type of versatility that Jungle Disk has in their USB desktop edition ( <http://www.jungledisk.com/desktop/download.aspx> ) What are tips an...
c
cross-platform
32bit
null
null
null
open
Writing cross-platform apps in C === What things should be kept most in mind when writing cross-platform applications in C? Targeted platforms: 32-bit Intel based PC, Mac, and Linux. I'm especially looking for the type of versatility that Jungle Disk has in their USB desktop edition ( <http://www.jungledisk.com/deskto...
0
35,707
08/30/2008 05:41:38
356
08/05/2008 01:13:09
89
10
Decision making in distributed applications
With a distributed application, where you have lots of clients and one main server, should you: - Make the clients dumb and the server smart: clients are fast and non-invasive. Business rules are needed in only 1 place - Make the clients smart and the server dumb: take as much load as possible off of the server ...
distributed
null
null
null
null
null
open
Decision making in distributed applications === With a distributed application, where you have lots of clients and one main server, should you: - Make the clients dumb and the server smart: clients are fast and non-invasive. Business rules are needed in only 1 place - Make the clients smart and the server dumb: ...
0
35,709
08/30/2008 05:43:56
23
08/01/2008 12:11:43
60
6
Change Active Sound Card on the Fly
I currently have speakers set up both in my office and in my living room, connected to my PC via two sound cards, and would like to switch the set of speakers I'm outputting to on the fly. Anyone know an application or a windows API call that I can use to change the default sound output device? It is currently a bit...
windows
hardware
audio
null
null
null
open
Change Active Sound Card on the Fly === I currently have speakers set up both in my office and in my living room, connected to my PC via two sound cards, and would like to switch the set of speakers I'm outputting to on the fly. Anyone know an application or a windows API call that I can use to change the default s...
0
35,720
08/30/2008 05:57:13
3,479
08/28/2008 18:04:39
11
2
Getting started with SideShow Devices
Is there a recommendation for a hardware platform for developing/testing SideShow devices, or is the Emulator adequate?
hardware
windows-vista
emulator
null
null
null
open
Getting started with SideShow Devices === Is there a recommendation for a hardware platform for developing/testing SideShow devices, or is the Emulator adequate?
0
35,721
08/30/2008 05:57:20
1,969
08/19/2008 16:03:19
303
19
Seeking code highlighter recommendation for WordPress
Can anybody recommend a reliable and decently documented code highlighter for WordPress 2.6.1. I have tried Code Snippet by Roman Roan and Developer Formatter by Gilberto Saraiva. But they don't seem to work as described in the documentation and are mangling the code snippets instead of prettifying them.
php
wordpress
codehighlighter
geshi
null
07/09/2012 15:52:06
not constructive
Seeking code highlighter recommendation for WordPress === Can anybody recommend a reliable and decently documented code highlighter for WordPress 2.6.1. I have tried Code Snippet by Roman Roan and Developer Formatter by Gilberto Saraiva. But they don't seem to work as described in the documentation and are mangling th...
4
35,722
08/30/2008 05:58:04
2,727
08/24/2008 18:23:21
21
2
Desktop search utility for pdf,chm and djvu files
I want to write a tool that helps me search pdf/chm/djvu files in linux. Any pointers on how to go about it? The major problem is reading/importing data from all these files. Can this be done with C and shell scripting?
desktop-search
null
null
null
null
null
open
Desktop search utility for pdf,chm and djvu files === I want to write a tool that helps me search pdf/chm/djvu files in linux. Any pointers on how to go about it? The major problem is reading/importing data from all these files. Can this be done with C and shell scripting?
0
35,727
08/30/2008 06:09:31
1,220
08/13/2008 13:44:48
927
67
101 tutorial for setting up nhibernate?
I am looking for a tutorial on setting up nhibernate. There seems to be few out there, but most are either written in gibberish, or are on an extremely ancient release. Any good resources, possibly even the inclusion of fluent or a code configured install?
nhibernate
tutorials
basic
fluent-interface
null
null
open
101 tutorial for setting up nhibernate? === I am looking for a tutorial on setting up nhibernate. There seems to be few out there, but most are either written in gibberish, or are on an extremely ancient release. Any good resources, possibly even the inclusion of fluent or a code configured install?
0
35,743
08/30/2008 06:48:47
3,677
08/29/2008 20:21:57
3
0
FileUpload control inside an UpdatePanel without refreshing the whole page?
According to [Microsoft][1] the FileUpload control is not compatible with an AJAX UpdatePanel. I am aware that a PostBackTrigger can be added to the submit button of the form like this: <Triggers> <asp:PostBackTrigger ControlID="Button1" /> </Triggers> The problem is that this forces the form ...
.net
asp.net
ajax
updatepanel
file-upload
null
open
FileUpload control inside an UpdatePanel without refreshing the whole page? === According to [Microsoft][1] the FileUpload control is not compatible with an AJAX UpdatePanel. I am aware that a PostBackTrigger can be added to the submit button of the form like this: <Triggers> <asp:PostBackTrigger Con...
0
35,745
08/30/2008 06:51:07
1,398
08/15/2008 06:32:35
233
18
Are there any tools to visualize template/class methods and their usage?
I have taken over a large code base and would like to get an overview how and where certain classes and their methods are used. Is there any good tool that can somehow visualize the dependencies and draw a nice call tree or something similar? The code is in C++ in Visual Studio if that helps narrow down any selec...
visualization
null
null
null
null
null
open
Are there any tools to visualize template/class methods and their usage? === I have taken over a large code base and would like to get an overview how and where certain classes and their methods are used. Is there any good tool that can somehow visualize the dependencies and draw a nice call tree or something simil...
0
35,748
08/30/2008 06:56:31
1,398
08/15/2008 06:32:35
233
18
Is it possible to list named events in Windows?
I would like to create events for certain resources that are used across various processes and access these events by name. The problem seems to be that the names of the events must be known to all applications referring to them. Is there maybe a way to get a list of names events in the system? I am aware that I ...
windows
events
null
null
null
null
open
Is it possible to list named events in Windows? === I would like to create events for certain resources that are used across various processes and access these events by name. The problem seems to be that the names of the events must be known to all applications referring to them. Is there maybe a way to get a list...
0
35,753
08/30/2008 07:08:22
3,373
08/28/2008 09:40:18
18
8
Is Python good for big software projects (not web based)?
Right now I'm developing mostly in C/C++, but I wrote some small utilities in Python to automatize some tasks and I really love it as language (especially the productivity). Except for the performances (a problem that could be sometimes solved thanks to the ease of interfacing Python with C modules), do you think i...
python
ide
null
null
null
null
open
Is Python good for big software projects (not web based)? === Right now I'm developing mostly in C/C++, but I wrote some small utilities in Python to automatize some tasks and I really love it as language (especially the productivity). Except for the performances (a problem that could be sometimes solved thanks to...
0
35,762
08/30/2008 07:51:26
3,153
08/27/2008 02:45:05
56
4
Linux GUI development
I have a large GUI project that I'd like to port to Linux. What is the best framework to use for GUI programming in Linux? Should KDE / Gnome frameworks be used? Or can I use something more generic other than X? I feel like if I chose one of Gnome or KDE, I'm closing the market out for a chunk of the Linux market ...
linux
kde
gnome
c++
gui
null
open
Linux GUI development === I have a large GUI project that I'd like to port to Linux. What is the best framework to use for GUI programming in Linux? Should KDE / Gnome frameworks be used? Or can I use something more generic other than X? I feel like if I chose one of Gnome or KDE, I'm closing the market out for a...
0
35,772
08/30/2008 08:16:37
3,710
08/30/2008 08:16:37
1
0
How to embed user-specific data in .NET windows setup app at setup download time?
I'd like to have a link in my ASP.NET web site that authenticated users click to download a windows app that is already pre-configured with their client ID and some site config data. My goal is no typing required for the user during the client app install, both for the user friendliness, and to avoid config errors fro...
.net
windows
installer
setup
fogbugz
null
open
How to embed user-specific data in .NET windows setup app at setup download time? === I'd like to have a link in my ASP.NET web site that authenticated users click to download a windows app that is already pre-configured with their client ID and some site config data. My goal is no typing required for the user during...
0
35,782
08/30/2008 08:26:43
1,131
08/12/2008 17:04:04
108
4
Formatting tabular data using unicode characters
I need to produce a calculation trace file containing tabular data showing intermediate results. I am currently using a combination of the standard ascii pipe symbols (|) and dashes (-) to draw the table lines: E.g. Numerator | Denominator | Result ----------|-------------|------- 6 | ...
unicode
null
null
null
null
null
open
Formatting tabular data using unicode characters === I need to produce a calculation trace file containing tabular data showing intermediate results. I am currently using a combination of the standard ascii pipe symbols (|) and dashes (-) to draw the table lines: E.g. Numerator | Denominator | Result -...
0
35,785
08/30/2008 08:33:01
3,583
08/29/2008 07:41:50
1
0
XML serialization in Java?
Is there a (preferably free) Java analogue of .NET's XML serialization?
java
xml
serialization
null
null
null
open
XML serialization in Java? === Is there a (preferably free) Java analogue of .NET's XML serialization?
0
35,790
08/30/2008 08:44:33
3,515
08/28/2008 22:05:40
1
0
What XML books do you recommend?
XML is everywhere - I am looking for a book that would summarize some key aspects of practical use of XML with possible problems and solutions not a "XML bible" thing. Thanks for feedback in advance!
xml
books
case-study
null
null
null
open
What XML books do you recommend? === XML is everywhere - I am looking for a book that would summarize some key aspects of practical use of XML with possible problems and solutions not a "XML bible" thing. Thanks for feedback in advance!
0
35,798
08/30/2008 08:55:43
184
08/03/2008 05:34:19
1,471
19
Techniques to detect Polymorphic and Metamorphic viruses?
What techniques can be applied to detect [Polymorphic][1] and [Metamorphic][2] viruses? How difficult is to implement these techniques? Are these techniques being applied in modern day anti-virus softwares? [1]: http://en.wikipedia.org/wiki/Computer_virus#Polymorphic_code [2]: http://en.wikipedia.org/wi...
antivirus
virus
null
null
null
null
open
Techniques to detect Polymorphic and Metamorphic viruses? === What techniques can be applied to detect [Polymorphic][1] and [Metamorphic][2] viruses? How difficult is to implement these techniques? Are these techniques being applied in modern day anti-virus softwares? [1]: http://en.wikipedia.org/wiki/Com...
0
35,805
08/30/2008 09:12:41
3,154
08/27/2008 02:48:03
33
2
Why is my instance variable not in __dict__?
If I create a class `A` as follows: class A: def _ _init_ _(self): self.name = 'A' Inspecting the `_ _dict_ _` member looks like `{'name': 'A'}` If however I create a class `B`: class B: name = 'B' `_ _dict_ _` is empty. What is the difference between the two, ...
python
newbie
null
null
null
null
open
Why is my instance variable not in __dict__? === If I create a class `A` as follows: class A: def _ _init_ _(self): self.name = 'A' Inspecting the `_ _dict_ _` member looks like `{'name': 'A'}` If however I create a class `B`: class B: name = 'B' `_ _dict_ _` is ...
0
35,817
08/30/2008 09:27:24
3,715
08/30/2008 09:17:39
1
0
What's the best way to escape os.system() calls in Python?
When using `os.system()` it's often necessary to escape filenames passed as parameters to commands. What's the best way to do this? Preferably something that would work on multiple operating systems/shells. I'm currently doing the following, but am sure there must be a library function for this, or at least a more...
python
bash
shell
os.system
null
null
open
What's the best way to escape os.system() calls in Python? === When using `os.system()` it's often necessary to escape filenames passed as parameters to commands. What's the best way to do this? Preferably something that would work on multiple operating systems/shells. I'm currently doing the following, but am su...
0
35,834
08/30/2008 09:46:06
1,493
08/12/2008 06:55:12
141
6
Get a list of current windows, and give one of them focus, in .Net
Without resorting to PInvoke, is there a way in .net to find out what windows are open? This is slightly different than asking what applications are running in memory. For example, Firefox could be running, but could be more than one window. Basically, I just want to be privy to the same information that the taskbar...
.net
windows
null
null
null
null
open
Get a list of current windows, and give one of them focus, in .Net === Without resorting to PInvoke, is there a way in .net to find out what windows are open? This is slightly different than asking what applications are running in memory. For example, Firefox could be running, but could be more than one window. Bas...
0
35,837
08/30/2008 09:48:27
3,713
08/30/2008 09:06:27
1
0
What is the Difference Between Mercurial and Git?
I've been using git for some time now on Windows (with msysGit) and I like the idea of distributed source control. Just recently I've been looking at Mercurial (hg) and it looks interesting. However, I can't wrap my head around the differences between hg and git. Has anyone made a side-by-side comparison between git...
git
comparison
mercurial
version-control
null
null
open
What is the Difference Between Mercurial and Git? === I've been using git for some time now on Windows (with msysGit) and I like the idea of distributed source control. Just recently I've been looking at Mercurial (hg) and it looks interesting. However, I can't wrap my head around the differences between hg and git. ...
0
35,842
08/30/2008 09:53:25
3,583
08/29/2008 07:41:50
7
5
Process ID in Java
How do I get the id of my Java process? I know there are several platform-dependent hacks, but I'm after a generic solution.
java
pid
null
null
null
null
open
Process ID in Java === How do I get the id of my Java process? I know there are several platform-dependent hacks, but I'm after a generic solution.
0
35,848
08/30/2008 10:01:31
2,528
08/22/2008 16:39:39
150
6
VB.NET form Height Question
I have a VB6.0 project and I want to convert it in VB.Net. In my VB6.0 application some of the MDI Child form’s height is 17000 and width is 13000. Now I want to set the same form size in VB.Net forms, but it allows maximum form width = 1036, height = 780 for resolution 1024x768. How can I increase form size ...
vb.net
null
null
null
null
null
open
VB.NET form Height Question === I have a VB6.0 project and I want to convert it in VB.Net. In my VB6.0 application some of the MDI Child form’s height is 17000 and width is 13000. Now I want to set the same form size in VB.Net forms, but it allows maximum form width = 1036, height = 780 for resolution 1024x768....
0
35,849
08/30/2008 10:02:20
3,717
08/30/2008 09:44:24
1
1
What logging is good logging for your app?
So we've discussed logging in passing at my place of work and I was wondering if some of you guys here could give me some ideas of your approaches? Typically our scenario is, no logging really at all, and mostly .NET apps, winforms/WPF clients talking through web services or direct to a db. So, the real question ...
.net
logging
client-applications
null
null
null
open
What logging is good logging for your app? === So we've discussed logging in passing at my place of work and I was wondering if some of you guys here could give me some ideas of your approaches? Typically our scenario is, no logging really at all, and mostly .NET apps, winforms/WPF clients talking through web servi...
0
35,853
08/30/2008 10:04:55
3,583
08/29/2008 07:41:50
12
5
P/Invoke in Mono
What's the current status of Mono's Platform Invoke implementation on Linux? And on Solaris?
mono
.net
pinvoke
linux
solaris
null
open
P/Invoke in Mono === What's the current status of Mono's Platform Invoke implementation on Linux? And on Solaris?
0
35,870
08/30/2008 10:34:05
3,725
08/30/2008 10:34:05
1
0
Comparison of Lat, Long Coordinates
I have a list of more than 15 thousand latitude and longitude coordinates. Given any X,Y coordinates, what is the fastest way to find the closest coordinates on the list?
sorting
comparison
null
null
null
null
open
Comparison of Lat, Long Coordinates === I have a list of more than 15 thousand latitude and longitude coordinates. Given any X,Y coordinates, what is the fastest way to find the closest coordinates on the list?
0
35,874
08/30/2008 10:45:56
2,935
08/26/2008 08:23:46
31
5
How do you enforce or maintain the quality of the bug reports in your bug tracker?
High-quality bug reports are essential for effective bug tracking - in an ideal world all bug reports would contain essential information such as which version of the software it affects and a step-by-step description on how to reproduce the bug. In reality, though, bugs reported can vary a lot in quality. They migh...
bug-tracking
qa
development-process
null
null
null
open
How do you enforce or maintain the quality of the bug reports in your bug tracker? === High-quality bug reports are essential for effective bug tracking - in an ideal world all bug reports would contain essential information such as which version of the software it affects and a step-by-step description on how to repr...
0
35,879
08/30/2008 11:01:31
115
08/02/2008 05:44:40
443
63
Base64 Encoding Image
I am building an open search add-on for Firefox/IE and the image needs to be Base64 Encoded so how can I base 64 encode the favicon I have? I am only familiar with PHP
php
encoding
base64
opensearch
null
null
open
Base64 Encoding Image === I am building an open search add-on for Firefox/IE and the image needs to be Base64 Encoded so how can I base 64 encode the favicon I have? I am only familiar with PHP
0
35,893
08/30/2008 11:22:42
3,730
08/30/2008 11:22:42
1
0
Grid controls compatible with .NET and Mono?
Do you know any grid control compatible with .NET and Mono? DataGridView seems to be quite buggy on Mono, and GTK# controls depends on GTK+ so you need to install it in windows machines where, usually, it's not present.
c#
controls
mono
datagrid
null
null
open
Grid controls compatible with .NET and Mono? === Do you know any grid control compatible with .NET and Mono? DataGridView seems to be quite buggy on Mono, and GTK# controls depends on GTK+ so you need to install it in windows machines where, usually, it's not present.
0
35,896
08/30/2008 11:33:55
3,205
08/27/2008 13:06:13
152
13
How can I play compressed sound files in C# in a portable way?
Is there a portable, not patent-restricted way to play compressed sound files in C# / .Net? <a href="http://msdn.microsoft.com/en-us/library/system.media.soundplayer.aspx">System.Media.SoundPlayer</a> can handle only WAV, but those are typically to big to embed in a downloadable apllication. MP3 is protected with paten...
c#
.net
mono
oggvorbis
audio
null
open
How can I play compressed sound files in C# in a portable way? === Is there a portable, not patent-restricted way to play compressed sound files in C# / .Net? <a href="http://msdn.microsoft.com/en-us/library/system.media.soundplayer.aspx">System.Media.SoundPlayer</a> can handle only WAV, but those are typically to big...
0
35,905
08/30/2008 11:53:01
3,715
08/30/2008 09:17:39
11
1
How do I autorun an application in a terminal in Ubuntu?
I've created a few `autorun` script files on various USB devices that run `bash` scripts when they mount. These scripts run "in the background", how do I get them to run in a terminal window? (Like the "Application in Terminal" gnome Launcher type.)
bash
ubuntu
gnome
autorun
null
null
open
How do I autorun an application in a terminal in Ubuntu? === I've created a few `autorun` script files on various USB devices that run `bash` scripts when they mount. These scripts run "in the background", how do I get them to run in a terminal window? (Like the "Application in Terminal" gnome Launcher type.)
0
35,907
08/30/2008 11:57:41
3,732
08/30/2008 11:57:41
1
0
3rd Party UI components for .net Compact Framework?
I have a .Net compact framework application with a frankly unimpressive UI. My win32 app uses Dev Express components and looks great, but I can't find anything similar for the compact framework. Can anyone recommend components that will jazz up my UI? Does such a thing exist, oram I going to have to owner draw...
compactframework
null
null
null
null
null
open
3rd Party UI components for .net Compact Framework? === I have a .Net compact framework application with a frankly unimpressive UI. My win32 app uses Dev Express components and looks great, but I can't find anything similar for the compact framework. Can anyone recommend components that will jazz up my UI? Do...
0
35,914
08/30/2008 12:10:50
2,258
08/21/2008 11:31:56
71
7
In .NET, how do I launch a file with command line arguments (without knowing the location of the exe)?
Here's the situation: I am trying to launch an application, but the location of the .exe isn't known to me. Now, if the file extension is registered (in Windows), I can do something like: Process.Start("Sample.xls"); However, I need to pass some command line arguments as well. I couldn't get this to work ...
c#
.net
vb.net
null
null
null
open
In .NET, how do I launch a file with command line arguments (without knowing the location of the exe)? === Here's the situation: I am trying to launch an application, but the location of the .exe isn't known to me. Now, if the file extension is registered (in Windows), I can do something like: Process.Start("S...
0
35,922
08/30/2008 12:19:01
745
08/08/2008 13:47:26
348
33
Are there any "nice to program" GUI toolkits for Python?
I've played around with GTK, TK, wxPython, Cocoa, curses and others. They are are fairly horrible to use.. GTK/TK/wx/curses all seem to basically be direct-ports of the appropriate C libraries, and Cocoa basically mandates using both PyObjC and Interface Builder, both of which I dislike.. The Shoes GUI library for R...
python
gui
null
null
null
null
open
Are there any "nice to program" GUI toolkits for Python? === I've played around with GTK, TK, wxPython, Cocoa, curses and others. They are are fairly horrible to use.. GTK/TK/wx/curses all seem to basically be direct-ports of the appropriate C libraries, and Cocoa basically mandates using both PyObjC and Interface Bui...
0
35,940
08/30/2008 12:53:58
3,394
08/28/2008 12:35:39
433
33
Elegant Snippets of F#
I'm currently learning F# quite intensively. I really love it as a language, it just sort of 'feels' right and seems to allow you to produce some succint elegant code. I'm interested in finding some really nice 'wow factor' snippets of F# code which demonstate the elegence of the language, especially compared to C#....
f#
null
null
null
null
null
open
Elegant Snippets of F# === I'm currently learning F# quite intensively. I really love it as a language, it just sort of 'feels' right and seems to allow you to produce some succint elegant code. I'm interested in finding some really nice 'wow factor' snippets of F# code which demonstate the elegence of the language...
0
35,943
08/30/2008 13:08:07
1,384,652
08/01/2008 12:01:23
1,713
83
Logging in a PHP webapp
I want to keep logs of some things that people do in my app, in some cases so that it can be undone if needed. Is it best to store such logs in a file or a database? I'm completely at a loss as to what the pros and cons are except that it's another table to setup. Is there a third (or fourth etc) option that I'm ...
php
logging
null
null
null
null
open
Logging in a PHP webapp === I want to keep logs of some things that people do in my app, in some cases so that it can be undone if needed. Is it best to store such logs in a file or a database? I'm completely at a loss as to what the pros and cons are except that it's another table to setup. Is there a third (or...
0
35,948
08/30/2008 13:20:02
3,117
08/26/2008 18:40:00
16
1
Django Templates and variable attributes.
I'm using Google App Engine and Django Templates.<br> I have a table that I want to display the objects look something like:<br> Object Result: Items = [item1,item2] Users = [{name='username',item1=3,item2=4},..] The django template is: <table> <tr align="center"> <th>user</th> ...
python
django
google-app-engine
null
null
null
open
Django Templates and variable attributes. === I'm using Google App Engine and Django Templates.<br> I have a table that I want to display the objects look something like:<br> Object Result: Items = [item1,item2] Users = [{name='username',item1=3,item2=4},..] The django template is: ...
0
35,950
08/30/2008 13:20:42
3,373
08/28/2008 09:40:18
33
7
I don't understand std::tr1::unordered_map
I need an associative container that makes me index a certain object through a string, but that also keeps the order of insertion, so I can look for a specific object by its name or just iterate on it and retrieve objects in the same order I inserted them. I think this [hybrid of linked list and hash map][1] should ...
c++
unordered-map
null
null
null
null
open
I don't understand std::tr1::unordered_map === I need an associative container that makes me index a certain object through a string, but that also keeps the order of insertion, so I can look for a specific object by its name or just iterate on it and retrieve objects in the same order I inserted them. I think this...
0
35,954
08/30/2008 13:31:17
372
08/05/2008 09:16:41
2,283
169
How do you full-text search multiple criteria on left-joined tables in SQL Server?
I have a query that originally looks like this: select c.Id, c.Name, c.CountryCode, c.CustomerNumber, cacc.AccountNumber, ca.Line1, ca.CityName, ca.PostalCode from dbo.Customer as c left join dbo.CustomerAddress as ca on ca.CustomerId = c.Id left join dbo.CustomerAccount as cacc on cacc.CustomerId...
sql-server
full-text-search
null
null
null
null
open
How do you full-text search multiple criteria on left-joined tables in SQL Server? === I have a query that originally looks like this: select c.Id, c.Name, c.CountryCode, c.CustomerNumber, cacc.AccountNumber, ca.Line1, ca.CityName, ca.PostalCode from dbo.Customer as c left join dbo.CustomerAddress as ...
0
35,973
08/30/2008 14:13:17
3,740
08/30/2008 13:51:36
1
0
add preddefined data for typedef enums in c
What is the best approach to define additional data for typedef enums in C? Example: typedef enum { kVizsla = 0, kTerrier = 3, kYellowLab = 10 } DogType; Now I would like to define names for each, for example kVizsla should be "vizsla". I currently use a function that returns a...
c
enum
typedef
null
null
null
open
add preddefined data for typedef enums in c === What is the best approach to define additional data for typedef enums in C? Example: typedef enum { kVizsla = 0, kTerrier = 3, kYellowLab = 10 } DogType; Now I would like to define names for each, for example kVizsla should be "vi...
0
35,974
08/30/2008 14:14:44
3,742
08/30/2008 14:08:11
1
0
Embed Images in emails created using SQL Server Database Mail
I'm working on an email solution in SQL Server ONLY that will use Database Mail to send out HTML formatted emails. The catch is that the images in the HTML need to be embedded in the outgoing email. This wouldn't be a problem if I were using a .net app to generate & send the emails but, unfortunately, all I have is SQ...
sql
database
email
server
null
null
open
Embed Images in emails created using SQL Server Database Mail === I'm working on an email solution in SQL Server ONLY that will use Database Mail to send out HTML formatted emails. The catch is that the images in the HTML need to be embedded in the outgoing email. This wouldn't be a problem if I were using a .net app...
0
35,983
08/30/2008 14:22:55
1,431
08/15/2008 15:31:33
177
6
Rollbacking bad changes with svn in Eclipse
Let's say I have committed some bad changes to Subversion repository. Then I commit good changes, that I want to keep. What would be easiest way to roll back those bad changes in Eclipse, and keep the good changes? Assuming that files relating to bad changes are not same as those relating to the good changes. How th...
svn
eclipse
sublicpse
subversive
null
null
open
Rollbacking bad changes with svn in Eclipse === Let's say I have committed some bad changes to Subversion repository. Then I commit good changes, that I want to keep. What would be easiest way to roll back those bad changes in Eclipse, and keep the good changes? Assuming that files relating to bad changes are not s...
0
35,988
08/30/2008 14:33:25
3,738
08/30/2008 13:31:42
1
3
C-like structures in Python
Is there a way to conveniently define a C-like structure in Python? I'm tired of writing stuff like: class MyStruct(): def __init__(self, field1, field2, field3) self.field1 = field1 self.field2 = field2 self.field3 = field3 (Interesting, it appears I can't type...
python
struct
null
null
null
null
open
C-like structures in Python === Is there a way to conveniently define a C-like structure in Python? I'm tired of writing stuff like: class MyStruct(): def __init__(self, field1, field2, field3) self.field1 = field1 self.field2 = field2 self.field3 = field3 (Int...
0
35,991
08/30/2008 14:36:39
2,841
08/25/2008 13:38:48
111
10
Altering database tables in Django
I'm considering using Django for a project I'm starting (fyi, a browser-based game) and one of the features I'm liking the most is using `syncdb` to automatically create the database tables based on the Django models I define (a feature that I can't seem to find in any other framework). I was already thinking this was...
database
django
null
null
null
null
open
Altering database tables in Django === I'm considering using Django for a project I'm starting (fyi, a browser-based game) and one of the features I'm liking the most is using `syncdb` to automatically create the database tables based on the Django models I define (a feature that I can't seem to find in any other fram...
0
35,999
08/30/2008 14:45:47
572
08/06/2008 20:56:54
2,221
186
How do I execute a file in Cygwin?
I created a C file in Eclipse on Windows and then used Cygwin to navigate to the directory. I called gcc on the C source file and a.exe was produced. How do I execute a.exe in the Cygwin shell?
c
gcc
cygwin
null
null
null
open
How do I execute a file in Cygwin? === I created a C file in Eclipse on Windows and then used Cygwin to navigate to the directory. I called gcc on the C source file and a.exe was produced. How do I execute a.exe in the Cygwin shell?
0
36,001
08/30/2008 14:48:38
3,747
08/30/2008 14:33:59
1
0
SQL Server 2005 Auto Updated DateTime Column - LastUpdated
I have a table defined (see code snippet below). How can I add a constraint or whatever so that the LastUpdate column is automatically updated anytime the row is changed? CREATE TABLE dbo.Profiles ( UserName varchar(100) NOT NULL, LastUpdat...
sql-server
null
null
null
null
null
open
SQL Server 2005 Auto Updated DateTime Column - LastUpdated === I have a table defined (see code snippet below). How can I add a constraint or whatever so that the LastUpdate column is automatically updated anytime the row is changed? CREATE TABLE dbo.Profiles ( UserName ...
0
36,014
08/30/2008 14:57:13
3,347
08/28/2008 03:11:14
1
2
Why is .NET exception not caught by try/catch block?
I'm working on a project using the [ANTLR][1] parser library for C#. I've built a grammar to parse some text and it works well. However, when the parser comes across an illegal or unexpected token, it throws one of many exceptions. The problem is that in some cases (not all) that my try/catch block won't catch it an...
c#
.net
exception
null
null
null
open
Why is .NET exception not caught by try/catch block? === I'm working on a project using the [ANTLR][1] parser library for C#. I've built a grammar to parse some text and it works well. However, when the parser comes across an illegal or unexpected token, it throws one of many exceptions. The problem is that in some...
0
36,019
08/30/2008 15:00:37
3,736
08/30/2008 12:49:28
35
5
Deleting messages from Exchange IMAP mailbox on iPhone
I have a secondary Exchange mailbox configured on my iPhone using IMAP. This all appears to work fine except when a message is deleted on the phone, it still shows normally in Outlook. It does not seem to matter what I set the "remove deleted messages" setting to on the phone. I understand this is due to a combinati...
iphone
exchange
imap
null
null
null
open
Deleting messages from Exchange IMAP mailbox on iPhone === I have a secondary Exchange mailbox configured on my iPhone using IMAP. This all appears to work fine except when a message is deleted on the phone, it still shows normally in Outlook. It does not seem to matter what I set the "remove deleted messages" setting...
0
36,022
08/30/2008 15:05:05
335,696
08/30/2008 00:40:13
8
3
Single Best hardwear upgrade for the money?
If you could upgrade one piece of hardware on your coding machine what would it be?
hardware
workspace
null
null
null
null
open
Single Best hardwear upgrade for the money? === If you could upgrade one piece of hardware on your coding machine what would it be?
0
36,028
08/30/2008 15:09:06
3,747
08/30/2008 14:33:59
1
0
How to assign a method's output to a textbox value without code behind
How do I assign a method's output to a textbox value without code behind? <%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> Public TextFromString As String = "test text tes...
vb.net
null
null
null
null
null
open
How to assign a method's output to a textbox value without code behind === How do I assign a method's output to a textbox value without code behind? <%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <scri...
0
36,030
08/30/2008 15:15:01
3,750
08/30/2008 14:43:09
1
0
Yaws uses old config file
I'm developing a web app on Yaws 1.65 (installed through apt) running on Debian etch on a VPS with UML. Whenever I do /etc/init.d/yaws restart or a stop/start, it initializes according to an old version of the config file (/etc/yaws/yaws.conf). I know this because I changed the docroot from the default to another d...
yaws
null
null
null
null
null
open
Yaws uses old config file === I'm developing a web app on Yaws 1.65 (installed through apt) running on Debian etch on a VPS with UML. Whenever I do /etc/init.d/yaws restart or a stop/start, it initializes according to an old version of the config file (/etc/yaws/yaws.conf). I know this because I changed the docroo...
0
36,039
08/30/2008 15:27:34
4,381
09/03/2008 10:48:17
1
1
Templates spread across multiple files
C++ seems to be rather grouchy when declaring templates across multiple files. More specifically, when working with templated classes, the linker expect all method definitions for the class in a single compiler object file. When you take into account headers, other declarations, inheritance, etc., things get really mes...
c++
templates
null
null
null
null
open
Templates spread across multiple files === C++ seems to be rather grouchy when declaring templates across multiple files. More specifically, when working with templated classes, the linker expect all method definitions for the class in a single compiler object file. When you take into account headers, other declaratio...
0
36,054
08/30/2008 15:46:09
1,219
08/13/2008 13:44:47
1,409
99
Anyone have experience with Sphinx speech recognition?
Has anyone used the [Sphinx][1] speech recognition stack to build IVR applications? I am looking for open source alternatives to the expensive and somewhat limiting choices from MSFT and others. I have not been able to find a comprehensive package that ties open source speech/voip applications together. [1]: h...
speech-recognition
ivr
null
null
null
null
open
Anyone have experience with Sphinx speech recognition? === Has anyone used the [Sphinx][1] speech recognition stack to build IVR applications? I am looking for open source alternatives to the expensive and somewhat limiting choices from MSFT and others. I have not been able to find a comprehensive package that ties ...
0
36,056
08/30/2008 15:49:05
1,219
08/13/2008 13:44:47
1,409
99
What's a good open source VoiceXML implementation?
I am trying to find out if it's possible to build a complete IVR application by cobbling together parts from open source projects. Is anyone using a non-commercial VoiceXML implementation to build speech-enabled systems?
speech-recognition
ivr
voip
null
null
null
open
What's a good open source VoiceXML implementation? === I am trying to find out if it's possible to build a complete IVR application by cobbling together parts from open source projects. Is anyone using a non-commercial VoiceXML implementation to build speech-enabled systems?
0
36,064
08/30/2008 15:55:19
3,412
08/28/2008 13:33:44
21
1
What is the replacement of Controller.ReadFromRequest in ASP.NET MVC?
I am attempting to update a project from ASP.NET MVC Preview 3 to Preview 5 and it seems that Controller.ReadFromRequest(string key) has been removed from the Controller class. Does anyone know of any alternatives to retrieving information based on an identifier from a form?
asp.net-mvc
null
null
null
null
null
open
What is the replacement of Controller.ReadFromRequest in ASP.NET MVC? === I am attempting to update a project from ASP.NET MVC Preview 3 to Preview 5 and it seems that Controller.ReadFromRequest(string key) has been removed from the Controller class. Does anyone know of any alternatives to retrieving information based...
0
36,077
08/30/2008 16:16:32
3,153
08/27/2008 02:45:05
89
4
Finding out the source of an exception in C++ after it is caught?
I'm looking for an answer in MS VC++. When debugging a large C++ application, which unfortunately has a very extensive usage of C++ exceptions. Sometimes I catch an exception a little later than I actually want. Example in pseudo code: FunctionB() { ... throw e; ... }...
c++
exception
vc++
advice
winapi
null
open
Finding out the source of an exception in C++ after it is caught? === I'm looking for an answer in MS VC++. When debugging a large C++ application, which unfortunately has a very extensive usage of C++ exceptions. Sometimes I catch an exception a little later than I actually want. Example in pseudo code: ...
0
36,079
08/30/2008 16:18:35
356
08/05/2008 01:13:09
126
16
PHP mail using Gmail
In my PHP webapp, I want to be notified via email whenever certain errors occur. I'd like to use my Gmail account for sending these. How could this be done?
php
email
gmail
null
null
null
open
PHP mail using Gmail === In my PHP webapp, I want to be notified via email whenever certain errors occur. I'd like to use my Gmail account for sending these. How could this be done?
0
36,081
08/30/2008 16:19:22
2,701
08/24/2008 15:51:24
97
9
How to Throw an exception in a using block with .NET 2.0?
I'm trying to leverage the using block more and more these days when I have an object that implements IDisposable but one thing I have not figured out is how to throw and exception as I would in a normal try/catch ... any code samples to point me in the right direction?
ado.net
null
null
null
null
null
open
How to Throw an exception in a using block with .NET 2.0? === I'm trying to leverage the using block more and more these days when I have an object that implements IDisposable but one thing I have not figured out is how to throw and exception as I would in a normal try/catch ... any code samples to point me in the rig...
0
36,101
08/30/2008 16:37:31
3,764
08/30/2008 16:14:55
1
0
How do I set the name of a window in ROR?
How do I "name" a browser window in ROR, such that I can open a page in it later, from another (popup) window (using the target="name" html parameter)
html
ruby
ruby-on-rails
target
null
null
open
How do I set the name of a window in ROR? === How do I "name" a browser window in ROR, such that I can open a page in it later, from another (popup) window (using the target="name" html parameter)
0
36,106
08/30/2008 16:39:01
3,474
08/28/2008 17:28:46
147
14
What are some alternative bitset data structures?
I have an information retrieval application that tracks bit sets with sizes on the order of 10s of millions. The number of "set" bits in the set varies widely, from none to all. Currently, I'm simply setting bits in an array (`java.util.BitSet`), so each bit set takes several megabytes. My plan is to look at the car...
data-structures
information-retrieval
null
null
null
null
open
What are some alternative bitset data structures? === I have an information retrieval application that tracks bit sets with sizes on the order of 10s of millions. The number of "set" bits in the set varies widely, from none to all. Currently, I'm simply setting bits in an array (`java.util.BitSet`), so each bit set ta...
0
36,108
08/30/2008 16:39:28
2,122
08/20/2008 13:13:16
8
1
How to get controls in WPF to fill available space?
Didn't get a reply to this on the MSDN WPF forum, so I thought I'd try here. Some WPF controls - like the button - seem to happily consume all the availible space in its' container if you don't specify the height it is to have. And some - like the ones I need to use right now, the (multiline) TextBox and the List...
gui
wpf
null
null
null
null
open
How to get controls in WPF to fill available space? === Didn't get a reply to this on the MSDN WPF forum, so I thought I'd try here. Some WPF controls - like the button - seem to happily consume all the availible space in its' container if you don't specify the height it is to have. And some - like the ones I ne...
0
36,109
08/30/2008 16:39:42
1,412
08/15/2008 15:05:57
462
26
Quoting command-line arguments in shell scripts
The following shell script takes a list of arguments, turns Unix paths into WINE/Windows paths and invokes the given executable under WINE. #! /bin/sh if test "${1+set}" != "set" then echo "Usage; winewrap EXEC [ARGS...]" exit 1 fi EXEC="$1" shift AR...
shell
unix
wine
null
null
null
open
Quoting command-line arguments in shell scripts === The following shell script takes a list of arguments, turns Unix paths into WINE/Windows paths and invokes the given executable under WINE. #! /bin/sh if test "${1+set}" != "set" then echo "Usage; winewrap EXEC [ARGS...]" exit 1 ...
0
36,114
08/30/2008 16:43:28
335,696
08/30/2008 00:40:13
30
3
Variable Holding data in a while statement
I know I must be missing something small but in a while statement how does the variable hold the data when it finishes the first pass and goes into the second pass.
c++
null
null
null
null
null
open
Variable Holding data in a while statement === I know I must be missing something small but in a while statement how does the variable hold the data when it finishes the first pass and goes into the second pass.
0
36,122
08/30/2008 16:45:44
3,677
08/29/2008 20:21:57
8
0
What is the most efficient way to keep track of a specific character's index in a string?
Take the following string as an example: "The quick brown fox" Right now the q in quick is at index 4 of the string (starting at 0) and the f in fox is at index 16. Now lets say the user enters some more text into this string. "The very quick dark brown fox" Now the q is at index 9 and the f is at index...
efficiency
algorithm
string
index
null
null
open
What is the most efficient way to keep track of a specific character's index in a string? === Take the following string as an example: "The quick brown fox" Right now the q in quick is at index 4 of the string (starting at 0) and the f in fox is at index 16. Now lets say the user enters some more text into t...
0
36,127
08/30/2008 16:51:03
3,153
08/27/2008 02:45:05
94
4
Any recommended VC++ settings for better PDB analysis on release builds
Are there any VC++ settings I should know about to generate better PDB files that contain more information? I have a crash dump analysis system in place based on the project [crashrpt][1]. Also, my production build server has the source code installed on the D:\\, but my development machine has the source code o...
crashrpt
vc++
c++
pdb
visual-studio
null
open
Any recommended VC++ settings for better PDB analysis on release builds === Are there any VC++ settings I should know about to generate better PDB files that contain more information? I have a crash dump analysis system in place based on the project [crashrpt][1]. Also, my production build server has the source...
0
36,129
08/30/2008 16:51:19
1,603
08/17/2008 13:57:31
21
3
What are some real life examples of Design Patterns used in software
I'm reading through head first design patterns at the moment and while the book is excellent I also would like to see how these are actually used in the real world. If you know of a good example of design pattern usage (preferably in a OSS program so we can have a look :) then please list it below.
design-patterns
self-improvement
null
null
null
null
open
What are some real life examples of Design Patterns used in software === I'm reading through head first design patterns at the moment and while the book is excellent I also would like to see how these are actually used in the real world. If you know of a good example of design pattern usage (preferably in a OSS pro...
0
36,139
08/30/2008 17:03:09
3,205
08/27/2008 13:06:13
177
17
How do I sort a list of strings in Python?
What is the best way of creating an alphabetically sorted list in Python?
python
string
sorting
null
null
null
open
How do I sort a list of strings in Python? === What is the best way of creating an alphabetically sorted list in Python?
0
36,144
08/30/2008 17:05:14
3,288
08/27/2008 17:23:42
1
1
How do you make a post request into a new browser tab using JavaScript / XUL?
I'm trying to open a new browser tab with the results of a POST request. I'm trying to do so using a function containing the following code: var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interface s.nsIWindowMediator); var b...
xul
firefox
ubiquity
javascript
null
null
open
How do you make a post request into a new browser tab using JavaScript / XUL? === I'm trying to open a new browser tab with the results of a POST request. I'm trying to do so using a function containing the following code: var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;...
0
36,152
08/30/2008 17:09:16
3,288
08/27/2008 17:23:42
1
1
How do you unsubscribe from a ubiquity command
I can't seem to find details on how to unsubscribe from ubiquity commands. The command list page only seems to have information about the installed commands and there are no links to deleting them. Am I missing something?
ubiquity
null
null
null
null
null
open
How do you unsubscribe from a ubiquity command === I can't seem to find details on how to unsubscribe from ubiquity commands. The command list page only seems to have information about the installed commands and there are no links to deleting them. Am I missing something?
0
36,182
08/30/2008 17:25:40
3,333
08/28/2008 00:32:00
23
7
How expensive is ST_GeomFromText
In postgis, is the "ST_GeomFromText" call very expensive? I ask mostly because I have a frequently called query that attempts to find the point that is nearest another point that matches some criteria, and which is also within a certain distance of that other point, and the way I currently wrote it, it's doing the sam...
gis
postgis
null
null
null
null
open
How expensive is ST_GeomFromText === In postgis, is the "ST_GeomFromText" call very expensive? I ask mostly because I have a frequently called query that attempts to find the point that is nearest another point that matches some criteria, and which is also within a certain distance of that other point, and the way I ...
0
36,183
08/30/2008 17:26:09
2,289
08/21/2008 13:59:43
1
1
Replacing the nth instance of a regex match in Javascript
I'm trying to write a regex function that will identify and replace a single instance of a match within a string without affecting the other instances. For example, I have this string: 12||34||56 I want to replace the second set of pipes with ampersands to get this string: 12||34&&56 The regex function nee...
javascript
regex
null
null
null
null
open
Replacing the nth instance of a regex match in Javascript === I'm trying to write a regex function that will identify and replace a single instance of a match within a string without affecting the other instances. For example, I have this string: 12||34||56 I want to replace the second set of pipes with ampersa...
0
36,186
08/30/2008 17:31:20
3,747
08/30/2008 14:33:59
15
6
Best Versioning Tools to use for Photoshop/Illustrator and related binary files?
I previously asked about Version Cue 3 vs Subversion. I think this is a better question and someone suggested [http://www.gridironsoftware.com/Flow/][1] I hope this question will allow others to join in and suggest other tools or give specific recommendation to using Version Que versus other tools. [1]: http://w...
versioning
photoshop
null
null
null
null
open
Best Versioning Tools to use for Photoshop/Illustrator and related binary files? === I previously asked about Version Cue 3 vs Subversion. I think this is a better question and someone suggested [http://www.gridironsoftware.com/Flow/][1] I hope this question will allow others to join in and suggest other tools or give...
0
36,239
08/30/2008 18:42:57
338
08/04/2008 18:34:44
817
55
What should we do to prepare for 2038?
I would like to think that some of the software I'm writing today will be used in 30 years. But I am also aware that a lot of it is based upon the UNIX tradition of exposing time as the number of seconds since 1970. #include <stdio.h> #include <time.h> #include <limits.h> void print(time_t rt) {...
time
unix
maintainability
null
null
null
open
What should we do to prepare for 2038? === I would like to think that some of the software I'm writing today will be used in 30 years. But I am also aware that a lot of it is based upon the UNIX tradition of exposing time as the number of seconds since 1970. #include <stdio.h> #include <time.h> #inclu...
0
36,260
08/30/2008 19:06:44
1,891
08/19/2008 05:37:52
30
2
Dealing with circular dependencies in OCaml
I'm writing an interpreter for an experimental language. Three of the main constructs of the language are definitions, statements, and expressions. Definitions can contain statements and expressions, statements can contain definitions and expressions, and one kind of expression can contain statements. I represent all o...
ocaml
null
null
null
null
null
open
Dealing with circular dependencies in OCaml === I'm writing an interpreter for an experimental language. Three of the main constructs of the language are definitions, statements, and expressions. Definitions can contain statements and expressions, statements can contain definitions and expressions, and one kind of exp...
0
36,261
08/30/2008 19:08:02
2,025
08/19/2008 20:59:50
1,323
135
Test/expand my email regex
I'm really not confident with Regex, I know some basic syntax but not enough to keep me happy. I'm trying to build a regular expression to check if an email is valid. So far here's what I've got: [A-Za-z0-9._-]+@[A-Za-z0-9]+.[A-Za-z.]+ It needs to take account of periods in the username/domain and I think ...
php
regex
pcre
email-address
null
null
open
Test/expand my email regex === I'm really not confident with Regex, I know some basic syntax but not enough to keep me happy. I'm trying to build a regular expression to check if an email is valid. So far here's what I've got: [A-Za-z0-9._-]+@[A-Za-z0-9]+.[A-Za-z.]+ It needs to take account of periods in ...
0
36,262
08/30/2008 19:08:50
3,777
08/30/2008 18:12:00
1
0
How much should one DataSet represent?
How much should one DataSet represent? Using the example of an ordering system: While showing your order I also show a list of items similar to one of yours as well as a list of our most popular items. While your items are tangled in a web of relationships involving you and your past orders, preferred suppliers, and ...
.net
null
null
null
null
null
open
How much should one DataSet represent? === How much should one DataSet represent? Using the example of an ordering system: While showing your order I also show a list of items similar to one of yours as well as a list of our most popular items. While your items are tangled in a web of relationships involving you and...
0
36,268
08/30/2008 19:13:12
2,147
08/20/2008 15:14:13
543
52
What makes a good website for an open source project?
(I'd like to apologize because this IS a somewhat subjective question, but it's one that I'd like to get some ideas on.) So, an open source project I'm working on is working on redesigning its website. This kind of got me thinking: what exactly is it that people look for in an open source web site? So I'm asking ...
open-source
website
null
null
null
null
open
What makes a good website for an open source project? === (I'd like to apologize because this IS a somewhat subjective question, but it's one that I'd like to get some ideas on.) So, an open source project I'm working on is working on redesigning its website. This kind of got me thinking: what exactly is it that ...
0
36,274
08/30/2008 19:20:04
3,747
08/30/2008 14:33:59
20
7
What is Lazy Loading?
What is Lazy Loading?
data-binding
null
null
null
null
null
open
What is Lazy Loading? === What is Lazy Loading?
0
36,294
08/30/2008 19:42:24
1,178
08/13/2008 11:15:35
167
14
F# language - hints for newbie
Looks like here in StackOveflow there is a group of **F#** enthusiasts. I'd like to know better this language, so, apart from the [functional programming theory][1], can you point me to the better starting points to start using the F# language? I mean, tutorials, how-tos, but first of all working samples to have th...
f#
null
null
null
null
07/19/2012 15:05:37
not constructive
F# language - hints for newbie === Looks like here in StackOveflow there is a group of **F#** enthusiasts. I'd like to know better this language, so, apart from the [functional programming theory][1], can you point me to the better starting points to start using the F# language? I mean, tutorials, how-tos, but fir...
4
36,296
08/30/2008 19:43:11
536
08/06/2008 15:30:22
484
19
What's the answer to this Microsoft PDC challenge?
In [today's channel9.msdn.com video][1], the PDC guys posted a challenge to decipher this code: 2973853263233233753482843823642933243283 6434928432937228939232737732732535234532 9335283373377282333349287338449365335325 3283443783243263673762933373883363333472 893663933842883353523643333323763...
pdc
encryption
null
null
null
null
open
What's the answer to this Microsoft PDC challenge? === In [today's channel9.msdn.com video][1], the PDC guys posted a challenge to decipher this code: 2973853263233233753482843823642933243283 6434928432937228939232737732732535234532 9335283373377282333349287338449365335325 32834437832432636737629...
0
36,314
08/30/2008 20:12:55
3,786
08/30/2008 19:51:33
1
0
What is 'Currying'?
I've seen references to curried functions in several articles and blogs but I can't find a good explanation (or at least one that makes sense!)
computer-science
terms
functional-programming
null
null
null
open
What is 'Currying'? === I've seen references to curried functions in several articles and blogs but I can't find a good explanation (or at least one that makes sense!)
0
36,315
08/30/2008 20:13:32
3,191
08/27/2008 12:32:21
124
5
Alternative to HttpUtility for .NET 3.5 SP1 client framework?
It'd be really nice to target my Windows Forms app to the .NET 3.5 SP1 *client* framework. But, right now I'm using the `HttpUtility.HtmlDecode` and `HttpUtility.UrlDecode` functions, and the MSDN documentation doesn't point to any alternatives inside of, say, System.Net or something. So, short from reflectoring the...
.net
deployment
.net-client-framework
null
null
null
open
Alternative to HttpUtility for .NET 3.5 SP1 client framework? === It'd be really nice to target my Windows Forms app to the .NET 3.5 SP1 *client* framework. But, right now I'm using the `HttpUtility.HtmlDecode` and `HttpUtility.UrlDecode` functions, and the MSDN documentation doesn't point to any alternatives inside o...
0
36,324
08/30/2008 20:24:38
1,714
08/18/2008 08:40:59
1
0
"The system cannot find the file specified" when invoking subprocess.Popen in python
I'm trying to use svnmerge.py to merge some files. Under the hood it uses python, and when I use it I get an error - "The system cannot find the file specified". Colleagues at work are running the same version of svnmerge.py, and of python (2.5.2, specifically r252:60911) without an issue. I found [this link][1], ...
python
svnmerge
null
null
null
null
open
"The system cannot find the file specified" when invoking subprocess.Popen in python === I'm trying to use svnmerge.py to merge some files. Under the hood it uses python, and when I use it I get an error - "The system cannot find the file specified". Colleagues at work are running the same version of svnmerge.py, an...
0
36,326
08/30/2008 20:34:18
3,205
08/27/2008 13:06:13
207
19
How can I store user-tweakable configuration in app.config?
I know it is a good idea to store configuration data in app.config (e.g. database connection strings) instead of hardcoing it, even if I am writing an application just for myself. But is there a way to update the configuration data stored in app.config from the program that is using it?
c#
.net
app-config
null
null
null
open
How can I store user-tweakable configuration in app.config? === I know it is a good idea to store configuration data in app.config (e.g. database connection strings) instead of hardcoing it, even if I am writing an application just for myself. But is there a way to update the configuration data stored in app.config fr...
0