Archive for January, 2007
Friday, January 26th, 2007
Lazy-Loaded Singletons
I haven’t been using “traditional” singletons for a couple of years now (Spring craze and all), so the Initialization On Demand Holder idiom, which allows for lazy instantiation of singletons, has escaped me until now.
private static class LazySomethingHolder {
public static Something something = new Something();
}
public static Something getInstance() {
return LazySomethingHolder.something;
}
Here’s the explanation, courtesy of Bill […]
No Comments » - Posted in Java, Programming by dkaz
Wednesday, January 17th, 2007
Public Key Authentication With PuTTY
I was sick of typing in username/password for each login (I’m currently working on XP, deploying to a Linux-only env), so I finally went through the pain of following the steps here and set up PuTTY/Peagant public key authentication.
It was a relatively painless setup process, but here are a couple of things to keep in […]
No Comments » - Posted in Linux, Programming by dkaz
Saturday, January 6th, 2007
Big Lebowski - F*cking Short Version
My boss is a huge “Big Lebowski” fan, so I had him check out one of all-time favorite YouTube clips - F*cking Short Version of the Movie.
The Stranger: There’s just one thing, Dude.
The Dude: And what’s that?
The Stranger: Do you have to use so many cuss words?
The Dude: What the fuck you talking about?
No Comments » - Posted in Funny, Video, Movies by dkaz
Saturday, January 6th, 2007
Bill Joy, vi and 1200 baud
Register is running a great story about how Bill Joy created vi.
Apparently, vi commands are cryptic because they were optimized for Bill’s 1200 baud connection.
For additional entertainment, you can read Reddit’s discussion of the article here - complete with (always entertaining) emacs/vi mud-slinging.
1 Comment » - Posted in Linux, Programming by dkaz
Friday, January 5th, 2007
Linux Tip #5: “watch” your shell scripts
Would you like to create a lively, “top”-like output from some of the monitoring commands in your toolbelt?
“watch” can be of help here, as it can poll your command every X seconds and render its output to full screen.
Try “watch -n1 date” for a demo.
NAME
watch - execute a […]
No Comments » - Posted in Technology, Linux by dkaz
Monday, January 1st, 2007
Can you find login links on 37signals’ sites?
Can you find a friggin’ login link on http://www.tadalist.com/ or http://backpackit.com/?
It’s almost a joke.
Why can’t the self-proclaimed gurus of UIs figure out that their users want to SIGN IN some of the time AND NOT STARE AT FULL-PAGE ADS on home pages?
