Archive for December, 2006
Thursday, December 21st, 2006
Windows Tip #1: Use batch “call” command to make multiple call-outs
I was writing a multi-line batch script with multiple call-outs to Ant and I was confused when it kept exiting after the first call-out.
I’m proud to be rusty at batch scripting, so I’m not ashamed to share the (obvious) fix…
To run a batch program from within the current batch program, use the call command […]
1 Comment » - Posted in Java, Programming, Windows by dkaz
Wednesday, December 20th, 2006
Linux Tip #4: Figuring out your Linux distro version
I’m administering a mix of Red Hat and Debian boxes, so this tip from bschmitz comes in handy…
cat /proc/version
No Comments » - Posted in Linux by dkaz
Tuesday, December 19th, 2006
Linux Tip #3: Restarting sshd
Simple thing to do…had to look it up…
kill -HUP `cat /var/run/sshd.pid`
No Comments » - Posted in Linux by dkaz
Friday, December 15th, 2006
Reddit “gives away” plaintext passwords
I’ve lost most of my respect for Aaron Swartz over this password debacle.
See more coverage here: Never store passwords in a database!
No Comments » - Posted in Python, Programming, SQL by dkaz
Wednesday, December 13th, 2006
Trac Tip #2: Linking between Tickets and Changesets
One of my favorite Trac features is the ease with which you can link from Tickets to Changesets and from Changesets to Tickets.
Text input of [256] is interpreted by Trac as a link to Changeset 256, while text input of #256 is interpreted as a link to Ticket 256 - one can’t ask for anything […]
No Comments » - Posted in Programming by dkaz
Wednesday, December 13th, 2006
Putty FAQ Humor
I stumbled onto this while troubleshooting Putty disconnects on XP…gotta love FAQs w/ attitude.
A.7.12 When I cat a binary file, I get ‘PuTTYPuTTYPuTTY’ on my command line.
Don’t do that, then.
This is designed behaviour; when PuTTY receives the character Control-E from the remote server, it interprets it as a request to identify itself, and so it […]
No Comments » - Posted in Technology, Linux by dkaz
Wednesday, December 13th, 2006
JSP Recipe #1: Use JSP comments instead of HTML comments
Every so often, I want to document my JSPs w/o having the comments leak into the public HTML source.
Luckily, Sun provided aa straight-forward way to get this done using JSP Comments
<%@ page language=”java” %>
<html>
<head><title>A Comment Test</title></head>
<body>
<h2>A Test of Comments</h2>
<%– This comment will not be included in the response –%>
</body>
</html>
No Comments » - Posted in Java by dkaz
Tuesday, December 12th, 2006
Linux Tip #2: “Really” kill a process
Check out Jeremy Mates’ reallykill script if you need to effectively kill a processes with a preference for graceful shutdown.
No Comments » - Posted in Linux by dkaz
Tuesday, December 12th, 2006
Trac Tip #1: Reassign field drop-down in Trac
If your Trac install has a “reassign-to” field displaying as a text box (instead of a drop-down), try setting “restrict_owner=true” in trac.ini.
This tip should be especially valuable for those with co-workers with un-typeable login names.
:)
No Comments » - Posted in Technology, Programming by dkaz
Sunday, December 10th, 2006
Complete Information and Perfect Information
I find it interesting how economics and game theory have so much in common. Here are definitions of two terms (courtesy of Wikipedia) that have identical meanings in both fields.
Fragment of Perfect Information definition (see entire definition here):
Perfect information is a term used in economics and game theory to describe a state of complete knowledge […]
No Comments » - Posted in Wikipedia by dkaz
Wednesday, December 6th, 2006
Subversion Tip #2: Converting from BerkeleyDB to fsfs
Bookmarking this…since I’m having lock problems with BerkeleyDB…
$ svnadmin create –fs-type fsfs /path/to/new/repository
$ svnadmin dump /path/to/repository | svnadmin load /path/to/new/repository
UPDATE (12/26/2006): I ended up pulling the trigger on the BerkeleyDB->FSFS conversion as I was getting absolutely sick of running the “svnadmin recover” and “db_recover” scripts. Conversion was painless - here’s the “productionalized” list of steps […]
No Comments » - Posted in Technology, Linux by dkaz
Wednesday, December 6th, 2006
Oracle broke BerkeleyDB permalinks
When Oracle bought out SleepyCat, they also broke all the legacy BerkeleyDB permalinks, pointed to by Subversion documentation.
Inconsiderate bastards - don’t people know how to map legacy URLs to new ones?
See http://www.sleepycat.com/docs/ref/lock/max.html for an example - it forwards to some cheesy, generic Oracle documentation page.
