question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38,288 | 38,289 | How do I add a user in Ubuntu? | Specifically, what commands do I run from the terminal? | Without a home directory sudo useradd myuser With home directory sudo useradd -m myuser Then set the password sudo passwd myuser Then set the shell sudo usermod -s /bin/bash myuser | How do I add a user in Ubuntu? Specifically, what commands do I run from the terminal? | TITLE:
How do I add a user in Ubuntu?
QUESTION:
Specifically, what commands do I run from the terminal?
ANSWER:
Without a home directory sudo useradd myuser With home directory sudo useradd -m myuser Then set the password sudo passwd myuser Then set the shell sudo usermod -s /bin/bash myuser | [
"linux",
"ubuntu",
"system-administration",
"user-management"
] | 68 | 141 | 79,029 | 3 | 0 | 2008-09-01T18:59:14.590000 | 2008-09-01T18:59:20.970000 |
38,295 | 38,396 | Apply an ICC Color Profile to an image in C# (Dotnet) | How does one convert an image from one color profile to another (screen to printer, or scanner to screen). In Visual C++ you would use the function in ICM.h, is there a managed way to do this with GDI+? I need to use GDI+, not WPF. I'd prefer to have a managed solution, but if it is not available, I guess PInkvoke will... | There are a number of solutions. For GDI+, check out this article at MSDN (HOW TO: Use GDI+ and Image Color Management to Adjust Image Colors). For WPF (.NET 3.0), see the System.Windows.Media namespace. There are a number of different classes, such as the BitmapEncoder, that have the concept of a ColorContext, which "... | Apply an ICC Color Profile to an image in C# (Dotnet) How does one convert an image from one color profile to another (screen to printer, or scanner to screen). In Visual C++ you would use the function in ICM.h, is there a managed way to do this with GDI+? I need to use GDI+, not WPF. I'd prefer to have a managed solut... | TITLE:
Apply an ICC Color Profile to an image in C# (Dotnet)
QUESTION:
How does one convert an image from one color profile to another (screen to printer, or scanner to screen). In Visual C++ you would use the function in ICM.h, is there a managed way to do this with GDI+? I need to use GDI+, not WPF. I'd prefer to ha... | [
"c#",
".net",
"gdi+",
"color-management"
] | 4 | 4 | 9,552 | 2 | 0 | 2008-09-01T19:02:13.883000 | 2008-09-01T20:37:04.840000 |
38,299 | 38,568 | Tutorial on understanding strings in Symbian | I have Carbide.c++ Developer from Nokia and I want to create applications for my S60 phone. I've looked at the samples that goes with the different SDK's for S60 but I haven't found any simple explanation on how strings, called descriptors, are used in Symbian. One of the problems are that I'm visually impaired and the... | Here are a few sites on blogspot that may help. They have RSS feeds that will hopefully be easier to consume than paging through PDFs. http://descriptor-tips.blogspot.com/ http://descriptors.blogspot.com/ | Tutorial on understanding strings in Symbian I have Carbide.c++ Developer from Nokia and I want to create applications for my S60 phone. I've looked at the samples that goes with the different SDK's for S60 but I haven't found any simple explanation on how strings, called descriptors, are used in Symbian. One of the pr... | TITLE:
Tutorial on understanding strings in Symbian
QUESTION:
I have Carbide.c++ Developer from Nokia and I want to create applications for my S60 phone. I've looked at the samples that goes with the different SDK's for S60 but I haven't found any simple explanation on how strings, called descriptors, are used in Symb... | [
"c++",
"symbian",
"carbide"
] | 7 | 7 | 2,695 | 4 | 0 | 2008-09-01T19:04:06.170000 | 2008-09-01T22:49:31.683000 |
38,302 | 38,311 | Pinning pointer arrays in memory | I'm currently working on a ray-tracer in C# as a hobby project. I'm trying to achieve a decent rendering speed by implementing some tricks from a c++ implementation and have run into a spot of trouble. The objects in the scenes which the ray-tracer renders are stored in a KdTree structure and the tree's nodes are, in t... | Firstly, if you're using C# normally, you can't suddenly get a null reference due to the garbage collector moving stuff, because the garbage collector also updates all references, so you don't need to worry about it moving stuff around. You can pin things in memory but this may cause more problems than it solves. For o... | Pinning pointer arrays in memory I'm currently working on a ray-tracer in C# as a hobby project. I'm trying to achieve a decent rendering speed by implementing some tricks from a c++ implementation and have run into a spot of trouble. The objects in the scenes which the ray-tracer renders are stored in a KdTree structu... | TITLE:
Pinning pointer arrays in memory
QUESTION:
I'm currently working on a ray-tracer in C# as a hobby project. I'm trying to achieve a decent rendering speed by implementing some tricks from a c++ implementation and have run into a spot of trouble. The objects in the scenes which the ray-tracer renders are stored i... | [
"c#",
"optimization",
"unsafe",
"raytracing"
] | 1 | 4 | 2,878 | 5 | 0 | 2008-09-01T19:06:01.003000 | 2008-09-01T19:14:11.233000 |
38,305 | 38,591 | How do I strip the fluff out of a third party library? | It may not be best practice but are there ways of removing unsused classes from a third party's jar files. Something that looks at the way in which my classes are using the library and does some kind of coverage analysis, then spits out another jar with all of the untouched classes removed. Obviously there are issues w... | There is a way. The JarJar project does this AFAIR. The first goal of the JarJar project is to allow one to embed third party libraries in your own jar, changing the package structure if necessary. Doing so it can strip out the classes that are not needed. Check it out at http://code.google.com/p/jarjar/. Here is a lin... | How do I strip the fluff out of a third party library? It may not be best practice but are there ways of removing unsused classes from a third party's jar files. Something that looks at the way in which my classes are using the library and does some kind of coverage analysis, then spits out another jar with all of the ... | TITLE:
How do I strip the fluff out of a third party library?
QUESTION:
It may not be best practice but are there ways of removing unsused classes from a third party's jar files. Something that looks at the way in which my classes are using the library and does some kind of coverage analysis, then spits out another ja... | [
"java",
"optimization",
"size"
] | 4 | 8 | 2,191 | 7 | 0 | 2008-09-01T19:09:19.917000 | 2008-09-01T23:14:40.343000 |
38,323 | 38,332 | VMware or Hyper-V for Developers | I'm looking to replace a couple of machines in the office with a more powerful multi-processor machine running either VMware or Microsoft's Hyper-V with a view to hosting a mix of Windows Server 2003, Windows Server 2008 and Linux operating systems. The machines are used mainly for testing ASP.Net or Perl web sites. I ... | VMware did recently release a free version of ESXi recently. VMware has a few advantages: 1. VMware virtual machines are portable across different types of hardware. IIRC, Hyper-V uses the drivers from the Host OS. 2. VMware virtual machines are portable across different VMware products (although you may need to use th... | VMware or Hyper-V for Developers I'm looking to replace a couple of machines in the office with a more powerful multi-processor machine running either VMware or Microsoft's Hyper-V with a view to hosting a mix of Windows Server 2003, Windows Server 2008 and Linux operating systems. The machines are used mainly for test... | TITLE:
VMware or Hyper-V for Developers
QUESTION:
I'm looking to replace a couple of machines in the office with a more powerful multi-processor machine running either VMware or Microsoft's Hyper-V with a view to hosting a mix of Windows Server 2003, Windows Server 2008 and Linux operating systems. The machines are us... | [
"vmware",
"virtualization",
"hyper-v"
] | 9 | 17 | 4,504 | 6 | 0 | 2008-09-01T19:26:42.217000 | 2008-09-01T19:41:48.467000 |
38,336 | 39,692 | On the web, what fonts should I use to create an equivalent experience cross-platform? | Because Linux (and its variants) have a completely different set of fonts than Windows and Mac OS X, is there anyone with any experience of creating cross-platform font families - ideally finding equivalents to the common fonts found on the aforementioned operating systems? If so, what is the best route to take? | Here are some good up-to-date listings of the most-installed fonts for PC, Mac, and Linux: Sans serif font sampler and survey results Serif font sampler and survey results Hope this helps your decision! | On the web, what fonts should I use to create an equivalent experience cross-platform? Because Linux (and its variants) have a completely different set of fonts than Windows and Mac OS X, is there anyone with any experience of creating cross-platform font families - ideally finding equivalents to the common fonts found... | TITLE:
On the web, what fonts should I use to create an equivalent experience cross-platform?
QUESTION:
Because Linux (and its variants) have a completely different set of fonts than Windows and Mac OS X, is there anyone with any experience of creating cross-platform font families - ideally finding equivalents to the ... | [
"css",
"linux",
"fonts",
"cross-platform"
] | 28 | 15 | 1,775 | 9 | 0 | 2008-09-01T19:48:10.013000 | 2008-09-02T14:41:31.410000 |
38,345 | 71,895 | Is there an elegant zip to interleave two lists in Perl 5? | I recently "needed" a zip function in Perl 5 (while I was thinking about How do I calculate relative time? ), i.e. a function that takes two lists and "zips" them together to one list, interleaving the elements. (Pseudo)example: @a=(1, 2, 3); @b=('apple', 'orange', 'grape'); zip @a, @b; # (1, 'apple', 2, 'orange', 3, '... | Assuming you have exactly two lists and they are exactly the same length, here is a solution originally by merlyn (Randal Schwartz), who called it perversely perlish: sub zip2 { my $p = @_ / 2; return @_[ map { $_, $_ + $p } 0.. $p - 1 ]; } What happens here is that for a 10-element list, first, we find the pivot point... | Is there an elegant zip to interleave two lists in Perl 5? I recently "needed" a zip function in Perl 5 (while I was thinking about How do I calculate relative time? ), i.e. a function that takes two lists and "zips" them together to one list, interleaving the elements. (Pseudo)example: @a=(1, 2, 3); @b=('apple', 'oran... | TITLE:
Is there an elegant zip to interleave two lists in Perl 5?
QUESTION:
I recently "needed" a zip function in Perl 5 (while I was thinking about How do I calculate relative time? ), i.e. a function that takes two lists and "zips" them together to one list, interleaving the elements. (Pseudo)example: @a=(1, 2, 3); ... | [
"perl",
"zip"
] | 28 | 38 | 12,152 | 7 | 0 | 2008-09-01T19:59:37.287000 | 2008-09-16T12:56:05.490000 |
38,352 | 61,103 | Address book DB schema | I need to store contact information for users. I want to present this data on the page as an hCard and downloadable as a vCard. I'd also like to be able to search the database by phone number, email, etc. What do you think is the best way to store this data? Since users could have multiple addresses, etc complete norma... | Consider two tables for People and their addresses: People (pid, prefix, firstName, lastName, suffix, DOB,... primaryAddressTag )
AddressBook (pid, tag, address1, address2, city, stateProv, postalCode,... ) The Primary Key (that uniquely identifies each and every row) of People is pid. The PK of AddressBook is the com... | Address book DB schema I need to store contact information for users. I want to present this data on the page as an hCard and downloadable as a vCard. I'd also like to be able to search the database by phone number, email, etc. What do you think is the best way to store this data? Since users could have multiple addres... | TITLE:
Address book DB schema
QUESTION:
I need to store contact information for users. I want to present this data on the page as an hCard and downloadable as a vCard. I'd also like to be able to search the database by phone number, email, etc. What do you think is the best way to store this data? Since users could ha... | [
"schema",
"microformats",
"vcf-vcard",
"normalizing",
"hcard"
] | 3 | 7 | 5,101 | 7 | 0 | 2008-09-01T20:02:15.127000 | 2008-09-14T03:34:11.817000 |
38,357 | 38,497 | Error Code Reference for OSX/Cocoa | If I get an error code result from a Cocoa function, is there any easy way to figure out what it means (other than by grepping through all the.h files in the framework bundles)? | You should look at the header for whatever framework the method you're using that's returning an error comes from. For example, an NSError in the Cocoa domain that you get from a method in the Foundation framework will have its code property described in the header. Similarly with AppKit and and Core Data and. Also, if... | Error Code Reference for OSX/Cocoa If I get an error code result from a Cocoa function, is there any easy way to figure out what it means (other than by grepping through all the.h files in the framework bundles)? | TITLE:
Error Code Reference for OSX/Cocoa
QUESTION:
If I get an error code result from a Cocoa function, is there any easy way to figure out what it means (other than by grepping through all the.h files in the framework bundles)?
ANSWER:
You should look at the header for whatever framework the method you're using tha... | [
"cocoa",
"xcode",
"macos"
] | 17 | 23 | 7,816 | 4 | 0 | 2008-09-01T20:04:49.973000 | 2008-09-01T21:54:46.823000 |
38,362 | 38,381 | Best version control system for managing home directories | I have 3 Linux machines, and want some way to keep the dotfiles in their home directories in sync. Some files, like.vimrc, are the same across all 3 machines, and some are unique to each machine. I've used SVN before, but all the buzz about DVCSs makes me think I should try one - is there a particular one that would wo... | I've had the same problem, and built a tool on top of Subversion that adds permission, ownership and secontext tracking, keeps the.svn directories out of the actually versioned trees, and adds a concept of layers so you can for example track all your config related to development, which you then only check out on machi... | Best version control system for managing home directories I have 3 Linux machines, and want some way to keep the dotfiles in their home directories in sync. Some files, like.vimrc, are the same across all 3 machines, and some are unique to each machine. I've used SVN before, but all the buzz about DVCSs makes me think ... | TITLE:
Best version control system for managing home directories
QUESTION:
I have 3 Linux machines, and want some way to keep the dotfiles in their home directories in sync. Some files, like.vimrc, are the same across all 3 machines, and some are unique to each machine. I've used SVN before, but all the buzz about DVC... | [
"linux",
"version-control"
] | 12 | 2 | 3,764 | 10 | 0 | 2008-09-01T20:12:08.427000 | 2008-09-01T20:25:04.870000 |
38,370 | 38,924 | PHP : session variable aren't usable when site is redirected | I've to admin a small website for my alumni group which is hosted by my ISV. The url is something like www.myIsv.com/myWebSite/ which is quite ugly and very forgetable. The main admin of the webserver has registered a domain name www.mysmallwebsite.com and put a index.html with this content: www.mysmallwebsite.com Orig... | Sessions are tied to the server AND the domain. Using frameset across domain will cause all kind of breakage because that's just not how it was designed to do. Try using apache mod rewrite to create a "passthrough redirection", the " proxy " flag ([P]) in the rule is the magic flag that you need Documentation at http:/... | PHP : session variable aren't usable when site is redirected I've to admin a small website for my alumni group which is hosted by my ISV. The url is something like www.myIsv.com/myWebSite/ which is quite ugly and very forgetable. The main admin of the webserver has registered a domain name www.mysmallwebsite.com and pu... | TITLE:
PHP : session variable aren't usable when site is redirected
QUESTION:
I've to admin a small website for my alumni group which is hosted by my ISV. The url is something like www.myIsv.com/myWebSite/ which is quite ugly and very forgetable. The main admin of the webserver has registered a domain name www.mysmall... | [
"php",
"session",
"session-variables"
] | 6 | 4 | 3,607 | 10 | 0 | 2008-09-01T20:17:28.443000 | 2008-09-02T06:18:34.380000 |
38,378 | 38,415 | Clone a control in silverlight | What's the best way to clone a control in Silverlight (including it's children)? UPDATE Is there a better way in Silverlight 2? | Here's a great thread about serializing and deserializing objects in Silverlight 1.1. As for a "best way," I'd say it would definitely be caching the xaml for the control and calling createFromXaml on it. | Clone a control in silverlight What's the best way to clone a control in Silverlight (including it's children)? UPDATE Is there a better way in Silverlight 2? | TITLE:
Clone a control in silverlight
QUESTION:
What's the best way to clone a control in Silverlight (including it's children)? UPDATE Is there a better way in Silverlight 2?
ANSWER:
Here's a great thread about serializing and deserializing objects in Silverlight 1.1. As for a "best way," I'd say it would definitely... | [
"silverlight"
] | 1 | 1 | 2,582 | 1 | 0 | 2008-09-01T20:21:50.307000 | 2008-09-01T20:53:54.160000 |
38,408 | 38,529 | How can I make flash cs3, actionscript send events to javascript? | I'm using Flash to play an.flv movieclip on my site, but I want to have the.swf send trigger an event in my javascript when it start loading, starts playing and ends playing. What is the best way to do that in Flash CS3 using Actionscript 3.0? | You need to use the "allowScriptAccess" flash variable in the HTML. You probably want to use "sameDomain" as the type. Note that if you go cross-domain, you also need to host a special file on the server called 'crossdomain.xml' which enables such scripting (the flash player will check for this. More info at http://kb.... | How can I make flash cs3, actionscript send events to javascript? I'm using Flash to play an.flv movieclip on my site, but I want to have the.swf send trigger an event in my javascript when it start loading, starts playing and ends playing. What is the best way to do that in Flash CS3 using Actionscript 3.0? | TITLE:
How can I make flash cs3, actionscript send events to javascript?
QUESTION:
I'm using Flash to play an.flv movieclip on my site, but I want to have the.swf send trigger an event in my javascript when it start loading, starts playing and ends playing. What is the best way to do that in Flash CS3 using Actionscri... | [
"javascript",
"flash",
"actionscript"
] | 5 | 5 | 3,537 | 3 | 0 | 2008-09-01T20:44:37.723000 | 2008-09-01T22:11:32.540000 |
38,409 | 40,849 | How do I convert a Ruby string with brackets to an array? | I would like to convert the following string into an array/nested array: str = "[[this, is],[a, nested],[array]]"
newarray = # this is what I need help with!
newarray.inspect # => [['this','is'],['a','nested'],['array']] | You'll get what you want with YAML. But there is a little problem with your string. YAML expects that there's a space behind the comma. So we need this str = "[[this, is], [a, nested], [array]]" Code: require 'yaml' str = "[[this, is],[a, nested],[array]]" ### transform your string in a valid YAML-String str.gsub!(/(\,... | How do I convert a Ruby string with brackets to an array? I would like to convert the following string into an array/nested array: str = "[[this, is],[a, nested],[array]]"
newarray = # this is what I need help with!
newarray.inspect # => [['this','is'],['a','nested'],['array']] | TITLE:
How do I convert a Ruby string with brackets to an array?
QUESTION:
I would like to convert the following string into an array/nested array: str = "[[this, is],[a, nested],[array]]"
newarray = # this is what I need help with!
newarray.inspect # => [['this','is'],['a','nested'],['array']]
ANSWER:
You'll get w... | [
"ruby",
"arrays"
] | 9 | 11 | 10,531 | 5 | 0 | 2008-09-01T20:44:47.007000 | 2008-09-02T22:39:27.503000 |
38,421 | 38,446 | Security advice for jquery ajax data post? | I'm using jquery ajax to post updates back to my server. I'm concerned about making sure I have put in place appropriate measures so that only my AJAX calls can post data. My stack is PHP on Apache against a MySQL backend. Advice greatly appreciated! | Any request that the AJAX calls in your pages can make can also be made by someone outside of the application. If done right, you will not be able to tell if they were made as part of an AJAX call from your webapp or by hand/other means. There are two scenarios I can think of which you might be talking about when you s... | Security advice for jquery ajax data post? I'm using jquery ajax to post updates back to my server. I'm concerned about making sure I have put in place appropriate measures so that only my AJAX calls can post data. My stack is PHP on Apache against a MySQL backend. Advice greatly appreciated! | TITLE:
Security advice for jquery ajax data post?
QUESTION:
I'm using jquery ajax to post updates back to my server. I'm concerned about making sure I have put in place appropriate measures so that only my AJAX calls can post data. My stack is PHP on Apache against a MySQL backend. Advice greatly appreciated!
ANSWER:... | [
"jquery",
"ajax",
"security",
"post"
] | 21 | 28 | 13,995 | 2 | 0 | 2008-09-01T20:57:12.093000 | 2008-09-01T21:16:52.590000 |
38,428 | 38,440 | Positioning controls in the middle of a CheckBox | THis is a followup to my previous question " Font-dependent control positioning. " It's an attempt to solve the real problem behind that question, perhaps in ways different than the one I was asking about. Example of the problem statement: I want a checkbox that says "Adjust prices by after loading," where is a number-... | If you have several options that follow this layout, why not create a user control? The user control will contain the CheckBox, a NumericUpDown, a ComboBox and a label for the "after loading". You can override OnFontChanged to adjust the location of the controls based on the rendering of the text with the given font. A... | Positioning controls in the middle of a CheckBox THis is a followup to my previous question " Font-dependent control positioning. " It's an attempt to solve the real problem behind that question, perhaps in ways different than the one I was asking about. Example of the problem statement: I want a checkbox that says "Ad... | TITLE:
Positioning controls in the middle of a CheckBox
QUESTION:
THis is a followup to my previous question " Font-dependent control positioning. " It's an attempt to solve the real problem behind that question, perhaps in ways different than the one I was asking about. Example of the problem statement: I want a chec... | [
"winforms",
"layout",
"fonts"
] | 3 | 0 | 313 | 1 | 0 | 2008-09-01T21:00:05.940000 | 2008-09-01T21:13:01.993000 |
38,435 | 38,718 | Retrieving an Oracle timestamp using Python's Win32 ODBC module | Given an Oracle table created using the following: CREATE TABLE Log(WhenAdded TIMESTAMP(6) WITH TIME ZONE); Using the Python ODBC module from its Win32 extensions (from the win32all package), I tried the following: import dbi, odbc
connection = odbc.odbc("Driver=Oracle in OraHome92;Dbq=SERVER;Uid=USER;Pwd=PASSWD")
cu... | I believe this is a bug in the Oracle ODBC driver. Basically, the Oracle ODBC driver does not support the TIMESTAMP WITH (LOCAL) TIME ZONE data types, only the TIMESTAMP data type. As you have discovered, one workaround is in fact to use the TO_CHAR method. In your example you are not actually reading the time zone inf... | Retrieving an Oracle timestamp using Python's Win32 ODBC module Given an Oracle table created using the following: CREATE TABLE Log(WhenAdded TIMESTAMP(6) WITH TIME ZONE); Using the Python ODBC module from its Win32 extensions (from the win32all package), I tried the following: import dbi, odbc
connection = odbc.odbc(... | TITLE:
Retrieving an Oracle timestamp using Python's Win32 ODBC module
QUESTION:
Given an Oracle table created using the following: CREATE TABLE Log(WhenAdded TIMESTAMP(6) WITH TIME ZONE); Using the Python ODBC module from its Win32 extensions (from the win32all package), I tried the following: import dbi, odbc
conne... | [
"python",
"oracle",
"ora-00932"
] | 3 | 2 | 2,114 | 2 | 0 | 2008-09-01T21:06:07.517000 | 2008-09-02T02:33:57.807000 |
38,437 | 38,453 | How to track data changes in a database table | What is the best way to track changes in a database table? Imagine you got an application in which users (in the context of the application not DB users ) are able to change data which are store in some database table. What's the best way to track a history of all changes, so that you can show which user at what time c... | In general, if your application is structured into layers, have the data access tier call a stored procedure on your database server to write a log of the database changes. In languages that support such a thing aspect-oriented programming can be a good technique to use for this kind of application. Auditing database t... | How to track data changes in a database table What is the best way to track changes in a database table? Imagine you got an application in which users (in the context of the application not DB users ) are able to change data which are store in some database table. What's the best way to track a history of all changes, ... | TITLE:
How to track data changes in a database table
QUESTION:
What is the best way to track changes in a database table? Imagine you got an application in which users (in the context of the application not DB users ) are able to change data which are store in some database table. What's the best way to track a histor... | [
"database"
] | 50 | 13 | 95,523 | 8 | 0 | 2008-09-01T21:10:14.340000 | 2008-09-01T21:19:50.400000 |
38,501 | 40,291 | Thread pool for executing arbitrary tasks with different priorities | I'm trying to come up with a design for a thread pool with a lot of design requirements for my job. This is a real problem for working software, and it's a difficult task. I have a working implementation but I'd like to throw this out to SO and see what interesting ideas people can come up with, so that I can compare t... | So what are we going to pick as the basic building block for this. Windows has two building blocks that look promising:- I/O Completion Ports (IOCPs) and Asynchronous Procedure Calls (APCs). Both of these give us FIFO queuing without having to perform explicit locking, and with a certain amount of built-in OS support i... | Thread pool for executing arbitrary tasks with different priorities I'm trying to come up with a design for a thread pool with a lot of design requirements for my job. This is a real problem for working software, and it's a difficult task. I have a working implementation but I'd like to throw this out to SO and see wha... | TITLE:
Thread pool for executing arbitrary tasks with different priorities
QUESTION:
I'm trying to come up with a design for a thread pool with a lot of design requirements for my job. This is a real problem for working software, and it's a difficult task. I have a working implementation but I'd like to throw this out... | [
"c++",
"windows",
"multithreading"
] | 11 | 5 | 3,007 | 5 | 0 | 2008-09-01T21:57:16.347000 | 2008-09-02T18:51:57.673000 |
38,502 | 38,517 | What's a good algorithm to generate a maze? | Say you want a simple maze on an N by M grid, with one path through, and a good number of dead ends, but that looks "right" (i.e. like someone made it by hand without too many little tiny dead ends and all that). Is there a known way to do this? | From http://www.astrolog.org/labyrnth/algrithm.htm Recursive backtracker: This is somewhat related to the recursive backtracker solving method described below, and requires stack up to the size of the Maze. When carving, be as greedy as possible, and always carve into an unmade section if one is next to the current cel... | What's a good algorithm to generate a maze? Say you want a simple maze on an N by M grid, with one path through, and a good number of dead ends, but that looks "right" (i.e. like someone made it by hand without too many little tiny dead ends and all that). Is there a known way to do this? | TITLE:
What's a good algorithm to generate a maze?
QUESTION:
Say you want a simple maze on an N by M grid, with one path through, and a good number of dead ends, but that looks "right" (i.e. like someone made it by hand without too many little tiny dead ends and all that). Is there a known way to do this?
ANSWER:
Fro... | [
"algorithm",
"maze"
] | 81 | 50 | 104,713 | 9 | 0 | 2008-09-01T21:57:45.490000 | 2008-09-01T22:04:39.747000 |
38,508 | 38,516 | What's the best way to return multiple values from a function? | I have a function where I need to do something to a string. I need the function to return a boolean indicating whether or not the operation succeeded, and I also need to return the modified string. In C#, I would use an out parameter for the string, but there is no equivalent in Python. I'm still very new to Python and... | def f(in_str): out_str = in_str.upper() return True, out_str # Creates tuple automatically
succeeded, b = f("a") # Automatic tuple unpacking | What's the best way to return multiple values from a function? I have a function where I need to do something to a string. I need the function to return a boolean indicating whether or not the operation succeeded, and I also need to return the modified string. In C#, I would use an out parameter for the string, but the... | TITLE:
What's the best way to return multiple values from a function?
QUESTION:
I have a function where I need to do something to a string. I need the function to return a boolean indicating whether or not the operation succeeded, and I also need to return the modified string. In C#, I would use an out parameter for t... | [
"python",
"variables",
"return"
] | 78 | 136 | 81,568 | 6 | 0 | 2008-09-01T22:01:02.143000 | 2008-09-01T22:04:02.510000 |
38,510 | 38,532 | C# WinForms - DataGridView/SQL Compact - Negative integer in primary key column | I'm just getting dirty in WinForms, and I've discovered, through a lovely tutorial, the magic of dragging a database table onto the design view of my main form. So, all is lovely, I've got my DataGridView with all of the columns represented beautifully. BUT... When I run my application against this brand new, empty.sdf... | Since it is an Identity column and you haven't saved it to the database yet it is -1. I am assuming here that this is before you save the table back to the database, correct? You need to perform the insert before that value will be set correctly. | C# WinForms - DataGridView/SQL Compact - Negative integer in primary key column I'm just getting dirty in WinForms, and I've discovered, through a lovely tutorial, the magic of dragging a database table onto the design view of my main form. So, all is lovely, I've got my DataGridView with all of the columns represented... | TITLE:
C# WinForms - DataGridView/SQL Compact - Negative integer in primary key column
QUESTION:
I'm just getting dirty in WinForms, and I've discovered, through a lovely tutorial, the magic of dragging a database table onto the design view of my main form. So, all is lovely, I've got my DataGridView with all of the c... | [
"c#",
"sql-server",
"winforms",
"data-binding",
"sql-server-ce"
] | 3 | 3 | 4,145 | 2 | 0 | 2008-09-01T22:01:25.993000 | 2008-09-01T22:14:53.187000 |
38,549 | 38,578 | What is the difference between "INNER JOIN" and "OUTER JOIN"? | Also, how do LEFT OUTER JOIN, RIGHT OUTER JOIN, and FULL OUTER JOIN fit in? | Assuming you're joining on columns with no duplicates, which is a very common case: An inner join of A and B gives the result of A intersect B, i.e. the inner part of a Venn diagram intersection. An outer join of A and B gives the results of A union B, i.e. the outer parts of a Venn diagram union. Examples Suppose you ... | What is the difference between "INNER JOIN" and "OUTER JOIN"? Also, how do LEFT OUTER JOIN, RIGHT OUTER JOIN, and FULL OUTER JOIN fit in? | TITLE:
What is the difference between "INNER JOIN" and "OUTER JOIN"?
QUESTION:
Also, how do LEFT OUTER JOIN, RIGHT OUTER JOIN, and FULL OUTER JOIN fit in?
ANSWER:
Assuming you're joining on columns with no duplicates, which is a very common case: An inner join of A and B gives the result of A intersect B, i.e. the in... | [
"sql",
"join",
"inner-join",
"outer-join"
] | 5,231 | 6,702 | 2,628,917 | 28 | 0 | 2008-09-01T22:36:06.940000 | 2008-09-01T22:59:34.840000 |
38,561 | 38,570 | What is the conversion specifier for printf that formats a long? | The printf function takes an argument type, such as %d or %i for a signed int. However, I don't see anything for a long value. | Put an l (lowercased letter L) directly before the specifier. unsigned long n; long m;
printf("%lu %ld", n, m); | What is the conversion specifier for printf that formats a long? The printf function takes an argument type, such as %d or %i for a signed int. However, I don't see anything for a long value. | TITLE:
What is the conversion specifier for printf that formats a long?
QUESTION:
The printf function takes an argument type, such as %d or %i for a signed int. However, I don't see anything for a long value.
ANSWER:
Put an l (lowercased letter L) directly before the specifier. unsigned long n; long m;
printf("%lu %... | [
"c",
"printf",
"long-integer"
] | 615 | 794 | 1,112,843 | 7 | 0 | 2008-09-01T22:45:25.903000 | 2008-09-01T22:50:23.023000 |
38,571 | 38,823 | Common lisp idiom - is there a better way? | I find myself doing this sort of thing all the time. I've been considering writing a macro/function to make this sort of thing easier, but it occurs to me that I'm probably reinventing the wheel. Is there an existing function that will let me accomplish this same sort of thing more succinctly? (defun remove-low-words (... | There are several built-in ways of doing this. One way would be: (remove-if-not 'good-enough-score-p word-list) And another: (loop for word in word-list when (good-enough-score-p word) collect word) And yet another: (mapcan (lambda (word) (when (good-enough-score-p word) (list word))) word-list) Etc... There's also SER... | Common lisp idiom - is there a better way? I find myself doing this sort of thing all the time. I've been considering writing a macro/function to make this sort of thing easier, but it occurs to me that I'm probably reinventing the wheel. Is there an existing function that will let me accomplish this same sort of thing... | TITLE:
Common lisp idiom - is there a better way?
QUESTION:
I find myself doing this sort of thing all the time. I've been considering writing a macro/function to make this sort of thing easier, but it occurs to me that I'm probably reinventing the wheel. Is there an existing function that will let me accomplish this ... | [
"common-lisp"
] | 7 | 22 | 2,098 | 3 | 0 | 2008-09-01T22:50:52.693000 | 2008-09-02T04:37:55.650000 |
38,572 | 38,573 | Is .NET 3.5 SP1 Required on the server to use Dynamic Data? | Is.NET 3.5 SP1 Required on the server to use Dynamic Data? It looks like it generates a lot of code and therefore wouldn't require anything special on the server side. I ask because I would like to use it but the shared hosting provider my client is using only have 3.5 installed and not 3.5 SP1. | Yes, SP1 is required. There are several bits of SP1 that Dynamic Data uses, notably the ASP.NET routing extensions and the new data annotation classes in System.ComponentModel. | Is .NET 3.5 SP1 Required on the server to use Dynamic Data? Is.NET 3.5 SP1 Required on the server to use Dynamic Data? It looks like it generates a lot of code and therefore wouldn't require anything special on the server side. I ask because I would like to use it but the shared hosting provider my client is using only... | TITLE:
Is .NET 3.5 SP1 Required on the server to use Dynamic Data?
QUESTION:
Is.NET 3.5 SP1 Required on the server to use Dynamic Data? It looks like it generates a lot of code and therefore wouldn't require anything special on the server side. I ask because I would like to use it but the shared hosting provider my cl... | [
"asp.net",
"deployment",
"dynamic-data"
] | 1 | 2 | 176 | 1 | 0 | 2008-09-01T22:51:45.610000 | 2008-09-01T22:52:52.220000 |
38,592 | 38,599 | How do I make persistent network sockets on Unix in Ruby? | I'd like to be able to write a ruby program that can restart without dropping it's socket connections. | This program gets Google's homepage and then when you pass it SIG_INT via Ctrl - C it restarts the program and reads the output of the homepage from the open socket with Google. #!/usr/bin/ruby #simple_connector.rb require 'socket'
puts "Started."
if ARGV[0] == "restart" sock = IO.open(ARGV[1].to_i) puts sock.read ex... | How do I make persistent network sockets on Unix in Ruby? I'd like to be able to write a ruby program that can restart without dropping it's socket connections. | TITLE:
How do I make persistent network sockets on Unix in Ruby?
QUESTION:
I'd like to be able to write a ruby program that can restart without dropping it's socket connections.
ANSWER:
This program gets Google's homepage and then when you pass it SIG_INT via Ctrl - C it restarts the program and reads the output of t... | [
"ruby",
"sockets"
] | 0 | 1 | 855 | 2 | 0 | 2008-09-01T23:19:03.717000 | 2008-09-01T23:21:48.203000 |
38,596 | 38,608 | What's the best way to keep a PHP script running as a daemon? | What is the best way to keep a PHP script running as a daemon, and what's the best way to check if needs restarting. I have some scripts that need to run 24/7 and for the most part I can run them using nohup. But if they go down, what's the best way to monitor it so it can be automatically restarted? | If you can't use the (proper) init structure to do this (you're on shared hosting, etc.), use cron to run a script (it can be written in whatever language you like) every few minutes that checks to see if they're running, and restarts them if necessary. | What's the best way to keep a PHP script running as a daemon? What is the best way to keep a PHP script running as a daemon, and what's the best way to check if needs restarting. I have some scripts that need to run 24/7 and for the most part I can run them using nohup. But if they go down, what's the best way to monit... | TITLE:
What's the best way to keep a PHP script running as a daemon?
QUESTION:
What is the best way to keep a PHP script running as a daemon, and what's the best way to check if needs restarting. I have some scripts that need to run 24/7 and for the most part I can run them using nohup. But if they go down, what's the... | [
"php",
"daemon"
] | 9 | 4 | 8,225 | 8 | 0 | 2008-09-01T23:20:59.033000 | 2008-09-01T23:26:35.400000 |
38,598 | 38,636 | How do you unit test business applications? | How are people unit testing their business applications? I've seen a lot of examples of unit testing with "simple to test" examples. Ex. a calculator. How are people unit testing data-heavy applications? How are you putting together your sample data? In many cases, data for one test may not work at all for another test... | I have to second the comment by @Phil Bennett as I try to approach these integration tests with a rollback solution. I have a very detailed post about integration testing your data access layer here I show not only the sample data access class, base class, and sample DB transaction fixture class, but a full CRUD integr... | How do you unit test business applications? How are people unit testing their business applications? I've seen a lot of examples of unit testing with "simple to test" examples. Ex. a calculator. How are people unit testing data-heavy applications? How are you putting together your sample data? In many cases, data for o... | TITLE:
How do you unit test business applications?
QUESTION:
How are people unit testing their business applications? I've seen a lot of examples of unit testing with "simple to test" examples. Ex. a calculator. How are people unit testing data-heavy applications? How are you putting together your sample data? In many... | [
"unit-testing"
] | 14 | 2 | 2,267 | 6 | 0 | 2008-09-01T23:21:33.713000 | 2008-09-01T23:54:30.933000 |
38,601 | 38,916 | Using Django time/date widgets in custom form | How can I use the nifty JavaScript date and time widgets that the default admin uses with my custom view? I have looked through the Django forms documentation, and it briefly mentions django.contrib.admin.widgets, but I don't know how to use it? Here is my template that I want it applied on. {% for f in form %} {{ f.na... | The growing complexity of this answer over time, and the many hacks required, probably ought to caution you against doing this at all. It's relying on undocumented internal implementation details of the admin, is likely to break again in future versions of Django, and is no easier to implement than just finding another... | Using Django time/date widgets in custom form How can I use the nifty JavaScript date and time widgets that the default admin uses with my custom view? I have looked through the Django forms documentation, and it briefly mentions django.contrib.admin.widgets, but I don't know how to use it? Here is my template that I w... | TITLE:
Using Django time/date widgets in custom form
QUESTION:
How can I use the nifty JavaScript date and time widgets that the default admin uses with my custom view? I have looked through the Django forms documentation, and it briefly mentions django.contrib.admin.widgets, but I don't know how to use it? Here is my... | [
"python",
"django"
] | 184 | 169 | 139,017 | 18 | 0 | 2008-09-01T23:22:55.207000 | 2008-09-02T06:10:58.127000 |
38,602 | 38,611 | Best way to display/format SQL 2005 money data type in ASP.Net | I am attempting to set an asp.net textbox to a SQL 2005 money data type field, the initial result displayed to the user is 40.0000 instead of 40.00. In my asp.net textbox control I would like to only display the first 2 numbers after the decimal point e.g. 40.00 What would be the best way to do this? My code is below: ... | this.txtPayment.Text = string.Format("{0:c}", dr[Payment"].ToString()); | Best way to display/format SQL 2005 money data type in ASP.Net I am attempting to set an asp.net textbox to a SQL 2005 money data type field, the initial result displayed to the user is 40.0000 instead of 40.00. In my asp.net textbox control I would like to only display the first 2 numbers after the decimal point e.g. ... | TITLE:
Best way to display/format SQL 2005 money data type in ASP.Net
QUESTION:
I am attempting to set an asp.net textbox to a SQL 2005 money data type field, the initial result displayed to the user is 40.0000 instead of 40.00. In my asp.net textbox control I would like to only display the first 2 numbers after the d... | [
"asp.net"
] | 2 | 2 | 3,026 | 5 | 0 | 2008-09-01T23:23:26.047000 | 2008-09-01T23:29:54.910000 |
38,612 | 38,684 | asp:DropDownList Error: 'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items | I have a asp.net 2.0 web site with numerous asp:DropDownList controls. The DropDownList control contains the standard info city, state, county etc... info. In addition to the standard codes the site also has custom codes that the users can configure themselves. For example a animal dropdown may contain the values Dog, ... | I'm not sure it's the same issue, but I had a similar sounding issue with trying to bind a DropDownList that I wanted to contain in a GridView. When I looked around I found a lot of people asking similar questions, but no robust solutions. I did read conflicting reports about whether you could intercept databinding, et... | asp:DropDownList Error: 'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items I have a asp.net 2.0 web site with numerous asp:DropDownList controls. The DropDownList control contains the standard info city, state, county etc... info. In addition to the standard codes the si... | TITLE:
asp:DropDownList Error: 'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items
QUESTION:
I have a asp.net 2.0 web site with numerous asp:DropDownList controls. The DropDownList control contains the standard info city, state, county etc... info. In addition to the sta... | [
"asp.net"
] | 2 | 2 | 17,387 | 8 | 0 | 2008-09-01T23:30:10.930000 | 2008-09-02T01:28:28.447000 |
38,618 | 38,620 | LSP in OO programming? | Am I right in thinking the full name of the LSP is the Liskoff Substitution Principle? I'm having trouble finding an [online] source to cite for any information on this... it seems to be a cornerstone of OOP, and yet I'm having trouble finding definitions. | Yes, you are right. It's spelled Liskov which is probably why you can't find a citation. Here's the link. One of the better resources regarding this is Robert C. Martin's Agile Software Development Principles Patterns and practices book. | LSP in OO programming? Am I right in thinking the full name of the LSP is the Liskoff Substitution Principle? I'm having trouble finding an [online] source to cite for any information on this... it seems to be a cornerstone of OOP, and yet I'm having trouble finding definitions. | TITLE:
LSP in OO programming?
QUESTION:
Am I right in thinking the full name of the LSP is the Liskoff Substitution Principle? I'm having trouble finding an [online] source to cite for any information on this... it seems to be a cornerstone of OOP, and yet I'm having trouble finding definitions.
ANSWER:
Yes, you are ... | [
"oop"
] | 0 | 4 | 1,020 | 2 | 0 | 2008-09-01T23:34:35.490000 | 2008-09-01T23:37:05.797000 |
38,635 | 100,350 | What static analysis tools are available for C#? | What tools are there available for static analysis against C# code? I know about FxCop and StyleCop. Are there others? I've run across NStatic before but it's been in development for what seems like forever - it's looking pretty slick from what little I've seen of it, so it would be nice if it would ever see the light ... | Code violation detection Tools: FxCop, excellent tool by Microsoft. Check compliance with.NET framework guidelines. Edit October 2010: No longer available as a standalone download. It is now included in the Windows SDK and after installation can be found in Program Files\Microsoft SDKs\Windows\ [v7.1] \Bin\FXCop\FxCopS... | What static analysis tools are available for C#? What tools are there available for static analysis against C# code? I know about FxCop and StyleCop. Are there others? I've run across NStatic before but it's been in development for what seems like forever - it's looking pretty slick from what little I've seen of it, so... | TITLE:
What static analysis tools are available for C#?
QUESTION:
What tools are there available for static analysis against C# code? I know about FxCop and StyleCop. Are there others? I've run across NStatic before but it's been in development for what seems like forever - it's looking pretty slick from what little I... | [
"c#",
"code-analysis",
"static-analysis"
] | 174 | 361 | 173,688 | 9 | 0 | 2008-09-01T23:54:02.620000 | 2008-09-19T07:55:39.417000 |
38,645 | 39,678 | What are some efficient ways to combine two structures in MATLAB? | I want to combine two structures with differing fields names. For example, starting with: A.field1 = 1; A.field2 = 'a';
B.field3 = 2; B.field4 = 'b'; I would like to have: C.field1 = 1; C.field2 = 'a'; C.field3 = 2; C.field4 = 'b'; Is there a more efficient way than using "fieldnames" and a for loop? EDIT: Let's assum... | Without collisions, you can do M = [fieldnames(A)' fieldnames(B)'; struct2cell(A)' struct2cell(B)']; C=struct(M{:}); And this is reasonably efficient. However, struct errors on duplicate fieldnames, and pre-checking for them using unique kills performance to the point that a loop is better. But here's what it would loo... | What are some efficient ways to combine two structures in MATLAB? I want to combine two structures with differing fields names. For example, starting with: A.field1 = 1; A.field2 = 'a';
B.field3 = 2; B.field4 = 'b'; I would like to have: C.field1 = 1; C.field2 = 'a'; C.field3 = 2; C.field4 = 'b'; Is there a more effic... | TITLE:
What are some efficient ways to combine two structures in MATLAB?
QUESTION:
I want to combine two structures with differing fields names. For example, starting with: A.field1 = 1; A.field2 = 'a';
B.field3 = 2; B.field4 = 'b'; I would like to have: C.field1 = 1; C.field2 = 'a'; C.field3 = 2; C.field4 = 'b'; Is ... | [
"matlab",
"merge",
"structure",
"field"
] | 24 | 19 | 19,847 | 5 | 0 | 2008-09-02T00:10:44.843000 | 2008-09-02T14:36:20.563000 |
38,647 | 356,511 | Performance of Linq to Entities vs ESQL | When using the Entity Framework, does ESQL perform better than Linq to Entities? I'd prefer to use Linq to Entities (mainly because of the strong-type checking), but some of my other team members are citing performance as a reason to use ESQL. I would like to get a full idea of the pro's/con's of using either method. | The most obvious differences are: Linq to Entities is strongly typed code including nice query comprehension syntax. The fact that the “from” comes before the “select” allows IntelliSense to help you. Entity SQL uses traditional string based queries with a more familiar SQL like syntax where the SELECT statement comes ... | Performance of Linq to Entities vs ESQL When using the Entity Framework, does ESQL perform better than Linq to Entities? I'd prefer to use Linq to Entities (mainly because of the strong-type checking), but some of my other team members are citing performance as a reason to use ESQL. I would like to get a full idea of t... | TITLE:
Performance of Linq to Entities vs ESQL
QUESTION:
When using the Entity Framework, does ESQL perform better than Linq to Entities? I'd prefer to use Linq to Entities (mainly because of the strong-type checking), but some of my other team members are citing performance as a reason to use ESQL. I would like to ge... | [
"entity-framework",
"linq-to-entities",
"entity-sql"
] | 18 | 17 | 12,147 | 6 | 0 | 2008-09-02T00:14:56.690000 | 2008-12-10T15:41:19.460000 |
38,651 | 528,831 | Any way to have an ActionScript 3 (Flex/AIR) project print to standard output? | Is there any way to have a binary compiled from an ActionScript 3 project print stuff to stdout when executed? From what I've gathered, people have been going around this limitation by writing hacks that rely on local socket connections and AIR apps that write to files in the local filesystem, but that's pretty much it... | With AIR on Linux, it is easy to write to stdout, since the process can see its own file descriptors as files in /dev. For stdout, open /dev/fd/1 or /dev/stdout as a FileStream, then write to that. Example: var stdout: FileStream = new FileStream(); stdout.open(new File("/dev/fd/1"), FileMode.WRITE); stdout.writeUTFByt... | Any way to have an ActionScript 3 (Flex/AIR) project print to standard output? Is there any way to have a binary compiled from an ActionScript 3 project print stuff to stdout when executed? From what I've gathered, people have been going around this limitation by writing hacks that rely on local socket connections and ... | TITLE:
Any way to have an ActionScript 3 (Flex/AIR) project print to standard output?
QUESTION:
Is there any way to have a binary compiled from an ActionScript 3 project print stuff to stdout when executed? From what I've gathered, people have been going around this limitation by writing hacks that rely on local socke... | [
"apache-flex",
"flash",
"actionscript-3",
"adobe"
] | 7 | 9 | 3,708 | 4 | 0 | 2008-09-02T00:27:49.823000 | 2009-02-09T16:24:49.427000 |
38,654 | 38,685 | Automatically floating all fields in a VFP report? | I want to set all the fields and labels on a VFP7 report to Float and Stretch with overflow. I tried Using the.frx file and doing the following REPLACE but it didn't work. Is there some other field I need to change too? REPLACE float WITH.T. FOR objtype = 8 | It turns out you have to set top to.F. for float to take effect, this worked: USE report.frx REPLACE float with.T., stretch with.T., top with.F. for objtype = 8 | Automatically floating all fields in a VFP report? I want to set all the fields and labels on a VFP7 report to Float and Stretch with overflow. I tried Using the.frx file and doing the following REPLACE but it didn't work. Is there some other field I need to change too? REPLACE float WITH.T. FOR objtype = 8 | TITLE:
Automatically floating all fields in a VFP report?
QUESTION:
I want to set all the fields and labels on a VFP7 report to Float and Stretch with overflow. I tried Using the.frx file and doing the following REPLACE but it didn't work. Is there some other field I need to change too? REPLACE float WITH.T. FOR objty... | [
"report",
"foxpro",
"visual-foxpro"
] | 2 | 2 | 1,298 | 1 | 0 | 2008-09-02T00:33:09.517000 | 2008-09-02T01:29:23.653000 |
38,661 | 39,535 | Can IIS 6 serve requests for pages with no extensions? | Is there any way in IIS to map requests to a particular URL with no extension to a given application. For example, in trying to port something from a Java servlet, you might have a URL like this... http://[server]/MyApp/HomePage?some=parameter Ideally I'd like to be able to map everything under MyApp to a particular ap... | You can set the IIS6 to handle all requests, but the key to handle files without extensions is to tell the IIS not to look for the file. http://weblogs.asp.net/scottgu/archive/2007/03/04/tip-trick-integrating-asp-net-security-with-classic-asp-and-non-asp-net-urls.aspx | Can IIS 6 serve requests for pages with no extensions? Is there any way in IIS to map requests to a particular URL with no extension to a given application. For example, in trying to port something from a Java servlet, you might have a URL like this... http://[server]/MyApp/HomePage?some=parameter Ideally I'd like to b... | TITLE:
Can IIS 6 serve requests for pages with no extensions?
QUESTION:
Is there any way in IIS to map requests to a particular URL with no extension to a given application. For example, in trying to port something from a Java servlet, you might have a URL like this... http://[server]/MyApp/HomePage?some=parameter Ide... | [
"iis",
"iis-6"
] | 1 | 1 | 3,525 | 2 | 0 | 2008-09-02T00:52:31.840000 | 2008-09-02T13:42:09.337000 |
38,664 | 38,666 | Can you modify text files when committing to subversion? | I want to ran the following script on text files that are being committed: # Send the commands H and w to ed # ed will append newline if the file does not end in one printf "%s\n" H w | ed -s $1
# Strip trailing whitespace sed -i 's/[ \t]*$//g' $1
# Convert tabs to 4 spaces sed -i -r "s/\t/ /g" $1 I see subversion ha... | You mean change the text file before it's committed? You can (I'm not sure how), but it's generally not a good idea, as it doesn't tell the client about the change, so the local copies become void on a commit. What I would do is block the commit (non zero exit), and give an error message as to why you don't want that r... | Can you modify text files when committing to subversion? I want to ran the following script on text files that are being committed: # Send the commands H and w to ed # ed will append newline if the file does not end in one printf "%s\n" H w | ed -s $1
# Strip trailing whitespace sed -i 's/[ \t]*$//g' $1
# Convert tab... | TITLE:
Can you modify text files when committing to subversion?
QUESTION:
I want to ran the following script on text files that are being committed: # Send the commands H and w to ed # ed will append newline if the file does not end in one printf "%s\n" H w | ed -s $1
# Strip trailing whitespace sed -i 's/[ \t]*$//g'... | [
"svn",
"hook"
] | 3 | 7 | 668 | 1 | 0 | 2008-09-02T01:01:56.310000 | 2008-09-02T01:04:55.243000 |
38,669 | 580,095 | Does the PHP mail() function work if I don't own the MX record | I'm not sure I'm using all the correct terminology here so be forgiving. I just put up a site with a contact form that sends an email using the PHP mail() function. Simple enough. However the live site doesn't actually send the email, the test site does. So it's not my code. It's a shared host and we have another site ... | Hey guys thanks for the answers, it is really appreciated. After ignoring the issue for a few months it has come up again, I did however find the answer to my problems. Firstly, as you answers suggested, PHP and the mail() function were working as expected. The mail was getting sent. The problem lies when the email is ... | Does the PHP mail() function work if I don't own the MX record I'm not sure I'm using all the correct terminology here so be forgiving. I just put up a site with a contact form that sends an email using the PHP mail() function. Simple enough. However the live site doesn't actually send the email, the test site does. So... | TITLE:
Does the PHP mail() function work if I don't own the MX record
QUESTION:
I'm not sure I'm using all the correct terminology here so be forgiving. I just put up a site with a contact form that sends an email using the PHP mail() function. Simple enough. However the live site doesn't actually send the email, the ... | [
"php",
"dns"
] | 7 | 2 | 9,961 | 6 | 0 | 2008-09-02T01:10:54.090000 | 2009-02-24T01:09:17.330000 |
38,670 | 38,704 | ASP.NET controls cannot be referenced in code-behind in Visual Studio 2008 | Ok, so, my visual studio is broken. I say this NOT prematurely, as it was my first response to see where I had messed up in my code. When I add controls to the page I can't reference all of them in the code behind. Some of them I can, it seems that the first few I put on a page work, then it just stops. I first thought... | try clearing your local VS cache. find your project and delete the folder. the folder is created by VS for what reason I honestly don't understand. but I've had several occasions where clearing it and doing a re-build fixes things... hope this is all that you need as well. here %Temp%\VWDWebCache and possibly here %Loc... | ASP.NET controls cannot be referenced in code-behind in Visual Studio 2008 Ok, so, my visual studio is broken. I say this NOT prematurely, as it was my first response to see where I had messed up in my code. When I add controls to the page I can't reference all of them in the code behind. Some of them I can, it seems t... | TITLE:
ASP.NET controls cannot be referenced in code-behind in Visual Studio 2008
QUESTION:
Ok, so, my visual studio is broken. I say this NOT prematurely, as it was my first response to see where I had messed up in my code. When I add controls to the page I can't reference all of them in the code behind. Some of them... | [
"c#",
"asp.net",
"visual-studio"
] | 32 | 17 | 56,187 | 16 | 0 | 2008-09-02T01:10:54.307000 | 2008-09-02T02:12:06.830000 |
38,674 | 39,266 | Does Adobe Flash support databases? | Which databases does Adobe Flash support, if any? | None, really. As others have said, the best solution is to have something in between. I personally prefer amfphp for larger datasets and plain xml for smaller stuff, especially since they introduced E4X (way better XML handling) in ActionScript 3. However, since Flash can do socket communication, it is possible to talk... | Does Adobe Flash support databases? Which databases does Adobe Flash support, if any? | TITLE:
Does Adobe Flash support databases?
QUESTION:
Which databases does Adobe Flash support, if any?
ANSWER:
None, really. As others have said, the best solution is to have something in between. I personally prefer amfphp for larger datasets and plain xml for smaller stuff, especially since they introduced E4X (way... | [
"database",
"flash",
"adobe"
] | 1 | 4 | 5,317 | 8 | 0 | 2008-09-02T01:15:47.383000 | 2008-09-02T11:30:25.473000 |
38,680 | 153,943 | How to provide next page of updated content? | Feel free to edit the title if you know how to formulate the question better. (Tagging is a problem as well.) The problem may be too difficult in this general form, so let us consider a concrete example. You get a screenful of stackoverflow questions by requesting /questions?sort=newest page. Next page link leads to /q... | This can't be done an easy way. For instance, the "Unanswered" list here at stackoverflow is sorted by number of votes. So if you'd save the last ID of the page you're viewing (in a cookie, request, session, whereever) and someone upvotes a post while you're browsing page 2, page 3 isn't complete since the recently upv... | How to provide next page of updated content? Feel free to edit the title if you know how to formulate the question better. (Tagging is a problem as well.) The problem may be too difficult in this general form, so let us consider a concrete example. You get a screenful of stackoverflow questions by requesting /questions... | TITLE:
How to provide next page of updated content?
QUESTION:
Feel free to edit the title if you know how to formulate the question better. (Tagging is a problem as well.) The problem may be too difficult in this general form, so let us consider a concrete example. You get a screenful of stackoverflow questions by req... | [
"sql",
"paging"
] | 3 | 1 | 354 | 4 | 0 | 2008-09-02T01:25:18.127000 | 2008-09-30T16:48:56.963000 |
38,691 | 38,697 | How to grab the contents of HTML tags? | Hey so what I want to do is snag the content for the first paragraph. The string $blog_post contains a lot of paragraphs in the following format: Paragraph 1 Paragraph 2 Paragraph 3 The problem I'm running into is that I am writing a regex to grab everything between the first tag and the first closing tag. However, it ... | Well, sysrqb will let you match anything in the first paragraph assuming there's no other html in the paragraph. You might want something more like this.*? Placing the? after your * makes it non-greedy, meaning it will only match as little text as necessary before matching the. | How to grab the contents of HTML tags? Hey so what I want to do is snag the content for the first paragraph. The string $blog_post contains a lot of paragraphs in the following format: Paragraph 1 Paragraph 2 Paragraph 3 The problem I'm running into is that I am writing a regex to grab everything between the first tag ... | TITLE:
How to grab the contents of HTML tags?
QUESTION:
Hey so what I want to do is snag the content for the first paragraph. The string $blog_post contains a lot of paragraphs in the following format: Paragraph 1 Paragraph 2 Paragraph 3 The problem I'm running into is that I am writing a regex to grab everything betw... | [
"php",
"html",
"regex",
"html-parsing"
] | 7 | 18 | 1,318 | 4 | 0 | 2008-09-02T01:41:59.537000 | 2008-09-02T01:48:04.593000 |
38,713 | 41,033 | ruby idioms for using command-line options | I'm trying to pick up ruby by porting a medium-sized (non-OO) perl program. One of my personal idioms is to set options like this: use Getopt::Std; our $opt_v; # be verbose getopts('v'); # and later... $opt_v && print "something interesting\n"; In perl, I kind of grit my teeth and let $opt_v be (effectively) a global. ... | A while back I ran across this blog post (by Todd Werth) which presented a rather lengthy skeleton for command-line scripts in Ruby. His skeleton uses a hybrid approach in which the application code is encapsulated in an application class which is instantiated, then executed by calling a "run" method on the application... | ruby idioms for using command-line options I'm trying to pick up ruby by porting a medium-sized (non-OO) perl program. One of my personal idioms is to set options like this: use Getopt::Std; our $opt_v; # be verbose getopts('v'); # and later... $opt_v && print "something interesting\n"; In perl, I kind of grit my teeth... | TITLE:
ruby idioms for using command-line options
QUESTION:
I'm trying to pick up ruby by porting a medium-sized (non-OO) perl program. One of my personal idioms is to set options like this: use Getopt::Std; our $opt_v; # be verbose getopts('v'); # and later... $opt_v && print "something interesting\n"; In perl, I kin... | [
"ruby",
"idioms"
] | 4 | 3 | 2,696 | 3 | 0 | 2008-09-02T02:29:06.617000 | 2008-09-03T01:41:55.677000 |
38,719 | 38,980 | What is the best way to create a wizard in C# 2.0? | I have a winforms application where users will be creating stock items, and a time of creation there are a number of different things that need to happen. I think the UI for this should probably be a wizard of some kind, but I'm unsure as to the best way to achieve this. I have seen a couple of 3rd party Wizard control... | Here are a few more resources you should check out: This DevExpress WinForms control: http://www.devexpress.com/Products/NET/Controls/WinForms/Wizard/ A home-grown wizards framework: http://weblogs.asp.net/justin_rogers/articles/60155.aspx A wizard framework by Shawn Wildermut part of the Chris Sells's Genghis framewor... | What is the best way to create a wizard in C# 2.0? I have a winforms application where users will be creating stock items, and a time of creation there are a number of different things that need to happen. I think the UI for this should probably be a wizard of some kind, but I'm unsure as to the best way to achieve thi... | TITLE:
What is the best way to create a wizard in C# 2.0?
QUESTION:
I have a winforms application where users will be creating stock items, and a time of creation there are a number of different things that need to happen. I think the UI for this should probably be a wizard of some kind, but I'm unsure as to the best ... | [
"c#",
"visual-studio",
"winforms",
"user-interface",
"wizard"
] | 26 | 4 | 14,699 | 5 | 0 | 2008-09-02T02:34:13.327000 | 2008-09-02T07:33:19.630000 |
38,726 | 92,670 | WebClient.DownloadFileAsync fails to raise exception | An odd issue that I have been trying to address in a project - my calls to WebClient.DownloadFileAsync seem to be getting ignored and no exceptions are being raised. So far I have been able to determine this might be due to destination folder not existing, but from the looks of the MSDN documentation for Webclient.Down... | This issue was resolved after reviewing MSDN and the source code involved. Previously the application was only implementing the DownloadProgressChangedEventHandler to track how much of a download remained. This turned out to be the root cause of the issue as AsyncCompletedEventHandler is what is invoked when an excepti... | WebClient.DownloadFileAsync fails to raise exception An odd issue that I have been trying to address in a project - my calls to WebClient.DownloadFileAsync seem to be getting ignored and no exceptions are being raised. So far I have been able to determine this might be due to destination folder not existing, but from t... | TITLE:
WebClient.DownloadFileAsync fails to raise exception
QUESTION:
An odd issue that I have been trying to address in a project - my calls to WebClient.DownloadFileAsync seem to be getting ignored and no exceptions are being raised. So far I have been able to determine this might be due to destination folder not ex... | [
".net",
"webclient"
] | 2 | 2 | 3,769 | 2 | 0 | 2008-09-02T02:38:15.657000 | 2008-09-18T13:47:02.357000 |
38,729 | 38,737 | Do you know how to implement transactions in Castle ActiveRecord? | I decided to make a system for a client using Castle ActiveRecord, everything went well until I found that the transactions do not work, for instance; TransactionScope t = new TransactionScope();
try { member.Save();
//This is just to see transaction working throw new Exception("Exception");
foreach (qfh.Beneficiary... | Ben's got it. That doc is a little confusing. Refer to the last block on the page, "Nested transactions". | Do you know how to implement transactions in Castle ActiveRecord? I decided to make a system for a client using Castle ActiveRecord, everything went well until I found that the transactions do not work, for instance; TransactionScope t = new TransactionScope();
try { member.Save();
//This is just to see transaction w... | TITLE:
Do you know how to implement transactions in Castle ActiveRecord?
QUESTION:
I decided to make a system for a client using Castle ActiveRecord, everything went well until I found that the transactions do not work, for instance; TransactionScope t = new TransactionScope();
try { member.Save();
//This is just to... | [
"activerecord",
"castle"
] | 4 | 3 | 2,887 | 3 | 0 | 2008-09-02T02:40:47.820000 | 2008-09-02T02:49:15.133000 |
38,746 | 40,919 | How to detect file ends in newline? | Over at Can you modify text files when committing to subversion? Grant suggested that I block commits instead. However I don't know how to check a file ends with a newline. How can you detect that the file ends with a newline? | @Konrad: tail does not return an empty line. I made a file that has some text that doesn't end in newline and a file that does. Here is the output from tail: $ cat test_no_newline.txt this file doesn't end in newline$
$ cat test_with_newline.txt this file ends in newline $ Though I found that tail has get last byte op... | How to detect file ends in newline? Over at Can you modify text files when committing to subversion? Grant suggested that I block commits instead. However I don't know how to check a file ends with a newline. How can you detect that the file ends with a newline? | TITLE:
How to detect file ends in newline?
QUESTION:
Over at Can you modify text files when committing to subversion? Grant suggested that I block commits instead. However I don't know how to check a file ends with a newline. How can you detect that the file ends with a newline?
ANSWER:
@Konrad: tail does not return ... | [
"svn",
"bash",
"text-files"
] | 31 | 23 | 28,332 | 10 | 0 | 2008-09-02T02:58:03.613000 | 2008-09-02T23:35:22.377000 |
38,756 | 38,765 | Concurrent collections in C# | I'm looking for a way of getting a concurrent collection in C# or at least a collection which supports a concurrent enumerator. Right now I'm getting an InvalidOperationException when the collection over which I'm iterating changes. I could just deep copy the collection and work with a private copy but I'm wondering if... | Other than doing a deep-copy your best bet might be to lock the collection: List theList = (List )callingForm.Invoke(callingForm.delegateGetKillStrings); lock(theList.SyncRoot) { foreach(string s in theList) { // Do some Jazz } } | Concurrent collections in C# I'm looking for a way of getting a concurrent collection in C# or at least a collection which supports a concurrent enumerator. Right now I'm getting an InvalidOperationException when the collection over which I'm iterating changes. I could just deep copy the collection and work with a priv... | TITLE:
Concurrent collections in C#
QUESTION:
I'm looking for a way of getting a concurrent collection in C# or at least a collection which supports a concurrent enumerator. Right now I'm getting an InvalidOperationException when the collection over which I'm iterating changes. I could just deep copy the collection an... | [
"c#",
"concurrency"
] | 3 | 5 | 9,056 | 3 | 0 | 2008-09-02T03:09:38.517000 | 2008-09-02T03:25:49.087000 |
38,763 | 38,802 | What design pattern is PEAR DB_DataObject implementing? | DB_DataObject does not appear to be ActiveRecord because you do not necessarily store business logic in the "table" classes. It seems more like Table Data Gateway or Row Data Gateway, but I really cannot tell. What I need is good ORM layer that we can use with DataMapper and a DomainModel. Any ideas? | Follow this link to read what DB_DO is. In a nutshell, it doesn't implement a specific pattern, it just aims to provide a common interface. The idea is to not rebuild the same basic code in each project. As for an ORM, I'd recommend Doctrine. It implements ActiveRecord. | What design pattern is PEAR DB_DataObject implementing? DB_DataObject does not appear to be ActiveRecord because you do not necessarily store business logic in the "table" classes. It seems more like Table Data Gateway or Row Data Gateway, but I really cannot tell. What I need is good ORM layer that we can use with Dat... | TITLE:
What design pattern is PEAR DB_DataObject implementing?
QUESTION:
DB_DataObject does not appear to be ActiveRecord because you do not necessarily store business logic in the "table" classes. It seems more like Table Data Gateway or Row Data Gateway, but I really cannot tell. What I need is good ORM layer that w... | [
"php",
"database",
"design-patterns",
"pear"
] | 2 | 2 | 722 | 2 | 0 | 2008-09-02T03:24:33.720000 | 2008-09-02T04:12:00.427000 |
38,766 | 38,909 | How do I use a different database connection for package configuration? | I have an SSIS Package that sets some variable data from a SQL Server Package Configuration Table. (Selecting the "Specify configuration setings directly" option) This works well when I'm using the Database connection that I specified when developing the package. However when I run it on a server (64 bit) in the testin... | The only way I was able to do this was to use Windows Environment Variables. You can specify things like connection strings and user preferences in environment variables, and then pick up those environment variables from your SSIS Task. | How do I use a different database connection for package configuration? I have an SSIS Package that sets some variable data from a SQL Server Package Configuration Table. (Selecting the "Specify configuration setings directly" option) This works well when I'm using the Database connection that I specified when developi... | TITLE:
How do I use a different database connection for package configuration?
QUESTION:
I have an SSIS Package that sets some variable data from a SQL Server Package Configuration Table. (Selecting the "Specify configuration setings directly" option) This works well when I'm using the Database connection that I speci... | [
"sql-server",
"ssis"
] | 2 | 1 | 6,024 | 9 | 0 | 2008-09-02T03:26:09.100000 | 2008-09-02T05:49:34.997000 |
38,769 | 208,639 | How would you extract data from a MS Project .mpp file? | I need to extract data from a.mpp file on the network and combine it with other data from several different databases. The application can be written in Perl, VB6, VB.net or C# but must be easily scheduled from a Windows based server. What would you recommend to extract the MS Project data with no user intervention? Is... | I would recommend using MPXJ ( mpxj.sf.net ) to extract data from Microsoft Project files. Don't be put off by the fact that it was originally a Java library - the current release of MPXJ includes native.net dlls as well as the original Java JAR file, thanks to the magic of IKVM. Disclaimer: I maintain MPXJ. | How would you extract data from a MS Project .mpp file? I need to extract data from a.mpp file on the network and combine it with other data from several different databases. The application can be written in Perl, VB6, VB.net or C# but must be easily scheduled from a Windows based server. What would you recommend to e... | TITLE:
How would you extract data from a MS Project .mpp file?
QUESTION:
I need to extract data from a.mpp file on the network and combine it with other data from several different databases. The application can be written in Perl, VB6, VB.net or C# but must be easily scheduled from a Windows based server. What would ... | [
"c#",
"vb.net",
"perl",
"vb6",
"project-management"
] | 5 | 4 | 17,837 | 5 | 0 | 2008-09-02T03:29:57.140000 | 2008-10-16T13:49:23.610000 |
38,779 | 40,472 | What SPN do I need to set for a net.tcp service? | I have a wcf application hosted in a windows service running a local windows account. Do I need to set an SPN for this account? If so, what's the protocol the SPN needs to be set under? I know how to do this for services over HTTP, but have never done it for net.tcp. | By default (i.e. out of the box) net.tcp services are unsecured and don't perform any authentication at all. So you won't need (and in fact can't) set a service principal name. If you need to authenticate, then check the net.tcp security modes on MSDN. The best way to understand the different combinations is to experim... | What SPN do I need to set for a net.tcp service? I have a wcf application hosted in a windows service running a local windows account. Do I need to set an SPN for this account? If so, what's the protocol the SPN needs to be set under? I know how to do this for services over HTTP, but have never done it for net.tcp. | TITLE:
What SPN do I need to set for a net.tcp service?
QUESTION:
I have a wcf application hosted in a windows service running a local windows account. Do I need to set an SPN for this account? If so, what's the protocol the SPN needs to be set under? I know how to do this for services over HTTP, but have never done i... | [
"wcf",
"security",
"spn"
] | 6 | 3 | 6,282 | 2 | 0 | 2008-09-02T03:41:06.880000 | 2008-09-02T20:12:02.473000 |
38,789 | 38,792 | Web Service Namespace Dynamic Naming | I have a web-service that I will be deploying to dev, staging and production. Along with this will be an ASP.net application that will be deploying separately but also in those three stages. What is the most pragmatic way to change the following line in the web-service to match the current environment? [WebService(Name... | Your webservice object has a "URL" property on it which can be set via the web.config file. There's a config file that gets created when you add the web reference to your application that you should copy the contents of to your web.config or app.config file. You can then deploy the config file and not have to manage an... | Web Service Namespace Dynamic Naming I have a web-service that I will be deploying to dev, staging and production. Along with this will be an ASP.net application that will be deploying separately but also in those three stages. What is the most pragmatic way to change the following line in the web-service to match the ... | TITLE:
Web Service Namespace Dynamic Naming
QUESTION:
I have a web-service that I will be deploying to dev, staging and production. Along with this will be an ASP.net application that will be deploying separately but also in those three stages. What is the most pragmatic way to change the following line in the web-ser... | [
"c#",
"asp.net",
"web-services"
] | 4 | 2 | 4,406 | 1 | 0 | 2008-09-02T03:59:44.417000 | 2008-09-02T04:02:40.307000 |
38,791 | 38,793 | Which database table Schema is more efficient? | Which Database table Schema is more efficient and why? "Users (UserID, UserName, CompamyId)" "Companies (CompamyId, CompanyName)" OR "Users (UserID, UserName)" "Companies (CompamyId, CompanyName)" "UserCompanies (UserID, CompamyId)" Given the fact that user and company have one-to-one relation. | For sure, the earlier one is more efficient given that constraint. For getting the same information, you will have less number of joins in your queries. | Which database table Schema is more efficient? Which Database table Schema is more efficient and why? "Users (UserID, UserName, CompamyId)" "Companies (CompamyId, CompanyName)" OR "Users (UserID, UserName)" "Companies (CompamyId, CompanyName)" "UserCompanies (UserID, CompamyId)" Given the fact that user and company hav... | TITLE:
Which database table Schema is more efficient?
QUESTION:
Which Database table Schema is more efficient and why? "Users (UserID, UserName, CompamyId)" "Companies (CompamyId, CompanyName)" OR "Users (UserID, UserName)" "Companies (CompamyId, CompanyName)" "UserCompanies (UserID, CompamyId)" Given the fact that us... | [
"database-design"
] | 4 | 6 | 2,483 | 6 | 0 | 2008-09-02T04:01:09.827000 | 2008-09-02T04:05:56.213000 |
38,801 | 48,298 | SQL - How to store and navigate hierarchies? | What are the ways that you use to model and retrieve hierarchical info in a database? | The definitive pieces on this subject have been written by Joe Celko, and he has worked a number of them into a book called Joe Celko's Trees and Hierarchies in SQL for Smarties. He favours a technique called directed graphs. An introduction to his work on this subject can be found here | SQL - How to store and navigate hierarchies? What are the ways that you use to model and retrieve hierarchical info in a database? | TITLE:
SQL - How to store and navigate hierarchies?
QUESTION:
What are the ways that you use to model and retrieve hierarchical info in a database?
ANSWER:
The definitive pieces on this subject have been written by Joe Celko, and he has worked a number of them into a book called Joe Celko's Trees and Hierarchies in S... | [
"sql",
"sql-server",
"oracle",
"database-design",
"hierarchy"
] | 48 | 15 | 28,274 | 9 | 0 | 2008-09-02T04:10:50.413000 | 2008-09-07T10:33:21.527000 |
38,820 | 38,829 | Which class design is better? | Which class design is better and why? public class User { public String UserName; public String Password; public String FirstName; public String LastName; }
public class Employee: User { public String EmployeeId; public String EmployeeCode; public String DepartmentId; }
public class Member: User { public String Membe... | The question is simply answered by recognising that inheritance models an "IS-A" relationship, while membership models a "HAS-A" relationship. An employee IS A user An employee HAS A userinfo Which one is correct? This is your answer. | Which class design is better? Which class design is better and why? public class User { public String UserName; public String Password; public String FirstName; public String LastName; }
public class Employee: User { public String EmployeeId; public String EmployeeCode; public String DepartmentId; }
public class Memb... | TITLE:
Which class design is better?
QUESTION:
Which class design is better and why? public class User { public String UserName; public String Password; public String FirstName; public String LastName; }
public class Employee: User { public String EmployeeId; public String EmployeeCode; public String DepartmentId; }
... | [
"oop",
"class-design"
] | 46 | 63 | 16,483 | 11 | 0 | 2008-09-02T04:34:20.963000 | 2008-09-02T04:41:11.573000 |
38,822 | 49,780 | Best full text search alternative to MS SQL, C++ solution | What is the best full text search alternative to Microsoft SQL? (which works with MS SQL) I'm looking for something similar to Lucene and Lucene.NET but without the.NET and Java requirements. I would also like to find a solution that is usable in commercial applications. | Take a look at CLucene - It's a well maintained C++ port of java Lucene. It's currently licenced under LGPL and we use it in our commercial application. Performance is incredible, however you do have to get your head around some of the strange API conventions. | Best full text search alternative to MS SQL, C++ solution What is the best full text search alternative to Microsoft SQL? (which works with MS SQL) I'm looking for something similar to Lucene and Lucene.NET but without the.NET and Java requirements. I would also like to find a solution that is usable in commercial appl... | TITLE:
Best full text search alternative to MS SQL, C++ solution
QUESTION:
What is the best full text search alternative to Microsoft SQL? (which works with MS SQL) I'm looking for something similar to Lucene and Lucene.NET but without the.NET and Java requirements. I would also like to find a solution that is usable ... | [
"c++",
"sql-server",
"full-text-search",
"lucene",
"lucene.net"
] | 4 | 3 | 4,430 | 5 | 0 | 2008-09-02T04:36:54.623000 | 2008-09-08T14:13:20.957000 |
38,824 | 38,851 | Is Wiki Content Portable? | I'm thinking of starting a wiki, probably on a low cost LAMP hosting account. I'd like the option of exporting my content later in case I want to run it on IIS/ASP.NET down the line. I know in the weblog world, there's an open standard called BlogML which will let you export your blog content to an XML based format on ... | The correct answer is... "it depends". It depends on which wiki you're using or planning to use. I've used various over the years MoinMoin was ok, used files rather than database, Ubuntu seem to like it. MediaWiki, everyone knows about and JAMWiki is a java clone(ish) of MediaWiki with the aim to be markup compatible w... | Is Wiki Content Portable? I'm thinking of starting a wiki, probably on a low cost LAMP hosting account. I'd like the option of exporting my content later in case I want to run it on IIS/ASP.NET down the line. I know in the weblog world, there's an open standard called BlogML which will let you export your blog content ... | TITLE:
Is Wiki Content Portable?
QUESTION:
I'm thinking of starting a wiki, probably on a low cost LAMP hosting account. I'd like the option of exporting my content later in case I want to run it on IIS/ASP.NET down the line. I know in the weblog world, there's an open standard called BlogML which will let you export ... | [
"asp.net",
"iis",
"wiki"
] | 7 | 6 | 1,181 | 3 | 0 | 2008-09-02T04:38:06.430000 | 2008-09-02T05:03:06.653000 |
38,842 | 42,760 | How to do a simple mail merge in OpenOffice | I need to do a simple mail merge in OpenOffice using C++, VBScript, VB.Net or C# via OLE or native API. Are there any good examples available? | I haven't come up with a solution I'm really happy with but here are some notes: Q. What is the OO API for mail merge? A. http://api.openoffice.org/docs/common/ref/com/sun/star/text/MailMerge.html Q. What support groups? A. http://user.services.openoffice.org/en/forum/viewforum.php?f=20 Q. Sample code? A. http://user.s... | How to do a simple mail merge in OpenOffice I need to do a simple mail merge in OpenOffice using C++, VBScript, VB.Net or C# via OLE or native API. Are there any good examples available? | TITLE:
How to do a simple mail merge in OpenOffice
QUESTION:
I need to do a simple mail merge in OpenOffice using C++, VBScript, VB.Net or C# via OLE or native API. Are there any good examples available?
ANSWER:
I haven't come up with a solution I'm really happy with but here are some notes: Q. What is the OO API for... | [
"c#",
"c++",
"com",
"openoffice.org",
"ole"
] | 4 | 9 | 9,077 | 2 | 0 | 2008-09-02T04:52:52.027000 | 2008-09-03T22:34:34.027000 |
38,846 | 38,853 | How to encrypt one message for multiple recipients? | What are the fundamentals to accomplish data encryption with exactly two keys (which could be password-based), but needing only one (either one) of the two keys to decrypt the data? For example, data is encrypted with a user's password and his company's password, and then he or his company can decrypt the data. Neither... | The way this is customarily done is to generate a single symmetric key to encrypt the data. Then you encrypt the symmetric key with each recipient's key or password to that they can decrypt it on their own. S/MIME (actually the Cryptographic Message Syntax on which S/MIME is based) uses this technique. This way, you on... | How to encrypt one message for multiple recipients? What are the fundamentals to accomplish data encryption with exactly two keys (which could be password-based), but needing only one (either one) of the two keys to decrypt the data? For example, data is encrypted with a user's password and his company's password, and ... | TITLE:
How to encrypt one message for multiple recipients?
QUESTION:
What are the fundamentals to accomplish data encryption with exactly two keys (which could be password-based), but needing only one (either one) of the two keys to decrypt the data? For example, data is encrypted with a user's password and his compan... | [
"security",
"encryption",
"cryptography"
] | 9 | 21 | 10,463 | 5 | 0 | 2008-09-02T04:58:46.320000 | 2008-09-02T05:04:02.670000 |
38,861 | 38,921 | Will this hardware be 64bit Windows Server 2008 compatible? | I recently printed out Jeff Atwood's Understanding The Hardware blog post and plan on taking it to Fry's Electronics and saying to them "Give me all the parts on these sheets so I can put this together." However, I'm going to be installing 64bit Windows Server 2008 on this machine so before I get all the parts: Will al... | Hardware's generally pretty OS-agnostic (at least in terms of Windows flavors) these days. Your only concern is getting drivers for other devices (scanners, printers, IR remotes) that won't work on 64bit and/or won't work on "Server" OSes. Online backup software like Mozy generally won't even install on a Server OS, so... | Will this hardware be 64bit Windows Server 2008 compatible? I recently printed out Jeff Atwood's Understanding The Hardware blog post and plan on taking it to Fry's Electronics and saying to them "Give me all the parts on these sheets so I can put this together." However, I'm going to be installing 64bit Windows Server... | TITLE:
Will this hardware be 64bit Windows Server 2008 compatible?
QUESTION:
I recently printed out Jeff Atwood's Understanding The Hardware blog post and plan on taking it to Fry's Electronics and saying to them "Give me all the parts on these sheets so I can put this together." However, I'm going to be installing 64... | [
"hardware",
"windows-server-2008"
] | 0 | 2 | 971 | 3 | 0 | 2008-09-02T05:14:49.587000 | 2008-09-02T06:16:07.240000 |
38,864 | 39,209 | How do you find out which NIC is connected to the internet? | Consider the following setup: A windows PC with a LAN interface and a WiFi interface (the standard for any new laptop). Each of the interfaces might be connected or disconnected from a network. I need a way to determine which one of the adapters is the one connected to the internet - specifically, in case they are both... | Technically, there is no "connected to the Internet". The real question is, which interface is routeable to a desired address. Right now, you're querying for the "default route" - the one that applies if no specific route to destination exists. But, you're ignoring any specific routes. Fortunately, for 99.9% of home us... | How do you find out which NIC is connected to the internet? Consider the following setup: A windows PC with a LAN interface and a WiFi interface (the standard for any new laptop). Each of the interfaces might be connected or disconnected from a network. I need a way to determine which one of the adapters is the one con... | TITLE:
How do you find out which NIC is connected to the internet?
QUESTION:
Consider the following setup: A windows PC with a LAN interface and a WiFi interface (the standard for any new laptop). Each of the interfaces might be connected or disconnected from a network. I need a way to determine which one of the adapt... | [
"windows",
"networking",
"iphelper"
] | 5 | 5 | 6,371 | 8 | 0 | 2008-09-02T05:16:23.360000 | 2008-09-02T10:46:50.633000 |
38,870 | 38,882 | One or Two Primary Keys in Many-to-Many Table? | I have the following tables in my database that have a many-to-many relationship, which is expressed by a connecting table that has foreign keys to the primary keys of each of the main tables: Widget: WidgetID (PK), Title, Price User: UserID (PK), FirstName, LastName Assume that each User-Widget combination is unique. ... | You only have one primary key in either case. The second one is what's called a compound key. There's no good reason for introducing a new column. In practise, you will have to keep a unique index on all candidate keys. Adding a new column buys you nothing but maintenance overhead. Go with option 2. | One or Two Primary Keys in Many-to-Many Table? I have the following tables in my database that have a many-to-many relationship, which is expressed by a connecting table that has foreign keys to the primary keys of each of the main tables: Widget: WidgetID (PK), Title, Price User: UserID (PK), FirstName, LastName Assum... | TITLE:
One or Two Primary Keys in Many-to-Many Table?
QUESTION:
I have the following tables in my database that have a many-to-many relationship, which is expressed by a connecting table that has foreign keys to the primary keys of each of the main tables: Widget: WidgetID (PK), Title, Price User: UserID (PK), FirstNa... | [
"database",
"data-structures",
"indexing",
"schema"
] | 16 | 24 | 14,331 | 9 | 0 | 2008-09-02T05:21:36.203000 | 2008-09-02T05:28:28.573000 |
38,875 | 38,886 | Best way to avoid code injection in PHP | My website was recently attacked by, what seemed to me as, an innocent code: There where no SQL calls, so I wasn't afraid for SQL Injection. But, apparently, SQL isn't the only kind of injection. This website has an explanation and a few examples of avoiding code injection: http://www.theserverpages.com/articles/webmas... | Use a whitelist and make sure the page is in the whitelist: $whitelist = array('home', 'page');
if (in_array($_GET['page'], $whitelist)) { include($_GET['page'].'.php'); } else { include('home.php'); } | Best way to avoid code injection in PHP My website was recently attacked by, what seemed to me as, an innocent code: There where no SQL calls, so I wasn't afraid for SQL Injection. But, apparently, SQL isn't the only kind of injection. This website has an explanation and a few examples of avoiding code injection: http:... | TITLE:
Best way to avoid code injection in PHP
QUESTION:
My website was recently attacked by, what seemed to me as, an innocent code: There where no SQL calls, so I wasn't afraid for SQL Injection. But, apparently, SQL isn't the only kind of injection. This website has an explanation and a few examples of avoiding cod... | [
"php",
"security",
"code-injection"
] | 24 | 40 | 26,698 | 10 | 0 | 2008-09-02T05:24:28.893000 | 2008-09-02T05:30:06.120000 |
38,890 | 38,897 | Enforce constraint checking only when inserting rows in MSSQL? | Is there a way to enforce constraint checking in MSSQL only when inserting new rows? I.e. allow the constraints to be violated when removing/updating rows? Update: I mean FK constraint. | You could create an INSERT TRIGGER that checks that the conditions are met. That way all updates will go straight through. CREATE TRIGGER employee_insupd ON employee FOR INSERT AS /* Get the range of level for this job type from the jobs table. */ DECLARE @min_lvl tinyint, @max_lvl tinyint, @emp_lvl tinyint, @job_id sm... | Enforce constraint checking only when inserting rows in MSSQL? Is there a way to enforce constraint checking in MSSQL only when inserting new rows? I.e. allow the constraints to be violated when removing/updating rows? Update: I mean FK constraint. | TITLE:
Enforce constraint checking only when inserting rows in MSSQL?
QUESTION:
Is there a way to enforce constraint checking in MSSQL only when inserting new rows? I.e. allow the constraints to be violated when removing/updating rows? Update: I mean FK constraint.
ANSWER:
You could create an INSERT TRIGGER that chec... | [
"sql-server",
"database"
] | 1 | 7 | 1,890 | 3 | 0 | 2008-09-02T05:34:35.720000 | 2008-09-02T05:42:55.557000 |
38,901 | 38,915 | Strange Rails Authentication Issue | I'm using the RESTful authentication Rails plugin for an app I'm developing. I'm having a strange issue I can't get to the bottom of. Essentially, the first time I log into the app after a period of inactivity (the app is deployed in production, but only being used by me), I will be brought to a 404 page, but if I go b... | Please check your routes. Not all routes are created equally. Routes have priority defined by the order of appearance of the routes in the config/routes.rb file. The priority goes from top to bottom. The last route in that file is at the lowest priority and will be applied last. If no route matches, 404 is returned. Mo... | Strange Rails Authentication Issue I'm using the RESTful authentication Rails plugin for an app I'm developing. I'm having a strange issue I can't get to the bottom of. Essentially, the first time I log into the app after a period of inactivity (the app is deployed in production, but only being used by me), I will be b... | TITLE:
Strange Rails Authentication Issue
QUESTION:
I'm using the RESTful authentication Rails plugin for an app I'm developing. I'm having a strange issue I can't get to the bottom of. Essentially, the first time I log into the app after a period of inactivity (the app is deployed in production, but only being used b... | [
"ruby-on-rails",
"ruby",
"authentication",
"rest",
"plugins"
] | 2 | 2 | 290 | 2 | 0 | 2008-09-02T05:43:40.470000 | 2008-09-02T06:09:25.010000 |
38,907 | 39,022 | Developing on Eclipse 3.4, running on Eclipse 3.3 | I'm developing an Eclipse plug-in, based on a bunch of core Eclipse plug-ins like SWT, JDT, GEF and others. I need my plug-in to be compatible with Eclipse 3.3, since many potential customers are still using it. However, personally I like the new features in Eclipse 3.4 and would like to use it for my development. This... | You can change the 'Target platform' setting to point to the location of an existing set of eclipse 3.3 plugins. This will compile your code against the 3.3 plugins, making sure that they stay compatible no matter which version of eclipse you are using to develop the application. The setting is under Window->Preference... | Developing on Eclipse 3.4, running on Eclipse 3.3 I'm developing an Eclipse plug-in, based on a bunch of core Eclipse plug-ins like SWT, JDT, GEF and others. I need my plug-in to be compatible with Eclipse 3.3, since many potential customers are still using it. However, personally I like the new features in Eclipse 3.4... | TITLE:
Developing on Eclipse 3.4, running on Eclipse 3.3
QUESTION:
I'm developing an Eclipse plug-in, based on a bunch of core Eclipse plug-ins like SWT, JDT, GEF and others. I need my plug-in to be compatible with Eclipse 3.3, since many potential customers are still using it. However, personally I like the new featu... | [
"eclipse",
"eclipse-pde",
"eclipse-3.4",
"eclipse-3.3"
] | 6 | 11 | 533 | 3 | 0 | 2008-09-02T05:46:42.927000 | 2008-09-02T08:27:01.217000 |
38,920 | 38,978 | php mail() not working windows 2003, IIS SMTP | I'm getting this problem: PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for chris.mahan@gmail.com in c:\inetpub\wwwroot\mailtest.php on line 12 from this script: section from php.ini on the server: [mail function]; For Win32 only. SMTP = server.domain.com; for Win32 only smtp_port... | Try removing the IP restrictions for Relaying in the SMTP server, and opening it up to all relays. If it works when this is set, then you know that the problem has to do with the original restrictions. In this case, it may be a DNS issue, or perhaps you had the wrong IP address listed. | php mail() not working windows 2003, IIS SMTP I'm getting this problem: PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for chris.mahan@gmail.com in c:\inetpub\wwwroot\mailtest.php on line 12 from this script: section from php.ini on the server: [mail function]; For Win32 only. SMTP... | TITLE:
php mail() not working windows 2003, IIS SMTP
QUESTION:
I'm getting this problem: PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for chris.mahan@gmail.com in c:\inetpub\wwwroot\mailtest.php on line 12 from this script: section from php.ini on the server: [mail function]; Fo... | [
"php",
"iis",
"smtp"
] | 2 | 4 | 13,531 | 5 | 0 | 2008-09-02T06:15:57.210000 | 2008-09-02T07:30:53.520000 |
38,922 | 40,015 | Running DB Migrations from application | I have a rails application where each user has a separate database. (taking Joel Spolsky's advice on this). I want to run DB migrations from the rails application to create a new database and tables for this user. What is the easiest way to do this? Maybe the db migration is not the best for this type of thing. Thanks!... | To answer part of your question, here's how you'd run a rake task from inside Rails code: require 'rake' load 'path/to/task.rake'
Rake::Task['foo:bar:baz'].invoke Mind you, I have no idea how (or why) you could have one database per user. | Running DB Migrations from application I have a rails application where each user has a separate database. (taking Joel Spolsky's advice on this). I want to run DB migrations from the rails application to create a new database and tables for this user. What is the easiest way to do this? Maybe the db migration is not t... | TITLE:
Running DB Migrations from application
QUESTION:
I have a rails application where each user has a separate database. (taking Joel Spolsky's advice on this). I want to run DB migrations from the rails application to create a new database and tables for this user. What is the easiest way to do this? Maybe the db ... | [
"ruby-on-rails"
] | 0 | 1 | 279 | 3 | 0 | 2008-09-02T06:17:20.310000 | 2008-09-02T16:51:01.660000 |
38,940 | 38,942 | Generate field in MySQL SELECT | If I've got a table containing Field1 and Field2 can I generate a new field in the select statement? For example, a normal query would be: SELECT Field1, Field2 FROM Table And I want to also create Field3 and have that returned in the resultset... something along the lines of this would be ideal: SELECT Field1, Field2,... | SELECT Field1, Field2, 'Value' Field3 FROM Table or for clarity SELECT Field1, Field2, 'Value' AS Field3 FROM Table | Generate field in MySQL SELECT If I've got a table containing Field1 and Field2 can I generate a new field in the select statement? For example, a normal query would be: SELECT Field1, Field2 FROM Table And I want to also create Field3 and have that returned in the resultset... something along the lines of this would b... | TITLE:
Generate field in MySQL SELECT
QUESTION:
If I've got a table containing Field1 and Field2 can I generate a new field in the select statement? For example, a normal query would be: SELECT Field1, Field2 FROM Table And I want to also create Field3 and have that returned in the resultset... something along the lin... | [
"sql",
"mysql"
] | 4 | 12 | 2,032 | 2 | 0 | 2008-09-02T06:50:58.233000 | 2008-09-02T06:53:23.487000 |
38,955 | 38,981 | Is it possible to get the maximum supported resolution of a connected display in os x from java? | Assume java 1.6 and leopard. Ideally, it would also be nice to get a list of all supported resolutions and the current resolution. If this isn't possible in java, is there some way to do it that could be called from java? | GraphicsDevice[] devices = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices(); for (int i = 0; i < devices.length; i++) { GraphicsDevice dev = devices[i]; System.out.println("device " + i); DisplayMode[] modes = dev.getDisplayModes(); for (int j = 0; j < modes.length; j++) { DisplayMode m = modes[j]; ... | Is it possible to get the maximum supported resolution of a connected display in os x from java? Assume java 1.6 and leopard. Ideally, it would also be nice to get a list of all supported resolutions and the current resolution. If this isn't possible in java, is there some way to do it that could be called from java? | TITLE:
Is it possible to get the maximum supported resolution of a connected display in os x from java?
QUESTION:
Assume java 1.6 and leopard. Ideally, it would also be nice to get a list of all supported resolutions and the current resolution. If this isn't possible in java, is there some way to do it that could be c... | [
"java",
"macos",
"osx-leopard",
"resolutions"
] | 1 | 6 | 836 | 1 | 0 | 2008-09-02T07:11:40.867000 | 2008-09-02T07:33:22.093000 |
38,960 | 38,962 | How to find out if a file exists in C# / .NET? | I would like to test a string containing a path to a file for existence of that file (something like the -e test in Perl or the os.path.exists() in Python) in C#. | Use: File.Exists(path) MSDN: http://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx Edit: In System.IO | How to find out if a file exists in C# / .NET? I would like to test a string containing a path to a file for existence of that file (something like the -e test in Perl or the os.path.exists() in Python) in C#. | TITLE:
How to find out if a file exists in C# / .NET?
QUESTION:
I would like to test a string containing a path to a file for existence of that file (something like the -e test in Perl or the os.path.exists() in Python) in C#.
ANSWER:
Use: File.Exists(path) MSDN: http://msdn.microsoft.com/en-us/library/system.io.file... | [
"c#",
".net",
"io"
] | 242 | 370 | 343,780 | 6 | 0 | 2008-09-02T07:18:48.120000 | 2008-09-02T07:19:51.190000 |
38,993 | 39,004 | Regex to match unique substrings | Here's a basic regex technique that I've never managed to remember. Let's say I'm using a fairly generic regex implementation (e.g., grep or grep -E). If I were to do a list of files and match any that end in either.sty or.cls, how would I do that? | ls | grep -E "\.(sty|cls)$" \. matches literally a "." - an unescaped. matches any character (sty|cls) - match "sty" or "cls" - the | is an or and the brackets limit the expression. $ forces the match to be at the end of the line Note, you want grep -E or egrep, not grep -e as that's a different option for lists of pat... | Regex to match unique substrings Here's a basic regex technique that I've never managed to remember. Let's say I'm using a fairly generic regex implementation (e.g., grep or grep -E). If I were to do a list of files and match any that end in either.sty or.cls, how would I do that? | TITLE:
Regex to match unique substrings
QUESTION:
Here's a basic regex technique that I've never managed to remember. Let's say I'm using a fairly generic regex implementation (e.g., grep or grep -E). If I were to do a list of files and match any that end in either.sty or.cls, how would I do that?
ANSWER:
ls | grep -... | [
"regex",
"grep"
] | 4 | 4 | 2,689 | 3 | 0 | 2008-09-02T08:05:43.420000 | 2008-09-02T08:14:22.183000 |
38,998 | 39,015 | Can I stop .NET eating IDs? | I'm an Information Architect and JavaScript developer by trade nowadays, but recently I've been getting back into back-end coding again. And, whilst trying to get an HTML prototype integrated and working with our C#-based CMS, I've come to blows with our programmers over the HTML ID attributes being arbitrarily rewritt... | The short answer is no, with webforms the id can always be rewritten depending on the nesting of the element. You can get access to the id through the ClientID property, so you could set the ids into variables in a script at the end of the page/control then put them into jQuery. something like this: Click Me It's a hac... | Can I stop .NET eating IDs? I'm an Information Architect and JavaScript developer by trade nowadays, but recently I've been getting back into back-end coding again. And, whilst trying to get an HTML prototype integrated and working with our C#-based CMS, I've come to blows with our programmers over the HTML ID attribut... | TITLE:
Can I stop .NET eating IDs?
QUESTION:
I'm an Information Architect and JavaScript developer by trade nowadays, but recently I've been getting back into back-end coding again. And, whilst trying to get an HTML prototype integrated and working with our C#-based CMS, I've come to blows with our programmers over th... | [
"c#",
".net",
"javascript",
"html",
"css"
] | 21 | 25 | 1,968 | 10 | 0 | 2008-09-02T08:09:24.253000 | 2008-09-02T08:20:29.283000 |
39,003 | 39,034 | NUnit - How to test all classes that implement a particular interface | If I have interface IFoo, and have several classes that implement it, what is the best/most elegant/cleverest way to test all those classes against the interface? I'd like to reduce test code duplication, but still 'stay true' to the principles of Unit testing. What would you consider best practice? I'm using NUnit, bu... | If you have classes implement any one interface then they all need to implement the methods in that interface. In order to test these classes you need to create a unit test class for each of the classes. Lets go with a smarter route instead; if your goal is to avoid code and test code duplication you might want to crea... | NUnit - How to test all classes that implement a particular interface If I have interface IFoo, and have several classes that implement it, what is the best/most elegant/cleverest way to test all those classes against the interface? I'd like to reduce test code duplication, but still 'stay true' to the principles of Un... | TITLE:
NUnit - How to test all classes that implement a particular interface
QUESTION:
If I have interface IFoo, and have several classes that implement it, what is the best/most elegant/cleverest way to test all those classes against the interface? I'd like to reduce test code duplication, but still 'stay true' to th... | [
"c#",
".net",
"unit-testing",
"nunit"
] | 33 | 15 | 11,786 | 6 | 0 | 2008-09-02T08:13:58.050000 | 2008-09-02T08:39:09.847000 |
39,006 | 39,321 | Error: "VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results" | I'm running WAMP v2.0 on WindowsXP and I've got a bunch of virtual hosts setup in the http-vhosts.conf file. This was working, but in the last week whenever I try & start WAMP I get this error in the event logs: VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceedi... | NameVirtualHost *:80 I get this error: Only one usage of each socket address (protocol/network address/port) is normally >permitted.: make_sock: could not bind to address 0.0.0.0:80 I think this might be because you have somthing else listening to port 80. Do you have any other servers (or for example Skype) running? (... | Error: "VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results" I'm running WAMP v2.0 on WindowsXP and I've got a bunch of virtual hosts setup in the http-vhosts.conf file. This was working, but in the last week whenever I try & start WAMP I... | TITLE:
Error: "VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results"
QUESTION:
I'm running WAMP v2.0 on WindowsXP and I've got a bunch of virtual hosts setup in the http-vhosts.conf file. This was working, but in the last week whenever I ... | [
"windows",
"apache",
"wamp"
] | 1 | 4 | 5,952 | 2 | 0 | 2008-09-02T08:14:54.833000 | 2008-09-02T11:56:29.810000 |
39,007 | 39,290 | Speeding up XAML editing in VS2008 | When editing XAML in VS2008 SP1, the editor is really slow. devenv process seems to be around at 40% CPU (the machine I’m using at the moment is only dual core, so that’s almost maxing out one core) most of the time. It spikes up a bit more when I switch to another XAML file. I do also have ReSharper installed, but I t... | It looks like the slowdown is due to ReSharper. From a bit more Googling I found that pressing Ctrl + 8 will turn ReSharper off for the current file ( Ctrl + 8 again to turn it back on). If I do this for the slow Xaml files, my problems pretty much go away (and I don’t mind not having ReSharper for Xaml) Update: The 4.... | Speeding up XAML editing in VS2008 When editing XAML in VS2008 SP1, the editor is really slow. devenv process seems to be around at 40% CPU (the machine I’m using at the moment is only dual core, so that’s almost maxing out one core) most of the time. It spikes up a bit more when I switch to another XAML file. I do als... | TITLE:
Speeding up XAML editing in VS2008
QUESTION:
When editing XAML in VS2008 SP1, the editor is really slow. devenv process seems to be around at 40% CPU (the machine I’m using at the moment is only dual core, so that’s almost maxing out one core) most of the time. It spikes up a bit more when I switch to another X... | [
"visual-studio-2008",
"xaml"
] | 4 | 1 | 1,352 | 4 | 0 | 2008-09-02T08:15:20.793000 | 2008-09-02T11:41:55.087000 |
39,037 | 39,139 | How to convert Word and Excel documents to PDF programmatically? | We are developing a little application that given a directory with PDF files creates a unique PDF file containing all the PDF files in the directory. This is a simple task using iTextSharp. The problem appears if in the directory exist some files like Word documents, or Excel documents. My question is, is there a way t... | Office 2007 allows for this. I have found PDFCreator to be good, the VBA is included in sample files, and have heard that CutePDF is also good. PDFCreator and CutePDF are free. To work without Office, you would need viewers, as far as I know: http://www.microsoft.com/downloads/details.aspx?FamilyID=c8378bf4-996c-4569-b... | How to convert Word and Excel documents to PDF programmatically? We are developing a little application that given a directory with PDF files creates a unique PDF file containing all the PDF files in the directory. This is a simple task using iTextSharp. The problem appears if in the directory exist some files like Wor... | TITLE:
How to convert Word and Excel documents to PDF programmatically?
QUESTION:
We are developing a little application that given a directory with PDF files creates a unique PDF file containing all the PDF files in the directory. This is a simple task using iTextSharp. The problem appears if in the directory exist s... | [
"automation",
"ms-office"
] | 7 | 2 | 18,686 | 8 | 0 | 2008-09-02T08:42:22.820000 | 2008-09-02T09:58:17.707000 |
39,059 | 39,235 | How do I run my app with large pages in Windows? | Large pages are available in Windows Server 2003 and Windows Vista. But how do I enable large pages for my application? | Martin's answer is correct on Windows Server 2003: You will have to assign the "Lock pages in memory" privilege to any user that runs your > application. This includes administrators Select Control Panel -> Administrative Tools -> Local Security Policy Select Local Policies -> User Rights Assignment Double click "Lock ... | How do I run my app with large pages in Windows? Large pages are available in Windows Server 2003 and Windows Vista. But how do I enable large pages for my application? | TITLE:
How do I run my app with large pages in Windows?
QUESTION:
Large pages are available in Windows Server 2003 and Windows Vista. But how do I enable large pages for my application?
ANSWER:
Martin's answer is correct on Windows Server 2003: You will have to assign the "Lock pages in memory" privilege to any user ... | [
"windows",
"windows-server-2003"
] | 2 | 3 | 9,648 | 2 | 0 | 2008-09-02T09:00:58.093000 | 2008-09-02T11:10:10.670000 |
39,061 | 39,072 | Can all RPN expressions be represented such that all operators appear on the left and all operands appear on the right? | I've convinced myself that they can't. Take for example: 4 4 + 4 / stack: 4 stack: 4 4 4 + 4 = 8 stack: 8 stack: 8 4 8 / 4 = 2 stack: 2 There are two ways that you could write the above expression with the same operators and operands such that the operands all come first: "4 4 4 + /" and "4 4 4 / +", neither of which e... | Consider the algebraic expression: (a + b) * (c + d) The obvious translation to RPN would be: a b + c d + * Even with a swap operation available, I don't think there is a way to collect all the operators on the right: a b c d + a b S where S is the sum of c and d. At this point, you couldn't use a single swap operation... | Can all RPN expressions be represented such that all operators appear on the left and all operands appear on the right? I've convinced myself that they can't. Take for example: 4 4 + 4 / stack: 4 stack: 4 4 4 + 4 = 8 stack: 8 stack: 8 4 8 / 4 = 2 stack: 2 There are two ways that you could write the above expression wit... | TITLE:
Can all RPN expressions be represented such that all operators appear on the left and all operands appear on the right?
QUESTION:
I've convinced myself that they can't. Take for example: 4 4 + 4 / stack: 4 stack: 4 4 4 + 4 = 8 stack: 8 stack: 8 4 8 / 4 = 2 stack: 2 There are two ways that you could write the ab... | [
"rpn"
] | 1 | 2 | 496 | 4 | 0 | 2008-09-02T09:01:50.137000 | 2008-09-02T09:08:08.793000 |
39,065 | 39,083 | Referencing resource files from multiple projects in a solution | I am working on localization for a asp.net application that consists of several projects. For this, there are some strings that are used in several of these projects. Naturally, I would prefer to have only one copy of the resource file in each project. Since the resource files don't have an namespace (at least as far a... | You can just create a class library project, add a resource file there, and then refer to that assembly for common resources. | Referencing resource files from multiple projects in a solution I am working on localization for a asp.net application that consists of several projects. For this, there are some strings that are used in several of these projects. Naturally, I would prefer to have only one copy of the resource file in each project. Sin... | TITLE:
Referencing resource files from multiple projects in a solution
QUESTION:
I am working on localization for a asp.net application that consists of several projects. For this, there are some strings that are used in several of these projects. Naturally, I would prefer to have only one copy of the resource file in... | [
"c#",
"localization",
"resx"
] | 11 | 15 | 22,299 | 3 | 0 | 2008-09-02T09:05:04.433000 | 2008-09-02T09:16:56.497000 |
39,070 | 84,138 | Programmable, secure FTP replacement | We need to move off traditional FTP for security purposes (it transmits it's passwords unencrypted). I am hearing SSH touted as the obvious alternative. However I have been driving FTP from an ASP.NET program interface to automate my web-site development, which is now quite a highly web-enabled process. Can anyone reco... | the question has three subquestions: 1) choosing the secure transfer protocol The secure version of old FTP exists - it's called FTP/SSL (plain old FTP over SSL encrypted channel). Maybe you can still use your old deployment infrastructure - just check whether it supports the FTPS or FTP/SSL. You can check details abou... | Programmable, secure FTP replacement We need to move off traditional FTP for security purposes (it transmits it's passwords unencrypted). I am hearing SSH touted as the obvious alternative. However I have been driving FTP from an ASP.NET program interface to automate my web-site development, which is now quite a highly... | TITLE:
Programmable, secure FTP replacement
QUESTION:
We need to move off traditional FTP for security purposes (it transmits it's passwords unencrypted). I am hearing SSH touted as the obvious alternative. However I have been driving FTP from an ASP.NET program interface to automate my web-site development, which is ... | [
"asp.net",
"ftp"
] | 2 | 3 | 3,033 | 5 | 0 | 2008-09-02T09:06:04.260000 | 2008-09-17T14:57:24.537000 |
39,086 | 39,110 | Search and replace a line in a file in Python | I want to loop over the contents of a text file and do a search and replace on some lines and write the result back to the file. I could first load the whole file in memory and then write it back, but that probably is not the best way to do it. What is the best way to do this, within the following code? f = open(file) ... | I guess something like this should do it. It basically writes the content to a new file and replaces the old file with the new file: from tempfile import mkstemp from shutil import move, copymode from os import fdopen, remove
def replace(file_path, pattern, subst): #Create temp file fh, abs_path = mkstemp() with fdope... | Search and replace a line in a file in Python I want to loop over the contents of a text file and do a search and replace on some lines and write the result back to the file. I could first load the whole file in memory and then write it back, but that probably is not the best way to do it. What is the best way to do th... | TITLE:
Search and replace a line in a file in Python
QUESTION:
I want to loop over the contents of a text file and do a search and replace on some lines and write the result back to the file. I could first load the whole file in memory and then write it back, but that probably is not the best way to do it. What is the... | [
"python",
"file"
] | 377 | 235 | 630,471 | 13 | 0 | 2008-09-02T09:19:04.417000 | 2008-09-02T09:42:21.037000 |
39,107 | 39,875 | Tools for degrading my network connection? | I've written some applications than heavily use network, and I would like to test it over a slow network. I'm looking for a tool to simulate these kind of connections. I'm only interested in Windows tools. | I've used Traffic Shaper XP on my XP dev box at work. It seems to handle any connection (not just HTTP). It wasn't perfect, but worked well enough for the tests I was doing. If you're on Windows maybe it'll do enough for you. | Tools for degrading my network connection? I've written some applications than heavily use network, and I would like to test it over a slow network. I'm looking for a tool to simulate these kind of connections. I'm only interested in Windows tools. | TITLE:
Tools for degrading my network connection?
QUESTION:
I've written some applications than heavily use network, and I would like to test it over a slow network. I'm looking for a tool to simulate these kind of connections. I'm only interested in Windows tools.
ANSWER:
I've used Traffic Shaper XP on my XP dev box... | [
"networking",
"bandwidth",
"throttling"
] | 18 | 9 | 13,742 | 10 | 0 | 2008-09-02T09:41:23.410000 | 2008-09-02T16:02:18.097000 |
39,112 | 40,065 | What is the best way to lock cache in asp.net? | I know in certain circumstances, such as long running processes, it is important to lock ASP.NET cache in order to avoid subsequent requests by another user for that resource from executing the long process again instead of hitting the cache. What is the best way in c# to implement cache locking in ASP.NET? | Here's the basic pattern: Check the cache for the value, return if its available If the value is not in the cache, then implement a lock Inside the lock, check the cache again, you might have been blocked Perform the value look up and cache it Release the lock In code, it looks like this: private static object ThisLock... | What is the best way to lock cache in asp.net? I know in certain circumstances, such as long running processes, it is important to lock ASP.NET cache in order to avoid subsequent requests by another user for that resource from executing the long process again instead of hitting the cache. What is the best way in c# to ... | TITLE:
What is the best way to lock cache in asp.net?
QUESTION:
I know in certain circumstances, such as long running processes, it is important to lock ASP.NET cache in order to avoid subsequent requests by another user for that resource from executing the long process again instead of hitting the cache. What is the ... | [
"c#",
".net",
"asp.net",
"caching"
] | 81 | 117 | 42,690 | 9 | 0 | 2008-09-02T09:42:44.373000 | 2008-09-02T17:12:26.023000 |
39,116 | 39,147 | Linking statically in C# | I'm working on a module for a CMS. This module is distributed as a class library DLL. I have several utility libraries I'd like to use in this module. Is there anyway I can link these libraries statically so I won't have to distribute several DLL's (thereby distributing my utility libraries separately)? I would like to... | You can merge your many DLLs with ILMERGE: http://research.microsoft.com/~mbarnett/ILMerge.aspx Haven't tried it myself. Hope it helps. Download here: http://www.microsoft.com/downloads/details.aspx?familyid=22914587-B4AD-4EAE-87CF-B14AE6A939B0&displaylang=en Brief Description (from download-page) ILMerge is a utility ... | Linking statically in C# I'm working on a module for a CMS. This module is distributed as a class library DLL. I have several utility libraries I'd like to use in this module. Is there anyway I can link these libraries statically so I won't have to distribute several DLL's (thereby distributing my utility libraries sep... | TITLE:
Linking statically in C#
QUESTION:
I'm working on a module for a CMS. This module is distributed as a class library DLL. I have several utility libraries I'd like to use in this module. Is there anyway I can link these libraries statically so I won't have to distribute several DLL's (thereby distributing my uti... | [
"c#",
"visual-studio-2008",
"linker"
] | 17 | 24 | 15,787 | 3 | 0 | 2008-09-02T09:44:16.400000 | 2008-09-02T10:01:43.110000 |
39,119 | 39,156 | How can I control checkboxes in a .Net Forms.TreeView? | I have a.Net desktop application with a TreeView as one of the UI elements. I want to be able to multi-select that TreeView, only that isn't supported at all. So I'm adding check-boxes to the tree, My problem is that only some items are selectable, and those that aren't can't consistently cascade selections. Is there a... | The default behavior of TreeView is that when the Checkboxes property is set to true, that checkboxes will be shown for all TreeNodes. The behavior that you are looking for - to disable or hide some checkboxes - is a custom modification of the normal behavior. You can create a custom implementation of TreeView or TreeN... | How can I control checkboxes in a .Net Forms.TreeView? I have a.Net desktop application with a TreeView as one of the UI elements. I want to be able to multi-select that TreeView, only that isn't supported at all. So I'm adding check-boxes to the tree, My problem is that only some items are selectable, and those that a... | TITLE:
How can I control checkboxes in a .Net Forms.TreeView?
QUESTION:
I have a.Net desktop application with a TreeView as one of the UI elements. I want to be able to multi-select that TreeView, only that isn't supported at all. So I'm adding check-boxes to the tree, My problem is that only some items are selectable... | [
".net",
"winforms",
"treeview",
"treenode"
] | 3 | 4 | 6,247 | 3 | 0 | 2008-09-02T09:46:16.940000 | 2008-09-02T10:08:44.827000 |
39,121 | 39,828 | How do I begin beta testing? | I have a project that I would like to start beta testing soon, it is a PHP/MySQL site for programmers. I have beta tested sites before however it was always in-house, and I have never done betas that could/should be seen by someone other then those associated with the project. How should I go about starting the beta, a... | First, accept the fact that problems with your app (code, usability, etc.) will be discovered. Then, make sure you have a clear way for users to communicate with you (form mail, email, uservoice, etc.). The easier you make this the better. For example, there is a uservoice link on every page of SO. One philosophy I str... | How do I begin beta testing? I have a project that I would like to start beta testing soon, it is a PHP/MySQL site for programmers. I have beta tested sites before however it was always in-house, and I have never done betas that could/should be seen by someone other then those associated with the project. How should I ... | TITLE:
How do I begin beta testing?
QUESTION:
I have a project that I would like to start beta testing soon, it is a PHP/MySQL site for programmers. I have beta tested sites before however it was always in-house, and I have never done betas that could/should be seen by someone other then those associated with the proj... | [
"testing",
"beta"
] | 4 | 7 | 586 | 4 | 0 | 2008-09-02T09:46:36.907000 | 2008-09-02T15:40:08.993000 |
39,154 | 39,179 | Do you version "derived" files? | Using online interfaces to a version control system is a nice way to have a published location for the most recent versions of code. For example, I have a LaTeX package here (which is released to CTAN whenever changes are verified to actually work): http://github.com/wspr/pstool/tree/master The package itself is derive... | I am using Tortoise SVN for small system ASP.NET development. Most code is interpreted ASPX, but there are around a dozen binary DLLs generated by a manual compile step. Whilst it doesn't make a lot of sense to have these source-code versioned in theory, it certainly makes it convenient to ensure they are correctly mir... | Do you version "derived" files? Using online interfaces to a version control system is a nice way to have a published location for the most recent versions of code. For example, I have a LaTeX package here (which is released to CTAN whenever changes are verified to actually work): http://github.com/wspr/pstool/tree/mas... | TITLE:
Do you version "derived" files?
QUESTION:
Using online interfaces to a version control system is a nice way to have a published location for the most recent versions of code. For example, I have a LaTeX package here (which is released to CTAN whenever changes are verified to actually work): http://github.com/ws... | [
"version-control",
"versioning",
"revision-history",
"revisions"
] | 2 | 2 | 255 | 5 | 0 | 2008-09-02T10:06:25.487000 | 2008-09-02T10:25:26.237000 |
39,187 | 280,699 | How do I install a color theme for IntelliJ IDEA 7.0.x | I prefer dark backgrounds for coding, and I've downloaded a jar file containing an IntelliJ IDEA color theme that has a dark background. How do I tell IntelliJ about it? | Go to File->Import Settings... and select the jar settings file Update as of IntelliJ 2020: Go to File -> Manage IDE Settings -> Import Settings... | How do I install a color theme for IntelliJ IDEA 7.0.x I prefer dark backgrounds for coding, and I've downloaded a jar file containing an IntelliJ IDEA color theme that has a dark background. How do I tell IntelliJ about it? | TITLE:
How do I install a color theme for IntelliJ IDEA 7.0.x
QUESTION:
I prefer dark backgrounds for coding, and I've downloaded a jar file containing an IntelliJ IDEA color theme that has a dark background. How do I tell IntelliJ about it?
ANSWER:
Go to File->Import Settings... and select the jar settings file Upda... | [
"intellij-idea",
"color-scheme"
] | 77 | 127 | 153,092 | 9 | 0 | 2008-09-02T10:31:38.813000 | 2008-11-11T11:54:04.883000 |
39,194 | 39,309 | Do I need a Mac to make a Java application bundle? | I want to create a Java application bundle for Mac without using Mac. According to Java Deployment Options for Mac OS X, I can do this by using Xcode, Jar Bundler, or from the command line. Once the files and folders are set up, all I need for the command line method is to call /Developer/Tools/SetFile. Is there a SetF... | A Java application bundle on OS X is nothing more than a directory containing your.jars and a number of configuration files. The SetFile tool sets a custom HFS filesystem property on the directory to tell finder that it is an app, but giving it a ".app" extension serves the same purpose. I don't think there's anything ... | Do I need a Mac to make a Java application bundle? I want to create a Java application bundle for Mac without using Mac. According to Java Deployment Options for Mac OS X, I can do this by using Xcode, Jar Bundler, or from the command line. Once the files and folders are set up, all I need for the command line method i... | TITLE:
Do I need a Mac to make a Java application bundle?
QUESTION:
I want to create a Java application bundle for Mac without using Mac. According to Java Deployment Options for Mac OS X, I can do this by using Xcode, Jar Bundler, or from the command line. Once the files and folders are set up, all I need for the com... | [
"java",
"macos",
"deployment"
] | 8 | 6 | 2,377 | 4 | 0 | 2008-09-02T10:37:06.333000 | 2008-09-02T11:48:56.990000 |
39,222 | 39,238 | Portably handle exceptional errors in C++ | I'm working on porting a Visual C++ application to GCC (should build on MingW and Linux). The existing code uses __try {... } __except(1) {... } blocks in a few places so that almost nothing (short of maybe out of memory type errors?) would make the program exit without doing some minimal logging. What are the options ... | try { xxx } catch(...) { xxx } would be more portable but might not catch as much. It depends on compiler settings and environments. Using the default VC++ settings, asynchronous (SEH) errors are not delivered to the C++ EH infrastructure; to catch them you need to use SEH handlers (__try/__except) instead. VC++ allows... | Portably handle exceptional errors in C++ I'm working on porting a Visual C++ application to GCC (should build on MingW and Linux). The existing code uses __try {... } __except(1) {... } blocks in a few places so that almost nothing (short of maybe out of memory type errors?) would make the program exit without doing s... | TITLE:
Portably handle exceptional errors in C++
QUESTION:
I'm working on porting a Visual C++ application to GCC (should build on MingW and Linux). The existing code uses __try {... } __except(1) {... } blocks in a few places so that almost nothing (short of maybe out of memory type errors?) would make the program ex... | [
"exception",
"visual-c++",
"gcc",
"cross-platform",
"portability"
] | 7 | 12 | 3,032 | 5 | 0 | 2008-09-02T10:57:10.873000 | 2008-09-02T11:11:01.103000 |
39,229 | 39,232 | Can I use other IDEs other than Visual Studio for coding in .net? | What are the options? How popular are they? Do these IDEs give similar/better functionality compared to visual studio? | Yes - you can try using SharpDevelop: http://www.icsharpcode.net/OpenSource/SD/ Or you can just use notepad, or notepad++ http://notepad-plus.sourceforge.net/ Then compile on the command line. Edit: If you're looking for a free solution - try Visual Studio C# Express Edition: http://www.microsoft.com/express/vcsharp/ | Can I use other IDEs other than Visual Studio for coding in .net? What are the options? How popular are they? Do these IDEs give similar/better functionality compared to visual studio? | TITLE:
Can I use other IDEs other than Visual Studio for coding in .net?
QUESTION:
What are the options? How popular are they? Do these IDEs give similar/better functionality compared to visual studio?
ANSWER:
Yes - you can try using SharpDevelop: http://www.icsharpcode.net/OpenSource/SD/ Or you can just use notepad,... | [
".net",
"visual-studio"
] | 5 | 5 | 1,201 | 5 | 0 | 2008-09-02T11:07:23.250000 | 2008-09-02T11:08:14.030000 |
39,240 | 39,316 | "Similar Posts" like functionality using MS SQL Server? | I have lots of article store in MS SQL server 2005 database in a table called Articles- "Articles (ArticleID, ArticleTitle, ArticleContent)" Now I want some SP or SQL query which could return me similar Article against any user's input (very much like "Similar Posts" in blogs OR "Related Questions" in stackoverflow). T... | Something like this might work, a kind of ranking system. You would probably have to split the string in your application to build a SQL string, but I have used similar to build an effective site search. Select Top 10 ArticleID, ArticleTitle, ArticleContent From Articles Order By (Case When ArticleTitle = 'Article Titl... | "Similar Posts" like functionality using MS SQL Server? I have lots of article store in MS SQL server 2005 database in a table called Articles- "Articles (ArticleID, ArticleTitle, ArticleContent)" Now I want some SP or SQL query which could return me similar Article against any user's input (very much like "Similar Pos... | TITLE:
"Similar Posts" like functionality using MS SQL Server?
QUESTION:
I have lots of article store in MS SQL server 2005 database in a table called Articles- "Articles (ArticleID, ArticleTitle, ArticleContent)" Now I want some SP or SQL query which could return me similar Article against any user's input (very much... | [
"sql",
"sql-server",
"database"
] | 2 | 1 | 1,509 | 3 | 0 | 2008-09-02T11:12:35 | 2008-09-02T11:52:02.130000 |
39,243 | 39,311 | Query to identify the number of revisions made to a table | Is there any query which can return me the number of revisions made to the structure of a database table? Secondly, how can I determine the number of pages (in terms of size) present in mdf or ldf files? | You can get last modify date or creation date of object in SQL Server. For examle info on tables: SELECT * FROM sys.objects WHERE type='U' More info on msdn Number of pages can be fetched from sys.database_files. Check documentation | Query to identify the number of revisions made to a table Is there any query which can return me the number of revisions made to the structure of a database table? Secondly, how can I determine the number of pages (in terms of size) present in mdf or ldf files? | TITLE:
Query to identify the number of revisions made to a table
QUESTION:
Is there any query which can return me the number of revisions made to the structure of a database table? Secondly, how can I determine the number of pages (in terms of size) present in mdf or ldf files?
ANSWER:
You can get last modify date or... | [
"sql-server"
] | 0 | 1 | 142 | 3 | 0 | 2008-09-02T11:14:36.133000 | 2008-09-02T11:49:20.857000 |
39,281 | 39,360 | Database Design for Revisions? | We have a requirement in project to store all the revisions(Change History) for the entities in the database. Currently we have 2 designed proposals for this: e.g. for "Employee" Entity Design 1: -- Holds Employee Entity "Employees (EmployeeId, FirstName, LastName, DepartmentId,..,..)"
-- Holds the Employee Revisions ... | Do not put it all in one table with an IsCurrent discriminator attribute. This just causes problems down the line, requires surrogate keys and all sorts of other problems. Design 2 does have problems with schema changes. If you change the Employees table you have to change the EmployeeHistories table and all the relate... | Database Design for Revisions? We have a requirement in project to store all the revisions(Change History) for the entities in the database. Currently we have 2 designed proposals for this: e.g. for "Employee" Entity Design 1: -- Holds Employee Entity "Employees (EmployeeId, FirstName, LastName, DepartmentId,..,..)"
-... | TITLE:
Database Design for Revisions?
QUESTION:
We have a requirement in project to store all the revisions(Change History) for the entities in the database. Currently we have 2 designed proposals for this: e.g. for "Employee" Entity Design 1: -- Holds Employee Entity "Employees (EmployeeId, FirstName, LastName, Depar... | [
"sql",
"database",
"database-design",
"versioning"
] | 132 | 42 | 46,030 | 16 | 0 | 2008-09-02T11:36:38.517000 | 2008-09-02T12:13:47.380000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.