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
53,497
09/10/2008 05:57:24
4,883
09/06/2008 10:24:59
514
5
Regular expression that matches valid IPv6 addresses
I'm having trouble writing a regular expression that matches valid IPv6 addresses, including those in their compressed form (with "::" or leading zeros omitted from each byte pair). Can someone suggest a regular expression that would fulfill the requirement? I'm considering expanding each byte pair and matching...
regex
networking
null
null
null
null
open
Regular expression that matches valid IPv6 addresses === I'm having trouble writing a regular expression that matches valid IPv6 addresses, including those in their compressed form (with "::" or leading zeros omitted from each byte pair). Can someone suggest a regular expression that would fulfill the requirement...
0
53,501
09/10/2008 06:04:13
2,361
08/21/2008 20:41:09
490
26
It is possible to determine which process starts my .Net application?
I am developing console application in .Net and I want to change a behavior a little based on information that application was started from cmd.exe or from explorer.exe. Is it possible?
.net
windows
process-management
null
null
null
open
It is possible to determine which process starts my .Net application? === I am developing console application in .Net and I want to change a behavior a little based on information that application was started from cmd.exe or from explorer.exe. Is it possible?
0
53,511
09/10/2008 06:19:42
4,474
09/04/2008 01:17:32
1
3
Plain text passwords in Ruby on Rails using Restful_Authentication
If i use restful_authentication in my ruby on rails app are passwords transfered between the broswer and the server in paintext? And if so how worried should I be about it?
ruby
rest
authentication
null
null
null
open
Plain text passwords in Ruby on Rails using Restful_Authentication === If i use restful_authentication in my ruby on rails app are passwords transfered between the broswer and the server in paintext? And if so how worried should I be about it?
0
53,513
09/10/2008 06:20:11
4,872
09/06/2008 09:14:55
83
2
In Python, what is the best way to check if a list is empty?
For example, if passed the following: a = [] How do I check to see if 'a' is empty?
python
list
null
null
null
null
open
In Python, what is the best way to check if a list is empty? === For example, if passed the following: a = [] How do I check to see if 'a' is empty?
0
53,527
09/10/2008 06:33:55
4,872
09/06/2008 09:14:55
83
2
How can you unit test a database in SQL Server?
What are some of the ways? What frameworks can you use?
sql-server
unit-testing
mssql
null
null
null
open
How can you unit test a database in SQL Server? === What are some of the ways? What frameworks can you use?
0
53,532
09/10/2008 06:42:34
1,702
08/18/2008 05:39:28
16
6
Unit-testing servlets
I have a bunch of servlets running under the Tomcat servlet container. I would like to separate test code from production code, so I considered using a test framework. JUnit is nicely integrated into Eclipse, but I failed to make it run servlets using a running Tomcat server. Could you please recommend a unit testing ...
unit-testing
eclipse
tomcat
servlets
junit
null
open
Unit-testing servlets === I have a bunch of servlets running under the Tomcat servlet container. I would like to separate test code from production code, so I considered using a test framework. JUnit is nicely integrated into Eclipse, but I failed to make it run servlets using a running Tomcat server. Could you plea...
0
53,538
09/10/2008 06:56:15
1,612
08/17/2008 14:52:15
392
30
MSSQL Freetext match - how do I sort by relevance
Is it possible to order results in MS SQL Server 2005 by the relevance of a freetext match? In MySQL you can use the (roughly equivalent) MATCH function in the ORDER BY section, but I haven't found any equivalence in MSSQL. From the [MySQL docs][1]: > For each row in the table, MATCH() returns a relevance value; ...
sql
mssql
full-text-search
freetext
null
null
open
MSSQL Freetext match - how do I sort by relevance === Is it possible to order results in MS SQL Server 2005 by the relevance of a freetext match? In MySQL you can use the (roughly equivalent) MATCH function in the ORDER BY section, but I haven't found any equivalence in MSSQL. From the [MySQL docs][1]: > For eac...
0
53,543
09/10/2008 07:04:43
4,491
09/04/2008 06:44:23
288
6
What are some strategies to write python code that works in python, jython and ironpython
Having tries to target two of these environments at the same time I can safely say the if you have to use a database etc. you end up having to write unique code for that environment. Have you got a great way to handle this situation?
python
ironpython
jython
null
null
null
open
What are some strategies to write python code that works in python, jython and ironpython === Having tries to target two of these environments at the same time I can safely say the if you have to use a database etc. you end up having to write unique code for that environment. Have you got a great way to handle this si...
0
53,545
09/10/2008 07:05:13
3,834
08/31/2008 06:25:52
24
4
Get the App.Config of Another Exe
I have an exe with an App.Config file. Now I want to create a wrapper dll around the exe in order to consume some of the functionalities. The question is how can I access the app.config property in the exe from the wrapper dll?
c#
null
null
null
null
null
open
Get the App.Config of Another Exe === I have an exe with an App.Config file. Now I want to create a wrapper dll around the exe in order to consume some of the functionalities. The question is how can I access the app.config property in the exe from the wrapper dll?
0
53,555
09/10/2008 07:16:30
4,491
09/04/2008 06:44:23
288
6
How would you go about for switching a site from Prototype to jQuery
I have written a site in Prototype but want to switch to jQuery. Any ideas on how best make the switch?
javascript
jquery
prototype
null
null
null
open
How would you go about for switching a site from Prototype to jQuery === I have written a site in Prototype but want to switch to jQuery. Any ideas on how best make the switch?
0
53,558
09/10/2008 07:25:05
4,189
09/02/2008 09:19:58
16
6
Favorite advanced F# tutorial
I am looking into F# and have read a few "Hello World!" intros that shows off the very basic syntax of the language. I am now ready to move on and try more advanced features, ie. functional programming styles. So my question is: What is your favorite advanced level tutorial on F#. I am not interested in basic introd...
f#
functional-programming
null
null
null
null
open
Favorite advanced F# tutorial === I am looking into F# and have read a few "Hello World!" intros that shows off the very basic syntax of the language. I am now ready to move on and try more advanced features, ie. functional programming styles. So my question is: What is your favorite advanced level tutorial on F#. ...
0
53,562
09/10/2008 07:32:38
2,670
08/24/2008 10:03:28
285
24
Enabling Hibernate second-level cache with JPA on JBoss 4.2
What are the steps required to enable Hibernate's second-level cache, when using the Java Persistence API (annotated entities)? How do I check that it's working? I'm using JBoss 4.2.2.GA. From the Hibernate documentation, it seems that I need to enable the cache and specify a cache provider in *persistence.xml*, lik...
java
hibernate
caching
jpa
null
null
open
Enabling Hibernate second-level cache with JPA on JBoss 4.2 === What are the steps required to enable Hibernate's second-level cache, when using the Java Persistence API (annotated entities)? How do I check that it's working? I'm using JBoss 4.2.2.GA. From the Hibernate documentation, it seems that I need to enable...
0
53,569
09/10/2008 07:44:53
893
08/10/2008 08:27:00
2,422
105
How to get the changes on a branch in git
What is the best way to get a log of commits on a branch since the time it was branched from the current branch? My solution so far is: git log $(git merge-base HEAD branch)..branch The documentation for [git-diff](http://www.kernel.org/pub/software/scm/git/docs/git-diff.html) indicates that "git diff A...B" ...
git
branch
null
null
null
null
open
How to get the changes on a branch in git === What is the best way to get a log of commits on a branch since the time it was branched from the current branch? My solution so far is: git log $(git merge-base HEAD branch)..branch The documentation for [git-diff](http://www.kernel.org/pub/software/scm/git/docs/...
0
53,583
09/10/2008 07:58:07
2,152
08/20/2008 16:02:25
1
0
NMBLookup OS X returning inconsistant results
We're trying to get SMB volume listings in our OS X application, and have been using NMBLookup, as suggested by Apple, to get listings. However, more often than not, we're not able to get a full listing of available SMB volumes using the tool. We've got a good benchmark in that we can see the full listing the Apple Fin...
osx
smb
finder
null
null
null
open
NMBLookup OS X returning inconsistant results === We're trying to get SMB volume listings in our OS X application, and have been using NMBLookup, as suggested by Apple, to get listings. However, more often than not, we're not able to get a full listing of available SMB volumes using the tool. We've got a good benchmar...
0
53,597
09/10/2008 08:08:55
4,884
09/06/2008 10:28:40
26
3
How do I compose existing Linq Expressions
I want to compose the results of two Linq Expressions. They exist in the form Expression<Func<T, bool>> So the two that I want to compose are essentially delegates on a parameter (of type T) that both return a boolean. The result I would like composed would be the logical evaluation of the booleans. I would p...
c#
linq
null
null
null
null
open
How do I compose existing Linq Expressions === I want to compose the results of two Linq Expressions. They exist in the form Expression<Func<T, bool>> So the two that I want to compose are essentially delegates on a parameter (of type T) that both return a boolean. The result I would like composed would be t...
0
53,599
09/10/2008 08:10:11
4,880
09/06/2008 10:12:37
6
0
regex for parsing resource (.rc) files
Ulimately I just wanted to extract strings from the .rc file so I could translate them, but anything that goes with .rc files works for me.
c++
regex
mfc
internationalization
null
null
open
regex for parsing resource (.rc) files === Ulimately I just wanted to extract strings from the .rc file so I could translate them, but anything that goes with .rc files works for me.
0
53,609
09/10/2008 08:21:02
123
08/02/2008 08:01:26
1,321
66
What does 'foo' really mean?
I hope this qualifies as a programming question, as in any programming tutorial, you eventually come across 'foo' in the code examples. (yeah, right?) what does 'foo' really mean? If it is meant to mean **nothing**, when did it begin to be used so? Cheers
language-agnostic
coding-style
example
null
null
null
open
What does 'foo' really mean? === I hope this qualifies as a programming question, as in any programming tutorial, you eventually come across 'foo' in the code examples. (yeah, right?) what does 'foo' really mean? If it is meant to mean **nothing**, when did it begin to be used so? Cheers
0
53,618
09/10/2008 08:26:32
4,980
09/07/2008 07:34:58
1
0
How to control IIS 5.1 from command line?
I found some informations about controlling IIS 5.1 from command line via adsutil.vbs (http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true). The utility is available at c:\InetPub\AdminScripts. The utility throw only errors like the following:...
iis
windows-xp
null
null
null
null
open
How to control IIS 5.1 from command line? === I found some informations about controlling IIS 5.1 from command line via adsutil.vbs (http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true). The utility is available at c:\InetPub\AdminScripts. Th...
0
53,621
09/10/2008 08:27:14
966
08/11/2008 07:35:55
51
5
Why is the 'Resource Pool' not supported on the current platform?
What could be the possible causes for the following exception? System.PlatformNotSupportedException: 'ResourcePool' is not supported on the current platform. at System.EnterpriseServices.Platform.Assert(Boolean fSuccess, String function) at System.EnterpriseServices.Platform.Assert(Version platfo...
.net
sql-server
connection-pooling
null
null
null
open
Why is the 'Resource Pool' not supported on the current platform? === What could be the possible causes for the following exception? System.PlatformNotSupportedException: 'ResourcePool' is not supported on the current platform. at System.EnterpriseServices.Platform.Assert(Boolean fSuccess, String functi...
0
53,623
09/10/2008 08:27:45
184
08/03/2008 05:34:19
2,220
36
How to get whois information of a domain name in my program?
I want to get whois information of a domain name from my c#/java programs. Is there a simple way to do this?
c#
java
whois
domain-name
null
null
open
How to get whois information of a domain name in my program? === I want to get whois information of a domain name from my c#/java programs. Is there a simple way to do this?
0
53,627
09/10/2008 08:30:32
2,745
08/24/2008 20:58:00
297
18
How to deal with poorly informed customer choices
Here's a scenario I'm sure you're all familiar with. 1. You have a fairly "hands off" customer, who really doesn't want to get too involved in the decision making despite your best efforts. 2. An experienced development team spend hours discussing the pros and cons of a particular approach to a problem and co...
methodology
customer
null
null
null
null
open
How to deal with poorly informed customer choices === Here's a scenario I'm sure you're all familiar with. 1. You have a fairly "hands off" customer, who really doesn't want to get too involved in the decision making despite your best efforts. 2. An experienced development team spend hours discussing the pro...
0
53,629
09/10/2008 08:32:20
1,428
08/15/2008 15:27:39
352
14
History of changes to a particular line of code in Subversion?
Is it possible to see the history of changes to a particular line of code in a Subversion repository? I'd like, for instance, to be able to see when a particular statement was added or when that statement was changed, even if its line number is not the same anymore.
subversion
null
null
null
null
null
open
History of changes to a particular line of code in Subversion? === Is it possible to see the history of changes to a particular line of code in a Subversion repository? I'd like, for instance, to be able to see when a particular statement was added or when that statement was changed, even if its line number is not the...
0
53,639
09/10/2008 08:37:39
4,491
09/04/2008 06:44:23
310
6
How would you go about using the ASP.NET Control Toolkit in a project that doesn't use ASP.NET on the back end
Your backend could be PHP or Python but you want to use the controls from the ASP.NET toolkit is there a successful way to do this?
asp.net
ajaxtoolkit
ajax
javascript
null
null
open
How would you go about using the ASP.NET Control Toolkit in a project that doesn't use ASP.NET on the back end === Your backend could be PHP or Python but you want to use the controls from the ASP.NET toolkit is there a successful way to do this?
0
53,649
09/10/2008 08:53:32
195
08/03/2008 11:02:15
139
9
creating an object without knowing the class name at design time
using reflection , I need to investigate a user DLL and create an object of a class in it. what is the simple way of doing it ?
c#
reflection
null
null
null
null
open
creating an object without knowing the class name at design time === using reflection , I need to investigate a user DLL and create an object of a class in it. what is the simple way of doing it ?
0
53,652
09/10/2008 08:56:27
3,263
08/27/2008 15:33:09
75
10
DataTable to readable text string
This might be a bit on the silly side of things but I need to send the contents of a DataTable (unknown columns, unknown contents) via a text e-mail. Basic ideea is to loop over rows and over columns and output all cell contents into a StringBuilder using .ToString(). Formatting is a big issue though. Any tips/...
c#
datatable
formatting
null
null
null
open
DataTable to readable text string === This might be a bit on the silly side of things but I need to send the contents of a DataTable (unknown columns, unknown contents) via a text e-mail. Basic ideea is to loop over rows and over columns and output all cell contents into a StringBuilder using .ToString(). Form...
0
53,664
09/10/2008 09:03:49
4,639
09/04/2008 23:07:22
45
1
How to effectively work with multiple files in vim?
I've started using vim to develop Perl scripts and am starting to find it very powerful. One thing I like is to be able to open multiple files at once with e.g. "vi main.pl maintenance.pl" and then hop between them with: :n :prev and see which file are open with :args And to add a file, I can say: ...
vim
vi
null
null
null
null
open
How to effectively work with multiple files in vim? === I've started using vim to develop Perl scripts and am starting to find it very powerful. One thing I like is to be able to open multiple files at once with e.g. "vi main.pl maintenance.pl" and then hop between them with: :n :prev and see which file are...
0
53,666
09/10/2008 09:06:35
3,024
08/26/2008 12:30:57
233
12
Rhino Mocks - How can I test that at least one of a group of methods is called?
Say I have an interface IFoo which I am mocking. There are 3 methods on this interface. I need to test that the system under test calls at least one of the three methods. I don't care how many times, or with what arguments it does call, but the case where it ignores all the methods and does not touch the IFoo mock is t...
unit-testing
mocking
rhino-mocks
bdd
null
null
open
Rhino Mocks - How can I test that at least one of a group of methods is called? === Say I have an interface IFoo which I am mocking. There are 3 methods on this interface. I need to test that the system under test calls at least one of the three methods. I don't care how many times, or with what arguments it does call...
0
53,670
09/10/2008 09:10:59
3,205
08/27/2008 13:06:13
456
29
How to efficiently SQL select neweset entries from a MySQL database?
I have a database containing stock price history. I want to select most recent prices for every stock that is listed. I know PostreSQL has a <a href="http://stackoverflow.com/questions/25224/joining-latest-of-various-usermetadata-tags-to-user-rows#27159">DISTINCT ON</a> statement that would suit ideally here. Table ...
sql
mysql
null
null
null
null
open
How to efficiently SQL select neweset entries from a MySQL database? === I have a database containing stock price history. I want to select most recent prices for every stock that is listed. I know PostreSQL has a <a href="http://stackoverflow.com/questions/25224/joining-latest-of-various-usermetadata-tags-to-user-row...
0
53,676
09/10/2008 09:14:47
5,351
09/09/2008 10:19:17
11
3
How to resolve ORA-011033: ORACLE initialization or shutdown in progress
When trying to connect to an ORACLE user via TOAD (Quest Software) or any other means (Oracle Enterprise Manager) I simply get the error: > ORA-011033: ORACLE initialization or > shutdown in progress ---------- [in the spirit of StackOverflow I will answer this one myself - at least I'll relate how I reso...
database
oracle
null
null
null
null
open
How to resolve ORA-011033: ORACLE initialization or shutdown in progress === When trying to connect to an ORACLE user via TOAD (Quest Software) or any other means (Oracle Enterprise Manager) I simply get the error: > ORA-011033: ORACLE initialization or > shutdown in progress ---------- [in the spirit of...
0
53,693
09/10/2008 09:26:58
2,041
08/19/2008 23:02:38
145
12
Amazon SimpleDB
Has anyone considered using something along the lines of the Amazon SimpleDB data store as their backend database? SQL Server hosting (at least in the UK) is expensive so could something like this along with cloud file storage (S3) be used for building apps that could grow with your application. Great in theory b...
amazon
amazon-s3
amazon-simpledb
null
null
null
open
Amazon SimpleDB === Has anyone considered using something along the lines of the Amazon SimpleDB data store as their backend database? SQL Server hosting (at least in the UK) is expensive so could something like this along with cloud file storage (S3) be used for building apps that could grow with your application....
0
10,424,320
05/03/2012 02:29:28
453,513
09/21/2010 05:46:53
773
33
Credentials.acquireTGTFromCache(null, null) returns null using jre 7
I'm admittedly unfamiliar with the JAAS API, but need to help out with investigation with a problem we encountered while upgrading to jre 7. Apps that used to be able to auto-login using the currently logged on Windows users name stops working. After some poking around, it comes to this line of code. sun.securit...
java
kerberos
jaas
jdk7
null
null
open
Credentials.acquireTGTFromCache(null, null) returns null using jre 7 === I'm admittedly unfamiliar with the JAAS API, but need to help out with investigation with a problem we encountered while upgrading to jre 7. Apps that used to be able to auto-login using the currently logged on Windows users name stops working. A...
0
10,424,334
05/03/2012 02:31:47
1,371,395
05/03/2012 02:04:38
1
0
Encryption in .NET and decryption in Android throws BadPaddingException: pad block corrupted
I did lot of research but i couldn't find answer to my issue. I'm doing AES encryption (Rijndael block size 128 bits) in .NET and decryption in Android (AES) with same password, salt & IV between them. C# Encryption code snippet: byte[] initVectorBytes = Encoding.ASCII.GetBytes(initVector)...
android
.net
aes
rijndaelmanaged
null
null
open
Encryption in .NET and decryption in Android throws BadPaddingException: pad block corrupted === I did lot of research but i couldn't find answer to my issue. I'm doing AES encryption (Rijndael block size 128 bits) in .NET and decryption in Android (AES) with same password, salt & IV between them. C# En...
0
10,424,335
05/03/2012 02:31:50
1,371,402
05/03/2012 02:11:47
1
0
PHP - Convert multidimensional array to 2D array with dot notation keys
There are plenty of tips and code examples out there of accessing PHP arrays with dot notation, but I would like to do somewhat the opposite. I would like to take a multidimensional array like this: $myArray = array( 'key1' => 'value1', 'key2' => array( 'subkey' => 'subkeyval' ...
php
arrays
null
null
null
null
open
PHP - Convert multidimensional array to 2D array with dot notation keys === There are plenty of tips and code examples out there of accessing PHP arrays with dot notation, but I would like to do somewhat the opposite. I would like to take a multidimensional array like this: $myArray = array( 'key1' =...
0
10,424,340
05/03/2012 02:32:41
945,216
09/14/2011 17:40:42
38
0
subst for-loop element in makefile?
Suppose my Makefile is as following: FILES = hello.py PHONY: hi hi: -@for file in $(FILES); do \ (echo $$file; \ echo $(subst py,xml,$$file); \ echo $(subst py,xml,hello.py)); \ done When make is called, the following will be print...
makefile
make
null
null
null
null
open
subst for-loop element in makefile? === Suppose my Makefile is as following: FILES = hello.py PHONY: hi hi: -@for file in $(FILES); do \ (echo $$file; \ echo $(subst py,xml,$$file); \ echo $(subst py,xml,hello.py)); \ done When ma...
0
10,424,343
05/03/2012 02:32:46
1,355,240
04/25/2012 04:26:49
1
0
How do I print out a method within a loop
I apologize but I am new to programming and I'm having difficulty coding a program. The original program is as follows: import java.io.*; import java.io.IOException; import java.io.InputStreamReader; class buildABoat{ String boatName; // Boat name void buildABo...
java
arrays
methods
null
null
null
open
How do I print out a method within a loop === I apologize but I am new to programming and I'm having difficulty coding a program. The original program is as follows: import java.io.*; import java.io.IOException; import java.io.InputStreamReader; class buildABoat{ String boatNam...
0
53,705
09/10/2008 09:39:22
4,496
09/04/2008 08:16:51
70
6
Creating MP4/M4A files with Chapter marks
I am trying to join together several audio files into one mp4/m4a file containing chapter metadata. I am currently using QTKit to do this but unfortunately when QTKit exports to m4a format the metadata is all stripped out (this has been confirmed as a bug by Apple) see [sample code](http://files.shinydevelopment.com...
osx
objectivec
cocoa
audio
quicktime
null
open
Creating MP4/M4A files with Chapter marks === I am trying to join together several audio files into one mp4/m4a file containing chapter metadata. I am currently using QTKit to do this but unfortunately when QTKit exports to m4a format the metadata is all stripped out (this has been confirmed as a bug by Apple) see ...
0
53,715
09/10/2008 09:48:34
2,098
08/20/2008 11:21:16
328
22
Does Delphi call inherited on overridden procedures if there is no explicit call
Does Delphi call inherited on overridden procedures if there is no explicit call in the code ie (inherited;), I have the following structure (from super to sub class) TForm >> TBaseForm >> TAnyOtherForm All the forms in the project will be derived from TBaseForm, as this will have all the standard set-up and dest...
delphi
oop
inheritance
null
null
null
open
Does Delphi call inherited on overridden procedures if there is no explicit call === Does Delphi call inherited on overridden procedures if there is no explicit call in the code ie (inherited;), I have the following structure (from super to sub class) TForm >> TBaseForm >> TAnyOtherForm All the forms in the proj...
0
53,717
09/10/2008 09:49:18
3,201
08/27/2008 12:58:34
487
37
Managing customer expectations at prototype stage
Why is it that customers are seemingly **always** eager to believe that presenting a few mockup online screens means that the application is just a few tweaks away from being shipped? Ok, I realise the answer lies in the fact that they don't understand the work that has to go on behind the screens to actually *provi...
project-management
management
customer
null
null
null
open
Managing customer expectations at prototype stage === Why is it that customers are seemingly **always** eager to believe that presenting a few mockup online screens means that the application is just a few tweaks away from being shipped? Ok, I realise the answer lies in the fact that they don't understand the work ...
0
53,719
09/10/2008 09:50:49
5,085
09/07/2008 19:09:10
58
5
Hiding data points in Excel line charts
It is obviously possible to hide individual data points in an Excel line chart. - Select a data point. - Right click -> Format Data Point... - Select Patterns - Tab Set Line to None How do you accomplish the same thing in VBA? Intuition tells me there should be a property on the [Point object][1] (Ch...
excel
vba
charts
null
null
null
open
Hiding data points in Excel line charts === It is obviously possible to hide individual data points in an Excel line chart. - Select a data point. - Right click -> Format Data Point... - Select Patterns - Tab Set Line to None How do you accomplish the same thing in VBA? Intuition tells me there shou...
0
53,728
09/10/2008 10:03:08
184
08/03/2008 05:34:19
2,270
37
Will HTML Encoding prevent all kinds of XSS attacks?
I am not concerned about other kinds of attacks. Just want to know whether HTML Encode can prevent all kinds of XSS attacks. Is there some way to do an XSS attack even if HTML Encode is used?
security
xss
html-encode
null
null
null
open
Will HTML Encoding prevent all kinds of XSS attacks? === I am not concerned about other kinds of attacks. Just want to know whether HTML Encode can prevent all kinds of XSS attacks. Is there some way to do an XSS attack even if HTML Encode is used?
0
53,734
09/10/2008 10:08:05
1,030
08/11/2008 15:40:52
330
26
Best use of indices on temporary tables in T-SQL
If you're creating a temporary table within a stored procedure and want to add an index or two on it, to improve the performance of any additional statements made against it, what is the best approach? Sybase says [this][1]: _"the table must contain data when the index is created. If you create the temporary table a...
tsql
indexing
sybase
temporarytables
null
null
open
Best use of indices on temporary tables in T-SQL === If you're creating a temporary table within a stored procedure and want to add an index or two on it, to improve the performance of any additional statements made against it, what is the best approach? Sybase says [this][1]: _"the table must contain data when the...
0
53,738
09/10/2008 10:13:40
4,021
09/01/2008 12:23:44
148
12
How do you test the performance of a website?
Are there specific tools to perform the following job or there is a suite of tools that help me do the following: How can I check page load times? How can I track down a page that hogs memory? How can I track a page that consumes a lot of CPU cycles? I just want to glean from the experience of this forum and ...
website-performance
null
null
null
null
null
open
How do you test the performance of a website? === Are there specific tools to perform the following job or there is a suite of tools that help me do the following: How can I check page load times? How can I track down a page that hogs memory? How can I track a page that consumes a lot of CPU cycles? I just w...
0
53,744
09/10/2008 10:18:40
2,138
08/20/2008 14:23:45
115
9
How to escape a # in velocity
I would like to know how can i escape a # in velocity. Backslash seems to escape it but it prints itself as well This: \#\# prints: \#\# I would like: ##
velocity
null
null
null
null
null
open
How to escape a # in velocity === I would like to know how can i escape a # in velocity. Backslash seems to escape it but it prints itself as well This: \#\# prints: \#\# I would like: ##
0
53,757
09/10/2008 10:44:33
3,137
08/26/2008 23:31:53
56
8
Which compiles to faster code: "n * 3" or "n+(n*2)"?
Which compiles to faster code: "ans = n * 3" or "ans = n+(n*2)"? Assuming that n is either an int or a long, and it is is running on a modern Win32 Intel box. Would this be different if there was some dereferencing involved, that is, which of these would be faster? <pre> long a; long *pn; long ans; ...
c++
c
null
null
null
null
open
Which compiles to faster code: "n * 3" or "n+(n*2)"? === Which compiles to faster code: "ans = n * 3" or "ans = n+(n*2)"? Assuming that n is either an int or a long, and it is is running on a modern Win32 Intel box. Would this be different if there was some dereferencing involved, that is, which of these would b...
0
53,766
09/10/2008 10:51:57
2,387
08/22/2008 00:37:24
86
8
Daily Build
OK, so we all know the daily build is the heart beat of a project, but whats the single best way of automating it? We have perl scripts wrapping our pipeline which includes ClearCase, VS2005 (C++), Intel FORTRAN, Inno setup. We use cron jobs on UNIX to schedule the build, and host a simple Apache web server to view...
build
dailybuilds
null
null
null
null
open
Daily Build === OK, so we all know the daily build is the heart beat of a project, but whats the single best way of automating it? We have perl scripts wrapping our pipeline which includes ClearCase, VS2005 (C++), Intel FORTRAN, Inno setup. We use cron jobs on UNIX to schedule the build, and host a simple Apache w...
0
53,786
09/10/2008 11:16:30
5,357
09/09/2008 10:33:23
41
11
How do i generate a histogram for a given probability distribution (for load testing a server)
I am trying to automate load testing of a server using a realistic frequency distribution of requests. I've chosen the [Weibull][1] distribution as it "sort of" matches the distribution I've observed (ramps up quickly, drops off quickly but not instantly) I use this distribution to generate the number of requests...
python
statistics
load
testing
null
null
open
How do i generate a histogram for a given probability distribution (for load testing a server) === I am trying to automate load testing of a server using a realistic frequency distribution of requests. I've chosen the [Weibull][1] distribution as it "sort of" matches the distribution I've observed (ramps up quickly...
0
53,796
09/10/2008 11:29:13
5,427
09/09/2008 14:21:27
26
2
Is WindowsFormsHost fit for purpose (.net WPF hosting WinForms)?
A GUI driven application needs to host some prebuilt WinForms based components. These components provide high performance interactive views using a mixture of GDI+ and DirectX. The views handle control input and display custom graphical renderings. The components are tested in a WinForms harness by the supplier. ...
.net
winforms
wpf
null
null
null
open
Is WindowsFormsHost fit for purpose (.net WPF hosting WinForms)? === A GUI driven application needs to host some prebuilt WinForms based components. These components provide high performance interactive views using a mixture of GDI+ and DirectX. The views handle control input and display custom graphical renderings....
0
53,802
09/10/2008 11:33:53
20
08/01/2008 12:09:11
333
19
What is the best tool or utility to benchmark my JavaScript/.
I'm currently working on a JavaScript tool that, during the course of its execution, will ultimately traverse each node in the DOM. Because this has potential to be a very expensive task, I'd like to benchmark the performance of this script. What's the best, free tool for benchmarking a script such as this across th...
javascript
dom
traversal
null
null
null
open
What is the best tool or utility to benchmark my JavaScript/. === I'm currently working on a JavaScript tool that, during the course of its execution, will ultimately traverse each node in the DOM. Because this has potential to be a very expensive task, I'd like to benchmark the performance of this script. What's t...
0
53,803
09/10/2008 11:34:45
5,517
09/10/2008 08:17:12
1
0
Can I turn off automatic merging in Subversion?
We're looking at moving from a check-out/edit/check-in style of version control system to Subversion, and during the evaluation we discovered that when you perform an Update action in TortoiseSVN (and presumably in any Subversion client?), if changes in the repository that need to be applied to files that you've been e...
tortoisesvn
subversion
null
null
null
null
open
Can I turn off automatic merging in Subversion? === We're looking at moving from a check-out/edit/check-in style of version control system to Subversion, and during the evaluation we discovered that when you perform an Update action in TortoiseSVN (and presumably in any Subversion client?), if changes in the repositor...
0
53,806
09/10/2008 11:39:50
4,474
09/04/2008 01:17:32
1
4
Reintroducing functions in Delphi
Does anyone know what the motivation was for having the reintroduce keyword in Delphi? If you have a child class that contains a function with the same name as a virtual function in the parent class and it is not declared with the override modifier then it is a compile error. Adding the reintroduce modifier in such...
delphi
null
null
null
null
null
open
Reintroducing functions in Delphi === Does anyone know what the motivation was for having the reintroduce keyword in Delphi? If you have a child class that contains a function with the same name as a virtual function in the parent class and it is not declared with the override modifier then it is a compile error. ...
0
53,807
09/10/2008 11:41:01
572
08/06/2008 20:56:54
3,376
263
Can you do "builds" with PHP scripts or an interpreted language?
Correct me if I'm wrong, but a "build" is a "compile", and not every language compiles. Continuous Integration involves building components to see if they continue to work beyond unit tests, which I might be oversimplifying. But if your project involves a language that does not compile, how do you perform nightly build...
build-process
continuous-integration
interpreted-language
null
null
null
open
Can you do "builds" with PHP scripts or an interpreted language? === Correct me if I'm wrong, but a "build" is a "compile", and not every language compiles. Continuous Integration involves building components to see if they continue to work beyond unit tests, which I might be oversimplifying. But if your project invol...
0
53,808
09/10/2008 11:41:06
3,637
08/29/2008 16:14:15
21
2
Good 15 minute Java question to ask recent college graduate
When interviewing college coops/interns or recent graduates it helps to have a Java programming question that they can do on a white board in 15 minutes. Does anyone have examples of good questions like this? A C++ question I was once asked in an interview was to write a string to integer function which is along the ...
java
interview-questions
null
null
null
null
open
Good 15 minute Java question to ask recent college graduate === When interviewing college coops/interns or recent graduates it helps to have a Java programming question that they can do on a white board in 15 minutes. Does anyone have examples of good questions like this? A C++ question I was once asked in an interv...
0
53,811
09/10/2008 11:41:42
4,086
09/01/2008 18:01:18
74
17
How do you normally set up your compiler's optimization settings?
Do you normally set your compiler to optimize for maximum speed or smallest code size? or do you manually configure individual optimization settings? Why? I notice most of the time people tend to just leave compiler optimization settings to their default state, which with visual c++ means max speed. I've always fel...
c++
c
optimization
null
null
null
open
How do you normally set up your compiler's optimization settings? === Do you normally set your compiler to optimize for maximum speed or smallest code size? or do you manually configure individual optimization settings? Why? I notice most of the time people tend to just leave compiler optimization settings to their...
0
53,820
09/10/2008 11:47:55
2,965
08/26/2008 09:12:59
51
6
Why does windows XP minimize my swing full screen window on my second screen ?
In the application I'm developping (in Java/swing), I have to show a full screen window on the *second* screen of the user. I did this using a code similar to the one you'll find below... Be, as soon as I click in a window opened by windows explorer, or as soon as I open windows explorer (i'm using windows XP), the f...
java
windows
swing
null
null
null
open
Why does windows XP minimize my swing full screen window on my second screen ? === In the application I'm developping (in Java/swing), I have to show a full screen window on the *second* screen of the user. I did this using a code similar to the one you'll find below... Be, as soon as I click in a window opened by w...
0
53,827
09/10/2008 11:53:16
5,330
09/09/2008 07:44:06
123
5
Checking available stack size in C
I'm using MinGW with GCC 3.4.5 (mingw-special vista r3). My C application uses a lot of stack so I was wondering is there any way I can tell programatically how much stack is remaining so I can cleanly handle the situation if I find that I'm about to run out. If not what other ways would you work around the probl...
c
stack
mingw
null
null
null
open
Checking available stack size in C === I'm using MinGW with GCC 3.4.5 (mingw-special vista r3). My C application uses a lot of stack so I was wondering is there any way I can tell programatically how much stack is remaining so I can cleanly handle the situation if I find that I'm about to run out. If not what ot...
0
53,829
09/10/2008 11:55:38
5,534
09/10/2008 10:12:48
1
1
How to support multiple languages on a microcontroller?
I'm currently working on upgrading a product for the Chinese market. The target is a ARMTDMI7 with a QVGA display. Most resources I've located on the net are targeted at desktop or web programming rather than embedded devices. - Can anyone suggest some tools and resources that might be useful? - What are t...
translation
microcontroller
localization
null
null
null
open
How to support multiple languages on a microcontroller? === I'm currently working on upgrading a product for the Chinese market. The target is a ARMTDMI7 with a QVGA display. Most resources I've located on the net are targeted at desktop or web programming rather than embedded devices. - Can anyone suggest some t...
0
53,841
09/10/2008 12:04:29
1,228
08/13/2008 13:58:55
1,403
106
Can XpsDocuments be serialized to XML for storage in a database?
And, if not, is the only other alternative a blob?
sql-server
xpsdocument
null
null
null
null
open
Can XpsDocuments be serialized to XML for storage in a database? === And, if not, is the only other alternative a blob?
0
53,844
09/10/2008 12:06:59
2,260
08/21/2008 11:39:22
622
65
How can I evaluate a C# expression dynamically?
I would like to do the equivalent of: object result = Eval("1 + 3"); string now = Eval("System.DateTime.Now().ToString()") as string
c#
reflection
eval
null
null
null
open
How can I evaluate a C# expression dynamically? === I would like to do the equivalent of: object result = Eval("1 + 3"); string now = Eval("System.DateTime.Now().ToString()") as string
0
53,845
09/10/2008 12:09:26
4,358
09/03/2008 02:56:48
1
0
Java Compiler Options to produce .exe files.
What compiler (I'm using gcj 4.x) options should I use to generate an "exe" file for my java application to run in windows?
java
windows
compiler
gnu
null
null
open
Java Compiler Options to produce .exe files. === What compiler (I'm using gcj 4.x) options should I use to generate an "exe" file for my java application to run in windows?
0
53,849
09/10/2008 12:10:25
1,288
08/14/2008 12:14:17
726
51
How do I tokenize a string in C++?
Java has a convenient split method: String str = "The quick brown fox"; String[] results = str.split(" "); Is there an easy way to do this in C++?
c++
string
null
null
null
null
open
How do I tokenize a string in C++? === Java has a convenient split method: String str = "The quick brown fox"; String[] results = str.split(" "); Is there an easy way to do this in C++?
0
53,857
09/10/2008 12:14:05
123
08/02/2008 08:01:26
1,351
67
How to create Virtual COM ports..
I am trying to implement a software [Null Modem][1]. Any suggestion how to create virtual COM Ports? Looking for tips, strategy, known techniques, etc.. [1]: http://en.wikipedia.org/wiki/Null_modem
communication
port
virtual-com-port
null
null
null
open
How to create Virtual COM ports.. === I am trying to implement a software [Null Modem][1]. Any suggestion how to create virtual COM Ports? Looking for tips, strategy, known techniques, etc.. [1]: http://en.wikipedia.org/wiki/Null_modem
0
53,873
09/10/2008 12:26:12
1,228
08/13/2008 13:58:55
1,407
106
Can a Linq query retrieve BLOBs from a Sql Database?
And how do they come out?
sql-server
linq-to-sql
blob
null
null
null
open
Can a Linq query retrieve BLOBs from a Sql Database? === And how do they come out?
0
53,881
09/10/2008 12:31:21
2,977
08/26/2008 09:57:30
73
10
What is your preferred site for code snippets
Do you use any public sites for code-snippets? If so, can you let me know which ones you would recommend?
html
code-snippets
website
null
null
null
open
What is your preferred site for code snippets === Do you use any public sites for code-snippets? If so, can you let me know which ones you would recommend?
0
53,887
09/10/2008 12:33:46
123
08/02/2008 08:01:26
1,356
68
Where do you go to tickle your brain?
I am sure we all have some place to go to get our brain teased! Sometimes i visit [![Project Euler][1]](http://projecteuler.net/index.php?section=problems) Where do you all go? [1]: http://projecteuler.net/images/logo.jpg
challenge
language-agnostic
null
null
null
07/17/2012 12:12:30
not constructive
Where do you go to tickle your brain? === I am sure we all have some place to go to get our brain teased! Sometimes i visit [![Project Euler][1]](http://projecteuler.net/index.php?section=problems) Where do you all go? [1]: http://projecteuler.net/images/logo.jpg
4
53,911
09/10/2008 12:42:43
4,639
09/04/2008 23:07:22
57
1
In vim, how do I go back to where I was before a search?
Programming in vim I often go search for something, yank it, then go back to where I was, insert it, modify it. The problem is that after I search and find, I need to MANUALLY find my way back to where I was. Is there an automatic way to go back to where I was when I initiated my last search?
vim
vi
null
null
null
null
open
In vim, how do I go back to where I was before a search? === Programming in vim I often go search for something, yank it, then go back to where I was, insert it, modify it. The problem is that after I search and find, I need to MANUALLY find my way back to where I was. Is there an automatic way to go back to whe...
0
53,913
09/10/2008 12:42:53
5,465
09/09/2008 20:28:40
1
0
How can I lay images out in a grid using XSL-FO?
I'm trying to produce sheets of photographs with captions arranged in a grid using XSLT and XSL-FO. The photo URLs and captions are produced using a FOR XML query against an SQL Server database, and the number of photos returned varies from sheet to sheet. I want to lay the photos out in four columns, filling the grid ...
xslt
xsl-fo
null
null
null
null
open
How can I lay images out in a grid using XSL-FO? === I'm trying to produce sheets of photographs with captions arranged in a grid using XSLT and XSL-FO. The photo URLs and captions are produced using a FOR XML query against an SQL Server database, and the number of photos returned varies from sheet to sheet. I want to...
0
53,939
09/10/2008 12:52:04
1,122
08/12/2008 14:00:43
598
60
Why can't Visual Studio run on more than one core? CPU at 25%
I'm running Visual Studio 2008 with the stuff-of-nightmares awful MS test framework. Trouble is that it's sending my CPU to 100% (well 25% on a quad-core). My question is why can't Visual Studio run on more than one core? Surely M$ must have a sufficient handle* on threading to get this to work. On a scale of 1...
visual-studio
microsoft
null
null
null
null
open
Why can't Visual Studio run on more than one core? CPU at 25% === I'm running Visual Studio 2008 with the stuff-of-nightmares awful MS test framework. Trouble is that it's sending my CPU to 100% (well 25% on a quad-core). My question is why can't Visual Studio run on more than one core? Surely M$ must have a suf...
0
53,941
09/10/2008 12:53:35
1,695
08/18/2008 02:49:06
773
64
Is there a tool that can convert common image formats (.bmp, jpg,..) to .emf files?
I'm using the GoDiagrams suite which seems to recommend .emf files for node images since they scale better on resizing. Bitmaps get all blurry. Google doesn't show up any good tools that seem to do this... So to reiterate I'm looking for a image converter (preferably free) that converts an image (in one of the comm...
image
null
null
null
null
null
open
Is there a tool that can convert common image formats (.bmp, jpg,..) to .emf files? === I'm using the GoDiagrams suite which seems to recommend .emf files for node images since they scale better on resizing. Bitmaps get all blurry. Google doesn't show up any good tools that seem to do this... So to reiterate I'm l...
0
53,945
09/10/2008 12:55:43
4,174
09/02/2008 08:59:44
246
7
Dynamically inserting javascript into HTML that uses document.write
I am currently loading a lightbox style popup that loads it's HTML from an XHR call. This content is then displayed in a 'modial' popup using `element.innerHTML = content` This works like a charm. In another section of this website I use a Flickr 'badge' (<http://www.elliotswan.com/2006/08/06/custom-flickr-badge-api...
javascript
html
ajax
null
null
null
open
Dynamically inserting javascript into HTML that uses document.write === I am currently loading a lightbox style popup that loads it's HTML from an XHR call. This content is then displayed in a 'modial' popup using `element.innerHTML = content` This works like a charm. In another section of this website I use a Flic...
0
53,956
09/10/2008 13:00:21
2,469
08/22/2008 12:41:47
581
41
HTML to Image .tiff File
Is there a way to convert a HTML string into a Image .tiff file? I am using C# .NET 3.5. The requirement is to give the user an option to fact a confirmation. The confirmation is created with XML and a XSLT typically it is e-mailed. Is there a way I can take the HTML string generated by the transformation HTM...
c#
.net
html
image
tiff
null
open
HTML to Image .tiff File === Is there a way to convert a HTML string into a Image .tiff file? I am using C# .NET 3.5. The requirement is to give the user an option to fact a confirmation. The confirmation is created with XML and a XSLT typically it is e-mailed. Is there a way I can take the HTML string gener...
0
53,961
09/10/2008 13:04:01
4,200
09/02/2008 09:57:33
215
12
Locate and add project reference for .Net assembly containing a given type?
I'm working with a large (270+ project) VS.Net solution. Yes, I know this is pushing the friendship with VS but it's inherited and blah blah. Anyway, to speed up the solution load and compile time I've removed all projects that I'm not currently working on... which in turn has removed those project references from th...
c#
.net
visual-studio
null
null
null
open
Locate and add project reference for .Net assembly containing a given type? === I'm working with a large (270+ project) VS.Net solution. Yes, I know this is pushing the friendship with VS but it's inherited and blah blah. Anyway, to speed up the solution load and compile time I've removed all projects that I'm not c...
0
53,965
09/10/2008 13:04:57
572
08/06/2008 20:56:54
3,397
266
What is wrong with this PHP regular expression?
$output = preg_replace("|(/D)(/s+)(/d+)(;)|", "//1,//3;", $output); I'm trying to replace all alphabetical character followed by one or more whitespace characters (tabs and/or spaces) followed by one or more numerical characters followed by a semicolon with the alphabetical character followed by a comma followed...
php
regex
null
null
null
null
open
What is wrong with this PHP regular expression? === $output = preg_replace("|(/D)(/s+)(/d+)(;)|", "//1,//3;", $output); I'm trying to replace all alphabetical character followed by one or more whitespace characters (tabs and/or spaces) followed by one or more numerical characters followed by a semicolon with th...
0
53,967
09/10/2008 13:05:56
4,694
09/05/2008 09:30:26
95
8
How would you implement the IEnumerator interface?
I have a class that map objects to objects, but unlike dictionary it maps them both ways. I am now trying to implement a custom IEnumerator interface that iterates through the values. public class Mapper<K,T> : IEnumerable<T>, IEnumerator<T> { C5.TreeDictionary<K,T> KToTMap = new TreeDictionary<K...
.net
collections
implementation
null
null
null
open
How would you implement the IEnumerator interface? === I have a class that map objects to objects, but unlike dictionary it maps them both ways. I am now trying to implement a custom IEnumerator interface that iterates through the values. public class Mapper<K,T> : IEnumerable<T>, IEnumerator<T> { ...
0
53,989
09/10/2008 13:09:32
1,109
08/12/2008 12:16:58
1,039
74
Linking directly to a SWF, what are the downsides?
Usually Flash and Flex applications are embedded on in HTML using either a combination of `object` and `embed` tags, or more commonly using JavaScript. However, if you link directly to a SWF file it will open in the browser window and without looking in the address bar you can't tell that it wasn't embedded in HTML wit...
flex
flash
embed
null
null
null
open
Linking directly to a SWF, what are the downsides? === Usually Flash and Flex applications are embedded on in HTML using either a combination of `object` and `embed` tags, or more commonly using JavaScript. However, if you link directly to a SWF file it will open in the browser window and without looking in the addres...
0
53,997
09/10/2008 13:12:07
3,834
08/31/2008 06:25:52
39
7
Any good AJAX framework for Google App Engine apps?
I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Engine?
python
ajax
google-app-engine
null
null
null
open
Any good AJAX framework for Google App Engine apps? === I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Engine?
0
54,001
09/10/2008 13:13:14
3,208
08/27/2008 13:12:45
88
4
Could not load type 'XXX.Global'
Migrating a project from ASP.net 1.1 to ASP.net 2.0 and I keep hitting this error. I don't actually need Global because I am not adding anything to it, but after I remove it I get more errors.
asp.net
visual-studio
null
null
null
null
open
Could not load type 'XXX.Global' === Migrating a project from ASP.net 1.1 to ASP.net 2.0 and I keep hitting this error. I don't actually need Global because I am not adding anything to it, but after I remove it I get more errors.
0
54,017
09/10/2008 13:22:03
4,358
09/03/2008 02:56:48
8
2
What are the best Java Podcast you can find on the net?
What are the best Java coding practices Podcast you can find on the net? I'm thinking in a podcast like **HeardingCode** or **Hanselminutes**, but oriented to java development... is there any this good out there? thanks!
java
podcast
null
null
null
09/11/2011 17:26:19
not constructive
What are the best Java Podcast you can find on the net? === What are the best Java coding practices Podcast you can find on the net? I'm thinking in a podcast like **HeardingCode** or **Hanselminutes**, but oriented to java development... is there any this good out there? thanks!
4
54,036
09/10/2008 13:31:03
3,468
08/28/2008 17:05:59
133
13
Programmatically access browser history
how can i create an application to read all my browser (firefox) history? i noticed that i have in C:\Users\user.name\AppData\Local\Mozilla\Firefox\Profiles\646vwtnu.default what looks like a sqlite database (urlclassifier3.sqlite) but i don't know if its really what is used to store de history information. i...
firefox
null
null
null
null
null
open
Programmatically access browser history === how can i create an application to read all my browser (firefox) history? i noticed that i have in C:\Users\user.name\AppData\Local\Mozilla\Firefox\Profiles\646vwtnu.default what looks like a sqlite database (urlclassifier3.sqlite) but i don't know if its really wha...
0
54,037
09/10/2008 13:31:29
797
08/09/2008 02:14:04
2,127
85
Credit card expiration dates - Inclusive or exclusive?
Say you've got a credit card number with an expiration date of 05/08 - i.e. May 2008. Does that mean the card expires on the morning of the 1st of May 2008, or the night of the 31st of May 2008?
payment
null
null
null
null
null
open
Credit card expiration dates - Inclusive or exclusive? === Say you've got a credit card number with an expiration date of 05/08 - i.e. May 2008. Does that mean the card expires on the morning of the 1st of May 2008, or the night of the 31st of May 2008?
0
54,038
09/10/2008 13:32:16
5,062
09/07/2008 16:29:22
1
0
Running a scheduled task in a Wordpress plug-in
I'm trying to write a Wordpress plug-in that automatically posts a blog post at a certain time of day. For example, read a bunch of RSS feeds and post a daily digest of all new entries. There are plug-ins that do something similar to what I want, but many of them rely on a cron job for the automated scheduling. I'...
php
wordpress
null
null
null
null
open
Running a scheduled task in a Wordpress plug-in === I'm trying to write a Wordpress plug-in that automatically posts a blog post at a certain time of day. For example, read a bunch of RSS feeds and post a daily digest of all new entries. There are plug-ins that do something similar to what I want, but many of them...
0
54,043
09/10/2008 13:35:13
5,056
09/07/2008 15:43:17
382
40
Does anyone know a library for working with quantity/unit of measure pairs?
I would like to be able to do such things as var m1 = new UnitOfMeasureQuantityPair(123.00, UnitOfMeasure.Pounds); var m2 = new UnitOfMeasureQuantityPair(123.00, UnitOfMeasure.Liters); m1.ToKilograms(); m2.ToPounds(new Density(7.0, DensityType.PoundsPerGallon); If there isn't something li...
.net
null
null
null
null
null
open
Does anyone know a library for working with quantity/unit of measure pairs? === I would like to be able to do such things as var m1 = new UnitOfMeasureQuantityPair(123.00, UnitOfMeasure.Pounds); var m2 = new UnitOfMeasureQuantityPair(123.00, UnitOfMeasure.Liters); m1.ToKilograms(); m2.ToPou...
0
54,047
09/10/2008 13:37:15
2,820
08/25/2008 11:37:16
268
19
Regex's For Developers
I've been trying to figure out a regex to allow me to search for a particular string while automatically skipping comments. Anyone have an RE like this or know of one? It doesn't even need to be sophisticated enough to skip `#if 0` blocks; I just want it to skip over `//` and `/*` blocks. The converse, that is only ...
visual-c++
regex
utility
null
null
null
open
Regex's For Developers === I've been trying to figure out a regex to allow me to search for a particular string while automatically skipping comments. Anyone have an RE like this or know of one? It doesn't even need to be sophisticated enough to skip `#if 0` blocks; I just want it to skip over `//` and `/*` blocks. ...
0
54,050
09/10/2008 13:38:23
1,768
08/18/2008 13:32:15
165
13
How do you get the logged in Windows domain account from an ASP.NET application?
We have an ASP.NET application that manages it's own User, Roles and Permission database and we have recently added a field to the User table to hold the Windows domain account. I would like to make it so that the user doesn't have to **physically** log in to our application, but rather would be automatically log...
login
asp.net
null
null
null
null
open
How do you get the logged in Windows domain account from an ASP.NET application? === We have an ASP.NET application that manages it's own User, Roles and Permission database and we have recently added a field to the User table to hold the Windows domain account. I would like to make it so that the user doesn't ha...
0
54,052
09/10/2008 13:39:09
507
08/06/2008 13:04:33
559
28
Tool to view the contents of the Solution User Options file (.suo)
Are there any free tools available to view the contents of the solution user options file (the .suo file that accompanies solution files)? I know it's basically formatted as a file system within the file, but I'd like to be able to view the contents so that I can figure out which aspects of my solution and customiza...
visual-studio
suo
null
null
null
null
open
Tool to view the contents of the Solution User Options file (.suo) === Are there any free tools available to view the contents of the solution user options file (the .suo file that accompanies solution files)? I know it's basically formatted as a file system within the file, but I'd like to be able to view the cont...
0
54,059
09/10/2008 13:40:48
797
08/09/2008 02:14:04
2,127
85
Efficiently selecting a set of random elements from a linked list
Say I have a linked list of numbers of length N. N is very large and I don’t know in advance the exact value of N. How can I most efficiently write a function that will return k completely random numbers from the list?
language-agnostic
algorithm
list
null
null
null
open
Efficiently selecting a set of random elements from a linked list === Say I have a linked list of numbers of length N. N is very large and I don’t know in advance the exact value of N. How can I most efficiently write a function that will return k completely random numbers from the list?
0
54,068
09/10/2008 13:45:20
361
08/05/2008 04:20:27
564
24
Any restrictions on development in Vista
I'm looking at a new computer which will probably have vista on it. But there are so many editions of vista; are there any weird restrictions on what you can run on the various editions? For instance you couldn't run IIS on Windows ME. Can you still run IIS on the home editions of vista?
iis
windows-vista
null
null
null
null
open
Any restrictions on development in Vista === I'm looking at a new computer which will probably have vista on it. But there are so many editions of vista; are there any weird restrictions on what you can run on the various editions? For instance you couldn't run IIS on Windows ME. Can you still run IIS on the home e...
0
54,092
09/10/2008 13:51:31
296
08/04/2008 13:26:48
189
25
How to send MMS with C#
<br /> I need to send MMS thought a C# application. I have already found 2 interesting components: http://www.winwap.com<br /> http://www.nowsms.com Does anyone have experience with other third party components?<br /> Could someone explain what kind of server I need to send those MMS? Is it a classic SMTP Server...
c#
mms
null
null
null
null
open
How to send MMS with C# === <br /> I need to send MMS thought a C# application. I have already found 2 interesting components: http://www.winwap.com<br /> http://www.nowsms.com Does anyone have experience with other third party components?<br /> Could someone explain what kind of server I need to send those MMS...
0
54,096
09/10/2008 13:53:12
1,212
08/13/2008 13:17:40
149
4
Secure session cookies in ASP.NET over HTTPS
I got a little curious after reading [this /. article][1] over hijacking HTTPS cookies. I tracked it down a bit, and a good resource I stumbled across lists a few ways to secure cookies [here][2]. Must I use adsutil, or will setting requireSSL in the httpCookies section of web.config cover session cookies in addition t...
asp.net
security
session
cookies
null
null
open
Secure session cookies in ASP.NET over HTTPS === I got a little curious after reading [this /. article][1] over hijacking HTTPS cookies. I tracked it down a bit, and a good resource I stumbled across lists a few ways to secure cookies [here][2]. Must I use adsutil, or will setting requireSSL in the httpCookies section...
0
54,104
09/10/2008 13:57:07
4,639
09/04/2008 23:07:22
72
1
Code completion for Perl in vim?
Surprisingly as you get good at vim, you can code even faster than standard IDEs such as Eclipse. But one thing I really miss is code completion, especially for long variable names and functions. Is there any way to enable code completion for Perl in vim?
perl
vim
vi
null
null
null
open
Code completion for Perl in vim? === Surprisingly as you get good at vim, you can code even faster than standard IDEs such as Eclipse. But one thing I really miss is code completion, especially for long variable names and functions. Is there any way to enable code completion for Perl in vim?
0
54,118
09/10/2008 14:05:56
4,140
09/02/2008 01:10:54
541
39
What is the Best Way to Populate a Menu Control on a Master Page
Database? Page variables? Enum????? looking for opionions here.
.net-3.5
menu
master-pages
null
null
null
open
What is the Best Way to Populate a Menu Control on a Master Page === Database? Page variables? Enum????? looking for opionions here.
0
54,130
09/10/2008 14:09:43
1,103
08/12/2008 12:00:50
31
6
Billing for phone calls
I have an arrangement with a couple of my regular clients whereby there's a regularly scheduled conference call to chat about various work being done and also new stuff coming down the pike. At first I never billed for this time, since some of it was spent on sales-y stuff like discussing potential new projects, etc...
business
consulting
billing
null
null
05/06/2012 23:06:20
off topic
Billing for phone calls === I have an arrangement with a couple of my regular clients whereby there's a regularly scheduled conference call to chat about various work being done and also new stuff coming down the pike. At first I never billed for this time, since some of it was spent on sales-y stuff like discussin...
2
54,138
09/10/2008 14:12:30
404
08/05/2008 13:34:59
627
43
Using jQuery to beautify someone else's html
I have a third-party app that creates HTML-based reports that I need to display. I have *some* control over how they look, but in general it's pretty primitive. I *can* inject some javascript, though. I'd like to try to inject some jQuery goodness into it to tidy it up some. One specific thing I would like to do is...
html
jquery
null
null
null
null
open
Using jQuery to beautify someone else's html === I have a third-party app that creates HTML-based reports that I need to display. I have *some* control over how they look, but in general it's pretty primitive. I *can* inject some javascript, though. I'd like to try to inject some jQuery goodness into it to tidy it ...
0
54,142
09/10/2008 14:13:39
1,541
08/16/2008 13:56:32
114
7
C++ Comma Operator
How does the comma operator work in C++? For instance, if I do: a = b, c; Does a end up equaling b, or c? (Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)
c++
null
null
null
null
null
open
C++ Comma Operator === How does the comma operator work in C++? For instance, if I do: a = b, c; Does a end up equaling b, or c? (Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)
0
54,147
09/10/2008 14:14:48
1,523
08/16/2008 10:10:13
28
3
How do I insert a character at the caret with javascript?
I want to insert some special characters at the caret inside textboxes using javscript on a button. How can this be done? The script needs to find the active textbox and insert the character at the caret in that textbox. The script also needs to work in IE and Firefox.
javascript
null
null
null
null
null
open
How do I insert a character at the caret with javascript? === I want to insert some special characters at the caret inside textboxes using javscript on a button. How can this be done? The script needs to find the active textbox and insert the character at the caret in that textbox. The script also needs to work in ...
0
54,166
09/10/2008 14:20:17
4,337
09/02/2008 22:43:39
664
65
Handling Information overflow
Almost everyday I see new stuffs coming out of Beta or CTP releases from Microsoft. It used to be exciting but the list of products and technologies is getting bigger and bigger everyday. WPF, WF, Silverlight, Powershell, SSIS, SSDS, EF, LINQ, WCF, Data Services, XAML, Asp.Net AJAX, Asp.Net MVC blah blah.. Since I ...
microsoft
null
null
null
null
null
open
Handling Information overflow === Almost everyday I see new stuffs coming out of Beta or CTP releases from Microsoft. It used to be exciting but the list of products and technologies is getting bigger and bigger everyday. WPF, WF, Silverlight, Powershell, SSIS, SSDS, EF, LINQ, WCF, Data Services, XAML, Asp.Net AJAX, ...
0
54,169
09/10/2008 14:21:22
5,571
09/10/2008 14:15:35
1
1
What do you think will be the level of usage of Silverlight 1 year from now?
There is a lot of buzz about Microsoft Silverlight, especially after the Olympics. Also H264 will be supported in a future version. Where do you think Silverlight will be 1 year from now?
silverlight
null
null
null
null
null
open
What do you think will be the level of usage of Silverlight 1 year from now? === There is a lot of buzz about Microsoft Silverlight, especially after the Olympics. Also H264 will be supported in a future version. Where do you think Silverlight will be 1 year from now?
0
54,176
09/10/2008 14:22:33
5,556
09/10/2008 14:01:15
1
0
What are the advantages/disadvantages of using a CTE?
I'm looking at improving the performance of some SQL, currently CTEs are being used and referenced multiple times in the script. Would I get improvements over using a table variable instead? (Can't use a temporary table as the code is within functions)
sql
common-table-expression
null
null
null
null
open
What are the advantages/disadvantages of using a CTE? === I'm looking at improving the performance of some SQL, currently CTEs are being used and referenced multiple times in the script. Would I get improvements over using a table variable instead? (Can't use a temporary table as the code is within functions)
0
54,177
09/10/2008 14:22:39
4,530
09/04/2008 17:16:43
46
1
Website performance monitoring tools
I have websites that we are performance tuning and wanted to know if anyone has a good tool for monitoring secure web sites? What I am looking for is a tool that can log on to a web site and test a few links and the performance. At least one of the links will access another web-based product using single sign on. I ...
performance
website-monitoring
null
null
null
null
open
Website performance monitoring tools === I have websites that we are performance tuning and wanted to know if anyone has a good tool for monitoring secure web sites? What I am looking for is a tool that can log on to a web site and test a few links and the performance. At least one of the links will access another w...
0
54,179
09/10/2008 14:23:16
2,443
08/22/2008 10:53:30
455
28
What should be considered when building a Recommendation Engine?
I've read the book [Programming Collective Intelligence][1] and found it fascinating. I'd recently heard about a challenge amazon had posted to the world to come up with a better recommendation engine for their system. The winner apparently produced the best algorithm by limiting the amount of information to that w...
algorithm
recommendation-engine
null
null
null
null
open
What should be considered when building a Recommendation Engine? === I've read the book [Programming Collective Intelligence][1] and found it fascinating. I'd recently heard about a challenge amazon had posted to the world to come up with a better recommendation engine for their system. The winner apparently produ...
0
54,184
09/10/2008 14:26:00
1,578
08/16/2008 20:25:25
378
17
Best tool to monitor network connection bandwidth
I'm looking for a very simple tool to monitor the bandwidth of all my applications. No need for extra features like traffic spying, I'm just interested by bandwidth. I already know Wireshark (which is great), but what I'm looking for is more something like TcpView (great tool from Sysinternals) with current bandwi...
windows
networking
null
null
null
null
open
Best tool to monitor network connection bandwidth === I'm looking for a very simple tool to monitor the bandwidth of all my applications. No need for extra features like traffic spying, I'm just interested by bandwidth. I already know Wireshark (which is great), but what I'm looking for is more something like Tcp...
0