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
31,711
08/28/2008 05:23:30
2,785
08/25/2008 03:48:53
51
7
How to plot a long path with Virtual Earth
The obvious way to plot a path with virtual earth (VEMap.GetDirections) is limited to 25 points. When trying to plot a vehicle's journey this is extremely limiting. How can I plot a by-road journey of more than 25 points on a virtual earth map?
javascript
virtual-earth
null
null
null
null
open
How to plot a long path with Virtual Earth === The obvious way to plot a path with virtual earth (VEMap.GetDirections) is limited to 25 points. When trying to plot a vehicle's journey this is extremely limiting. How can I plot a by-road journey of more than 25 points on a virtual earth map?
0
31,722
08/28/2008 06:33:37
598
08/07/2008 02:49:41
596
28
Anyone have a diff algorithm for rendered HTML?
I'm interested in seeing a good diff algorithm, possibly in Javascript, for rendering a side-by-side diff of two HTML pages. The idea would be that the diff would show the differences of the *rendered* HTML.
diff
javascript
html
null
null
null
open
Anyone have a diff algorithm for rendered HTML? === I'm interested in seeing a good diff algorithm, possibly in Javascript, for rendering a side-by-side diff of two HTML pages. The idea would be that the diff would show the differences of the *rendered* HTML.
0
31,790
08/28/2008 07:28:17
831
08/09/2008 06:37:00
80
3
How many ServiceContracts can a WCF Service have?
Specifically, since a ServiceContract is an Attribute to an Interface, how many interfaces can I code into one WCF web service? Is it a one-to-one?
web-services
wcf
null
null
null
null
open
How many ServiceContracts can a WCF Service have? === Specifically, since a ServiceContract is an Attribute to an Interface, how many interfaces can I code into one WCF web service? Is it a one-to-one?
0
31,794
08/28/2008 07:31:48
2,121
08/20/2008 13:11:31
53
3
ConfigurationManager
In .net frameworks 1.1, I use `System.Configuration.ConfigurationSettings.AppSettings["name"];` for application settings. But in Frameworks 2.0, it says ConfigurationSettings is obsolete and to use ConfigurationManager instead. So I swapped it out with this `System.Configuration.ConfigurationManager.AppSetti...
.net
c#
null
null
null
null
open
ConfigurationManager === In .net frameworks 1.1, I use `System.Configuration.ConfigurationSettings.AppSettings["name"];` for application settings. But in Frameworks 2.0, it says ConfigurationSettings is obsolete and to use ConfigurationManager instead. So I swapped it out with this `System.Configuration.Con...
0
31,799
08/28/2008 07:36:40
832
08/09/2008 06:51:40
2,247
184
Preventing XML Serialization of IEnumerable and ICollection<T> & Inherited Types
**NOTE: _XMLIgnore_ is NOT the answer!** OK, so following on from my question on [XML Serialization and Inherited Types](http://stackoverflow.com/questions/20084/xml-serialization-and-inherited-types), I began integrating that code into my application I am working on, stupidly thinking all will go well.. I ran in...
xml
serialization
inheritance
.net-2.0
null
null
open
Preventing XML Serialization of IEnumerable and ICollection<T> & Inherited Types === **NOTE: _XMLIgnore_ is NOT the answer!** OK, so following on from my question on [XML Serialization and Inherited Types](http://stackoverflow.com/questions/20084/xml-serialization-and-inherited-types), I began integrating that code...
0
31,800
08/28/2008 07:36:46
2,670
08/24/2008 10:03:28
31
9
How to respond to an alternate URI in a RESTful web service
I'm building a RESTful web service which has multiple URIs for one of its resources, because there is more than one unique identifier. Should the server respond to a GET request for an alternate URI by returning the resource, or should I send an HTTP 3xx redirect to the canonical URI? Is *HTTP 303 (see also)* the most ...
rest
http
language-agnostic
null
null
null
open
How to respond to an alternate URI in a RESTful web service === I'm building a RESTful web service which has multiple URIs for one of its resources, because there is more than one unique identifier. Should the server respond to a GET request for an alternate URI by returning the resource, or should I send an HTTP 3xx ...
0
31,812
08/28/2008 07:47:37
1,493
08/12/2008 06:55:12
141
5
Performance issues regarding Access 2003 and the OLE Object data type
In MS Access 2003 (I know, I know), I'm using the OLE Object data type to persist the sate of some objects that are marked as serializable (just using a IO.BinaryFormatter to serialize to a MemoryStream, and then saving that to the db as a Byte array). Does this work pretty much like a varbinary, or a blob? Are there...
ms-access
serialization
oledb
null
null
null
open
Performance issues regarding Access 2003 and the OLE Object data type === In MS Access 2003 (I know, I know), I'm using the OLE Object data type to persist the sate of some objects that are marked as serializable (just using a IO.BinaryFormatter to serialize to a MemoryStream, and then saving that to the db as a Byte ...
0
31,818
08/28/2008 07:54:27
3,353
08/28/2008 07:32:01
1
0
How to find out which Service Pack is installed on SQL Server?
the title says it all...
sql-server
null
null
null
null
null
open
How to find out which Service Pack is installed on SQL Server? === the title says it all...
0
31,826
08/28/2008 08:01:12
1,428
08/15/2008 15:27:39
81
9
Algorithmic complexity of XML parsers/validators
I need to know how the performance of different XML tools (parsers, validators, XPath expression evaluators, etc) is affected by the size and complexity of the input document. Are there resources out there that document how CPU time and memory usage are affected by... well, what? Document size in bytes? Number of nodes...
xml
algorithmic
complexity
null
null
null
open
Algorithmic complexity of XML parsers/validators === I need to know how the performance of different XML tools (parsers, validators, XPath expression evaluators, etc) is affected by the size and complexity of the input document. Are there resources out there that document how CPU time and memory usage are affected by....
0
31,834
08/28/2008 08:12:42
2,644
08/23/2008 21:56:47
309
31
Generating random terrain in Blender3D
I tried finding a python script in google that will generate a random terrain when the game starts (or each time a the player advances to a new scene) but all the tools I found are for creating a terrain to render it, not for the game mode. Any idea how/where to find one? (I'm assuming that since Blender3D has ga...
blender3d
null
null
null
null
null
open
Generating random terrain in Blender3D === I tried finding a python script in google that will generate a random terrain when the game starts (or each time a the player advances to a new scene) but all the tools I found are for creating a terrain to render it, not for the game mode. Any idea how/where to find one? ...
0
31,837
08/28/2008 08:19:15
3,182
08/27/2008 09:11:40
121
8
Best books about TDD
I'd like to enhance my TDD knowledge and practice. What would you recommend to read?
tdd
book
null
null
null
09/15/2011 07:17:54
not constructive
Best books about TDD === I'd like to enhance my TDD knowledge and practice. What would you recommend to read?
4
31,840
08/28/2008 08:20:44
3,360
08/28/2008 08:20:44
1
0
Java Logging vs Log4J
is it still worth to add the log4j library to a Java 5 project just to log let's say some exceptions to a file with some nice rollover settings. Or will the standard util.logging facility do the job as well? What do you think? Thanks for sharing your thoughts! Okami
java
logging
null
null
null
null
open
Java Logging vs Log4J === is it still worth to add the log4j library to a Java 5 project just to log let's say some exceptions to a file with some nice rollover settings. Or will the standard util.logging facility do the job as well? What do you think? Thanks for sharing your thoughts! Okami
0
31,847
08/28/2008 08:30:27
2,964
08/26/2008 09:05:45
31
4
XML Schema construct for "Any number of these elements - in any order"
I need to create an XML schema that looks something like this: <xs:element name="wrapperElement"> <xs:complexType> <xs:sequence> <xs:element type="el1"> <xs:element type="el2"> </xs:sequence> <xs:WhatGoesHere?> <xs:element type="el3"> ...
xml
schema
xsd
null
null
null
open
XML Schema construct for "Any number of these elements - in any order" === I need to create an XML schema that looks something like this: <xs:element name="wrapperElement"> <xs:complexType> <xs:sequence> <xs:element type="el1"> <xs:element type="el2"> </xs:sequen...
0
31,849
08/28/2008 08:34:09
3,023
08/26/2008 12:30:52
1
1
Capturing Cmd-C keyboard event from modular Flex application in browser or AIR.
It seems that it is impossible to capture the keyboard event normally used for copy when running a Flex application in the browser or as an AIR app, presumably because the browser or OS is intercepting it first. Is there a way to tell the browser or OS to let the event through? For example, on a AdvancedDataGrid ...
flex
air
null
null
null
null
open
Capturing Cmd-C keyboard event from modular Flex application in browser or AIR. === It seems that it is impossible to capture the keyboard event normally used for copy when running a Flex application in the browser or as an AIR app, presumably because the browser or OS is intercepting it first. Is there a way to te...
0
31,854
08/28/2008 08:38:04
1,695
08/18/2008 02:49:06
226
26
How to marshal an array of structs - (.Net/C# => C++)
Disclaimer: Near zero with marshalling concepts.. I have a struct B that contains a string + an array of structs C. I need to send this across the giant interop chasm to a COM - C++ consumer. **What are the right set of attributes I need to decorate my struct definition ?** [ComVisible (true)] [Stru...
.net
interop
null
null
null
null
open
How to marshal an array of structs - (.Net/C# => C++) === Disclaimer: Near zero with marshalling concepts.. I have a struct B that contains a string + an array of structs C. I need to send this across the giant interop chasm to a COM - C++ consumer. **What are the right set of attributes I need to decorate my st...
0
31,865
08/28/2008 08:50:20
2,452
08/22/2008 11:19:16
61
6
Good reasons for not letting the browser launch local applications
I know this might be a no-brainer, but please read on. I also know it's generally not considered a good idea, maybe the worst, to let a browser run and interact with local apps, even in a intranet context. We use citrix for home-office, and people really like it. Now, they would like the same kind of environment ...
security
internet-explorer
activex
intranet
null
null
open
Good reasons for not letting the browser launch local applications === I know this might be a no-brainer, but please read on. I also know it's generally not considered a good idea, maybe the worst, to let a browser run and interact with local apps, even in a intranet context. We use citrix for home-office, and p...
0
31,867
08/28/2008 08:52:55
2,638
08/23/2008 20:10:14
291
20
Are there any examples where we *need* protected inheritance in C++
While I've seen rare cases where *private* inheritance was needed, I've never encountered a case where *protected* inheritance is needed. Does someone have an example?
language
c++
inheritance
null
null
null
open
Are there any examples where we *need* protected inheritance in C++ === While I've seen rare cases where *private* inheritance was needed, I've never encountered a case where *protected* inheritance is needed. Does someone have an example?
0
31,868
08/28/2008 08:53:00
3,362
08/28/2008 08:38:32
1
0
Upload a file to SharePoint through the built-in web services
What is the best way to upload a file to a Document Library on a SharePoint server through the built-in web services that version WSS 3.0 exposes?
sharepoint
wss
null
null
null
null
open
Upload a file to SharePoint through the built-in web services === What is the best way to upload a file to a Document Library on a SharePoint server through the built-in web services that version WSS 3.0 exposes?
0
31,870
08/28/2008 08:55:34
1,532
08/16/2008 12:19:36
88
8
using a html entity in xslt (e.g.  )
what is the best way to include a htlm entity in XSLT? <xsl:template match="/a/node"> <xsl:value-of select="."/> <xsl:text>&nbsp;</xsl:text> </xsl:template> this one returns a **XsltParseError**
xslt
null
null
null
null
null
open
using a html entity in xslt (e.g.  ) === what is the best way to include a htlm entity in XSLT? <xsl:template match="/a/node"> <xsl:value-of select="."/> <xsl:text>&nbsp;</xsl:text> </xsl:template> this one returns a **XsltParseError**
0
31,871
08/28/2008 08:59:07
3,263
08/27/2008 15:33:09
1
0
WSACancelBlockingCall exception
Ok, I have a strange exception thrown from my code that's been bothering me for ages. This is the code: TcpListener serverSocket= new TcpListener(new IPEndPoint(bindAddress, port)); serverSocket.Start(); (...) socket = serverSocket.AcceptTcpClient(); //Funny exception thrown from here ...
c#
sockets
null
null
null
null
open
WSACancelBlockingCall exception === Ok, I have a strange exception thrown from my code that's been bothering me for ages. This is the code: TcpListener serverSocket= new TcpListener(new IPEndPoint(bindAddress, port)); serverSocket.Start(); (...) socket = serverSocket.AcceptTcpClient(); ...
0
31,875
08/28/2008 09:03:09
3,363
08/28/2008 08:41:45
11
1
Is there a simple, elegant way to define Singletons in Python?
There seem to be many ways to define Singletons in python. I was wondering if there is a consensus opinion on StackOverflow.
python
patterns
singleton
null
null
null
open
Is there a simple, elegant way to define Singletons in Python? === There seem to be many ways to define Singletons in python. I was wondering if there is a consensus opinion on StackOverflow.
0
31,882
08/28/2008 09:08:43
1,600
08/17/2008 13:46:47
669
54
(Why) should I use obfuscation?
It seems to me obfuscation is an idea that falls somewhere in the "security by obscurity" or "false sense of protection" camp. To protect intellectual property, there's copyright; to prevent security issues from being found, there's *fixing those issues*. In short, I regard it as a technical solution to a social proble...
.net
security
obfuscation
protection
null
null
open
(Why) should I use obfuscation? === It seems to me obfuscation is an idea that falls somewhere in the "security by obscurity" or "false sense of protection" camp. To protect intellectual property, there's copyright; to prevent security issues from being found, there's *fixing those issues*. In short, I regard it as a ...
0
31,885
08/28/2008 09:09:58
3,205
08/27/2008 13:06:13
11
5
Does Visual Studio Server Explorer support custom database providers?
I had used Server Explorer and related tools for graphical database development with Microsoft SQL Server in some of my learning projects - and it was a great experience. However, in my work I deal with Oracle DB and SQLite and my hobby projects use MySQL (because they are hosted on Linux). Is there a way to leverag...
c#
visual-studio
mysql
oracle
sqlite
null
open
Does Visual Studio Server Explorer support custom database providers? === I had used Server Explorer and related tools for graphical database development with Microsoft SQL Server in some of my learning projects - and it was a great experience. However, in my work I deal with Oracle DB and SQLite and my hobby projects...
0
31,906
08/28/2008 09:31:09
3,353
08/28/2008 07:32:01
8
0
How to efficiently archive older parts of a big (multi-GB) SQL Server database?
Right now I am working on a solution to archive older data from a big working database to a separate archive database with the same schema. I move the data using SQL scripts and SQL Server Management Objects (SMO) from a .Net executable written in C#. The archived data should still be accessible and even (occassiona...
sql
sql-server
null
null
null
null
open
How to efficiently archive older parts of a big (multi-GB) SQL Server database? === Right now I am working on a solution to archive older data from a big working database to a separate archive database with the same schema. I move the data using SQL scripts and SQL Server Management Objects (SMO) from a .Net executabl...
0
31,913
08/28/2008 09:40:19
3,373
08/28/2008 09:40:18
1
0
a more generic visitor pattern
I'm sorry if my question is so long and technical but I think it's so important other people will be interested about it I was looking for a way to separate clearly some softwares internals from their representation in c++ I have a generic parameter class (to be later stored in a container) that can contain any k...
design-patterns
visitor
c++
null
null
null
open
a more generic visitor pattern === I'm sorry if my question is so long and technical but I think it's so important other people will be interested about it I was looking for a way to separate clearly some softwares internals from their representation in c++ I have a generic parameter class (to be later stored in...
0
31,919
08/28/2008 09:43:42
578
08/06/2008 22:07:45
28
4
How to make the process of debugging an APS.NET application less time consuming?
I'm comparing it Java where you can start your application server in debug mode, then attach your IDE to the server. And you can change your code "on the fly" without restarting the serer. As long as your changes don't affect any method signatures or fields you can just hit recompile for a class and the application ser...
asp.net
debugging
null
null
null
null
open
How to make the process of debugging an APS.NET application less time consuming? === I'm comparing it Java where you can start your application server in debug mode, then attach your IDE to the server. And you can change your code "on the fly" without restarting the serer. As long as your changes don't affect any meth...
0
31,930
08/28/2008 09:50:48
2,972
08/26/2008 09:20:36
30
4
Sending e-mail from a Custom SQL Server Reporting Services Delivery Extension
I've developed my own delivery extension for Reporting Services 2005, to integrate this with our SaaS marketing solution. It takes the subscription, and takes a snapshot of the report with a custom set of parameters. It then renders the report, sends an e-mail with a link and the report attached as XLS. E...
c#
reporting-services
extension
null
null
null
open
Sending e-mail from a Custom SQL Server Reporting Services Delivery Extension === I've developed my own delivery extension for Reporting Services 2005, to integrate this with our SaaS marketing solution. It takes the subscription, and takes a snapshot of the report with a custom set of parameters. It then rend...
0
31,931
08/28/2008 09:50:48
916
08/10/2008 11:21:51
77
5
What's the simplest way to decremement a date in Javascript by 1 day?
I need to decrement a Javascript date by 1 day, so that it rolls back across months/years correctly. That is, if I have a date of 'Today', I want to get the date for 'Yesterday'. It always seems to take more code than necessary when I do this, so I wonder if there's a simple way. What's the simplest way of doi...
javascript
browser
null
null
null
null
open
What's the simplest way to decremement a date in Javascript by 1 day? === I need to decrement a Javascript date by 1 day, so that it rolls back across months/years correctly. That is, if I have a date of 'Today', I want to get the date for 'Yesterday'. It always seems to take more code than necessary when I do thi...
0
31,935
08/28/2008 09:53:22
3,099
08/26/2008 16:23:14
1
0
ASP.NET AJAX: Firing an UpdatePanel after the page load is complete
I'm sure this is easy but I can't figure it out: I have an ASP.NET page with some UpdatePanels on it. I want the page to *completely* load with some 'Please wait' text in the UpdatePanels. Then once the page is *completely loaded* I want to call a code-behind function to update the UpdatePanel. Any ideas as to ...
asp.net
javascript
ajax
null
null
null
open
ASP.NET AJAX: Firing an UpdatePanel after the page load is complete === I'm sure this is easy but I can't figure it out: I have an ASP.NET page with some UpdatePanels on it. I want the page to *completely* load with some 'Please wait' text in the UpdatePanels. Then once the page is *completely loaded* I want to c...
0
31,982
08/28/2008 10:25:00
2,797
08/25/2008 07:48:49
1
3
Looking for a good book to learn SQL
I'm looking for a good and short book to learn SQL in general, and good modern SQL practices. Any suggestions? Thanks!
sql
books
null
null
null
null
open
Looking for a good book to learn SQL === I'm looking for a good and short book to learn SQL in general, and good modern SQL practices. Any suggestions? Thanks!
0
32,000
08/28/2008 10:37:39
1,344
08/14/2008 16:03:00
1,319
98
C# - SQLClient - Simplest INSERT
Before someone gets in a tizzy because this was answered elsewhere (not sure if it was,but...), the 5 "related questions" shown right now do not match what I'm looking for, and I searched the string "sql insert" and did not find quite what I was looking for. So I'm basically trying to figure out the simplest way to ...
sql
t-sql
query
sql-server
c#
null
open
C# - SQLClient - Simplest INSERT === Before someone gets in a tizzy because this was answered elsewhere (not sure if it was,but...), the 5 "related questions" shown right now do not match what I'm looking for, and I searched the string "sql insert" and did not find quite what I was looking for. So I'm basically try...
0
32,001
08/28/2008 10:38:03
142
08/02/2008 12:41:43
160
13
Resettable Java Timer
I'd like to have a java.utils.Timer with a resettable time in java. E.g. the timer should be able to do something like: Timer timer = new Timer(); timer.schedule(timerTask, 5000); //Timer starts in 5000 ms //At some point between 0 and 5000 ms... setNewTime(timer, 8000); //timerTask w...
java
timer
null
null
null
null
open
Resettable Java Timer === I'd like to have a java.utils.Timer with a resettable time in java. E.g. the timer should be able to do something like: Timer timer = new Timer(); timer.schedule(timerTask, 5000); //Timer starts in 5000 ms //At some point between 0 and 5000 ms... setNewTime(t...
0
32,003
08/28/2008 10:47:38
1,462
08/15/2008 17:26:18
46
6
Tool for commandline "bookmarks" on windows?
Im searching a tool which allows me to specify some folders as "bookmarks" and than access them on the commandline (on Windows XP) via a keyword. Something like: C:\> go home D:\profiles\user\home\> go svn-project1 D:\projects\project1\svn\branch\src\> I'm currently using a bunch of batch file...
commandline
null
null
null
null
null
open
Tool for commandline "bookmarks" on windows? === Im searching a tool which allows me to specify some folders as "bookmarks" and than access them on the commandline (on Windows XP) via a keyword. Something like: C:\> go home D:\profiles\user\home\> go svn-project1 D:\projects\project1\svn\branch\src\> ...
0
32,010
08/28/2008 10:55:17
1,384,652
08/01/2008 12:01:23
1,518
74
RegexOptions.IgnoreCase
[Source][1] > RegexOptions.IgnoreCase is more expensive than I would have thought (eg, should be barely measurable) Assuming that this applies to PHP, Python, Perl, Ruby etc as well as C# (which is what I assume Jeff was using), how much of a slowdown is it and will I incur a similar penalty with "/[a-zA-z]/" as ...
regex
null
null
null
null
null
open
RegexOptions.IgnoreCase === [Source][1] > RegexOptions.IgnoreCase is more expensive than I would have thought (eg, should be barely measurable) Assuming that this applies to PHP, Python, Perl, Ruby etc as well as C# (which is what I assume Jeff was using), how much of a slowdown is it and will I incur a similar ...
0
32,020
08/28/2008 11:23:44
1,417
08/15/2008 15:13:33
1
0
Is soapUI the best web services testing tool/client/framework?
I have been working on a web services related project for about the last year. Our team found [soapUI][1] near the start of our project and we have been satisfied with it (the free version, that is). My question is: are there other tools/clients/frameworks that you have used/currently use for web services testing a...
web-services
testing
null
null
null
null
open
Is soapUI the best web services testing tool/client/framework? === I have been working on a web services related project for about the last year. Our team found [soapUI][1] near the start of our project and we have been satisfied with it (the free version, that is). My question is: are there other tools/clients/fr...
0
32,027
08/28/2008 11:35:12
3,024
08/26/2008 12:30:57
31
5
NAnt and dual platform build - best way to build on Windows AND Mono/Linux
I'm new to NAnt but have some experience with Ant and CruiseControl. What I want to do is have my SVN project include all tools needed (like NUnit and Mocks etc) so I can check out onto a fresh machine and build. This strategy is outlined by J.P Boodhoo [here.][1] So far so good if I only want to run on Windows, ...
.net
linux
build-process
mono
nant
null
open
NAnt and dual platform build - best way to build on Windows AND Mono/Linux === I'm new to NAnt but have some experience with Ant and CruiseControl. What I want to do is have my SVN project include all tools needed (like NUnit and Mocks etc) so I can check out onto a fresh machine and build. This strategy is outline...
0
32,034
08/28/2008 11:36:52
2,993
08/26/2008 10:45:59
275
12
In C#, isn't the observer pattern already implemented using Events?
After reading the Head First Design Patterns book and using a number of other design patterns, I'm trying to understand the Observer pattern. Isn't this already implemented using Events in the .NET Framework?
c#
design-patterns
null
null
null
null
open
In C#, isn't the observer pattern already implemented using Events? === After reading the Head First Design Patterns book and using a number of other design patterns, I'm trying to understand the Observer pattern. Isn't this already implemented using Events in the .NET Framework?
0
32,041
08/28/2008 11:40:58
1,772
08/18/2008 14:05:29
21
6
How to remove debug statements from production code in Java
Is it possible for the compiler to remove statements used for debugging purposes (such as logging) from production code? The debug statements would need to be marked somehow, maybe using annotations. It's easy to set a property (debug = true) and check it at each debug statement, but this can reduce performance. It ...
performance
java
debugging
null
null
null
open
How to remove debug statements from production code in Java === Is it possible for the compiler to remove statements used for debugging purposes (such as logging) from production code? The debug statements would need to be marked somehow, maybe using annotations. It's easy to set a property (debug = true) and check...
0
32,044
08/28/2008 11:43:10
3,154
08/27/2008 02:48:03
1
0
How can I render a tree structure (recursive) using a django template?
I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name = "node name" children = [] There will be some object `root` that is a `Node`, and `children` is a list of `Node`s. `root` will be passed in the content of the template. I have f...
python
django
null
null
null
null
open
How can I render a tree structure (recursive) using a django template? === I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name = "node name" children = [] There will be some object `root` that is a `Node`, and `children` is a list o...
0
32,058
08/28/2008 11:52:34
3,379
08/28/2008 10:27:56
1
0
How do I extract the inner exception from a soap exception in ASP.NET?
I have a simple web service operation like this one: [WebMethod] public string HelloWorld() { throw new Exception("HelloWorldException"); return "Hello World"; } And then I have a client application that consumes the web service and then calls the opera...
.net
asp.net
web-services
exception
soap
null
open
How do I extract the inner exception from a soap exception in ASP.NET? === I have a simple web service operation like this one: [WebMethod] public string HelloWorld() { throw new Exception("HelloWorldException"); return "Hello World"; } And then I have...
0
32,059
08/28/2008 11:54:02
2,138
08/20/2008 14:23:45
27
1
How to get number of occurrences in a SQL IN clause
Let say i have four tables PAGE, USER, TAG and PAGE-TAG PAGE has fields ID, CONTENT ... TAG has fields ID, NAME ... USER has fields ID, NAME ... PAGE-TAG has fields ID, PAGE-ID, TAG-ID, USER-ID Let say i have four pages PAGE#1 'Content page 1' tagged with tag#1 by user1, tagged with tag#1 by user2 ...
sql
null
null
null
null
null
open
How to get number of occurrences in a SQL IN clause === Let say i have four tables PAGE, USER, TAG and PAGE-TAG PAGE has fields ID, CONTENT ... TAG has fields ID, NAME ... USER has fields ID, NAME ... PAGE-TAG has fields ID, PAGE-ID, TAG-ID, USER-ID Let say i have four pages PAGE#1 'Content page 1' ...
0
32,087
08/28/2008 12:32:43
184
08/03/2008 05:34:19
1,027
12
What all are the tools/languages for windows shell scripting?
I want to know what are the options to do some scripting jobs in windows platform. I need functionality like file manipulations, registry editing etc. Can files be edited using scripting tools? What other functionality does windows scripting tools offer? Can everything that can be done using the Windows GUI be done ...
windows
scripting
null
null
null
null
open
What all are the tools/languages for windows shell scripting? === I want to know what are the options to do some scripting jobs in windows platform. I need functionality like file manipulations, registry editing etc. Can files be edited using scripting tools? What other functionality does windows scripting tools off...
0
32,100
08/28/2008 12:39:53
184
08/03/2008 05:34:19
1,027
12
What is the simplest SQL Query to find the second largest value?
What is the simplest SQL query to find the second largest integer value in a specific column? Of course there may be duplicate values in the column.
sql
puzzle
null
null
null
null
open
What is the simplest SQL Query to find the second largest value? === What is the simplest SQL query to find the second largest integer value in a specific column? Of course there may be duplicate values in the column.
0
32,103
08/28/2008 12:41:04
379
08/05/2008 10:03:38
151
14
how do you programatically invoke a listview label edit
in C# I'd like to invoke the label edit of a newly added item to a ListView. basically, if I have a *click here to add* scenario, as soon as the new item is added, I want the text label to be in a user editable state. Thanks!
c#
.net
winforms
gui
noob
null
open
how do you programatically invoke a listview label edit === in C# I'd like to invoke the label edit of a newly added item to a ListView. basically, if I have a *click here to add* scenario, as soon as the new item is added, I want the text label to be in a user editable state. Thanks!
0
32,123
08/28/2008 12:46:26
2,974
08/26/2008 09:39:16
201
22
procmail lockfile utility and NFS
G'day, Has anyone used the lockfile utility that ships with procmail in conjunction with NFS mounted directories? The lockfile man page states that "Lockfile is NFS-resistant and eight-bit clean." cheers, Rob
unix
nfs
procmail
lockfile
null
null
open
procmail lockfile utility and NFS === G'day, Has anyone used the lockfile utility that ships with procmail in conjunction with NFS mounted directories? The lockfile man page states that "Lockfile is NFS-resistant and eight-bit clean." cheers, Rob
0
32,133
08/28/2008 12:50:16
3,018
08/26/2008 12:12:23
208
16
How can I introduce code reviews to my group/company?
My group is made up of very competent programmers. I work for the company's research team, which is pretty selective in hiring. Having said that, we all tend to work on different projects, so it is very easy to cut corners because no one is watching. I know that I have done it when time crunched. Every now and ...
codereview
code-review
teamwork
null
null
11/08/2011 17:10:08
off topic
How can I introduce code reviews to my group/company? === My group is made up of very competent programmers. I work for the company's research team, which is pretty selective in hiring. Having said that, we all tend to work on different projects, so it is very easy to cut corners because no one is watching. I know ...
2
32,144
08/28/2008 12:54:02
470
08/06/2008 02:58:55
80
13
Why can't SQL Server run on a Novell server?
I'm not sure whether I'm asking the question correctly, but I've been told SQL Server cannot run on a Novell server. Is this true? If yes, why not?
sql-server
novell
null
null
null
null
open
Why can't SQL Server run on a Novell server? === I'm not sure whether I'm asking the question correctly, but I've been told SQL Server cannot run on a Novell server. Is this true? If yes, why not?
0
32,145
08/28/2008 12:54:09
305
08/04/2008 14:04:19
961
64
Is this a reasonable way to handle getters/setters in a PHP class?
I'm going to try something with the format of this question and I'm very open to suggestions about a better way to handle it. I didn't want to just dump a bunch of code in the question so I've posted the code for the class on refactormycode. **[base-class-for-easy-class-property-handling](http://www.refactormycod...
php
oop
null
null
null
null
open
Is this a reasonable way to handle getters/setters in a PHP class? === I'm going to try something with the format of this question and I'm very open to suggestions about a better way to handle it. I didn't want to just dump a bunch of code in the question so I've posted the code for the class on refactormycode. ...
0
32,149
08/28/2008 12:55:58
3,203
08/27/2008 13:01:25
11
1
Does anyone have a good Proper Case algorithm
Does anyone have a trusted Proper Case or PCase algorithm (similar to a UCase or Upper)? I'm looking for something that takes a value such as "GEORGE BURDELL" or "george burdell" and turns it into "George Burdell". I have a simple one that handles the simple cases. The ideal would be to have something that can han...
string
c#
algorithm
null
null
null
open
Does anyone have a good Proper Case algorithm === Does anyone have a trusted Proper Case or PCase algorithm (similar to a UCase or Upper)? I'm looking for something that takes a value such as "GEORGE BURDELL" or "george burdell" and turns it into "George Burdell". I have a simple one that handles the simple cases....
0
32,151
08/28/2008 12:57:11
3,396
08/28/2008 12:43:15
1
0
Best way to export html to Word without having MS Word installed?
Is there a way to export a simple html page to word (.doc format, not .docx) without having MSWord installed?
c#
html
word2003
null
null
null
open
Best way to export html to Word without having MS Word installed? === Is there a way to export a simple html page to word (.doc format, not .docx) without having MSWord installed?
0
32,168
08/28/2008 13:01:41
2,686
08/24/2008 14:42:08
11
6
C++ cast syntax styles
A question related to [Regular cast vs. static_cast vs. dynamic_cast][1]: What cast syntax style do you prefer in C++? - C-style cast syntax: `(int)foo` - C++-style cast syntax: `static_cast<int>(foo)` - constructor syntax: `int(foo)` They may not translate to exactly the same instructions (do they?) b...
c++
code-style
casting
null
null
null
open
C++ cast syntax styles === A question related to [Regular cast vs. static_cast vs. dynamic_cast][1]: What cast syntax style do you prefer in C++? - C-style cast syntax: `(int)foo` - C++-style cast syntax: `static_cast<int>(foo)` - constructor syntax: `int(foo)` They may not translate to exactly the sa...
0
32,173
08/28/2008 13:03:20
2,808
08/25/2008 10:24:10
1
1
Disable asp.net radiobutton with javascript
I'm trying to disable a bunch of controls with javascript (so that they postback values). All the controls work fine except for my radio buttons as they loose their value. In the below code which is called via a recursive function to disable all child controls the Second else (else if (control is RadioButton)) is never...
c#
asp.net
null
null
null
null
open
Disable asp.net radiobutton with javascript === I'm trying to disable a bunch of controls with javascript (so that they postback values). All the controls work fine except for my radio buttons as they loose their value. In the below code which is called via a recursive function to disable all child controls the Second...
0
32,175
08/28/2008 13:03:25
2,494
08/22/2008 14:29:22
25
8
Installing a .NET service using InstallUtil
I'm trying to install a .NET service I wrote. As recommended by MSDN, I'm using InstallUtil. But I have missed how I can set the default service user on the command-line or even in the service itself. Now, when InstallUtil is run, it will display a dialog asking the user for the credentials for a user. I'm trying t...
.net
windows-services
installutil
null
null
null
open
Installing a .NET service using InstallUtil === I'm trying to install a .NET service I wrote. As recommended by MSDN, I'm using InstallUtil. But I have missed how I can set the default service user on the command-line or even in the service itself. Now, when InstallUtil is run, it will display a dialog asking the u...
0
32,220
08/28/2008 13:14:39
518
08/06/2008 14:07:17
85
14
any site with a good resume of Java related APIs and technologies?
Hello today in the [java Sun page][1] there is an [article][2] about JAXB technology wich helps on create XML schemas and create java objects instances from/to xml documents. This tech could help me if have known it before. The same happens to me with JPA. There are a lot of Java technologies and APIs and is diff...
java
null
null
null
null
null
open
any site with a good resume of Java related APIs and technologies? === Hello today in the [java Sun page][1] there is an [article][2] about JAXB technology wich helps on create XML schemas and create java objects instances from/to xml documents. This tech could help me if have known it before. The same happens to m...
0
32,227
08/28/2008 13:17:20
3,401
08/28/2008 13:04:02
1
0
Data model for a extensible web form
Suppose that I have a form that contains three 10 fields: field1..field10. I store the form data in one or more database tables, probably using 10 database columns. Now suppose a few months later that I want to add 3 more fields. And in the future I may add/delete fields from this form based on changing require...
database-design
forms
null
null
null
null
open
Data model for a extensible web form === Suppose that I have a form that contains three 10 fields: field1..field10. I store the form data in one or more database tables, probably using 10 database columns. Now suppose a few months later that I want to add 3 more fields. And in the future I may add/delete field...
0
32,229
08/28/2008 13:17:26
290
08/04/2008 12:57:50
782
59
When do you stop testing?
What measure(s) do you use to know when it's time to stop testing an application and move it to production?
testing
lifecycle
measure
null
null
null
open
When do you stop testing? === What measure(s) do you use to know when it's time to stop testing an application and move it to production?
0
32,230
08/28/2008 13:17:42
3,382
08/28/2008 11:48:15
1
0
Tracking down where disk space has gone on Linux?
When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time before any results are returned. Also, this is usually successful in highlighting the worst offender but I've often...
linux
disk
command-line
unix
null
null
open
Tracking down where disk space has gone on Linux? === When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time before any results are returned. Also, this is usually succe...
0
32,231
08/28/2008 13:18:23
2,443
08/22/2008 10:53:30
69
15
Adaptive Database
Are there any rapid Database protoyping tools that don't require me to declare a database schema, but rather create it based on the way I'm using my entities. For example, assuming an empty database (pseudo code): user1 = new User() // Creates the user table with a single id column user1.firstName = "Al...
database
orm
null
null
null
null
open
Adaptive Database === Are there any rapid Database protoyping tools that don't require me to declare a database schema, but rather create it based on the way I'm using my entities. For example, assuming an empty database (pseudo code): user1 = new User() // Creates the user table with a single id column ...
0
32,241
08/28/2008 13:23:07
1,075
08/12/2008 10:13:30
1,060
77
Algorithm to format text to Pascal or camel casing
[Using this question][1] as the base is there an alogrithm or coding example to change some text to Pascal or Camel casing. For example: mynameisfred becomes Camel: myNameIsFred Pascal: MyNameIsFred [1]: http://stackoverflow.com/questions/32149/does-anyone-have-a-good-proper-case-algorithm
algorithm
null
null
null
null
null
open
Algorithm to format text to Pascal or camel casing === [Using this question][1] as the base is there an alogrithm or coding example to change some text to Pascal or Camel casing. For example: mynameisfred becomes Camel: myNameIsFred Pascal: MyNameIsFred [1]: http://stackoverflow.com/quest...
0
32,243
08/28/2008 13:23:33
1,820
08/18/2008 18:06:03
721
29
Can PNG image transparency be preserved when using PHP's GDlib imagecopyresampled?
The following PHP code snippet uses GD to resize a browser-uploaded PNG to 128x128. It works great, except that the transparent areas in the original image are being replaced with a solid color- black in my case. What's the best way to preserve the transparency in the resampled image? $uploadTempFile = $...
php
gd
png
transparency
null
null
open
Can PNG image transparency be preserved when using PHP's GDlib imagecopyresampled? === The following PHP code snippet uses GD to resize a browser-uploaded PNG to 128x128. It works great, except that the transparent areas in the original image are being replaced with a solid color- black in my case. What's the best...
0
32,246
08/28/2008 13:24:09
2,947
08/26/2008 08:37:39
11
2
how to get the googlebot to get the correct GEOIPed content!?
OK. This problem is doing my head in. And I dont know if there even IS a definitive answer. We have a website, lets call it finalcog.com. It's a UK-based site, with UK based content. Google knows about it, and we have done a load of SEO on it. All is well. **Except**, we are about to relaunch **final cog, the GLO...
google
seo
international
null
null
null
open
how to get the googlebot to get the correct GEOIPed content!? === OK. This problem is doing my head in. And I dont know if there even IS a definitive answer. We have a website, lets call it finalcog.com. It's a UK-based site, with UK based content. Google knows about it, and we have done a load of SEO on it. All is...
0
32,260
08/28/2008 13:28:38
2,535
08/22/2008 17:36:15
21
2
Sending Email in C#.NET Through Gmail
Instead of relying on my host to send email, I was thinking of sending the messages though my gmail account. The emails are personalized emails to the bands I play on my show. Has anyone had success doing this?
c#
email
gmail
null
null
null
open
Sending Email in C#.NET Through Gmail === Instead of relying on my host to send email, I was thinking of sending the messages though my gmail account. The emails are personalized emails to the bands I play on my show. Has anyone had success doing this?
0
32,280
08/28/2008 13:34:40
3,295
08/27/2008 17:52:45
154
9
Passing null to a method
I am in the middle of reading the excellent [Clean Code](http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882) One discussion is regarding passing nulls into a method. public class MetricsCalculator { public double xProjection(Point p1, Point p2) { return (p2.x ...
java
null
assert
null
null
01/26/2012 13:34:32
not constructive
Passing null to a method === I am in the middle of reading the excellent [Clean Code](http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882) One discussion is regarding passing nulls into a method. public class MetricsCalculator { public double xProjection(Point p1, Point p2...
4
32,282
08/28/2008 13:34:55
2,820
08/25/2008 11:37:16
40
4
Regex Testing Tools
I know of [The Regulator][1] for testing regular expressions. And there's also [RegExr][2] for testing regular expressions as well. Does anyone know of other regex testing tools? Do any of these tools allow you to specify which RE engine you're testing against? [1]: http://sourceforge.net/projects/regulator ...
regex
null
null
null
null
03/21/2012 11:02:29
not constructive
Regex Testing Tools === I know of [The Regulator][1] for testing regular expressions. And there's also [RegExr][2] for testing regular expressions as well. Does anyone know of other regex testing tools? Do any of these tools allow you to specify which RE engine you're testing against? [1]: http://sourceforge...
4
32,315
08/28/2008 13:46:23
648
08/07/2008 13:22:00
223
21
What is Web 3.0?
My boss asked me this yesterday just to gauge my response. Apparently, some of our clients are asking for "Web 3.0" I told him I really didn't know. He said when he's asked around the consensus is that it's microformats, etc. Frankly no one really knew either. (probably get a varied response now to "what is web...
standards
mozilla
microformats
web3.0
null
null
open
What is Web 3.0? === My boss asked me this yesterday just to gauge my response. Apparently, some of our clients are asking for "Web 3.0" I told him I really didn't know. He said when he's asked around the consensus is that it's microformats, etc. Frankly no one really knew either. (probably get a varied respon...
0
32,332
08/28/2008 14:07:00
61
08/01/2008 14:21:00
742
60
Why don't the std::fstream classes take a std::string?
This isn't a design question, really, though it may seem like it. (Well, okay, it's kind of a design question). What I'm wondering is why the C++ `std::fstream` classes don't take a `std::string` in their constructor or open methods. Everyone loves code examples so: #include <iostream> #include <fstream> ...
c++
file-io
null
null
null
null
open
Why don't the std::fstream classes take a std::string? === This isn't a design question, really, though it may seem like it. (Well, okay, it's kind of a design question). What I'm wondering is why the C++ `std::fstream` classes don't take a `std::string` in their constructor or open methods. Everyone loves code exampl...
0
32,333
08/28/2008 14:07:15
1,190
08/13/2008 12:15:38
873
80
How can I program defensively in Ruby?
One thing that concerns me as a security professional is that Ruby doesn't have a parallel of Java's package-privacy. That is, this isn't valid Ruby: public module Foo public module Bar # factory method for new Bar implementations def self.new(...) SimpleBarImplementation.new...
ruby
security
defensive-programming
null
null
null
open
How can I program defensively in Ruby? === One thing that concerns me as a security professional is that Ruby doesn't have a parallel of Java's package-privacy. That is, this isn't valid Ruby: public module Foo public module Bar # factory method for new Bar implementations def self.new...
0
32,338
08/28/2008 14:09:25
3,326
08/27/2008 23:34:17
3
1
Are there similar tools to Code Detective for Other languages/IDEs?
Just saw this linked on YCombinator news and the idea heavily appeals to me, and seems like it would be useful for many languages, not just c#, but haven't seen anything similar elsewhere. For reference: http://www.codeplex.com/CloneDetectiveVS edit: basic description of the tool for those who don't want to foll...
c#
alllanguages
null
null
null
null
open
Are there similar tools to Code Detective for Other languages/IDEs? === Just saw this linked on YCombinator news and the idea heavily appeals to me, and seems like it would be useful for many languages, not just c#, but haven't seen anything similar elsewhere. For reference: http://www.codeplex.com/CloneDetectiveV...
0
32,341
08/28/2008 14:10:52
2,490
08/22/2008 13:52:54
35
3
How do I list all Entries with a certain tag in Wordpress?
I may just be missing this functionality, but does anyone know if there is a widget available: I need to list the subject for all the entries that are associated with a given tag. For example: I have 5 articles tagged with "Tutorial", I'd like to see a list as follows: Tutorial 1 - Installing the app Tutorial...
wordpress
widgets
null
null
null
null
open
How do I list all Entries with a certain tag in Wordpress? === I may just be missing this functionality, but does anyone know if there is a widget available: I need to list the subject for all the entries that are associated with a given tag. For example: I have 5 articles tagged with "Tutorial", I'd like to see...
0
32,360
08/28/2008 14:16:15
3,400
08/28/2008 13:02:35
1
0
1:1 Foreign Key Constraints
How do you specify that a foreign key constraint should be a 1:1 relationship in transact sql? Is declaring the column UNIQUE enough? Below is my existing code. Thanks in advance for the help! CREATE TABLE [dbo].MyTable( [MyTablekey] INT IDENTITY(1,1) NOT FOR REPLICATION NOT NULL, [OtherTableKe...
sql
null
null
null
null
null
open
1:1 Foreign Key Constraints === How do you specify that a foreign key constraint should be a 1:1 relationship in transact sql? Is declaring the column UNIQUE enough? Below is my existing code. Thanks in advance for the help! CREATE TABLE [dbo].MyTable( [MyTablekey] INT IDENTITY(1,1) NOT FOR REPLICATION...
0
32,364
08/28/2008 14:17:11
1,946
08/19/2008 14:53:06
93
5
Assert action redirected to correct action/route?
How do I exercise an action to ensure it redirects to the correct action or route?
unit-testing
asp.net-mvc
null
null
null
null
open
Assert action redirected to correct action/route? === How do I exercise an action to ensure it redirects to the correct action or route?
0
32,366
08/28/2008 14:17:35
326
08/04/2008 16:59:58
158
11
What are the key considerations when creating a web crawler?
I just started thinking about creating/customizing a web crawler today, and know very little about web crawler/robot etiquette. A majority of the writings on etiquette I've found seem old and awkward, so I'd like to get some current (and practical) insights from the web developer community. I want to use a crawler ...
webcrawler
null
null
null
null
null
open
What are the key considerations when creating a web crawler? === I just started thinking about creating/customizing a web crawler today, and know very little about web crawler/robot etiquette. A majority of the writings on etiquette I've found seem old and awkward, so I'd like to get some current (and practical) insi...
0
32,369
08/28/2008 14:18:09
3,262
08/27/2008 15:30:29
8
2
Disable browser 'Save Password' functionality
One of the joys of working for a government healthcare agency is having to deal with all of the paranoia around dealing with PHI (Protected Health Information). Don't get me wrong, I'm all for doing everything possible to protect people's personal information (health, financial, surfing habits, etc.), but sometimes peo...
security
browser
passwords
null
null
null
open
Disable browser 'Save Password' functionality === One of the joys of working for a government healthcare agency is having to deal with all of the paranoia around dealing with PHI (Protected Health Information). Don't get me wrong, I'm all for doing everything possible to protect people's personal information (health, ...
0
32,376
08/28/2008 14:21:10
1,553
08/16/2008 15:43:17
261
13
What is a good open source B-tree implementation in C?
I am looking for a lean and well constructed open source implementation of a B-tree library written in C. It needs to be under a non-GPL license so that it can be used in a commercial application. Ideally, this library supports the B-tree index to be stored/manipulated as a disk file so that large trees can be built us...
algorithm
data-structures
null
null
null
null
open
What is a good open source B-tree implementation in C? === I am looking for a lean and well constructed open source implementation of a B-tree library written in C. It needs to be under a non-GPL license so that it can be used in a commercial application. Ideally, this library supports the B-tree index to be stored/ma...
0
32,377
08/28/2008 14:21:11
2,494
08/22/2008 14:29:22
35
10
Test plans and how best to write them
We're trying to figure out the best way to write tests in our test plan. Specifically, when writing a test that is meant to be used by anyone including QA staff, should the steps in the test be very specific or more broad giving the tester more leeway in how the task can be accomplished. As a very simple example, if ...
testing
null
null
null
null
null
open
Test plans and how best to write them === We're trying to figure out the best way to write tests in our test plan. Specifically, when writing a test that is meant to be used by anyone including QA staff, should the steps in the test be very specific or more broad giving the tester more leeway in how the task can be a...
0
32,385
08/28/2008 14:23:00
2,147
08/20/2008 15:14:13
433
48
Programmatically editing python source
This is something that I think would be very useful. Basically, I'd like there to be a way to edit python source programmatically without requiring human intervention. There are a couple of things I would like to do with this: 1) Edit the configuration of python apps that use source modules for configuration. ...
python
source-file
null
null
null
null
open
Programmatically editing python source === This is something that I think would be very useful. Basically, I'd like there to be a way to edit python source programmatically without requiring human intervention. There are a couple of things I would like to do with this: 1) Edit the configuration of python apps th...
0
32,395
08/28/2008 14:24:15
93
08/01/2008 18:23:58
320
11
XAML - Accessing static fields
How does one go about referencing a class's static properties in xaml? In other words, I want to do something like this: C# Class BaseThingy { public static readonly Style BaseStyle; ... } XAML <ResoureDictionary ...> <Style BasedOn="BaseThingy.Style" TargetType="BaseThing...
c#
.net
wpf
silverlight
xaml
null
open
XAML - Accessing static fields === How does one go about referencing a class's static properties in xaml? In other words, I want to do something like this: C# Class BaseThingy { public static readonly Style BaseStyle; ... } XAML <ResoureDictionary ...> <Style BasedOn="Bas...
0
32,397
08/28/2008 14:24:21
1,942
08/19/2008 14:45:43
86
10
Popularity algorithm
On SO 18 Joel mentioned an algorithm that would rank items based on their age and popularity and it's based on gravity. Could someone post this? C# would be lovely, but really any language (well, I can't do LISP) would be fine.
math
c#
null
null
null
null
open
Popularity algorithm === On SO 18 Joel mentioned an algorithm that would rank items based on their age and popularity and it's based on gravity. Could someone post this? C# would be lovely, but really any language (well, I can't do LISP) would be fine.
0
32,401
08/28/2008 14:26:42
2,868
08/25/2008 16:43:06
38
3
Validate a UK phone number
How do I validate a UK phone number in C# using a regex?
c#
regex
regular-expression
null
null
null
open
Validate a UK phone number === How do I validate a UK phone number in C# using a regex?
0
32,404
08/28/2008 14:28:04
2,077
08/20/2008 07:26:21
149
4
Can I run a Python script as a service (in Windows)? How?
I am sketching the architecture for a set of programs that share various interrelated objects stored in a database. I want one of the programs to act as a service which provides a higher level interface for operations on these objects, and the other programs to access the objects through that service. I am currently...
python
windows
crossplatform
null
null
null
open
Can I run a Python script as a service (in Windows)? How? === I am sketching the architecture for a set of programs that share various interrelated objects stored in a database. I want one of the programs to act as a service which provides a higher level interface for operations on these objects, and the other program...
0
32,412
08/28/2008 14:29:59
2,577
08/23/2008 03:18:09
1
0
What's the best way of cleaning up after a SQL Injection?
I've been tasked with the the maintenance of a nonprofit website that recently fell victim to a SQL injection attack. Someone exploited a form on the site to add text to every available text-like field in the database (varchar, nvarchar, etc.) which, when rendered as HTML, includes and executes a JavaScript file. A...
sql
sql-server
database
security
null
null
open
What's the best way of cleaning up after a SQL Injection? === I've been tasked with the the maintenance of a nonprofit website that recently fell victim to a SQL injection attack. Someone exploited a form on the site to add text to every available text-like field in the database (varchar, nvarchar, etc.) which, when r...
0
32,414
08/28/2008 14:30:26
2,176
08/20/2008 18:32:50
13
0
Force JavaScript file refresh on client
We are currently working in a private Beta and so are still in the process of making fairly rapid changes, although obviously as usage is starting to ramp up, we will be slowing down this process. That being said, one issue we are running into is that after we push out an update with new JavaScript files, the client b...
javascript
caching
versioning
null
null
null
open
Force JavaScript file refresh on client === We are currently working in a private Beta and so are still in the process of making fairly rapid changes, although obviously as usage is starting to ramp up, we will be slowing down this process. That being said, one issue we are running into is that after we push out an u...
0
32,428
08/28/2008 14:34:26
326
08/04/2008 16:59:58
163
11
How do I resolve a System.Security.SecurityException with custom code in SSRS?
I've created an assembly and referenced it in my Reporting Services report. I've tested the report locally (works), and I then uploaded the report to a report server (doesn't work). Here is the error that is thrown by the custom code I've written. > System.Security.SecurityException: > Request for the permission...
reporting-services
null
null
null
null
null
open
How do I resolve a System.Security.SecurityException with custom code in SSRS? === I've created an assembly and referenced it in my Reporting Services report. I've tested the report locally (works), and I then uploaded the report to a report server (doesn't work). Here is the error that is thrown by the custom code...
0
32,433
08/28/2008 14:35:50
3,047
08/26/2008 13:36:37
17
4
Linq select * with multiple tables
This query works great: var pageObject = (from op in db.ObjectPermissions join pg in db.Pages on op.ObjectPermissionName equals page.PageName where pg.PageID == page.PageID select op).SingleOrDefault(); I get a new type with my 'op' fields. ...
linq
null
null
null
null
null
open
Linq select * with multiple tables === This query works great: var pageObject = (from op in db.ObjectPermissions join pg in db.Pages on op.ObjectPermissionName equals page.PageName where pg.PageID == page.PageID select op).SingleOrDefault(); ...
0
32,448
08/28/2008 14:41:23
1,524
08/16/2008 10:18:37
1
0
Which 4.x version of gcc should one use?
The product-group I work for is currently using gcc 3.4.6 (we know it is ancient) for a large low-level c-code base, and want to upgrade to a later version. We have seen performance benefits testing different versions of gcc 4.x on all hardware platforms we tested it on. We are however _very_ scared of c-compiler bugs ...
c
compiler
gcc
null
null
null
open
Which 4.x version of gcc should one use? === The product-group I work for is currently using gcc 3.4.6 (we know it is ancient) for a large low-level c-code base, and want to upgrade to a later version. We have seen performance benefits testing different versions of gcc 4.x on all hardware platforms we tested it on. We...
0
32,454
08/28/2008 14:43:55
2,871
08/25/2008 16:56:00
1
1
Helpful snippits?
I'm a relatively new coder, and I'm looking to increase my snippits library. What are some of your most used snippits? I'm mainly looking for ones that I might not have thought about until I've had more experience, but will make me more productive. Have a snippit that is particularly clever? Post it!
code-snippets
null
null
null
null
04/19/2012 15:15:37
not constructive
Helpful snippits? === I'm a relatively new coder, and I'm looking to increase my snippits library. What are some of your most used snippits? I'm mainly looking for ones that I might not have thought about until I've had more experience, but will make me more productive. Have a snippit that is particularly clever? P...
4
32,458
08/28/2008 14:45:26
517
08/06/2008 14:01:37
239
17
Random data in Unit Tests?
I have a coworker who writes unit tests for objects which fill their fields with random data. His reason is that it gives a wider range of testing, since it will test a lot of different values, whereas a normal test only uses a single static value. I've given him a number of different reasons against this, the main ...
unit-testing
null
null
null
null
null
open
Random data in Unit Tests? === I have a coworker who writes unit tests for objects which fill their fields with random data. His reason is that it gives a wider range of testing, since it will test a lot of different values, whereas a normal test only uses a single static value. I've given him a number of different...
0
32,460
08/28/2008 14:45:43
1,228
08/13/2008 13:58:55
861
61
Get the DefaultView DataRowView from a DataRow
Here's the situation: I need to bind a WPF FixedPage against a DataRow. Bindings don't work against DataRows; they work against DataRowViews. I need to do this in the most generic way possible, as I know nothing about and have no control over what is in the DataRow. What I need is to be able to get a DataRowVie...
wpf
dataset
binding
datarowview
defaultview
null
open
Get the DefaultView DataRowView from a DataRow === Here's the situation: I need to bind a WPF FixedPage against a DataRow. Bindings don't work against DataRows; they work against DataRowViews. I need to do this in the most generic way possible, as I know nothing about and have no control over what is in the DataRow...
0
32,462
08/28/2008 14:46:04
2,863
08/25/2008 16:09:56
60
7
Pulling limited tagged photos from Flickr
So I've got a hobby site I'm working on. I've got items that are tagged and I want to associate those items with photos from Flickr. Even with restrictive searches I might get results numbering in the thousands. Requirements: 1. I want to display between 10-20 pictures but I want to randomize the pho...
php
tags
flickr
null
null
null
open
Pulling limited tagged photos from Flickr === So I've got a hobby site I'm working on. I've got items that are tagged and I want to associate those items with photos from Flickr. Even with restrictive searches I might get results numbering in the thousands. Requirements: 1. I want to display between 10-20 ...
0
32,474
08/28/2008 14:49:19
3,043
08/26/2008 13:24:14
364
48
Google using non-alphanumeric characters
So let's say I have an issue with some code and I want to use google to help find a solution. So I paste a code snippet into the search bar. Google will ignore any special characters like operators (especially the '.' operator), returning results that aren't as relevant as I'd like. This is true even when encasing i...
google
null
null
null
null
null
open
Google using non-alphanumeric characters === So let's say I have an issue with some code and I want to use google to help find a solution. So I paste a code snippet into the search bar. Google will ignore any special characters like operators (especially the '.' operator), returning results that aren't as relevant a...
0
32,493
08/28/2008 14:56:09
3,085
08/26/2008 15:02:28
18
1
Advice on how to be graphically creative
I've always felt that my graphic design skills have lacked, but I do have a desire to improve them. Even though I'm not the worlds worst artist, it's discouraging to see the results from a professional designer, who can do an amazing mockup from a simple spec in just a few hours. I always wonder how they came up with...
creativity
graphics
design
null
null
null
open
Advice on how to be graphically creative === I've always felt that my graphic design skills have lacked, but I do have a desire to improve them. Even though I'm not the worlds worst artist, it's discouraging to see the results from a professional designer, who can do an amazing mockup from a simple spec in just a few...
0
32,494
08/28/2008 14:56:55
418
08/05/2008 14:46:44
68
2
Visual Studio identical token highlighting
I coded a Mancala game in Java for a college class this past spring, and I used the [Eclipse][1] IDE to write it. One of the great (and fairly simple) visual aids in Eclipse is if you select a particular token, say a declared variable, then the IDE will automatically highlight all other references to that token on you...
visual-studio
null
null
null
null
null
open
Visual Studio identical token highlighting === I coded a Mancala game in Java for a college class this past spring, and I used the [Eclipse][1] IDE to write it. One of the great (and fairly simple) visual aids in Eclipse is if you select a particular token, say a declared variable, then the IDE will automatically hig...
0
32,505
08/28/2008 15:02:29
3,043
08/26/2008 13:24:14
364
48
XML Validation report parser
Most XML parsers will give up after the first error in a document. In fact, IIRC, that's actually part of the 'official' spec for parsers. I'm looking for something that will break that rule. It should take a given schema (assuming a valid schema) and an xml input and attempt to keep going after the first error ...
xml
xmlvalidation
null
null
null
null
open
XML Validation report parser === Most XML parsers will give up after the first error in a document. In fact, IIRC, that's actually part of the 'official' spec for parsers. I'm looking for something that will break that rule. It should take a given schema (assuming a valid schema) and an xml input and attempt to...
0
32,513
08/28/2008 15:05:28
2,972
08/26/2008 09:20:36
32
8
Write files to App_Data under medium trust hack?
Is there any way to work around this? Im sure I've heard about some hack, is that true?
asp.net
trust
null
null
null
null
open
Write files to App_Data under medium trust hack? === Is there any way to work around this? Im sure I've heard about some hack, is that true?
0
32,516
08/28/2008 15:07:01
1,137
08/12/2008 18:15:51
101
5
Getting Started with Ruby Development
What are some good online tutorials/quick starts/screencasts to get up to speed on Ruby development? I recently read Brad Wilson's Ruby article in the Sep/Oct 2008 issue of CoDe magazine and would like to continue down the Ruby/IronRuby path. (My background is mainly C# and .NET.)
ruby
tutorials
screencasts
ironruby
null
11/22/2011 16:40:30
not constructive
Getting Started with Ruby Development === What are some good online tutorials/quick starts/screencasts to get up to speed on Ruby development? I recently read Brad Wilson's Ruby article in the Sep/Oct 2008 issue of CoDe magazine and would like to continue down the Ruby/IronRuby path. (My background is mainly C# and...
4
32,519
08/28/2008 15:08:47
3,333
08/28/2008 00:32:00
1
2
List in JScrollPane painting outside the viewport
I have a list, each item of which has several things in it, including a JProgressBar which can be updating a lot. Each time one of the items updates its JProgressBar, the ListDataListener on the list tries to scroll it the visible range using /* * This makes the updating content item automatically scr...
java
swing
null
null
null
null
open
List in JScrollPane painting outside the viewport === I have a list, each item of which has several things in it, including a JProgressBar which can be updating a lot. Each time one of the items updates its JProgressBar, the ListDataListener on the list tries to scroll it the visible range using /* *...
0
32,529
08/28/2008 15:11:45
2,443
08/22/2008 10:53:30
69
16
How do I restrict JFileChooser to a directory?
I want to limit my users to a directory and its sub directories but the "Parent Directory" button allows them to browse to an arbitraty directory. How should I go about doing that?
java
swing
jfilechooser
null
null
null
open
How do I restrict JFileChooser to a directory? === I want to limit my users to a directory and its sub directories but the "Parent Directory" button allows them to browse to an arbitraty directory. How should I go about doing that?
0
32,533
08/28/2008 15:12:15
381
08/05/2008 10:39:26
1,420
27
How do you write code that is both 32 bit and 64 bit compatible ?
What considerations do I need to make if I want my code to run correctly on both 32bit and 64bit platforms ?
language-agnostic
32bit
64bit
compatibility
null
null
open
How do you write code that is both 32 bit and 64 bit compatible ? === What considerations do I need to make if I want my code to run correctly on both 32bit and 64bit platforms ?
0
32,540
08/28/2008 15:13:57
3,436
08/28/2008 15:13:56
1
0
Alternative "architectural" approaches to javaScript client code?
I've been working on a side project for some time now, and the further I get, the more my webpage has turned into a full-featured application. Right now, I'm sticking with <a href="http://jquery.com">jQuery</a>, however, the logic on the page is growing to a point where some organization, or dare I say it, "architectur...
javascript
client
ria
architecture
mvc
null
open
Alternative "architectural" approaches to javaScript client code? === I've been working on a side project for some time now, and the further I get, the more my webpage has turned into a full-featured application. Right now, I'm sticking with <a href="http://jquery.com">jQuery</a>, however, the logic on the page is g...
0
32,541
08/28/2008 15:14:29
1,228
08/13/2008 13:58:55
861
62
How can you clone a WPF object?
Anybody have a good example how to deep clone a WPF object, presering databindings?
wpf
binding
clone
null
null
null
open
How can you clone a WPF object? === Anybody have a good example how to deep clone a WPF object, presering databindings?
0