(This isn't really DIY. It's more of a but report.)
I was getting consistent errors on one of my directories.
svn: Commit failed (details follow): svn: OPTIONS request failed on '/images' svn: OPTIONS of '/images': 301 Moved Permanently (http://svn.lolitics.org)
The problem was that the svn client was failing to honor the redirect request that sends requests for http://foo/bar to http://foo/bar/ with the trailing slash. I couldn't figure out why it was happening on this directory and not others.
After much research, I found only one reference to a similar problem: http://svn.haxx.se/users/archive-2005-09/0960.shtml
That thread, however, didn't provide the real solution.
At the bottom of the page http://www.etherboot.org/wiki/index.php there's a little story that illustrates, partly, why the more politicized internet and tech folks have an aversion to copyright. Typically, copyright is used to defend authors works from plagiarism. In this scenario, it was used to protect intellectual property that, perhaps, doesn't merit protection.
Update
Please note that some of the code for iSCSI booting of Windows has been temporarily taken out of the gPXE codebase at the request of Microsoft Corporation. One necessary part for iSCSI boot in Windows is the iBFT data structure which Microsoft claims is proprietary at this time.
Update 13 March 2007
I wanted to print a report that indicated the first and last item on each page, just like a dictionary has. You know: "Azeri - Babcock", "Milk - Minder". It makes it easier to flip through printouts.
This is how to do it. It will put the range in the footer. I haven't figured out how to do one in the header, which is what I originally wanted, but found too difficult to do. (There is probably a way.)
First, take your report, and add an unbound field to your report. Rename it to "Range". See the picture below.
Then, set up event handlers for the On Print event of each section. An explanation follows the picture. Here's my code:
Option Compare Database Option Explicit Public FirstRow As String Public CurrentRow As String
I received a somewhat old, but very nice Medion MIM 2040 laptop from J--- who I sometimes work with. Thanks man. These are some notes about getting Gentoo Linux running on it.
This is just a note to be found by search engines.
I had a weird problem with a configuration of phpmyadmin on top of lighttpd on top of Gentoo Linux.
The symptom was that phpmyadmin said "cookies must be enabled". Cookies were enabled in my browser.
A test of the setcookie() function in PHP (and the header() function as well) seemed to indicate that no header lines were being sent.
Turns out that this is related to the versions of PHP being installed.
http://www.gentoo.org/proj/en/php/php-upgrading.xml
My problem was that I wasn't compiling the CGI version of PHP. I probably had the CLI version installed.
To force the CGI version, add 'cgi' to your USE. (This is in /etc/make.config.)
Rebuild it (emerge php) and wait.
Finally, after all these years, I've installed Gentoo. It's really nice, and reminds me of BSD Ports, except that the documentation is more thorough. Ports is good, but Gentoo's emerge is really, really nice. It's also fast, as expected, and took a long time to build, as expected.
Things to read and research:
Adobe Flex
qooxdoo
Silverlight
OpenMocha
Backbase
Google Web Toolkit
Authenteo
WebKit
More info - Ajaxian
Not a framework - Scriptaculous which uses Prototype. (That and JQuery are in another post.)
Here's some code to help you log messages to a table. First, make a table called tblLog, with at least these columns: Timestamp, User, Computer, Message. (You don't need a primary key.)
Set the default value of Timestamp to NOW().
Copy the following code into a code module.
Also, add a reference to "Active DS Type something or other". It has the active directory functions you need to discover the username.
Function StartUp()
Dim dummy
dummy = LogOpen()
DoCmd.OpenForm "frmHidden", acNormal, , , , acHidden
StartUp = Null
End Function
Function LogOpen()
LogMessage ("User opened database.")
End Function
Function LogClose()
LogMessage ("User closed database.")
End Function
Function LogMessage(Mess As String) This is a relational way to store application configuration in a table. It uses two tables, so you can store multiple configurations, so that you can use the tool over and over, and still retain the old settings. One table stores configurations, and one stores a since row with the current configuration in use.
Setting values are retrieved from the configuration tables with queries like this:
(SELECT PreRegActivityID FROM Congress7_Config WHERE ID=(SELECT CurrentConfigID FROM Congress7_CurrentConfig))

See: http://ubuntuforums.org/archive/index.php/t-231700.html
KVM switchers read the ScrLk LED, switching computers when the see the LED toggle. Normally, you toggle it by pressing Scroll Lock twice. Ubuntu doesn't accept ScrlLock, and doesn't turn the LED on. Not finding a way to enable it, I opted to use the suggestion in the linked article, and created a KVM switching script.
The script here creates a new command, switchkvm.
echo "xset led on; sleep .25; xset led off" > switchkvm
chmod a+x switchkvm
I put an icon in my toolbar so it's one click away. Attached in an ugly icon for it.
This is a way to insert empty or empty-like rows into a list of "seats" that contains not only reservations, but a number saying how many seats a group of people have.
Windows XP's Users control panel doesn't show all the users. I had to delete the "postgres" user to reinstall postgresql on my comp. To do this, I had to run this command:
NET USER /DELETE postgres
To see all the users type NET USER.
In MS Access, when you want a form containing a foreign key, you typically use a combo box that's populated with data from the foreign table.
Perl still rocks. People still say it's hard to read (true), but it's because the language is terse.
sub getAccountIdsOfSitesToSuspend
{
$sql = <<EOQ;
SELECT account_id
FROM account
WHERE
account.account_balance < (SELECT triggerAmount FROM fk_suspension_rules)
AND (
SELECT IF(SUM(transaction_ammount), SUM(transaction_ammount), 0)
FROM transaction
WHERE transaction_date > DATE_SUB( CURDATE(),
INTERVAL (SELECT paymentWindow FROM fk_suspension_rules) DAY)
AND transaction.account_id = account.account_id If you wish to comment, post this article on reddit or hacker news.