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
55,755
09/11/2008 03:25:56
203,653
09/05/2008 01:43:38
3
0
ASP.NET - Performance Implications of a sql server database in the app_data folder
The default asp.net membership provider uses a .mdf sql server database file in the app_code database. How scalable is this in terms of calling a flat file database instead of running it in a standard sql environment? Is this recommended only for small/medium traffic sites? Thanks.
asp.net
null
null
null
null
null
open
ASP.NET - Performance Implications of a sql server database in the app_data folder === The default asp.net membership provider uses a .mdf sql server database file in the app_code database. How scalable is this in terms of calling a flat file database instead of running it in a standard sql environment? Is this reco...
0
55,757
09/11/2008 03:27:07
2,542
08/22/2008 18:22:34
1
0
PHP Multiform Validation and Redirection
I have buy.php with a form where you enter items, quantity, shipping data, etc. When you click the Submit button, it posts back to buy.php ($_SERVER['PHP_SELF']) and does some data validation. If there are fields missing or errors, they are highlighted. If everything is correct, I save the $_POST data in $_SESSION vari...
php
validation
post
null
null
null
open
PHP Multiform Validation and Redirection === I have buy.php with a form where you enter items, quantity, shipping data, etc. When you click the Submit button, it posts back to buy.php ($_SERVER['PHP_SELF']) and does some data validation. If there are fields missing or errors, they are highlighted. If everything is cor...
0
55,768
09/11/2008 03:36:45
131
08/02/2008 08:58:50
146
5
How do I find a user's IP address with PHP?
I would like to find a user's IP address when he/she enters my page. How do I programmatically do that?
php
ipaddress
null
null
null
null
open
How do I find a user's IP address with PHP? === I would like to find a user's IP address when he/she enters my page. How do I programmatically do that?
0
55,804
09/11/2008 04:25:41
1,196
08/13/2008 12:33:04
3,230
225
Visual studio automation: Enumerate opened windows upon solution loading.
How to enumerate opened code windows (i.e. those windows where you edit documents) upon solution loading using macros? As you probably know, MSVS remembers opened documents, i.e. when you load solution, IDE will load previously opened files. What I want to do is to perform some actions with those windows upon soluti...
visual-studio
vba
scripting
automation
null
null
open
Visual studio automation: Enumerate opened windows upon solution loading. === How to enumerate opened code windows (i.e. those windows where you edit documents) upon solution loading using macros? As you probably know, MSVS remembers opened documents, i.e. when you load solution, IDE will load previously opened fil...
0
55,823
09/11/2008 04:52:07
4,525
09/04/2008 15:36:18
632
24
What, if anything is typically done in a repository's structure to reflect deployed units?
This is a follow-up to the question [Should the folders in a solution match the namespace?](http://stackoverflow.com/questions/4664/should-the-folders-in-a-solution-match-the-namespace#4672) The consensus on that question was a qualified "yes": that is, folders == namespaces, generally, but not slavishly (the way ...
.net
version-control
folders
null
null
null
open
What, if anything is typically done in a repository's structure to reflect deployed units? === This is a follow-up to the question [Should the folders in a solution match the namespace?](http://stackoverflow.com/questions/4664/should-the-folders-in-a-solution-match-the-namespace#4672) The consensus on that questi...
0
55,835
09/11/2008 05:12:42
5
07/31/2008 14:22:31
3,131
106
Is there a reliable way to prevent cheating in a web based contest where anonymous users can vote?
I'm working on a web-based contest which is supposed to allow anonymous users to vote, but we want to prevent them from voting more than once. IP based limits can be bypassed with anonymous proxies, users can clear cookies, etc. It's possible to use a Silverlight application, which would have access to isolated storage...
asp.net
silverlight
null
null
null
null
open
Is there a reliable way to prevent cheating in a web based contest where anonymous users can vote? === I'm working on a web-based contest which is supposed to allow anonymous users to vote, but we want to prevent them from voting more than once. IP based limits can be bypassed with anonymous proxies, users can clear c...
0
55,843
09/11/2008 05:18:43
4,884
09/06/2008 10:28:40
33
3
How can I test that my Linq IQueryable has executed
I am currently using Linq to NHibernate (although that is not an issue with regards to this question) to execute queries against my database and I want to be able to test whether the current IQueryable result instance has been executed or not. The debugger knows that my IQueryable has not been *'invoked'* because it...
c#
linq
null
null
null
null
open
How can I test that my Linq IQueryable has executed === I am currently using Linq to NHibernate (although that is not an issue with regards to this question) to execute queries against my database and I want to be able to test whether the current IQueryable result instance has been executed or not. The debugger kno...
0
55,845
09/11/2008 05:21:30
5,203
09/08/2008 13:10:19
1
0
Should data security be performed on the database side?
We're in the process of setting up a new framework and way of doing business for our new internal apps. Our database guru seems to think that all security logic should be handled by our database, and all information (and I mean all) will be going in and out of the database via stored procedures. The theory is, the d...
stored-procedures
security
sql
null
null
null
open
Should data security be performed on the database side? === We're in the process of setting up a new framework and way of doing business for our new internal apps. Our database guru seems to think that all security logic should be handled by our database, and all information (and I mean all) will be going in and out o...
0
55,855
09/11/2008 05:36:17
708
08/08/2008 06:10:02
564
18
TextBox.TextChanged & ICommandSource
I am following the [M-V-VM][1] pattern for my WPF UI. I would like to hook up a command to the TextChanged event of a TextBox to a command that is in my ViewModel class. The only way I can conceive of completing this task is to inherit from the TextBox control, and implement ICommandSource. I can then instruct the comm...
wpf
null
null
null
null
null
open
TextBox.TextChanged & ICommandSource === I am following the [M-V-VM][1] pattern for my WPF UI. I would like to hook up a command to the TextChanged event of a TextBox to a command that is in my ViewModel class. The only way I can conceive of completing this task is to inherit from the TextBox control, and implement IC...
0
55,859
09/11/2008 05:41:15
195
08/03/2008 11:02:15
141
10
catching all types of exceptions in C++ in one catch block
in c++, Iam trying to catch all types of exceptions in one catch (like catch(Exception) in C#). how is it done ? and more, how can one catch devide-by-zero exceptions ?
c++
null
null
null
null
null
open
catching all types of exceptions in C++ in one catch block === in c++, Iam trying to catch all types of exceptions in one catch (like catch(Exception) in C#). how is it done ? and more, how can one catch devide-by-zero exceptions ?
0
55,860
09/11/2008 05:42:44
1,790
08/18/2008 15:07:02
2,023
101
Why can't I delete this cookie?!
Okay, here is the 411 - I have the following event handler in my Global.asax.cs file: private void Global_PostRequestHandlerExecute(object sender, EventArgs e) { if (/* logic that determines that this is an ajax call */) { // we want to set a cookie Response.Cookies.Add...
c#
asp.net
javascript
ajax
cookies
null
open
Why can't I delete this cookie?! === Okay, here is the 411 - I have the following event handler in my Global.asax.cs file: private void Global_PostRequestHandlerExecute(object sender, EventArgs e) { if (/* logic that determines that this is an ajax call */) { // we want to set a ...
0
55,862
09/11/2008 05:43:24
4,154
09/02/2008 05:43:32
46
4
How to implement password protection for individual files?
I'm writing a little desktop app that should be able to encrypt a data file and protect it with a password (i.e. one must enter the correct password to decrypt). I want the encrypted data file to be self-contained and portable, so the authentication has to be embedded in the file (or so I assume). I have a strategy...
encryption
cryptography
password
null
null
null
open
How to implement password protection for individual files? === I'm writing a little desktop app that should be able to encrypt a data file and protect it with a password (i.e. one must enter the correct password to decrypt). I want the encrypted data file to be self-contained and portable, so the authentication has t...
0
55,869
09/11/2008 05:50:52
5,277
09/08/2008 20:39:51
51
5
Determine file type of an image
I'm downloading some images from a service that doesn't always include a content-type and doesn't provide an extension for the file I'm downloading (ugh, don't ask). What's the best way to determine the image format in .NET? The application that is reading these downloaded images needs to have a proper file exten...
.net
image
extension
mime-types
content-type
null
open
Determine file type of an image === I'm downloading some images from a service that doesn't always include a content-type and doesn't provide an extension for the file I'm downloading (ugh, don't ask). What's the best way to determine the image format in .NET? The application that is reading these downloaded ima...
0
55,871
09/11/2008 05:52:56
3,983
09/01/2008 07:09:13
26
5
Track when user hits back button on the browser
Is it possible to detect when the user clicks on the browser's back button? I have an Ajax application and if I can detect when the user clicks on the back button I can display the appropriate data back Any solution using PHP, JavaScript is preferable. Hell a solution in any language is fine, just need something...
javascript
php
browser
null
null
null
open
Track when user hits back button on the browser === Is it possible to detect when the user clicks on the browser's back button? I have an Ajax application and if I can detect when the user clicks on the back button I can display the appropriate data back Any solution using PHP, JavaScript is preferable. Hell a ...
0
55,878
09/11/2008 06:01:04
2,581
08/23/2008 04:37:51
71
8
How do distributed transactions work (eg. MSDTC)?
I understand, in a fuzzy sort of way, how regular ACID transactions work. You perform some work on a database in such a way that the work is not confirmed until some kind of commit flag is set. The commit part is based on some underlying assumption (like a single disk block write is atomic). In the event of a catast...
transactions
acid
mstdc
null
null
null
open
How do distributed transactions work (eg. MSDTC)? === I understand, in a fuzzy sort of way, how regular ACID transactions work. You perform some work on a database in such a way that the work is not confirmed until some kind of commit flag is set. The commit part is based on some underlying assumption (like a single...
0
55,899
09/11/2008 06:26:01
480
08/06/2008 08:40:05
51
6
How to see the actual Oracle SQL statement that is being executed
I'm using a custom-built inhouse application that generates a standard set of reports on a weekly basis. I have no access to the source code of the application, and everyone tells me there is no documentation available for the Oracle database schema. (Aargh!) I've been asked to define the specs for a variant of an e...
sql
oracle
null
null
null
null
open
How to see the actual Oracle SQL statement that is being executed === I'm using a custom-built inhouse application that generates a standard set of reports on a weekly basis. I have no access to the source code of the application, and everyone tells me there is no documentation available for the Oracle database schema...
0
55,901
09/11/2008 06:30:04
4,808
09/05/2008 17:41:47
74
5
Web service - current time zone for a city?
Is there a web service of some sort (or any other way) to pull a current time zone settings for a (US) city. For the parts of the country that don't follow the Daylight Saving Time and basically jump timezones when everyone else is switching summer/winter time... I don't fancy creating own database of the places that d...
web-services
timezone
null
null
null
null
open
Web service - current time zone for a city? === Is there a web service of some sort (or any other way) to pull a current time zone settings for a (US) city. For the parts of the country that don't follow the Daylight Saving Time and basically jump timezones when everyone else is switching summer/winter time... I don't...
0
55,903
09/11/2008 06:33:27
3,293
08/27/2008 17:50:56
1
0
Eclipse alternative to VS .sln files.
I've recently had to switch from Visual Studio to Eclipse CDT. It would seem that Eclipse "workspaces" are not quite like VS solution files. Eclipse workspaces use the .metadata folder for managing multiple projects, but there doesn't seem to be a simple distinction between user settings or IDE preferences and projec...
eclipse
null
null
null
null
null
open
Eclipse alternative to VS .sln files. === I've recently had to switch from Visual Studio to Eclipse CDT. It would seem that Eclipse "workspaces" are not quite like VS solution files. Eclipse workspaces use the .metadata folder for managing multiple projects, but there doesn't seem to be a simple distinction between ...
0
55,922
09/11/2008 07:03:17
2,095
08/20/2008 11:01:19
262
17
How to keep concentrated and focused while waiting for your compiler?
When I'm working on software, I find that as soon as I have to wait more than around 6 seconds for the compiler or for the program to start (or simply for Visual Studio to process some really complicated command like, say, Space Bar), I tend to fire up the email client, or go read stuff on the Internet, or post questio...
productivity
focus
flow
concentration
null
null
open
How to keep concentrated and focused while waiting for your compiler? === When I'm working on software, I find that as soon as I have to wait more than around 6 seconds for the compiler or for the program to start (or simply for Visual Studio to process some really complicated command like, say, Space Bar), I tend to ...
0
55,932
09/11/2008 07:13:24
4,910
09/06/2008 14:49:31
51
5
Win32 CreatePatternBrush
MSDN displays the following for CreatePatternBrush: > You can delete a pattern brush without > affecting the associated bitmap by > using the DeleteObject function. > Therefore, you can then use this > bitmap to create any number of pattern > brushes. My question is the opposite. If the HBRUSH is long lived,...
winapi
gdi
null
null
null
null
open
Win32 CreatePatternBrush === MSDN displays the following for CreatePatternBrush: > You can delete a pattern brush without > affecting the associated bitmap by > using the DeleteObject function. > Therefore, you can then use this > bitmap to create any number of pattern > brushes. My question is the opposite...
0
55,943
09/11/2008 07:29:00
5,147
09/08/2008 07:23:50
21
5
How to profile a silverlight application?
Is their any profilers that support Silverlight? I have tried ANTS (Version 3.1) without any success? Does version 4 support it? Any other products I can try?
profiling
silverllight
null
null
null
null
open
How to profile a silverlight application? === Is their any profilers that support Silverlight? I have tried ANTS (Version 3.1) without any success? Does version 4 support it? Any other products I can try?
0
55,953
09/11/2008 07:34:33
5,741
09/11/2008 07:34:33
1
0
SSL Connection Limit
I'm using a device that's got GPRS media to connect to a PC running stunnel. On TCPIP connections, the number of sessions is limitless. However, when it comes to SSL connections, it could only go as far as 1062 successful sessions. I've tried it like 3 times but makes no difference. I've checked the OpenSSL codes and...
ssl
connection
limit
null
null
null
open
SSL Connection Limit === I'm using a device that's got GPRS media to connect to a PC running stunnel. On TCPIP connections, the number of sessions is limitless. However, when it comes to SSL connections, it could only go as far as 1062 successful sessions. I've tried it like 3 times but makes no difference. I've che...
0
55,956
09/11/2008 07:37:00
5,742
09/11/2008 07:37:00
1
0
mysql_insert_id alternative for postgresql
is there an alternative for mysql_insert_id() php function for PostgreSQL? Most of the frameworks are solving the problem partially by finding the current value of the sequence used in the ID. However, there are times that the primary key is not a serial column....
php
insert-id
postgresql
null
null
null
open
mysql_insert_id alternative for postgresql === is there an alternative for mysql_insert_id() php function for PostgreSQL? Most of the frameworks are solving the problem partially by finding the current value of the sequence used in the ID. However, there are times that the primary key is not a serial column....
0
55,961
09/11/2008 07:45:56
3,742
08/30/2008 14:08:11
133
18
Exception Handling in .net web apps
I admit it: I don't bother with too much exception handling. I know I should do more but I can never wrap my head around where to start and where to stop. I'm not being lazy. Far from it. It's that I'm overwrought with exception handling ambivalence. It just seems that there is a seemingly infinite number of places...
.net
exception-handling
null
null
null
null
open
Exception Handling in .net web apps === I admit it: I don't bother with too much exception handling. I know I should do more but I can never wrap my head around where to start and where to stop. I'm not being lazy. Far from it. It's that I'm overwrought with exception handling ambivalence. It just seems that there...
0
55,963
09/11/2008 07:47:22
5,023
09/07/2008 12:27:27
180
14
Unsafe C# and pointers for 2d rendering, good or bad?
I am writing a c# control that wraps DirectX 9 and provides a simplified interface to perform 2d pixel level drawing. .NET requires that I wrap this code in an unsafe code block and compile with the allow unsafe code option. I'm locking the entire surface which then returns a pointer to the locked area of memory. I...
c#
graphics
pointers
null
null
null
open
Unsafe C# and pointers for 2d rendering, good or bad? === I am writing a c# control that wraps DirectX 9 and provides a simplified interface to perform 2d pixel level drawing. .NET requires that I wrap this code in an unsafe code block and compile with the allow unsafe code option. I'm locking the entire surface w...
0
55,964
09/11/2008 07:47:46
4,683
09/05/2008 07:14:50
1
0
Make wix installation set upgrade to same folder
How can I make a major upgrade to an installation set (MSI) built with Wix install into the same folder as the original installation? The installation is correctly detected as an upgrade, but the directory selection screen is still shown and with the default value (not necessarily the current installation folder). D...
msi
windows-installer
wix
null
null
null
open
Make wix installation set upgrade to same folder === How can I make a major upgrade to an installation set (MSI) built with Wix install into the same folder as the original installation? The installation is correctly detected as an upgrade, but the directory selection screen is still shown and with the default value (...
0
55,968
09/11/2008 07:48:53
327
08/04/2008 17:08:49
682
47
Is there a MySQLAdmin or SQL Server Management Studio equivalent for SQLite databases on Windows?
I need some software to explore and modify some SQLite databases. Does anything similar to SQL Server Management Studio or MySQLAdmin exist for it?
windows
sql
sqlite
null
null
null
open
Is there a MySQLAdmin or SQL Server Management Studio equivalent for SQLite databases on Windows? === I need some software to explore and modify some SQLite databases. Does anything similar to SQL Server Management Studio or MySQLAdmin exist for it?
0
55,978
09/11/2008 07:58:38
5,175
09/08/2008 10:47:07
13
1
Test an object for NOT being a type (C#)
I know how to test an object to see if it is of a type, using the IS keyword e.g. if (foo is bar) { //do something here } but how do you test for it not being "bar"?, I can't seem to find a keyword that works with IS to test for a negative result. BTW - I have a horrible feeling this is ...
c#
object
testing
syntax
null
null
open
Test an object for NOT being a type (C#) === I know how to test an object to see if it is of a type, using the IS keyword e.g. if (foo is bar) { //do something here } but how do you test for it not being "bar"?, I can't seem to find a keyword that works with IS to test for a negative result....
0
55,984
09/11/2008 08:02:19
4,883
09/06/2008 10:24:59
630
5
What is the difference between const and readonly?
What is the difference between const and readonly and do you use one over the other?
c#
null
null
null
null
null
open
What is the difference between const and readonly? === What is the difference between const and readonly and do you use one over the other?
0
55,986
09/11/2008 08:03:34
4,021
09/01/2008 12:23:44
213
13
Coping with unavailable systems at our work place
What do you do when your source control / bug database / network / email system is temporarily unavailable? This is to guage how productive we can be under such a situation?
productivity
self-improvement
null
null
null
null
open
Coping with unavailable systems at our work place === What do you do when your source control / bug database / network / email system is temporarily unavailable? This is to guage how productive we can be under such a situation?
0
55,992
09/11/2008 08:07:34
3,713
08/30/2008 09:06:27
151
19
Learn How To Become a Better Writer
**HAI GAIS! WHATZUP?!** You know how it goes, every other day you'll find someone whether it be at an internet forum or on a spec doc whose literary efforts can be described as abysmal. They try to write something intelligently but often come off as a complete jerk. They could be a kick-ass coder but fail to...
communication
null
null
null
null
07/16/2012 20:28:03
off topic
Learn How To Become a Better Writer === **HAI GAIS! WHATZUP?!** You know how it goes, every other day you'll find someone whether it be at an internet forum or on a spec doc whose literary efforts can be described as abysmal. They try to write something intelligently but often come off as a complete jerk. T...
2
56,005
09/11/2008 08:15:50
4,227
09/02/2008 13:08:22
67
4
.NET serialization class design problem
We have a rather large object graph that needs to be serialized and deserialized in a lot of different ways (modes). In some modes we want certain properties to be deserialized and in some we don't. The problem is now how we implement these modes. **Apporach A (use deseriliazation constructor and ISerializable.GetO...
class-design
serialization
.net
null
null
null
open
.NET serialization class design problem === We have a rather large object graph that needs to be serialized and deserialized in a lot of different ways (modes). In some modes we want certain properties to be deserialized and in some we don't. The problem is now how we implement these modes. **Apporach A (use deser...
0
56,011
09/11/2008 08:18:55
4,883
09/06/2008 10:24:59
640
5
Single quotes vs. double quotes in Python
According to the documentation, they're pretty much interchangeable. Is there a stylistic reason to use one over the other?
python
coding-style
null
null
null
null
open
Single quotes vs. double quotes in Python === According to the documentation, they're pretty much interchangeable. Is there a stylistic reason to use one over the other?
0
56,013
09/11/2008 08:20:29
230
08/03/2008 19:32:46
574
36
Cross platform .Net?
If you where to write an application to be cross platform, can you do it with .Net, what tools would you recommend? I was considering Java as it would be relatively easy to pick up due to its C# similarity and then I could use the JVM.
cross-platform
.net
null
null
null
null
open
Cross platform .Net? === If you where to write an application to be cross platform, can you do it with .Net, what tools would you recommend? I was considering Java as it would be relatively easy to pick up due to its C# similarity and then I could use the JVM.
0
56,022
09/11/2008 08:23:02
2,822
08/25/2008 11:42:23
352
17
Prevent file casing problems in Subversion
We encountered a problem with using Subversion on Windows. A developer committed a file <code>foo.Data.sql</code> and later another developer committed a file called <code>foo.data.sql</code>. Naturally, this caused a problem on Windows clients (all clients are Windows in our environments) because files are case sensit...
svn
tortoisesvn
null
null
null
null
open
Prevent file casing problems in Subversion === We encountered a problem with using Subversion on Windows. A developer committed a file <code>foo.Data.sql</code> and later another developer committed a file called <code>foo.data.sql</code>. Naturally, this caused a problem on Windows clients (all clients are Windows in...
0
56,028
09/11/2008 08:28:37
3,146
08/27/2008 00:25:15
846
43
What is your recommended monitor resolution?
I just got a new monitor to replace one of the ones I have at work. I went from this*: 1: 1600x1280 2: 1400x768 to this**: 1: 1768x1340 2: 1600x1280 (was formerly 1) This was a pretty big jump up for me, although in my office I seem to be a bit unusual in that I seem to be the only one who...
monitor
resolution
null
null
null
null
open
What is your recommended monitor resolution? === I just got a new monitor to replace one of the ones I have at work. I went from this*: 1: 1600x1280 2: 1400x768 to this**: 1: 1768x1340 2: 1600x1280 (was formerly 1) This was a pretty big jump up for me, although in my office I seem to be a...
0
56,037
09/11/2008 08:32:21
5,004
09/07/2008 10:03:29
72
2
how to represent an empty field in yaml
I am working with fixtures on rails and I want one of the fixture fields to be blank. Example: two: name: test path: - I want this blank but not to act as a group heading. test: 4 But, I do not know how to leave `path:` blank without it acting as a group title. Does anybody know how to do t...
ruby-on-rails
yaml
null
null
null
null
open
how to represent an empty field in yaml === I am working with fixtures on rails and I want one of the fixture fields to be blank. Example: two: name: test path: - I want this blank but not to act as a group heading. test: 4 But, I do not know how to leave `path:` blank without it acting as ...
0
56,045
09/11/2008 08:39:22
3,966
09/01/2008 03:51:27
3
1
Stuts2 Tiles Tomcat suspected of changing UTF-8 to ?????
I'm having some internationalisation woes: My UTF-8 string fields are being rendered in the browser as ???? after being returned from the database. After retrieval from the database using Hibernate, the String fields are presented correctly on inspection using the eclipse debugger. However Struts2/Tiles is ren...
java
internationalization
struts2
tiles
utf-8
null
open
Stuts2 Tiles Tomcat suspected of changing UTF-8 to ????? === I'm having some internationalisation woes: My UTF-8 string fields are being rendered in the browser as ???? after being returned from the database. After retrieval from the database using Hibernate, the String fields are presented correctly on inspecti...
0
56,046
09/11/2008 08:40:03
123
08/02/2008 08:01:26
1,541
76
Stop system entering 'standby'..
How can i stop the host machine entering 'standby' mode while my application is running? Is there any win32 api call to do this?
c++
winapi
standards
null
null
null
open
Stop system entering 'standby'.. === How can i stop the host machine entering 'standby' mode while my application is running? Is there any win32 api call to do this?
0
56,052
09/11/2008 08:41:56
4,639
09/04/2008 23:07:22
109
1
Best way to insert timestamp in Vim?
EditPad Lite has a nice feature (CTRL-E, CTRL-I) which inserts a time stamp e.g. "2008-09-11 10:34:53" into your code. What is the best way to get this functionality in Vim? (I am using Vim 6.1 on a Linux server via SSH. In the current situation a number of us share a login so I don't want to create abbreviations...
vim
vi
null
null
null
null
open
Best way to insert timestamp in Vim? === EditPad Lite has a nice feature (CTRL-E, CTRL-I) which inserts a time stamp e.g. "2008-09-11 10:34:53" into your code. What is the best way to get this functionality in Vim? (I am using Vim 6.1 on a Linux server via SSH. In the current situation a number of us share a log...
0
56,070
09/11/2008 08:51:39
267
08/04/2008 10:11:06
3,415
172
DELETE Statement hangs on SQL Server for no apparent reason
We have a simple delete statement that looks like this: DELETE FROM tablename WHERE pk = 12345 This just hangs, no timeout, no nothing. We've looked at the execution plan, and it consists of many lookups on related tables to ensure no foreign keys would trip up the delete, but we've verified that none of t...
sql-server-2005
sql
delete
hang
null
null
open
DELETE Statement hangs on SQL Server for no apparent reason === We have a simple delete statement that looks like this: DELETE FROM tablename WHERE pk = 12345 This just hangs, no timeout, no nothing. We've looked at the execution plan, and it consists of many lookups on related tables to ensure no foreign...
0
56,078
09/11/2008 08:57:17
91
08/01/2008 17:55:22
6,599
259
Merging 2 Collection<T>
I got a Function that returns a Collection&lt;string&gt;, and that calls itself recursively to eventually return one big Collection&lt;string&gt; Now, i just wonder what the best approach to merge the lists? Collection.CopyTo only copies to string[], and using a foreach() loop feels like being inefficient. However, ...
c#
null
null
null
null
null
open
Merging 2 Collection<T> === I got a Function that returns a Collection&lt;string&gt;, and that calls itself recursively to eventually return one big Collection&lt;string&gt; Now, i just wonder what the best approach to merge the lists? Collection.CopyTo only copies to string[], and using a foreach() loop feels like...
0
56,087
09/11/2008 09:01:36
3,205
08/27/2008 13:06:13
458
29
Does ruby have real multithreading?
I know about the "cooperative" threading of ruby using <a href="http://en.wikipedia.org/wiki/Green_threads">green threads</a>. How can I create real "OS-level" threads in my application in order to make use of multiple cpu cores for processing?
ruby
multithreading
null
null
null
null
open
Does ruby have real multithreading? === I know about the "cooperative" threading of ruby using <a href="http://en.wikipedia.org/wiki/Green_threads">green threads</a>. How can I create real "OS-level" threads in my application in order to make use of multiple cpu cores for processing?
0
56,090
09/11/2008 09:02:49
1,612
08/17/2008 14:52:15
409
31
Subversion merge history visualisation
Are there any utilities out there which can draw pictures of the merge history of a subversion repo - we always commit merges with a (fairly) consistent log message, and it would be handy to be able to automatically extract this info into a single picture that shows what branches occurred when, and what the state of me...
svn
merge
visualization
null
null
null
open
Subversion merge history visualisation === Are there any utilities out there which can draw pictures of the merge history of a subversion repo - we always commit merges with a (fairly) consistent log message, and it would be handy to be able to automatically extract this info into a single picture that shows what bran...
0
56,091
09/11/2008 09:03:13
2,958
08/26/2008 08:58:45
33
4
Pointers to C++ class mthods
Whilst refactoring some legacy C++ code I found that I could potentially remove some code duplication by somehow defining a variable that could point to any class method that shared the same signature. After a little digging, I found that I could do something like the following: class MyClass { protec...
c++
null
null
null
null
null
open
Pointers to C++ class mthods === Whilst refactoring some legacy C++ code I found that I could potentially remove some code duplication by somehow defining a variable that could point to any class method that shared the same signature. After a little digging, I found that I could do something like the following: ...
0
56,096
09/11/2008 09:06:06
5,754
09/11/2008 09:06:06
1
0
Removing web.config from subversion (ASP.NET Project)
I have a project which is source controlled using Subversion and VisualSVN. Since the version of web.config is different on the server and the developers' computers I want the file to remain on the computers but to be ignored by Subversion. I added it to the svn:ignore but it still remains (and still has a red exclamat...
subversion
visualsvn
web-config
null
null
null
open
Removing web.config from subversion (ASP.NET Project) === I have a project which is source controlled using Subversion and VisualSVN. Since the version of web.config is different on the server and the developers' computers I want the file to remain on the computers but to be ignored by Subversion. I added it to the sv...
0
56,107
09/11/2008 09:16:40
327
08/04/2008 17:08:49
684
48
What is the best way to parse html in C#?
I'm looking for a library/method to parse an html file with more html specific features than generic xml parsing libraries.
c#
.net
html
parsing
null
11/15/2011 17:09:39
not constructive
What is the best way to parse html in C#? === I'm looking for a library/method to parse an html file with more html specific features than generic xml parsing libraries.
4
56,112
09/11/2008 09:18:49
1,199,387
08/06/2008 23:58:10
397
24
WCF, ASP.NET Membership Provider and Authentication Service
I have written a Silverlight 2 application communicating with a WCF service (BasicHttpBinding). The site hosting the Silverlight content is protected using a ASP.NET Membership Provider. I can access the current user using HttpContext.Current.User.Identity.Name from my WCF service, and I have turned on AspNetCompatibil...
wcf
web-service
.net
null
null
null
open
WCF, ASP.NET Membership Provider and Authentication Service === I have written a Silverlight 2 application communicating with a WCF service (BasicHttpBinding). The site hosting the Silverlight content is protected using a ASP.NET Membership Provider. I can access the current user using HttpContext.Current.User.Identit...
0
56,118
09/11/2008 09:22:45
192
08/03/2008 10:15:38
290
28
Triangle Trigonometry (ActionScript 3)
I am trying to write a formula in ActionScript 3 that will give me var "z" (please see image below) in degrees, which I will then convert to radians. I will already know the value of vars "x" and "y". Using trigonometry, how can I calculate the length of the hypotenuse and therefore the variable angle of var z? A s...
actionscript-3
trigonometry
hypotenuse
null
null
null
open
Triangle Trigonometry (ActionScript 3) === I am trying to write a formula in ActionScript 3 that will give me var "z" (please see image below) in degrees, which I will then convert to radians. I will already know the value of vars "x" and "y". Using trigonometry, how can I calculate the length of the hypotenuse and...
0
56,121
09/11/2008 09:24:22
123
08/02/2008 08:01:26
1,548
78
IPC Mechanisms in C# - Usage and Best Practices..
I have used IPC in win32 code a while ago. [Critical sections, events & semaphores] How is the scene in .NET enviroment? Are there any tutorial explaining all available options and when to use and why?
c#
.net
ipc
null
null
null
open
IPC Mechanisms in C# - Usage and Best Practices.. === I have used IPC in win32 code a while ago. [Critical sections, events & semaphores] How is the scene in .NET enviroment? Are there any tutorial explaining all available options and when to use and why?
0
56,124
09/11/2008 09:26:25
1,078
08/12/2008 10:39:00
347
17
Can I run a 64-bit VMWare image on a 32-bit machine?
Can I run a 64-bit VMWare image on a 32-bit machine? I've Googled this but there doesn't seem to be a conclusive answer. I know that it would have to completely emulated and would run like a dog - but slow performance isn't necessarily an issue as I'm just interested in testing some of my background services code...
vmware
64-bit
null
null
null
null
open
Can I run a 64-bit VMWare image on a 32-bit machine? === Can I run a 64-bit VMWare image on a 32-bit machine? I've Googled this but there doesn't seem to be a conclusive answer. I know that it would have to completely emulated and would run like a dog - but slow performance isn't necessarily an issue as I'm just...
0
56,145
09/11/2008 09:41:53
5,760
09/11/2008 09:41:53
1
0
MFC IE embedded web browser wackiness
I have this modeless MFC dialog which embeds an Internet Explorer web browser control. The control is derived straight from CWnd with ActiveX wrappers generated by Visual Studio, and I map it to the CDialog using only a "DDX_Control(pDX, IDC_EXPLORER, m_explorer);" I have 2 problems. Problem #1:<br/> Being mo...
c++
mfc
internet-explorer
dialog
null
null
open
MFC IE embedded web browser wackiness === I have this modeless MFC dialog which embeds an Internet Explorer web browser control. The control is derived straight from CWnd with ActiveX wrappers generated by Visual Studio, and I map it to the CDialog using only a "DDX_Control(pDX, IDC_EXPLORER, m_explorer);" I hav...
0
56,149
09/11/2008 09:45:37
342
08/04/2008 19:59:52
784
78
Storing file permissions in Subversion repository
How do you store file permissions in a repository? A few files need to be read-only to stop a third party program from trashing it but after checking out of the repository they are set to read-write. I looked on google and found a [blog post from 2005][1] that states that Subversion doesn't store file-permissions. T...
windows
svn
file-permissions
null
null
null
open
Storing file permissions in Subversion repository === How do you store file permissions in a repository? A few files need to be read-only to stop a third party program from trashing it but after checking out of the repository they are set to read-write. I looked on google and found a [blog post from 2005][1] that s...
0
56,168
09/11/2008 09:53:28
1,163
08/13/2008 07:44:23
43
4
Test Cases AND assertion statements
The code in [this question][1] made me think assert(value>0); //Precondition if (value>0) { //Doit } I never write the if-statement. Asserting is enough/all you *can* do. "Crash early, crash often" [CodeComplete][2] states: - The assert-statement makes the application Correct ...
defensive-programming
null
null
null
null
null
open
Test Cases AND assertion statements === The code in [this question][1] made me think assert(value>0); //Precondition if (value>0) { //Doit } I never write the if-statement. Asserting is enough/all you *can* do. "Crash early, crash often" [CodeComplete][2] states: - The assert...
0
56,195
09/11/2008 10:09:19
5,383
09/09/2008 11:58:30
6
0
How to obtain Vista Edition programmatically?
How to obtain Vista Edition programmatically, that is Home Basic, Home Premium, Business or Ultimate ?
windows-vista
edition
null
null
null
null
open
How to obtain Vista Edition programmatically? === How to obtain Vista Edition programmatically, that is Home Basic, Home Premium, Business or Ultimate ?
0
56,208
09/11/2008 10:19:44
82
08/01/2008 16:28:35
149
3
WMI - Using InvokeMethod(..) on a ManagementObject representing a singleton ManagementClass
I've having trouble directly accessing the **Win32_OperatingSystem** management class that is exposed via WMI. It is a singleton class, and I'm pretty certain "Win32_OperatingSystem=@" is the correct path syntax to get the instance of a singleton. The call to InvokeMethod produces the exception listed at the bott...
c#
wmi
null
null
null
null
open
WMI - Using InvokeMethod(..) on a ManagementObject representing a singleton ManagementClass === I've having trouble directly accessing the **Win32_OperatingSystem** management class that is exposed via WMI. It is a singleton class, and I'm pretty certain "Win32_OperatingSystem=@" is the correct path syntax to get t...
0
56,224
09/11/2008 10:33:54
5,175
09/08/2008 10:47:07
18
2
Creating objects driven by the database to populate a Treeview - very slow (C#)
I have an application that reads a table from a database. I issue an SQL query to get a result set, based on a unique string value I glean from the results, I use a case/switch statement to generate certain objects (they inherit TreeNode BTW). These created objects get shunted into a Dictionary object to be used l...
c#
iclonable
dictionary
object
clone
null
open
Creating objects driven by the database to populate a Treeview - very slow (C#) === I have an application that reads a table from a database. I issue an SQL query to get a result set, based on a unique string value I glean from the results, I use a case/switch statement to generate certain objects (they inherit Tr...
0
56,227
09/11/2008 10:35:02
338
08/04/2008 18:34:44
1,372
75
How do you determine the latest SVN revision number rooted in a directory?
I would like to start tagging my deployed binaries with the latest SVN revision number. However, because SVN is file-based and not directory/project-based, I need to scan through all the directory's and subdirectory's files in order to determine the highest revision number. I was wondering if there is a shortcut ...
subversion
build-automation
null
null
null
null
open
How do you determine the latest SVN revision number rooted in a directory? === I would like to start tagging my deployed binaries with the latest SVN revision number. However, because SVN is file-based and not directory/project-based, I need to scan through all the directory's and subdirectory's files in order to d...
0
56,229
09/11/2008 10:35:37
5,190
09/08/2008 12:03:43
930
52
Best xml writing tool for Python
I'm currently trying ElementTree and it looks fine, it escapes HTML entities and so on and so forth. I'm just wondering if I'm missing something truly wonderful I haven't heard of. This is similar to what I'm actually doing import xml.etree.ElementTree as ET root = ET.Element('html') head = ET.SubEl...
python
xml
xhtml
null
null
null
open
Best xml writing tool for Python === I'm currently trying ElementTree and it looks fine, it escapes HTML entities and so on and so forth. I'm just wondering if I'm missing something truly wonderful I haven't heard of. This is similar to what I'm actually doing import xml.etree.ElementTree as ET root = E...
0
56,249
09/11/2008 10:49:46
5,772
09/11/2008 10:49:46
1
0
WCF service configuration file question regarding <baseAddresses>
From what I've seen the <baseAddresses> tag is ignored when hosting a WCF service in IIS. I understand that when self-hosting this is required but is this harmful or even used when operating under IIS? ex. <system.serviceModel> <service blah blah blah> <host> <baseAddresses> ...
wcf
configuration
configurationfiles
null
null
null
open
WCF service configuration file question regarding <baseAddresses> === From what I've seen the <baseAddresses> tag is ignored when hosting a WCF service in IIS. I understand that when self-hosting this is required but is this harmful or even used when operating under IIS? ex. <system.serviceModel> <se...
0
56,256
09/11/2008 10:53:15
1,116
08/12/2008 13:25:41
762
42
Converting a .rptproj from VS2005 to VS2008
I've got my brand new VS2008 and decided to convert my main solution from VS2005. One of the projects is a SQL2005 reporting services project. Now that I've converted I cannot load it in VS2008. Is there anyway around this?
vs2008
reporting-services
null
null
null
null
open
Converting a .rptproj from VS2005 to VS2008 === I've got my brand new VS2008 and decided to convert my main solution from VS2005. One of the projects is a SQL2005 reporting services project. Now that I've converted I cannot load it in VS2008. Is there anyway around this?
0
56,266
09/11/2008 10:59:08
1,727
08/18/2008 10:58:44
76
8
Using Silverlight for an entire website?
We need to build an administration portal website to support our client/server application. Since we're a .Net shop the obvious traditional way would be to do that in ASP.Net. But Silverlight 2 will be coming out of beta a good while before our release date. Should we consider building the whole website in silverlight ...
asp.net
architecture
silverlight
null
null
null
open
Using Silverlight for an entire website? === We need to build an administration portal website to support our client/server application. Since we're a .Net shop the obvious traditional way would be to do that in ASP.Net. But Silverlight 2 will be coming out of beta a good while before our release date. Should we consi...
0
56,271
09/11/2008 11:06:31
51
08/01/2008 13:31:13
2,021
86
Context.User losing Roles between Application_AuthenticateRequest in Global.asax and Page_Load in WebForm
I am using Forms authentication in my asp.net (3.5) application. I am also using roles to define what user can access which subdirectories of the app. Thus, the pertinent sections of my web.config file look like this: <system.web> <authentication mode="Forms"> <forms loginUrl="Default.aspx" p...
c#
.net
asp.net
forms-authentication
roles
null
open
Context.User losing Roles between Application_AuthenticateRequest in Global.asax and Page_Load in WebForm === I am using Forms authentication in my asp.net (3.5) application. I am also using roles to define what user can access which subdirectories of the app. Thus, the pertinent sections of my web.config file look li...
0
56,279
09/11/2008 11:15:54
278
08/04/2008 11:28:54
46
5
Export ASPX to HTML
We're building a CMS. The site will be built and managed by the users in aspx pages, but we would like to create a static site of HTML's. The way we're doing it now is with code I found [here][1] that overloads the Render method in the Aspx Page and writes the HTML string to a file. This works fine for a single page,...
asp.net
html
null
null
null
null
open
Export ASPX to HTML === We're building a CMS. The site will be built and managed by the users in aspx pages, but we would like to create a static site of HTML's. The way we're doing it now is with code I found [here][1] that overloads the Render method in the Aspx Page and writes the HTML string to a file. This work...
0
56,296
09/11/2008 11:24:53
4,061
09/01/2008 15:48:37
53
1
Can you view an aggregate changeset in git? If so, how?
In Subversion you can specify a range of versions to get an aggregate view of a series of commits. Is this possible in git? If so, how?
git
subversion
null
null
null
null
open
Can you view an aggregate changeset in git? If so, how? === In Subversion you can specify a range of versions to get an aggregate view of a series of commits. Is this possible in git? If so, how?
0
56,313
09/11/2008 11:32:16
4,687
09/05/2008 08:04:23
1
1
ReSharper Code Cleanup/Reformat Code feature vs Versioning Control Systems
ReSharper Code cleanup feature (with "[reorder members](http://www.jetbrains.com/resharper/features/code_formatting.html#Reordering_Type_Members_C#_only)" and "[reformat code](http://www.jetbrains.com/resharper/features/code_formatting.html#Code_Style_Configuration_and_Sharing)" enabled) is really great. You define a l...
c#
version-control
resharper
null
null
null
open
ReSharper Code Cleanup/Reformat Code feature vs Versioning Control Systems === ReSharper Code cleanup feature (with "[reorder members](http://www.jetbrains.com/resharper/features/code_formatting.html#Reordering_Type_Members_C#_only)" and "[reformat code](http://www.jetbrains.com/resharper/features/code_formatting.html...
0
56,315
09/11/2008 11:33:05
2,018
08/19/2008 20:14:45
1,022
88
D Programming Language in the real world?
Is anyone out there using D for real world applications? If so, what are you using it for? I can't seem to find anything big on the web written in D.
d
real-world
null
null
null
null
open
D Programming Language in the real world? === Is anyone out there using D for real world applications? If so, what are you using it for? I can't seem to find anything big on the web written in D.
0
56,324
09/11/2008 11:39:15
5,330
09/09/2008 07:44:06
187
5
Reset screen point to the top of screen in Windows & Linux console
I have a little routine that's run under Linux and Windows written in C and displays output on the console. I'm not linking in any form of curses or anything like that. Currently I clear the screen using #ifdef __WIN32 system( "cls" ); #else system( "clear" ); #endif Then I have a b...
c
console
null
null
null
null
open
Reset screen point to the top of screen in Windows & Linux console === I have a little routine that's run under Linux and Windows written in C and displays output on the console. I'm not linking in any form of curses or anything like that. Currently I clear the screen using #ifdef __WIN32 system( "cls...
0
56,325
09/11/2008 11:39:15
278
08/04/2008 11:28:54
51
5
Team System get-latest-version on checkout
We used to use SourceSafe, and one thing I liked about it was that when you checked out a file, it automatically got you its latest version. Now we work with Team System 2005, and it doesn't work that way - you have to "get latest version" before you start working on a file that you've checked out. Is there a way...
visual-studio-team-system
null
null
null
null
null
open
Team System get-latest-version on checkout === We used to use SourceSafe, and one thing I liked about it was that when you checked out a file, it automatically got you its latest version. Now we work with Team System 2005, and it doesn't work that way - you have to "get latest version" before you start working on a...
0
56,334
09/11/2008 11:43:11
5,058
09/07/2008 16:00:39
254
14
How do I perform a simple one-statement SQL search across tables?
Say I have two tables: users and groups, each of which has a name. I wish to provide a 'simple search', in which the user enters text and results contain both users and groups whose names contain the text. The results must distinguish between the two types.
sql
search
null
null
null
null
open
How do I perform a simple one-statement SQL search across tables? === Say I have two tables: users and groups, each of which has a name. I wish to provide a 'simple search', in which the user enters text and results contain both users and groups whose names contain the text. The results must distinguish between the tw...
0
56,340
09/11/2008 11:45:27
1,084
08/12/2008 11:01:49
560
46
Can I set a data breakpoint in runtime in System C?
I have a class in system-C with some data members as such: long double x[8]; I'm initializing it in the construction like this: for (i = 0; i < 8; ++i) { x = 0; } But the first time I use it in my code I have garbage there. Because of the way the system is built I can't connect ...
debugging
linux
null
null
null
null
open
Can I set a data breakpoint in runtime in System C? === I have a class in system-C with some data members as such: long double x[8]; I'm initializing it in the construction like this: for (i = 0; i < 8; ++i) { x = 0; } But the first time I use it in my code I have garbage there. ...
0
56,342
09/11/2008 11:47:03
5,791
09/11/2008 11:41:05
1
0
What's the best way of parsing strings?
We've got a scenario that requires us to parse lots of e-mail (plain text), each e-mail 'type' is the result of a script being run against various platforms. Some are tab delimited, some are space delimited, some we simply don't know yet. We'll need to support more 'formats' in the future too. Do we go for a solu...
c#
parsing
projects-and-solutions
e-mail
null
null
open
What's the best way of parsing strings? === We've got a scenario that requires us to parse lots of e-mail (plain text), each e-mail 'type' is the result of a script being run against various platforms. Some are tab delimited, some are space delimited, some we simply don't know yet. We'll need to support more 'forma...
0
56,347
09/11/2008 11:50:24
445,087
09/02/2008 17:25:48
371
8
Iterators in C++ (stl) vs Java, is there a conceptual difference?
I'm returning to c++ after being away for a bit and trying to dust off the old melon. In Java Iterator is an interface to a container having methods: hasNext(), next() and remove(). The presence of hasNext() means it **has the concept of a limit** for the container being traversed. //with an Iterator It...
java
c++
iteration
iterator
null
null
open
Iterators in C++ (stl) vs Java, is there a conceptual difference? === I'm returning to c++ after being away for a bit and trying to dust off the old melon. In Java Iterator is an interface to a container having methods: hasNext(), next() and remove(). The presence of hasNext() means it **has the concept of a limit...
0
56,357
09/11/2008 11:53:53
5,789
09/11/2008 11:33:18
1
1
Precompilation and startup times on ASP.Net
I am developping a (relatively small) website in ASP.Net 2.0. I am also using nAnt to perform some easy tweaking on my project before delivering executables. In its current state, the website is "precompiled" using aspnet_compiler.exe -nologo -v ${Appname} -u ${target} I have noticed that after the IIS pool is r...
c#
asp.net
startup
compilation
aspnet-compiler
null
open
Precompilation and startup times on ASP.Net === I am developping a (relatively small) website in ASP.Net 2.0. I am also using nAnt to perform some easy tweaking on my project before delivering executables. In its current state, the website is "precompiled" using aspnet_compiler.exe -nologo -v ${Appname} -u ${targe...
0
56,362
09/11/2008 11:58:06
5,731
09/11/2008 06:21:01
1
4
Directory layout for pure Ruby project
I'm starting to learn ruby. I'm also a day-to-day C++ dev. For C++ projects I usually go with following dir structure / -/bin <- built binaries -/build <- build time temporary object (eg. .obj, cmake intermediates) -/doc <- manuals and/or Doxygen docs -/src --/module-1 --/mod...
ruby
layout
sourcecode
null
null
null
open
Directory layout for pure Ruby project === I'm starting to learn ruby. I'm also a day-to-day C++ dev. For C++ projects I usually go with following dir structure / -/bin <- built binaries -/build <- build time temporary object (eg. .obj, cmake intermediates) -/doc <- manuals and/or Doxygen doc...
0
56,375
09/11/2008 12:05:59
1,670
08/17/2008 21:56:17
47
2
Are non-generic collections in .NET obsolete?
Put differently: Is there a good reason to choose a loosely-typed collection over a type-safe one (HashTable vs. Dictionary)? Are they still there only for compatibility? As far as I understand, generic collections not only are type-safe, but their performance is better.
.net
collections
null
null
null
null
open
Are non-generic collections in .NET obsolete? === Put differently: Is there a good reason to choose a loosely-typed collection over a type-safe one (HashTable vs. Dictionary)? Are they still there only for compatibility? As far as I understand, generic collections not only are type-safe, but their performance ...
0
56,388
09/11/2008 12:14:50
2,974
08/26/2008 09:39:16
740
59
When is it NIH vs. being a sensible investment of time?
So I'm sitting here playing catch up listening to [Stack Overflow Podcast #20][1] and Joel is talking about the Excel guys at MS who wrote their own compiler to improve the performance of code that worked with pointers and it got me wondering when is it NIH versus being a sensible investment of time? Given...
nih
improvement
null
null
null
null
open
When is it NIH vs. being a sensible investment of time? === So I'm sitting here playing catch up listening to [Stack Overflow Podcast #20][1] and Joel is talking about the Excel guys at MS who wrote their own compiler to improve the performance of code that worked with pointers and it got me wondering when i...
0
56,391
09/11/2008 12:17:50
2,796
08/25/2008 07:37:57
111
9
Autmatically checking for a new version of my application
Trying to honor a feature request from our customers, I'd like that my application, when Internet is available, check on our website if a new version is available. The problem is that I have no idea about what have to done on the server side. I can imagine that my application (developped in C++ using Qt) has to s...
c++
qt
null
null
null
null
open
Autmatically checking for a new version of my application === Trying to honor a feature request from our customers, I'd like that my application, when Internet is available, check on our website if a new version is available. The problem is that I have no idea about what have to done on the server side. I can im...
0
56,402
09/11/2008 12:24:24
5,764
09/11/2008 10:15:46
1
0
Aligning text in SVG
I am trying to SVG XML documents with a mixture of lines and brief text snippets (two or three words typically). The major problem I'm having is getting the text aligning with line segments. For horizontal alignment I can use `text-anchor` with `left`, `middle` or `right`. I can't find a equivalent for vertical ali...
xml
svg
null
null
null
null
open
Aligning text in SVG === I am trying to SVG XML documents with a mixture of lines and brief text snippets (two or three words typically). The major problem I'm having is getting the text aligning with line segments. For horizontal alignment I can use `text-anchor` with `left`, `middle` or `right`. I can't find a e...
0
56,411
09/11/2008 12:27:22
4,165
09/02/2008 08:35:08
511
20
How to test randomness (case in point - Shuffling)
First off, this question is ripped out from [this][1] question. I did it because I think this part is bigger than a sub-part of a longer question. If it offends, please pardon me. Assume that you have a algorithm that generates randomness. Now how do you test it? Or to be more direct - Assume you have an algorithm ...
math
theory
puzzle
rng
null
null
open
How to test randomness (case in point - Shuffling) === First off, this question is ripped out from [this][1] question. I did it because I think this part is bigger than a sub-part of a longer question. If it offends, please pardon me. Assume that you have a algorithm that generates randomness. Now how do you test i...
0
56,417
09/11/2008 12:29:09
3,497
08/28/2008 19:06:00
19
6
Anyone used Dabo for a medium-big project?
We're at the beginning of a new ERP-ish client-server application, developed as a Python rich client. We're currently evaluating Dabo as our main framework and it looks quite nice and easy to use, but I was wondering, has anyone used it for medium-to-big sized projects? Thanks for your time!
python
dabo
null
null
null
null
open
Anyone used Dabo for a medium-big project? === We're at the beginning of a new ERP-ish client-server application, developed as a Python rich client. We're currently evaluating Dabo as our main framework and it looks quite nice and easy to use, but I was wondering, has anyone used it for medium-to-big sized projects? ...
0
56,424
09/11/2008 12:31:09
887
08/10/2008 07:50:30
305
15
What can cause a reduction in frame rate when upgrading a graphics card?
We have a two-screen DirectX application that previously ran at a consistent 60 FPS (the monitors' sync rate) using a NVIDIA 8400GS (256MB). However, when we swapped out the card for one with 512 MB of RAM the frame rate struggles to get above 40 FPS. (It only gets this high because we're using triple-buffering.) The t...
c++
hardware
directx
null
null
null
open
What can cause a reduction in frame rate when upgrading a graphics card? === We have a two-screen DirectX application that previously ran at a consistent 60 FPS (the monitors' sync rate) using a NVIDIA 8400GS (256MB). However, when we swapped out the card for one with 512 MB of RAM the frame rate struggles to get abov...
0
56,427
09/11/2008 12:32:47
572
08/06/2008 20:56:54
3,598
274
Is there any resources for becoming a Cygwin "power user"?
I've got it configured, but I want more from it...maybe Cygwin isn't the right tool, but I like how it provides a *nix-like environment within Windows.
cygwin
windows
nix
null
null
null
open
Is there any resources for becoming a Cygwin "power user"? === I've got it configured, but I want more from it...maybe Cygwin isn't the right tool, but I like how it provides a *nix-like environment within Windows.
0
56,443
09/11/2008 12:42:55
4,660
09/05/2008 02:23:19
111
4
Create drop down list options from enum in a DataGridView
I currently have a class and I'm trying to create an easy GUI to create a collection of this class. Most of the attributes of this class are strings. However, one of the attributes I want the user to be able to set is an Enum. Therefore, I would like the user interface, to have a dropdownlist for this enum, to restric...
c#
.net
gui
.net-2.0
winforms
null
open
Create drop down list options from enum in a DataGridView === I currently have a class and I'm trying to create an easy GUI to create a collection of this class. Most of the attributes of this class are strings. However, one of the attributes I want the user to be able to set is an Enum. Therefore, I would like the u...
0
56,446
09/11/2008 12:44:49
1,111
08/12/2008 12:40:23
180
20
.Net arrays with lower bound > 0
Although perhaps a bizare thing to want to do, I need to create an Array in .Net with a lower bound > 0. This at first seems to be possible, using: Array.CreateInstance(typeof(Object), New Integer[] {2}, New Integer[] {9}) Produces the desired results (an array of objects with a lower bound set to 9). However...
.net
arrays
null
null
null
null
open
.Net arrays with lower bound > 0 === Although perhaps a bizare thing to want to do, I need to create an Array in .Net with a lower bound > 0. This at first seems to be possible, using: Array.CreateInstance(typeof(Object), New Integer[] {2}, New Integer[] {9}) Produces the desired results (an array of objects...
0
56,472
09/11/2008 12:53:42
5,577
09/10/2008 14:19:27
9
1
Sending messages to objects while debugging Objective-C in gdb, without symbols.
I'm trying to send messages to Objective-C objects in gdb. (gdb) p $esi $2 = (void *) 0x1268160 (gdb) po $esi <NSArray: 0x1359c0> (gdb) po [$esi count] Target does not respond to this message selector. I can't send any message to it. Am i missing something? Do I really need the symb...
osx
debugging
gdb
objective-c
reversing
null
open
Sending messages to objects while debugging Objective-C in gdb, without symbols. === I'm trying to send messages to Objective-C objects in gdb. (gdb) p $esi $2 = (void *) 0x1268160 (gdb) po $esi <NSArray: 0x1359c0> (gdb) po [$esi count] Target does not respond to this message selector. ...
0
56,478
09/11/2008 13:02:32
5,798
09/11/2008 12:13:01
1
0
Howto interact with Windows Media Player in C#
I am looking for a way to interact with a standalone full version of Windows Media Player. Mostly I need to know the Path of the currently played track. The iTunes SDK makes this really easy but unfortunately there really isn't any way to do it with Windows Media Player, at least not in .Net(C#) without any heavy...
c#
media
wmp
windows
null
null
open
Howto interact with Windows Media Player in C# === I am looking for a way to interact with a standalone full version of Windows Media Player. Mostly I need to know the Path of the currently played track. The iTunes SDK makes this really easy but unfortunately there really isn't any way to do it with Windows Medi...
0
56,479
09/11/2008 13:02:52
3,212
08/27/2008 13:16:46
48
0
Will .NET MVC give me the HTML/CSS/JS separation I need?
I'm working with my ASP.NET development team to try and create "better" (i.e. cleaner) HTML when rendering pages. At the moment, .NET has a nasty tendency to do things like dump JavaScript into the page, making it a mandatory requirement on form controls and not allowing forms to work when JS isn't available. In some...
.net
javascript
html
css
mvc
null
open
Will .NET MVC give me the HTML/CSS/JS separation I need? === I'm working with my ASP.NET development team to try and create "better" (i.e. cleaner) HTML when rendering pages. At the moment, .NET has a nasty tendency to do things like dump JavaScript into the page, making it a mandatory requirement on form controls an...
0
56,500
09/11/2008 13:15:18
5,816
09/11/2008 13:15:18
1
0
Can't access variable in C++ DLL from a C app
I'm stuck on a fix to a legacy Visual C++ 6 app. In the C++ DLL source I have put extern "C" _declspec(dllexport) char* MyNewVariable = 0; which results in MyNewVariable showing up (nicely undecorated) in the export table (as shown by dumpbin /exports blah.dll). However, I can't figure out how to declare the vari...
c
c++
interop
null
null
null
open
Can't access variable in C++ DLL from a C app === I'm stuck on a fix to a legacy Visual C++ 6 app. In the C++ DLL source I have put extern "C" _declspec(dllexport) char* MyNewVariable = 0; which results in MyNewVariable showing up (nicely undecorated) in the export table (as shown by dumpbin /exports blah.dll). ...
0
56,505
09/11/2008 13:17:26
4,928
09/06/2008 18:16:34
33
1
Is there a C++ users group in the Northeast (of the United States)?
I noticed recently that there is a [Northwest C++ Users Group][1]. Is there anything similar in the Northeast? [1]: http://nwcpp.org/
c++
usersgroup
null
null
null
null
open
Is there a C++ users group in the Northeast (of the United States)? === I noticed recently that there is a [Northwest C++ Users Group][1]. Is there anything similar in the Northeast? [1]: http://nwcpp.org/
0
56,518
09/11/2008 13:25:20
93
08/01/2008 18:23:58
360
12
C#: Is there any difference between bool? and Nullable<bool> ?
In C# are the nullable primitive types (i.e. `bool?`) just aliases for their corresponding `Nullable<T>` type or is there a difference between the two?
c#
nullable
null
null
null
null
open
C#: Is there any difference between bool? and Nullable<bool> ? === In C# are the nullable primitive types (i.e. `bool?`) just aliases for their corresponding `Nullable<T>` type or is there a difference between the two?
0
56,543
09/11/2008 13:38:17
797
08/09/2008 02:14:04
2,281
89
Recovering from a slightly out of date subversion repository backup
A problem I ran into a while back I never found a good solution for... Say you have a working copy checked out from subversion at revision 7500, and the disk holding the current repository dies. You've got a backup of the repository at, say, revision 7450. It's easy to restore the repository backup, but any attempt ...
svn
version-control
sysadmin
null
null
null
open
Recovering from a slightly out of date subversion repository backup === A problem I ran into a while back I never found a good solution for... Say you have a working copy checked out from subversion at revision 7500, and the disk holding the current repository dies. You've got a backup of the repository at, say, re...
0
56,546
09/11/2008 13:40:04
5,742
09/11/2008 07:37:00
8
1
activerecord as model, is this a good idea?
Recently thanks to rails' popularity, many people start using activerecord as model. however, before I heard of rails (my peer group was not a fan of open source stuff, we were taught in a .NET school...) and while I was doing my final year project, i found this definition for a model > The model represents enterpri...
php
mvc
activerecord
null
null
null
open
activerecord as model, is this a good idea? === Recently thanks to rails' popularity, many people start using activerecord as model. however, before I heard of rails (my peer group was not a fan of open source stuff, we were taught in a .NET school...) and while I was doing my final year project, i found this definiti...
0
56,547
09/11/2008 13:40:19
5,556
09/10/2008 14:01:15
1
3
How do you perform a CROSS JOIN with LINQ to SQL?
How do you perform a CROSS JOIN with LINQ to SQL?
c#
linq
linq-to-sql
crossjoin
null
null
open
How do you perform a CROSS JOIN with LINQ to SQL? === How do you perform a CROSS JOIN with LINQ to SQL?
0
56,553
09/11/2008 13:42:34
3,785
08/30/2008 19:40:07
21
5
Using an external "windows"-keyboard under Mac OS X
I use a MacBook, but I've got a usual keyboard attached to it. The problem is that the keys don't exactly map 1-to-1. One thing is the APPLE and ALT keys. They map to WIN and ALT, but they are usually physically inverted, so if you want to use them with the same layout you have to invert them in the OS. The Functio...
osx
keyboard
ergonomics
null
null
null
open
Using an external "windows"-keyboard under Mac OS X === I use a MacBook, but I've got a usual keyboard attached to it. The problem is that the keys don't exactly map 1-to-1. One thing is the APPLE and ALT keys. They map to WIN and ALT, but they are usually physically inverted, so if you want to use them with the sa...
0
56,554
09/11/2008 13:42:35
1,190
08/13/2008 12:15:38
1,338
101
What is the proper regular expression for an unescaped backslash before a character?
You could always consider compiling your Ruby to JVM byte-code (via [JRuby][1]) or .NET byte-code (via [IronRuby][2]) to distribute to people who have those virtual machines and don't want to install a Ruby runtime. You might want to check out [Shoes][3] for building desktop applications in Ruby. Rails really is tu...
regex
null
null
null
null
null
open
What is the proper regular expression for an unescaped backslash before a character? === You could always consider compiling your Ruby to JVM byte-code (via [JRuby][1]) or .NET byte-code (via [IronRuby][2]) to distribute to people who have those virtual machines and don't want to install a Ruby runtime. You might w...
0
56,555
09/11/2008 13:43:14
123
08/02/2008 08:01:26
1,580
86
What are your essential phone-screen questions?
I loved the [article from Steve Yegge][1] where he explains to get the most out of phone interviews 1) Coding. The candidate has to write some simple code, with correct syntax, in C, C++, or Java. 2) OO design. The candidate has to define basic OO concepts, and come up with classes to model a simple probl...
interview-questions
null
null
null
null
04/28/2012 16:03:36
not constructive
What are your essential phone-screen questions? === I loved the [article from Steve Yegge][1] where he explains to get the most out of phone interviews 1) Coding. The candidate has to write some simple code, with correct syntax, in C, C++, or Java. 2) OO design. The candidate has to define basic OO conce...
4
56,561
09/11/2008 13:45:30
3,114
08/26/2008 18:05:52
594
45
What is the best way to convert between char* and System::String in C++/CLI
What is the approved way to convert from char* to System::string and back in C++/CLI? I found a few references to marshal_to<> templated functions on Google, but it appears that this feature never made the cut for Visual Studio 2005 (and isn't in Visual Studio 2008 either, AFAIK). I have also seen some code on [Stan Li...
.net
c++
string
c++-cli
null
null
open
What is the best way to convert between char* and System::String in C++/CLI === What is the approved way to convert from char* to System::string and back in C++/CLI? I found a few references to marshal_to<> templated functions on Google, but it appears that this feature never made the cut for Visual Studio 2005 (and i...
0
56,568
09/11/2008 13:48:27
5,742
09/11/2008 07:37:00
8
1
performing datetime related operations in PHP
how do you actually perform datetime operations such as adding date, finding difference, find out how many days excluding weekends in an interval? i personally started to pass some of these operations to my postgresql dbms as typically i would only need to issue one sql statement to obtain an answer, however, to do it ...
php
sql
postgresql
datetime-operation
null
null
open
performing datetime related operations in PHP === how do you actually perform datetime operations such as adding date, finding difference, find out how many days excluding weekends in an interval? i personally started to pass some of these operations to my postgresql dbms as typically i would only need to issue one sq...
0
56,574
09/11/2008 13:50:00
797
08/09/2008 02:14:04
2,296
89
Don't repeat yourself vs Internationalisation
A while back I was reading the W3C article on '[Re-using Strings in Scripted Content][1]', which contains some useful advice on internationalisation, but which strikes me as at odds iwth the DRY (Don't Repeat Yourself) principle of eliminating repetitive code. To take their example, we might have some code like this...
internationalization
null
null
null
null
null
open
Don't repeat yourself vs Internationalisation === A while back I was reading the W3C article on '[Re-using Strings in Scripted Content][1]', which contains some useful advice on internationalisation, but which strikes me as at odds iwth the DRY (Don't Repeat Yourself) principle of eliminating repetitive code. To ta...
0