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
23,755
08/22/2008 23:49:32
1,709
08/18/2008 07:05:30
329
37
How do you find a needle in a haystack?
When implementing a needle search of a haystack in an object-oriented way, you essentially have three alternatives: <pre><code>1. needle.find(haystack) 2. haystack.find(needle) 3. searcher.find(needle, haystack)</code></pre> Which do you prefer, and why? I know some people prefer the second alternative b...
designpatterns
bestpractices
classdesign
programstructure
null
null
open
How do you find a needle in a haystack? === When implementing a needle search of a haystack in an object-oriented way, you essentially have three alternatives: <pre><code>1. needle.find(haystack) 2. haystack.find(needle) 3. searcher.find(needle, haystack)</code></pre> Which do you prefer, and why? I kno...
0
23,763
08/22/2008 23:57:13
85
08/01/2008 16:38:08
66
0
Colorizing images in Java
I'm working on some code to colorize an image in Java. Basically what I'd like to do is something along the lines of GIMP's colorize command, so that if I have a BufferedImage and a Color, I can colorize the Image with the given color. Anyone got any ideas? My current best guess at doing something like this is to get t...
java
colors
bufferedimage
colorize
null
null
open
Colorizing images in Java === I'm working on some code to colorize an image in Java. Basically what I'd like to do is something along the lines of GIMP's colorize command, so that if I have a BufferedImage and a Color, I can colorize the Image with the given color. Anyone got any ideas? My current best guess at doing ...
0
23,770
08/23/2008 00:05:58
2,567
08/22/2008 22:50:45
41
4
Good strategy for leaving an audit trail/change history for DB applications?
What are some strategies that people have had success with for maintaining a change history for data in a fairly complex database. One of the applications that I frequently use and develop for could really benefit from a more comprehensive way of tracking how records have changed over time. For instance, right now reco...
database
database-design
postgresql
null
null
null
open
Good strategy for leaving an audit trail/change history for DB applications? === What are some strategies that people have had success with for maintaining a change history for data in a fairly complex database. One of the applications that I frequently use and develop for could really benefit from a more comprehensiv...
0
23,774
08/23/2008 00:09:34
50
08/01/2008 13:29:54
518
34
postfix and sending mail to an external server
I know this isn't a help forum, but i've looked everywhere for the past 5 hours trying to find a solution to this, and nothing seems to work. Hopefully someone will have run into this problem before and come up with a solution I've got a debian server and i would like to have it serve my mail as well. I set up postf...
postfix
mailserver
null
null
null
null
open
postfix and sending mail to an external server === I know this isn't a help forum, but i've looked everywhere for the past 5 hours trying to find a solution to this, and nothing seems to work. Hopefully someone will have run into this problem before and come up with a solution I've got a debian server and i would l...
0
23,787
08/23/2008 00:22:24
1,490
08/15/2008 21:35:24
284
43
Cleanest Way to Find a Match In a List
What is the best way to find something in a list? I know LINQ has some nice tricks, but let's also get suggestions for C# 2.0. Lets get the best refactorings for this common code pattern. Currently I use code like this: // mObjList is a List<MyObject> MyObject match = null; foreach (MyObject mo in...
c#
refactor
null
null
null
null
open
Cleanest Way to Find a Match In a List === What is the best way to find something in a list? I know LINQ has some nice tricks, but let's also get suggestions for C# 2.0. Lets get the best refactorings for this common code pattern. Currently I use code like this: // mObjList is a List<MyObject> MyObjec...
0
23,802
08/23/2008 00:43:18
1,862
08/18/2008 23:53:20
444
48
How to handle including needed classes in PHP
I'm wondering what the best practice is for handling the problem with having to "include" so many files in my PHP scripts in order to ensure that all the classes I need to use are accessible to my script. Currently, I'm just using include_once to include the classes I access directly. Each of those would include_once...
php
null
null
null
null
null
open
How to handle including needed classes in PHP === I'm wondering what the best practice is for handling the problem with having to "include" so many files in my PHP scripts in order to ensure that all the classes I need to use are accessible to my script. Currently, I'm just using include_once to include the classes I...
0
23,836
08/23/2008 01:50:44
1,343
08/14/2008 15:46:01
216
19
What is the "best" simple instal system for XP/Vista?
Heavy emphasis on simple. I've never made an installer and I'd rather not have to learn much. A system that I could hand a pile of files to and it would make some smart guesses about where to put them would be ideal. Go ahead and answer the general question. However In my cases I'm stuck with some extra constrain...
windows
installer
null
null
null
null
open
What is the "best" simple instal system for XP/Vista? === Heavy emphasis on simple. I've never made an installer and I'd rather not have to learn much. A system that I could hand a pile of files to and it would make some smart guesses about where to put them would be ideal. Go ahead and answer the general question....
0
23,853
08/23/2008 02:09:25
2,274
08/21/2008 12:44:42
1
0
How I hide empty Velocity variable names ?
I am using Struts + Velocity in a Java application, but after I submit a form, the confirmation page (Velocity template) shows the variable names instead an empty label, like the Age in following example: > **Name**: Fernando > **Age**: {person.age} > **Sex**: Male I would like to know how to hide it!
java
templates
struts
velocity
null
null
open
How I hide empty Velocity variable names ? === I am using Struts + Velocity in a Java application, but after I submit a form, the confirmation page (Velocity template) shows the variable names instead an empty label, like the Age in following example: > **Name**: Fernando > **Age**: {person.age} > **Sex**: Ma...
0
23,860
08/23/2008 02:19:30
292
08/04/2008 13:14:31
377
14
What is the best way to learn recursion
When I started in programming I started with c++ and was doing recursion in my second semester in a data structures class. I don't even remember how we started it, I think it was linked lists, but its a concept that I picked up easily and can jump into quickly, even when I haven't written any recursive code in quite so...
language-agnostic
pointers
recursion
discussion
null
null
open
What is the best way to learn recursion === When I started in programming I started with c++ and was doing recursion in my second semester in a data structures class. I don't even remember how we started it, I think it was linked lists, but its a concept that I picked up easily and can jump into quickly, even when I h...
0
23,867
08/23/2008 02:29:18
781
08/08/2008 21:28:19
131
10
Closing and Disposing a WCF Service
The Close method on an ICommunicationObject can throw two types of exceptions as MSDN outlines [here][1]. I understand why the Close method can throw those exceptions, but what I don't understand is why the Dispose method on a service proxy calls the Close method without a try around it. Isn't your Dispose method the o...
wcf
web-service
null
null
null
null
open
Closing and Disposing a WCF Service === The Close method on an ICommunicationObject can throw two types of exceptions as MSDN outlines [here][1]. I understand why the Close method can throw those exceptions, but what I don't understand is why the Dispose method on a service proxy calls the Close method without a try a...
0
23,899
08/23/2008 02:56:37
2,477
08/22/2008 13:21:51
46
9
Is there a good guide out there for refactoring classic ASP?
I've got to do some significant development in a large, old, spaghetti-ridden ASP system. I've been away from ASP for a long time, focusing my energies on Rails development. One basic step I've taken is to refactor pages into subs and functions with meaningful names, so that at least it's easy to understand @ the to...
asp
refactor
spaghetti-code
mvc
null
null
open
Is there a good guide out there for refactoring classic ASP? === I've got to do some significant development in a large, old, spaghetti-ridden ASP system. I've been away from ASP for a long time, focusing my energies on Rails development. One basic step I've taken is to refactor pages into subs and functions with m...
0
23,907
08/23/2008 03:00:46
745
08/08/2008 13:47:26
239
16
How can I graph the Lines of Code history for git repo?
Basically I want to get the number of lines-of-code in the repository after each commit. The only (really crappy) ways I have found is to use git filter-branch to run "wc -l *", and a script that run git reset --hard on each commit, then ran wc -l To make it a bit clearer, when the tool is run, it would output th...
ruby
git
lines-of-code
sloc
null
null
open
How can I graph the Lines of Code history for git repo? === Basically I want to get the number of lines-of-code in the repository after each commit. The only (really crappy) ways I have found is to use git filter-branch to run "wc -l *", and a script that run git reset --hard on each commit, then ran wc -l To ma...
0
23,918
08/23/2008 03:23:44
364
08/05/2008 05:33:41
332
21
OpenGL Rotation
I'm trying to do a simple rotation in OpenGL but must be missing the point. I'm not looking for a specific fix so much as a quick explanation or link that explains OpenGL rotation more generally. At the moment I have code like this: glPushMatrix(); glRotatef(90.0, 0.0, 1.0, 0.0); glBegin(GL_TRI...
opengl
c++
null
null
null
null
open
OpenGL Rotation === I'm trying to do a simple rotation in OpenGL but must be missing the point. I'm not looking for a specific fix so much as a quick explanation or link that explains OpenGL rotation more generally. At the moment I have code like this: glPushMatrix(); glRotatef(90.0, 0.0, 1.0, 0.0); ...
0
23,927
08/23/2008 03:40:31
1,327
08/14/2008 14:37:22
108
11
What are some references, lessons and or best practices for SQL optimization training.
I know this falls into the black arts area of programming, but this is suddenly an area that I need to strengthen in my professional life. There are a couple of topics were this subject has been touched on but I'm not sure the item has been really addressed about how to become one with the system. For example: I beca...
mssql
tsql
sql2005
sql2008
null
null
open
What are some references, lessons and or best practices for SQL optimization training. === I know this falls into the black arts area of programming, but this is suddenly an area that I need to strengthen in my professional life. There are a couple of topics were this subject has been touched on but I'm not sure the ...
0
23,930
08/23/2008 03:46:32
1,337
08/14/2008 15:09:52
71
20
Factorial Algorithms in different languages
I want to see all the different ways you can come up with, for a factorial subroutine, or program. - Procedural - Functional - Object Oriented - Different languages - One liners - Obfuscated Basically I want to see an example, of different ways of writing an algorithm, and what they would l...
algorithm
null
null
null
null
null
open
Factorial Algorithms in different languages === I want to see all the different ways you can come up with, for a factorial subroutine, or program. - Procedural - Functional - Object Oriented - Different languages - One liners - Obfuscated Basically I want to see an example, of different wa...
0
23,935
08/23/2008 03:48:55
290
08/04/2008 12:57:50
359
48
Peer Reviews or Pair Programming, or Both?
Do you participate in code peer reviews or practice pair programming, or both? Have you been able to demonstrate an increase in software quality using these practices? What benefits and drawbacks have you observed in the course of practice? What hurdles to implementation did you face? In my own case, ...
peerreview
pair-programming
sqa
software-engineering
null
null
open
Peer Reviews or Pair Programming, or Both? === Do you participate in code peer reviews or practice pair programming, or both? Have you been able to demonstrate an increase in software quality using these practices? What benefits and drawbacks have you observed in the course of practice? What hurdles to ...
0
23,950
08/23/2008 04:03:18
828
08/09/2008 06:12:41
6
1
Best method to get objects from a BlockingQueue in a concurrent program?
What is the best method to get objects out of a BlockingQueue, in a concurrent program, without hitting a race condition? I'm currently doing the following and I'm not convinced it is the best method: BlockingQueue<Violation> vQueue; /* in the constructor I pass in a BlockingQueue object full o...
java
concurrency
null
null
null
null
open
Best method to get objects from a BlockingQueue in a concurrent program? === What is the best method to get objects out of a BlockingQueue, in a concurrent program, without hitting a race condition? I'm currently doing the following and I'm not convinced it is the best method: BlockingQueue<Violation> vQueue; ...
0
23,961
08/23/2008 04:11:36
2,580
08/23/2008 04:11:35
1
0
What to do about ScanAlert?
One of my clients uses McAfee ScanAlert (i.e., HackerSafe). It basically hits the site with about 1500 bad requests a day looking for security holes. Since it demonstrates malicious behavior it is tempting to just block it after a couple bad requests, but maybe I should let it exercise the UI. Is it a true test if I ...
performance
security
null
null
null
null
open
What to do about ScanAlert? === One of my clients uses McAfee ScanAlert (i.e., HackerSafe). It basically hits the site with about 1500 bad requests a day looking for security holes. Since it demonstrates malicious behavior it is tempting to just block it after a couple bad requests, but maybe I should let it exercis...
0
23,962
08/23/2008 04:12:29
184
08/03/2008 05:34:19
716
9
Is there some way to speed up recursion by remembering child nodes?
For example, Look at the code that calculates the n-th Fibonacci number: fib(int n) { if(n==0 || n==1) return 1; return fib(n-1) + fib(n-2); } The problem with this code is that it will generate stack overflow error for any number greater than 15 (in most computers). ...
recursion
null
null
null
null
null
open
Is there some way to speed up recursion by remembering child nodes? === For example, Look at the code that calculates the n-th Fibonacci number: fib(int n) { if(n==0 || n==1) return 1; return fib(n-1) + fib(n-2); } The problem with this code is that it will generate ...
0
23,963
08/23/2008 04:14:17
419
08/05/2008 14:48:22
1,995
120
RESTful web services and HTTP verbs
What is the minimum set of HTTP verbs that a server should allow for a web service to be classed as RESTful? What if my hoster doesn't permit ***PUT*** and ***DELETE***? Is this actually important, can I live happily ever after with just ***GET*** and ***POST*** ?
rest
webservices
null
null
null
null
open
RESTful web services and HTTP verbs === What is the minimum set of HTTP verbs that a server should allow for a web service to be classed as RESTful? What if my hoster doesn't permit ***PUT*** and ***DELETE***? Is this actually important, can I live happily ever after with just ***GET*** and ***POST*** ?
0
23,970
08/23/2008 04:22:44
1,190
08/13/2008 12:15:38
602
51
How do I marshall a lambda (Proc) in Ruby?
Joe Van Dyk [asked the Ruby mailing list][1]: > Hi, > In Ruby, I guess you can't marshal a lambda/proc object, right? Is that possible in lisp or other languages? > What I was trying to do: > `l = lamda { ... }` > `Bj.submit "/path/to/ruby/program", :stdin => Marshal.dump(l)` > So, I'm sending Backgro...
ruby
proc
lambda
serialization
null
null
open
How do I marshall a lambda (Proc) in Ruby? === Joe Van Dyk [asked the Ruby mailing list][1]: > Hi, > In Ruby, I guess you can't marshal a lambda/proc object, right? Is that possible in lisp or other languages? > What I was trying to do: > `l = lamda { ... }` > `Bj.submit "/path/to/ruby/program", :stdin ...
0
23,988
08/23/2008 04:37:51
2,581
08/23/2008 04:37:51
1
0
Why is an s-box input longer than its output?
http://en.wikipedia.org/wiki/S-box I can't understand where the extra bits are coming from in this article about s-boxes. Why doesn't the s-box take in the same number of bits for input as output?
cryptography
null
null
null
null
null
open
Why is an s-box input longer than its output? === http://en.wikipedia.org/wiki/S-box I can't understand where the extra bits are coming from in this article about s-boxes. Why doesn't the s-box take in the same number of bits for input as output?
0
23,994
08/23/2008 04:51:32
2,305
08/21/2008 15:05:48
8
4
Experiences Using ASP.NET MVC Framework
I am wondering what experiences people are having using the ASP.NET MVC Framework? In particular I am looking for feedback on the type of experience folks are having using the framework. What are people using for their view engine? What about the db layer, NHibernate, LINQ to SQL or something else? Thank you.
asp.net-mvc
null
null
null
null
null
open
Experiences Using ASP.NET MVC Framework === I am wondering what experiences people are having using the ASP.NET MVC Framework? In particular I am looking for feedback on the type of experience folks are having using the framework. What are people using for their view engine? What about the db layer, NHibernate, L...
0
23,996
08/23/2008 04:53:47
2,165
08/20/2008 17:43:59
1
1
Setting Attributes in Webby Layouts
I'm working with [Webby][1] and am looking for some clarification. Can I define attributes like `title` or `author` in my layout? [1]: http://webby.rubyforge.org "Webby"
ruby
webby
null
null
null
null
open
Setting Attributes in Webby Layouts === I'm working with [Webby][1] and am looking for some clarification. Can I define attributes like `title` or `author` in my layout? [1]: http://webby.rubyforge.org "Webby"
0
24,004
08/23/2008 05:06:44
2,528
08/22/2008 16:39:39
74
4
To what extent should a developer learn database?
Modern Databases systems today come with loads of feature. And you would agree with me that to learn one database you must unlearn the concepts you learned in another database. For e.g. each database would implement locking differently than other. So to carry the concepts of one database to another would be a recipe fo...
database
null
null
null
null
null
open
To what extent should a developer learn database? === Modern Databases systems today come with loads of feature. And you would agree with me that to learn one database you must unlearn the concepts you learned in another database. For e.g. each database would implement locking differently than other. So to carry the c...
0
24,040
08/23/2008 06:33:08
718
08/08/2008 07:07:38
1,035
51
Is there a site for detailed unit testing samples?
Is there a site for unit testing as [RefactorMyCode][1] for refactoring? I think it would be a great help for beginners like me. [1]: http://refactormycode.com/
testing
unit-testing
null
null
null
null
open
Is there a site for detailed unit testing samples? === Is there a site for unit testing as [RefactorMyCode][1] for refactoring? I think it would be a great help for beginners like me. [1]: http://refactormycode.com/
0
24,041
08/23/2008 06:34:09
1,363
08/14/2008 18:24:19
89
3
Markdown vs Markup - are they related?
I'm using markdown to edit this question right now. In some wikis I used wiki markup. Are they the same thing? Are they related? Please explain. If I want to implement one or the other in a web project (like stackoverflow) what do I need to use?
markdown
markup
null
null
null
null
open
Markdown vs Markup - are they related? === I'm using markdown to edit this question right now. In some wikis I used wiki markup. Are they the same thing? Are they related? Please explain. If I want to implement one or the other in a web project (like stackoverflow) what do I need to use?
0
24,045
08/23/2008 06:42:01
163
08/02/2008 20:40:09
77
8
AnkhSVN versus VisualSVN
I currently use AnkhSVN to integrate subversion into Visual Studio. Is there any reason I should switch to VisualSVN? AnkhSVN is free (in more than one sense of the word) while VisualSVN costs $50. So right there unless I'm missing some great feature of VisualSVN I don't see any reason to switch.
subversion
visual-studio
ankhsvn
visualsvn
null
07/18/2012 12:04:19
not constructive
AnkhSVN versus VisualSVN === I currently use AnkhSVN to integrate subversion into Visual Studio. Is there any reason I should switch to VisualSVN? AnkhSVN is free (in more than one sense of the word) while VisualSVN costs $50. So right there unless I'm missing some great feature of VisualSVN I don't see any reason ...
4
24,046
08/23/2008 06:43:08
2,051
08/20/2008 00:46:22
21
2
The Safari Back Button Problem
I do some minor programming and web work for a local community college. Work that includes maintaining a very large and soul destroying website that consists of a hodge podge of VBScript, javascript, Dreamweaver generated cruft and a collection of add-ons that various conmen have convinced them to buy over the years. ...
javascript
safari
null
null
null
null
open
The Safari Back Button Problem === I do some minor programming and web work for a local community college. Work that includes maintaining a very large and soul destroying website that consists of a hodge podge of VBScript, javascript, Dreamweaver generated cruft and a collection of add-ons that various conmen have con...
0
24,099
08/23/2008 09:19:54
163
08/02/2008 20:40:09
84
9
Best way to license Microsoft software as a very small developer
I've recently switched from being an employee of a small consulting company to being an independent consultant and as time goes on I will need to upgrade Windows and Visual Studio. So what is the most affordable way to go about this for a small time developer? My previous boss suggested I get a TechNet Plus subscrip...
visual-studio
windows
licensing
microsoft
consulting
null
open
Best way to license Microsoft software as a very small developer === I've recently switched from being an employee of a small consulting company to being an independent consultant and as time goes on I will need to upgrade Windows and Visual Studio. So what is the most affordable way to go about this for a small time ...
0
24,109
08/23/2008 09:52:59
46
08/01/2008 13:13:21
461
27
C++ IDE for linux
I'm currently in the process of expanding my programming horizons to linux. In order to do that, it is important to have a good basic toolset on which you can rely on. and what is more basic then the IDE in which you write your code? (honestly, you don't want to code in notepad; been there done that). there are two ...
c++
ide
linux
null
null
null
open
C++ IDE for linux === I'm currently in the process of expanding my programming horizons to linux. In order to do that, it is important to have a good basic toolset on which you can rely on. and what is more basic then the IDE in which you write your code? (honestly, you don't want to code in notepad; been there done t...
0
24,113
08/23/2008 09:57:28
2,528
08/22/2008 16:39:39
97
4
Outlook Add-in using .NET
We have been developing an Outlook Add-in using Visual Studio 2008. However I am facing a strange behavior while adding a command button to a custom command bar. This behavior is reflected when we add the button in the reply, reply all and forward windows. The issue is that the caption of the command button is not visi...
.net
outlook
add-in
null
null
null
open
Outlook Add-in using .NET === We have been developing an Outlook Add-in using Visual Studio 2008. However I am facing a strange behavior while adding a command button to a custom command bar. This behavior is reflected when we add the button in the reply, reply all and forward windows. The issue is that the caption of...
0
24,125
08/23/2008 10:30:55
1,013
08/11/2008 13:24:18
168
27
Screencast software
I want to screencast an application in windows. What good options are out there? I just want it for 1-3 videos, so I prefer free but am willing to pay if have to. Thanks
windows
video
null
null
null
null
open
Screencast software === I want to screencast an application in windows. What good options are out there? I just want it for 1-3 videos, so I prefer free but am willing to pay if have to. Thanks
0
24,130
08/23/2008 10:41:36
1,384,652
08/01/2008 12:01:23
1,292
78
Classes vs 2D arrays
Which is better to use in PHP, a 2D array or a class? I've included an example of what I mean by this. // Using a class class someClass { public $name; public $height; public $weight; function __construct($name, $height, $weight) { $this -> name = $name; $this -> height = $height; ...
php
arrays
classes
null
null
null
open
Classes vs 2D arrays === Which is better to use in PHP, a 2D array or a class? I've included an example of what I mean by this. // Using a class class someClass { public $name; public $height; public $weight; function __construct($name, $height, $weight) { $this -> name = $name; $thi...
0
24,165
08/23/2008 12:01:25
1,820
08/18/2008 18:06:03
571
26
From Monorail to ASP.Net MVC
The last time I took on a non-trivial .Net/C# application I used Castle Monorail and on the whole enjoyed the experience. Early-access/preview releases of .Net MVC were not yet available. Many "Microsoft shops" will now find the "official" solution more appealing. Has anyone gone from Monorail to .Net MVC. How did ...
asp.net-mvc
asp.net
c#
castle
monorail
null
open
From Monorail to ASP.Net MVC === The last time I took on a non-trivial .Net/C# application I used Castle Monorail and on the whole enjoyed the experience. Early-access/preview releases of .Net MVC were not yet available. Many "Microsoft shops" will now find the "official" solution more appealing. Has anyone gone from ...
0
24,168
08/23/2008 12:04:48
1,219
08/13/2008 13:44:47
1,196
81
Why are relational set-based queries better than cursors?
When writing database queries in something like TSQL or PLSQL, we often have a choice of iterating over rows with a cursor to accomplish the task, or crafting a single SQL statement that does the same job all at once. Also, we have the choice of simply pulling a large set of data back into our application and then p...
sql
language-agnostic
query
cursor
null
null
open
Why are relational set-based queries better than cursors? === When writing database queries in something like TSQL or PLSQL, we often have a choice of iterating over rows with a cursor to accomplish the task, or crafting a single SQL statement that does the same job all at once. Also, we have the choice of simply p...
0
24,179
08/23/2008 12:22:04
2,588
08/23/2008 12:17:49
1
0
How does Hive compare to HBase?
I'm interested in finding out how the recently-released (http://mirror.facebook.com/facebook/hive/hadoop-0.17/) Hive compares to HBase in terms of performance. The SQL-like interface used by Hive is very much preferable to the HBase API we have implemented.
hadoop
hbase
hive
null
null
null
open
How does Hive compare to HBase? === I'm interested in finding out how the recently-released (http://mirror.facebook.com/facebook/hive/hadoop-0.17/) Hive compares to HBase in terms of performance. The SQL-like interface used by Hive is very much preferable to the HBase API we have implemented.
0
24,193
08/23/2008 12:41:43
267
08/04/2008 10:11:06
2,280
127
Python code generator for Visual Studio?
I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of code generation as part of the build process. Does an...
python
code-generation
visual-studio
null
null
null
open
Python code generator for Visual Studio? === I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of code gener...
0
24,196
08/23/2008 12:47:55
1,175
08/13/2008 10:21:54
513
63
Good Framework for Bitmaps and Button Handling
We have a set of applications that basically display a bunch of bitmaps and text, then allow user to press "buttons" (certain bitmaps) that cause actions to occur. We currently have these implemented using DirectX and a bunch of code to place the bitmaps and handle the button-presses. But we'd like to have the foll...
graphics
bitmaps
gui
c++
null
null
open
Good Framework for Bitmaps and Button Handling === We have a set of applications that basically display a bunch of bitmaps and text, then allow user to press "buttons" (certain bitmaps) that cause actions to occur. We currently have these implemented using DirectX and a bunch of code to place the bitmaps and handle...
0
24,200
08/23/2008 12:53:09
1,948
08/19/2008 14:55:33
26
3
What's the fastest way to bulk insert a lot of data in SQL Server (C# client)
I am hitting some performance bottlenecks with my C# client inserting bulk data into a SQL Server 2005 database and I'm looking for ways in which to speed up the process. I am already using the SqlClient.SqlBulkCopy (which is based on TDS) to speed up the data transfer across the wire which helped a lot, but I'm sti...
sql
c#
sql-server
sql-server-2005
null
null
open
What's the fastest way to bulk insert a lot of data in SQL Server (C# client) === I am hitting some performance bottlenecks with my C# client inserting bulk data into a SQL Server 2005 database and I'm looking for ways in which to speed up the process. I am already using the SqlClient.SqlBulkCopy (which is based on...
0
24,207
08/23/2008 12:57:16
1,968
08/19/2008 15:59:21
591
40
“rusage” statistics
I'm trying to use “rusage” statistics in my program to get data similar to that of the [time](http://en.wikipedia.org/wiki/Time_%28Unix%29) tool. However, I'm pretty sure that I'm doing something wrong. The values seem about right but can be a bit weird at times. I didn't find good resources online. Does somebody know ...
c++
unix
profiling
null
null
null
open
“rusage” statistics === I'm trying to use “rusage” statistics in my program to get data similar to that of the [time](http://en.wikipedia.org/wiki/Time_%28Unix%29) tool. However, I'm pretty sure that I'm doing something wrong. The values seem about right but can be a bit weird at times. I didn't find good resources on...
0
24,212
08/23/2008 13:07:19
1,304
08/14/2008 13:19:08
35
4
Use QItemDelegate to show image thumbnails
What's the best way to use QT4's [QItemDelegate][1] to show thumbnails for images in a view? Specifically, how do you stop the item delegate from blocking when generating pixmaps from very large image files (> 500MB)? Can anyone link to some example code that achieves this? [1]: http://doc.trolltech.com/4...
c++
qt
model-driven
null
null
null
open
Use QItemDelegate to show image thumbnails === What's the best way to use QT4's [QItemDelegate][1] to show thumbnails for images in a view? Specifically, how do you stop the item delegate from blocking when generating pixmaps from very large image files (> 500MB)? Can anyone link to some example code that achie...
0
24,216
08/23/2008 13:17:48
2,078
08/20/2008 08:00:36
47
10
Resharper vs. CodeRush
I know there are many discussions if Resharper or CodeRush is better. At my company we currently use Resharper and I'm fine with it. But last week I watched a screencast about CodeRush and thought it was amazing. There are just so many "new" refactorings that I immediately thought about a migration. What's your ...
#visualstudio
resharper
coderush
null
null
07/14/2011 13:45:01
too localized
Resharper vs. CodeRush === I know there are many discussions if Resharper or CodeRush is better. At my company we currently use Resharper and I'm fine with it. But last week I watched a screencast about CodeRush and thought it was amazing. There are just so many "new" refactorings that I immediately thought about ...
3
24,221
08/23/2008 13:23:14
142
08/02/2008 12:41:43
87
6
Java Annotations
What is the purpose of annotations in Java? I have this fuzzy idea of them as somewhere in between a comment and actual code. Do they effect the running of a program?? What are typical usages for them? Also, are they unique to Java, is there a C++ equivalent?
java
annotations
null
null
null
null
open
Java Annotations === What is the purpose of annotations in Java? I have this fuzzy idea of them as somewhere in between a comment and actual code. Do they effect the running of a program?? What are typical usages for them? Also, are they unique to Java, is there a C++ equivalent?
0
24,241
08/23/2008 13:57:06
2,128
08/20/2008 13:32:09
38
2
Code Injection With C#
I just saw [This Question][1] and it made me wonder: Can you use windows hooks or other methods to do code injection with c#? I've seen lots of things about code injection but all of them are done in C/C++. I don't know either of those languages and have a really hard time translating. Does anyone have any ideas on ...
codeinjection
c#
null
null
null
null
open
Code Injection With C# === I just saw [This Question][1] and it made me wonder: Can you use windows hooks or other methods to do code injection with c#? I've seen lots of things about code injection but all of them are done in C/C++. I don't know either of those languages and have a really hard time translating. Do...
0
24,243
08/23/2008 14:01:32
298
08/04/2008 13:29:28
94
7
Select existing data from database to create test data
I have a SqlServer database that I've manually filled with some test data. Now I'd like to extract this test data as insert statements and check it in to source control. The idea is that other team members should be able to create the same database, run the created insert scripts and have the same data to test and deve...
sql-server
database
null
null
null
null
open
Select existing data from database to create test data === I have a SqlServer database that I've manually filled with some test data. Now I'd like to extract this test data as insert statements and check it in to source control. The idea is that other team members should be able to create the same database, run the c...
0
24,252
08/23/2008 14:19:34
1,037
08/11/2008 17:42:51
288
23
Starting with .NET
Being a self-taught "amateur" programmer, I do most programming in my spare time, for relatively small projects, or for small study-related utilities. I greatly enjoy it, though, and have learned a great deal over the past couple of years. Through various weblogs and websites, I've become acquainted with version contro...
.net
c#
gettingstarted
null
null
06/11/2012 08:32:04
not constructive
Starting with .NET === Being a self-taught "amateur" programmer, I do most programming in my spare time, for relatively small projects, or for small study-related utilities. I greatly enjoy it, though, and have learned a great deal over the past couple of years. Through various weblogs and websites, I've become acquai...
4
24,262
08/23/2008 14:31:21
2,605
08/23/2008 14:25:40
1
0
About File permissions in C#
While creating a file synchronization program in C# I tryed to make a method 'copy' from LocalFileItem class that uses sing System.IO.File.Copy(destination.Path, Path, true) where Path is a string. After executing this code with destination.Path = "C:\\Test2" and this.Path = "C:\\Test\\F1.txt" I get an exception sayin...
c#
null
null
null
null
null
open
About File permissions in C# === While creating a file synchronization program in C# I tryed to make a method 'copy' from LocalFileItem class that uses sing System.IO.File.Copy(destination.Path, Path, true) where Path is a string. After executing this code with destination.Path = "C:\\Test2" and this.Path = "C:\\Tes...
0
24,270
08/23/2008 14:40:28
2,131
08/20/2008 13:45:48
304
33
What's the point of OOP?
As far as I can tell, in spite of the countless millions or billions spent on OOP education, languages, and tools, OOP has not improved developer productivity or software reliability, nor has it reduced development costs. Few people use OOP in any rigorous sense (few people adhere to or understand principles such as LS...
language-agnostic
oop
null
null
null
null
open
What's the point of OOP? === As far as I can tell, in spite of the countless millions or billions spent on OOP education, languages, and tools, OOP has not improved developer productivity or software reliability, nor has it reduced development costs. Few people use OOP in any rigorous sense (few people adhere to or un...
0
24,279
08/23/2008 14:58:11
1,384,652
08/01/2008 12:01:23
1,312
80
Functional programming and non-functional programming
In my second year of University we were "taught" Haskell, I know almost nothing about it and even less about functional programming. What is functional programming, why and/xor where would I want to use it instead of non-functional programming and am I correct in thinking that C is a non-functional programming langu...
functionalprogramming
functional
null
null
null
null
open
Functional programming and non-functional programming === In my second year of University we were "taught" Haskell, I know almost nothing about it and even less about functional programming. What is functional programming, why and/xor where would I want to use it instead of non-functional programming and am I corre...
0
24,298
08/23/2008 15:27:11
168
08/02/2008 21:53:24
1
0
Best Solution For Authentication in Ruby on Rails
I'm looking for a pre-built solution I can use in my RoR application. I'm ideally looking for something similar to the ASP.NET Forms authentication that provides email validation, sign-up controls, and allows users to reset their passwords. Oh yeah, and easily allows me to pull the user that is currently logged into ...
ruby
rubyonrails
null
null
null
null
open
Best Solution For Authentication in Ruby on Rails === I'm looking for a pre-built solution I can use in my RoR application. I'm ideally looking for something similar to the ASP.NET Forms authentication that provides email validation, sign-up controls, and allows users to reset their passwords. Oh yeah, and easily al...
0
24,310
08/23/2008 15:49:06
25
08/01/2008 12:15:23
1,028
60
Programming a simple IRC (Internet-Relay-Chat) Client.
I started using IRC at a young age, and I have always been fascinated with it. As a language exercise, I was thinking about programming a simple IRC client in Ruby with [Shoes][1] as a graphical front-end. My question to you, kind-sirs, what do I need to become familiar with to start on this great adventure (besides ...
ruby
shoes
irc-protocol
irc
null
null
open
Programming a simple IRC (Internet-Relay-Chat) Client. === I started using IRC at a young age, and I have always been fascinated with it. As a language exercise, I was thinking about programming a simple IRC client in Ruby with [Shoes][1] as a graphical front-end. My question to you, kind-sirs, what do I need to bec...
0
24,315
08/23/2008 15:54:56
392
08/05/2008 12:29:07
610
36
Is It Possible To Raise An Event When A File Becomes Accessible?
In C# I can use the FileSystemWatcher object to watch for a specific file and raise an event when it is created, modified, etc. The problem I have with this class is that it raises the event the moment the file becomes created, even if the process which created the file is still in the process of writing. I have fou...
c#
.net
file-io
null
null
null
open
Is It Possible To Raise An Event When A File Becomes Accessible? === In C# I can use the FileSystemWatcher object to watch for a specific file and raise an event when it is created, modified, etc. The problem I have with this class is that it raises the event the moment the file becomes created, even if the process...
0
24,319
08/23/2008 15:55:28
1,709
08/18/2008 07:05:30
427
41
Where can I find good technical video podcasts or videos for download?
When I'm eating, or generally feeling bored, I like to watch a TV-series or something for entertainment. However, being somewhat of a geek, I was wondering if there were any technical video podcasts out there that I should be subscribing to? Any site that provides programming or technology-related videos for streaming ...
podcast
video
selfimprovement
entertainment
null
01/05/2012 11:13:41
not constructive
Where can I find good technical video podcasts or videos for download? === When I'm eating, or generally feeling bored, I like to watch a TV-series or something for entertainment. However, being somewhat of a geek, I was wondering if there were any technical video podcasts out there that I should be subscribing to? An...
4
24,368
08/23/2008 16:48:44
2,594
08/23/2008 12:42:57
1
1
Am I In A Death March Project?
The facts: - The other programmer is constantly slipping deadlines with no status updates, at the moment he is slipping the single biggest feature on the website (which he asked to work on) by 3-4 weeks from his initial estimate. - The people for whom the software is being written fear taking action against the...
php
project-management
deathmarch
bestpractices
null
04/19/2012 15:13:21
not constructive
Am I In A Death March Project? === The facts: - The other programmer is constantly slipping deadlines with no status updates, at the moment he is slipping the single biggest feature on the website (which he asked to work on) by 3-4 weeks from his initial estimate. - The people for whom the software is being wr...
4
24,384
08/23/2008 17:03:08
2,196
08/20/2008 20:54:36
23
1
Teaching someone to program
What is the best way to teach someone how to program, the language doesn't matter. It's more of a case of how to make them think logical and clearly on how to over come a problem. Or is this something that comes naturally to most developers and can't be taught. Any online resources or book recommendations apprec...
process
logic
developer
junior
thought
null
open
Teaching someone to program === What is the best way to teach someone how to program, the language doesn't matter. It's more of a case of how to make them think logical and clearly on how to over come a problem. Or is this something that comes naturally to most developers and can't be taught. Any online resourc...
0
24,408
08/23/2008 17:24:48
2,362
08/21/2008 20:46:43
5
3
Database query representation impersonating file on Windows share?
Is there any way to have something that looks just like a file on a Windows file share but is really a resource served up over HTTP? For context, I'm working with an old app that can only deal with files on a Windows file share, I want to create a simple HTTP-based service to serve the content of the files dynamical...
http
null
null
null
null
null
open
Database query representation impersonating file on Windows share? === Is there any way to have something that looks just like a file on a Windows file share but is really a resource served up over HTTP? For context, I'm working with an old app that can only deal with files on a Windows file share, I want to create...
0
24,414
08/23/2008 17:30:23
2,621
08/23/2008 17:30:22
1
0
Can I capture Windows Mobile PIE keyboard events?
Anyone know of a way to capture keyboard events (keyup / keydown) in Portable IE under Window mobile? I noticed that key events are not supported in JS, and would like to come up with a solution that works without any client side additions.
events
windows-mobile
portableie
null
null
null
open
Can I capture Windows Mobile PIE keyboard events? === Anyone know of a way to capture keyboard events (keyup / keydown) in Portable IE under Window mobile? I noticed that key events are not supported in JS, and would like to come up with a solution that works without any client side additions.
0
24,439
08/23/2008 17:54:12
2,141
08/20/2008 14:38:34
131
2
IE 7+ Favorites
Is it possible to develop a plug-in for Internet Explorer that can replace the existing favorites functionality?
internet-explorer
bookmarks
favorites
null
null
null
open
IE 7+ Favorites === Is it possible to develop a plug-in for Internet Explorer that can replace the existing favorites functionality?
0
24,450
08/23/2008 18:16:13
2,625
08/23/2008 18:02:50
1
0
What are the best MVC web frameworks on the market?
I am looking for a Web Framework to move windows based applications to the web. The main requirements to WF are the following: 1. unit tests support 2. desktop and mobile browsers support 3. long term viability 4. maturity of the framework
mvc
webframework
null
null
null
null
open
What are the best MVC web frameworks on the market? === I am looking for a Web Framework to move windows based applications to the web. The main requirements to WF are the following: 1. unit tests support 2. desktop and mobile browsers support 3. long term viability 4. maturity of the framework
0
24,451
08/23/2008 18:18:04
1,597
08/17/2008 10:01:21
46
3
'goto' usage
I've long been under the impression that 'goto' should never be used if possible. While perusing libavcodec (which is written in C) the other day, I noticed multiple uses of it. Is it ever advantageous to use 'goto' in a language that supports loops and functions? If so, why?
language-agnostic
null
null
null
null
null
open
'goto' usage === I've long been under the impression that 'goto' should never be used if possible. While perusing libavcodec (which is written in C) the other day, I noticed multiple uses of it. Is it ever advantageous to use 'goto' in a language that supports loops and functions? If so, why?
0
24,456
08/23/2008 18:24:21
2,025
08/19/2008 20:59:50
305
55
Embedding IPTC image data with PHP GD
I'm trying to embed a IPTC data onto a JPEG image using `iptcembed()` but am having a bit of trouble. I have verified it is in the end product: // Embed the IPTC data $content = iptcembed($data, $path); // Verify IPTC data is in the end image $iptc = iptcparse($content); var_dump($ip...
php
gd
iptc
null
null
null
open
Embedding IPTC image data with PHP GD === I'm trying to embed a IPTC data onto a JPEG image using `iptcembed()` but am having a bit of trouble. I have verified it is in the end product: // Embed the IPTC data $content = iptcembed($data, $path); // Verify IPTC data is in the end image $ip...
0
24,467
08/23/2008 18:31:02
2,078
08/20/2008 08:00:36
62
10
(N)Hibernate Auto-Join
I'm developing a web- application using NHibernate. Can you tell me how to write a NHibernate Query for the following SQL query: select v1.Id from View v1 left join View v2 on v1.SourceView = v2.Id order by v1.Position It's basically a auto-join but I don't know how to write this in Nhibernate. Lets say the pr...
nhibernate
sql
null
null
null
null
open
(N)Hibernate Auto-Join === I'm developing a web- application using NHibernate. Can you tell me how to write a NHibernate Query for the following SQL query: select v1.Id from View v1 left join View v2 on v1.SourceView = v2.Id order by v1.Position It's basically a auto-join but I don't know how to write this in...
0
24,468
08/23/2008 18:33:55
616
08/07/2008 11:16:13
1
1
Running "partially trusted" .NET assemblies from a network share
When I try to run a .NET assembly (`boo.exe`) from a network share (mapped to a drive), it fails since it's only partially trusted: Unhandled Exception: System.Security.SecurityException: That assembly does not allow partially trusted callers. at System.Security.CodeAccessSecurityEngine.ThrowSecurityExce...
.net
null
null
null
null
null
open
Running "partially trusted" .NET assemblies from a network share === When I try to run a .NET assembly (`boo.exe`) from a network share (mapped to a drive), it fails since it's only partially trusted: Unhandled Exception: System.Security.SecurityException: That assembly does not allow partially trusted callers....
0
24,470
08/23/2008 18:36:33
2,626
08/23/2008 18:24:02
1
1
SQL Server PIVOT examples?
Trying to find some simple SQL Server PIVOT examples. Most of the examples that I have found involve counting or summing up numbers. I just want to pivot some string data. For example, I have a query returning the following. Action1 VIEW Action1 EDIT Action2 VIEW Action3 VIEW Action3 EDIT I would...
t-sql
pivot
null
null
null
null
open
SQL Server PIVOT examples? === Trying to find some simple SQL Server PIVOT examples. Most of the examples that I have found involve counting or summing up numbers. I just want to pivot some string data. For example, I have a query returning the following. Action1 VIEW Action1 EDIT Action2 VIEW Action3 V...
0
24,471
08/23/2008 18:37:32
2,141
08/20/2008 14:38:34
140
2
Zip Code Database
Are there any open source/free databases for US zip codes?
database
zipcode
null
null
null
null
open
Zip Code Database === Are there any open source/free databases for US zip codes?
0
24,481
08/23/2008 18:45:47
2,627
08/23/2008 18:28:32
1
0
What is the "best" way to store international addresses in a database?
What is the "*best*" way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. **Note: You decide what fields you think are necessary.**
database
internationalization
globalization
address
null
null
open
What is the "best" way to store international addresses in a database? === What is the "*best*" way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. **Note: You decide what fields you think are neces...
0
24,495
08/23/2008 18:59:43
2,274
08/21/2008 12:44:42
33
1
Reading model objects mapped in Velocity Templates
I have a Struts + Velocity structure like for example, a Person class, whose one property is a Car object (with its own getter/setter methods) and it is mapped to a Velocity form that submits to an Action, using ModelDriven and getModel structure. I what to put a button on the form that shows "View Car" if car prope...
velocit
struts
java
null
null
null
open
Reading model objects mapped in Velocity Templates === I have a Struts + Velocity structure like for example, a Person class, whose one property is a Car object (with its own getter/setter methods) and it is mapped to a Velocity form that submits to an Action, using ModelDriven and getModel structure. I what to put...
0
24,496
08/23/2008 19:01:06
2,628
08/23/2008 18:34:26
1
0
What alternatives are there to Model-View-Controller?
While going through university and from following the development of SO, I've heard a lot about the Model-View-Controller architectural design pattern. I inadvertently used the MVC pattern even before I knew what it was, and still use it in my everyday job. From what I've seen, it's probably the most popular pattern us...
mvc
null
null
null
null
null
open
What alternatives are there to Model-View-Controller? === While going through university and from following the development of SO, I've heard a lot about the Model-View-Controller architectural design pattern. I inadvertently used the MVC pattern even before I knew what it was, and still use it in my everyday job. Fro...
0
24,506
08/23/2008 19:06:17
1,680
08/17/2008 23:46:58
60
2
What is the purpose of the 'AppManifest.xaml' file in Silverlight applications?
In opening up the .xap file that is generated as output from a Silverlight application I've been tinkering with lately I noticed a file called 'AppManifest.xaml'. I've also noticed an option in the property pages for the Silverlight project that appears to allow you to otionally not output that file for the project. Wh...
silverlight
null
null
null
null
null
open
What is the purpose of the 'AppManifest.xaml' file in Silverlight applications? === In opening up the .xap file that is generated as output from a Silverlight application I've been tinkering with lately I noticed a file called 'AppManifest.xaml'. I've also noticed an option in the property pages for the Silverlight pr...
0
24,515
08/23/2008 19:17:34
1,178
08/13/2008 11:15:35
73
8
"bad words" filter
Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a "good" bad words list to feed my db with... any hint / direction? Looking around with google I [found this][1] one, and it's a start, but nothing more. Yes, I know that this kind of filters are easily escap...
list
dictionary
badwords
null
null
null
open
"bad words" filter === Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a "good" bad words list to feed my db with... any hint / direction? Looking around with google I [found this][1] one, and it's a start, but nothing more. Yes, I know that this kind of ...
0
24,516
08/23/2008 19:18:48
1,891
08/19/2008 05:37:52
1
1
Resolving reduce/reduce conflict in yacc/ocamlyacc
I'm trying to parse a grammar in ocamlyacc (pretty much the same as regular yacc) which supports function application with no operators (like in Ocaml or Haskell), and the normal assortment of binary and unary operators. I'm getting a reduce/reduce conflict with the '-' operator, which can be used both for subtraction ...
parsing
ocaml
grammar
yacc
null
null
open
Resolving reduce/reduce conflict in yacc/ocamlyacc === I'm trying to parse a grammar in ocamlyacc (pretty much the same as regular yacc) which supports function application with no operators (like in Ocaml or Haskell), and the normal assortment of binary and unary operators. I'm getting a reduce/reduce conflict with t...
0
24,520
08/23/2008 19:23:35
1,560
08/16/2008 17:17:39
53
1
Is there a better alternative to rentacoder for developers?
I've read a lot of reviews about rentacoder and all of them say that the pay is too low, do you know a better site?
outsourcing
null
null
null
null
null
open
Is there a better alternative to rentacoder for developers? === I've read a lot of reviews about rentacoder and all of them say that the pay is too low, do you know a better site?
0
24,528
08/23/2008 19:30:47
1,690
08/18/2008 01:39:04
49
6
Tips for running Subversion in a Windows world
*(Inspired by the [Hidden Features of C#](http://beta.stackoverflow.com/questions/9033/hidden-features-of-c) post.)* I'm curious to hear the experiences of those who are currently running their SVN server on Windows. The Godfather himself has a post on [how to setup SVN as a Windows service](http://www.codinghor...
svn
subversion
windows
null
null
null
open
Tips for running Subversion in a Windows world === *(Inspired by the [Hidden Features of C#](http://beta.stackoverflow.com/questions/9033/hidden-features-of-c) post.)* I'm curious to hear the experiences of those who are currently running their SVN server on Windows. The Godfather himself has a post on [how to ...
0
24,532
08/23/2008 19:35:44
2,586
08/23/2008 08:44:06
1
0
One book to learn/get introduced to a programming language
If one would be allowed to read only one book to learn new programming language what book would that be? My (rather small) list would be - C - C Programming Language by Brian W. Kernighan, Dennis M. Ritchie - C++ - The C++ Programming Language by Bjarne Stroustrup - Java - Thinking in Java by Bruce Eckel ...
books
null
null
null
null
null
open
One book to learn/get introduced to a programming language === If one would be allowed to read only one book to learn new programming language what book would that be? My (rather small) list would be - C - C Programming Language by Brian W. Kernighan, Dennis M. Ritchie - C++ - The C++ Programming Language b...
0
24,541
08/23/2008 19:51:31
1,965
08/19/2008 15:51:08
1,066
70
Create a database from another database?
Is there an automatic way in SQL Server 2005 to create a database from several tables in another database? I need to work on a project and I only need a few tables to run it locally, and I don't want to make a backup of a 50 gig DB.
t-sql
sql-server-2005
null
null
null
null
open
Create a database from another database? === Is there an automatic way in SQL Server 2005 to create a database from several tables in another database? I need to work on a project and I only need a few tables to run it locally, and I don't want to make a backup of a 50 gig DB.
0
24,542
08/23/2008 19:52:39
1,891
08/19/2008 05:37:52
6
1
Using bitwise operators for Booleans in C++
Is there any reason not to use the bitwise operators &, |, and ^ for "bool" values in C++? I sometimes run into situations where I want exactly one of two conditions to be true (XOR), so I just throw the ^ operator into a conditional expression. I also sometimes want all parts of a condition to be evaluated whether...
c++
null
null
null
null
null
open
Using bitwise operators for Booleans in C++ === Is there any reason not to use the bitwise operators &, |, and ^ for "bool" values in C++? I sometimes run into situations where I want exactly one of two conditions to be true (XOR), so I just throw the ^ operator into a conditional expression. I also sometimes want...
0
24,546
08/23/2008 19:54:09
112
08/02/2008 05:39:11
93
2
unable to get wikipedia pages with LWP::Simple
I'm trying to fetch wikipedia pages using LWP::Simple, but they're not coming back. This code: #!/usr/bin/perl use strict; use LWP::Simple; print get("http://en.wikipedia.org/wiki/Stack_overflow"); doesn't print anything. But if I use some other webpage, say <code>http://www.google.com</code>...
perl
wikipedia
lwp
lwpsimple
null
null
open
unable to get wikipedia pages with LWP::Simple === I'm trying to fetch wikipedia pages using LWP::Simple, but they're not coming back. This code: #!/usr/bin/perl use strict; use LWP::Simple; print get("http://en.wikipedia.org/wiki/Stack_overflow"); doesn't print anything. But if I use some ...
0
24,551
08/23/2008 19:59:42
2,635
08/23/2008 19:46:51
11
1
Best Practice: Initialize class fields in constructor or at declaration?
I've been programming in C# and Java recently and I am curious what people would consider the best practice concerning when you should initialize your classes fields? Should you do it at declaration?: public class Die { private int topFace = 1; public void Roll() { // .... ...
c#
java
null
null
null
null
open
Best Practice: Initialize class fields in constructor or at declaration? === I've been programming in C# and Java recently and I am curious what people would consider the best practice concerning when you should initialize your classes fields? Should you do it at declaration?: public class Die { ...
0
24,556
08/23/2008 20:03:52
2,595
08/23/2008 12:52:27
1
0
Attaching entities to data contexts
In LINQ to SQL, is it possible to check to see if an entity is already part of the data context before trying to attach it? A little context if it helps... I have this code in my global.asax as a helper method. Normally, between requests, this isn't a problem. But right after signing in,this is getting called mor...
c#
linq-to-sql
null
null
null
null
open
Attaching entities to data contexts === In LINQ to SQL, is it possible to check to see if an entity is already part of the data context before trying to attach it? A little context if it helps... I have this code in my global.asax as a helper method. Normally, between requests, this isn't a problem. But right af...
0
24,579
08/23/2008 20:39:23
1,632
08/17/2008 17:09:25
190
21
WYSIWYG editor gem for Rails?
Is there a good ruby gem for a WYSIWYG editor that will easily work with a rails app?
ruby
ruby-on-rails
gem
webdevelopment
null
null
open
WYSIWYG editor gem for Rails? === Is there a good ruby gem for a WYSIWYG editor that will easily work with a rails app?
0
24,580
08/23/2008 20:42:25
2,541
08/22/2008 18:21:46
11
3
How do you automate a visual studio build?
How do you turn a Visual Studio build that you'd perform in the IDE into a script that you can run from the command line?
build-automation
visual-studio
null
null
null
null
open
How do you automate a visual studio build? === How do you turn a Visual Studio build that you'd perform in the IDE into a script that you can run from the command line?
0
24,595
08/23/2008 20:56:56
2,639
08/23/2008 20:32:12
1
2
Code Classic ASP in Linux
What should i use to code Classic ASP under Linux. I have really tried to use Emacs and Vim but I don't have the time to learn them.
classicasp
editor
linux
null
null
null
open
Code Classic ASP in Linux === What should i use to code Classic ASP under Linux. I have really tried to use Emacs and Vim but I don't have the time to learn them.
0
24,596
08/23/2008 20:58:25
2,628
08/23/2008 18:34:26
31
0
What Web Application Framework for Java is Recommended?
In my previous job, I worked for a company who had an enterprise application built using JSP technology. Now, I have recently started working for a new company where one application is built using Struts, and another using Apache Wicket. I am considering creating my own website using Java and am trying to decide what f...
java
struts
apache-wicket
jsp
null
09/03/2011 12:00:57
not constructive
What Web Application Framework for Java is Recommended? === In my previous job, I worked for a company who had an enterprise application built using JSP technology. Now, I have recently started working for a new company where one application is built using Struts, and another using Apache Wicket. I am considering crea...
4
24,599
08/23/2008 21:02:29
2,536
08/22/2008 17:37:07
36
4
Stylus/tablet input device
I need to make a WebCast presentation soon and need to do some "whiteboarding" during that WebCast. Does anyone have any stylus/tablet input device recommendations? Anyone ever used such an input device with WebEx's whiteboard feature? rp
input-devices
webcast
null
null
null
null
open
Stylus/tablet input device === I need to make a WebCast presentation soon and need to do some "whiteboarding" during that WebCast. Does anyone have any stylus/tablet input device recommendations? Anyone ever used such an input device with WebEx's whiteboard feature? rp
0
24,620
08/23/2008 21:35:46
2,374
08/21/2008 22:14:30
88
7
Why should you prevent a class from being subclassed?
What can be reasons to prevent a class from being inherited? (e.g. using sealed on a c# class) Right now I can't think of any.
object-oriented
null
null
null
null
null
open
Why should you prevent a class from being subclassed? === What can be reasons to prevent a class from being inherited? (e.g. using sealed on a c# class) Right now I can't think of any.
0
24,622
08/23/2008 21:39:54
2,118
08/20/2008 12:54:09
257
13
Setting PHP Include Path on a per site basis?
I can set the php include path in the php.ini: include_path = /path/to/site/includes/ But then other websites are effected so that is no good. I can set the php include in the start of every file: $path = '/path/to/site/includes/'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); ...
php
include
bestpractice
null
null
null
open
Setting PHP Include Path on a per site basis? === I can set the php include path in the php.ini: include_path = /path/to/site/includes/ But then other websites are effected so that is no good. I can set the php include in the start of every file: $path = '/path/to/site/includes/'; set_include_...
0
24,626
08/23/2008 21:41:49
1,556
08/16/2008 16:41:03
340
14
Abstraction VS Information Hiding
Can you tell me what is difference between **ABSTRACTION** and **INFORMATION HIDING** in software development? I am confused abstraction hides detail implementation and information hiding abstracts whole details of something.
abstraction
information-hiding
ooad
null
null
null
open
Abstraction VS Information Hiding === Can you tell me what is difference between **ABSTRACTION** and **INFORMATION HIDING** in software development? I am confused abstraction hides detail implementation and information hiding abstracts whole details of something.
0
24,642
08/23/2008 21:56:15
2,628
08/23/2008 18:34:26
41
0
Can Traditional Design Patterns be Implemented Using JavaScript?
I'm a moderately skilled programmer using JavaScript but I am no guru. I know you can do some pretty powerful things with it, I just haven't seen much other than fairly basic DOM manipulation. I'm wondering if it is possible to implement traditional design pattern concepts such as Factory Method, Singleton, etc. and if...
javascript
design-patterns
null
null
null
null
open
Can Traditional Design Patterns be Implemented Using JavaScript? === I'm a moderately skilled programmer using JavaScript but I am no guru. I know you can do some pretty powerful things with it, I just haven't seen much other than fairly basic DOM manipulation. I'm wondering if it is possible to implement traditional ...
0
24,644
08/23/2008 21:56:47
2,644
08/23/2008 21:56:47
1
0
Hooking my program with windows explorer's rename event
Is there any way, in any language, to hook my program when a user renames a file? For example: A user renames a file and presses enter (or clicks away) to confirm the rename action. BEFORE the file is actually renamed, my program "listens" to this event and pops up a message saying "Are you sure you want to rename ...
windows
rename
null
null
null
null
open
Hooking my program with windows explorer's rename event === Is there any way, in any language, to hook my program when a user renames a file? For example: A user renames a file and presses enter (or clicks away) to confirm the rename action. BEFORE the file is actually renamed, my program "listens" to this event a...
0
24,648
08/23/2008 21:58:53
1,534
08/16/2008 12:20:49
629
41
What's the best way to get to know linux or BSD kernel internals?
I'd like to gain better knowledge of operating system internals. Process management, memory management, and stuff like that. <br> I was thinking of learning by getting to know either linux or BSD kernel.<br> Which one kernel is better for learning purposes?<br> What's the best place to start?<br> Can you recommend ...
linux
operating-system
kernel
bsd
null
null
open
What's the best way to get to know linux or BSD kernel internals? === I'd like to gain better knowledge of operating system internals. Process management, memory management, and stuff like that. <br> I was thinking of learning by getting to know either linux or BSD kernel.<br> Which one kernel is better for learning...
0
24,675
08/23/2008 22:37:49
2,025
08/19/2008 20:59:50
327
61
Tactics for using PHP in a high-load site
Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques. ---------- I'm developing a tool in **PHP** that could attain quite a lot of users, if it ...
php
high-load
null
null
null
null
open
Tactics for using PHP in a high-load site === Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques. ---------- I'm developing a tool in **PHP**...
0
24,678
08/23/2008 22:42:50
2,648
08/23/2008 22:40:47
1
0
eclipse javascript editor
I'm looking for opinions on the best JavaScript editor available as an Eclipse plugin. I've been using Spket, which is good, but I'm convinced there must be something better out there, is there....? Cheers, Donal
javascript
eclipse
plugins
editor
null
10/06/2011 02:20:23
not constructive
eclipse javascript editor === I'm looking for opinions on the best JavaScript editor available as an Eclipse plugin. I've been using Spket, which is good, but I'm convinced there must be something better out there, is there....? Cheers, Donal
4
24,680
08/23/2008 22:46:06
217
08/03/2008 15:59:20
1
1
Using Subversion with VB6
My team is moving from Visual SourceSafe to Subversion soon, while developing/supporting a legacy project in VB6, so I have a couple of questions: - What's the best tool for Subversion IDE integration in Visual Studio 6? (or is it not worth the trouble...) - Are there any best practices for using Subversion wit...
vb6
subversion
svn
null
null
null
open
Using Subversion with VB6 === My team is moving from Visual SourceSafe to Subversion soon, while developing/supporting a legacy project in VB6, so I have a couple of questions: - What's the best tool for Subversion IDE integration in Visual Studio 6? (or is it not worth the trouble...) - Are there any best pra...
0
24,692
08/23/2008 23:08:03
1,662
08/17/2008 20:30:20
105
9
Where can you find fun/educational programming challenges?
I've searched around for different challenge sites, and most of them seem to be geared towards difficulty in problem solving logically, rather than trying to use your language of choice to do something you haven't used it for. Their center is around mathematics rather than function design. Some kind of point system...
challenge
null
null
null
null
12/06/2011 23:16:37
not constructive
Where can you find fun/educational programming challenges? === I've searched around for different challenge sites, and most of them seem to be geared towards difficulty in problem solving logically, rather than trying to use your language of choice to do something you haven't used it for. Their center is around mathe...
4
24,708
08/23/2008 23:41:03
2,644
08/23/2008 21:56:47
11
1
Where do I find information about Blog APIs and how to use them?
I'm thinking of creating a small offline blog editor for personal use and I don't know how do the APIs work. Where can I find this information? I'm particularly looking for the most common providers: Blogger, Wordpress, MovableType, Live Spaces (not sure if this has an API) etc.
api
blogs
null
null
null
null
open
Where do I find information about Blog APIs and how to use them? === I'm thinking of creating a small offline blog editor for personal use and I don't know how do the APIs work. Where can I find this information? I'm particularly looking for the most common providers: Blogger, Wordpress, MovableType, Live Spaces (n...
0
24,715
08/24/2008 00:09:34
658
08/07/2008 15:07:47
216
19
SQL many-to-many matching
I'm implementing a tagging system for a website. There are multiple tags per object and multiple objects per tag. This is accomplished by maintaining a table with two values per record, one for the ids of the object and the tag. I'm looking to write a query to find the objects that match a given set of tags. Suppose...
sql
many-to-many
tagging
null
null
null
open
SQL many-to-many matching === I'm implementing a tagging system for a website. There are multiple tags per object and multiple objects per tag. This is accomplished by maintaining a table with two values per record, one for the ids of the object and the tag. I'm looking to write a query to find the objects that mat...
0
24,723
08/24/2008 00:21:10
1,406
08/15/2008 12:26:06
1
1
Best regex to catch XSS attack (in Java)?
Jeff actually posted about this in [Sanitize HTML][1]. But his example is in C# and I'm actually more interested in a Java version. Does anyone has a better version for Java? Does his example is good enough that I could just convert it directly from C# to Java? [1]: http://refactormycode.com/codes/333-sanitize-...
java
html
regex
xss
null
null
open
Best regex to catch XSS attack (in Java)? === Jeff actually posted about this in [Sanitize HTML][1]. But his example is in C# and I'm actually more interested in a Java version. Does anyone has a better version for Java? Does his example is good enough that I could just convert it directly from C# to Java? [1]...
0
24,730
08/24/2008 00:35:22
1,965
08/19/2008 15:51:08
1,109
74
What is this 'Multiple-step OLE DB' error?
I'm doing a little bit of work on a horrid piece of software built by Bangalores best. It's written in mostly classic ASP/VbScript, but "ported" to ASP.NET, though most of the code is classic ASP style in the ASPX pages :( I'm getting this message when it tries to connect to my local database: **Multiple-step ...
ado.net
classicasp
oledb
null
null
null
open
What is this 'Multiple-step OLE DB' error? === I'm doing a little bit of work on a horrid piece of software built by Bangalores best. It's written in mostly classic ASP/VbScript, but "ported" to ASP.NET, though most of the code is classic ASP style in the ASPX pages :( I'm getting this message when it tries to c...
0
24,731
08/24/2008 00:38:00
1,220
08/13/2008 13:44:48
748
49
Displaying version of underlying software in footer of web app?
I am thinking about providing the version of say, the database schema, and the dlls for business logic in the footer of my web application. Is this advised? Are there any pitfalls, or pointers of how to do this best? Usability concerns? **I already have a version scheme, for both schema and dlls, used in my...
web-application
versioning
assemblies
null
null
null
open
Displaying version of underlying software in footer of web app? === I am thinking about providing the version of say, the database schema, and the dlls for business logic in the footer of my web application. Is this advised? Are there any pitfalls, or pointers of how to do this best? Usability concerns? **...
0