Latest Tweet
- Dropped container of polynesian sauce on floor, fully-open side down. NOTHING CAME OUT. Chick-fil-A, champion of viscous sauces. 6 days ago
- More updates...
Categories
Tags
academia alcohol animals boyfriend cooking databases email forwards family Flickr food friends health Javascript Lexington Linux list Mario math movies music news OS X Perl PHP politics programming quizzes Rails rants reading Ruby screenshots shopping Sims sports themes tutorials Twilight is ridiculous vehicles video games videos weather Web development work zombies again-
Recent Comments
-
Random Quote
"A program should follow the 'Law of Least Astonishment.' What is this law? It is simply that the program should always respond to the user in the way that astonishes him least."
— Geoffrey James in 'The Tao of Programming' Syndication
All posts RSS feed
Category Archives: Techy
.bash_profile
eval `/opt/local/bin/lesspipe.sh`
function dir_access_color {
local DIR="${1-$PWD}" COLOR=0
[[ -r "$DIR" ]] && COLOR=1 # red
[[ -w "$DIR" ]] && COLOR=2 # green
tput -S <<<$'bold\nsetaf '"$COLOR"
}
Also posted in Config files Tagged Linux, OS X Leave a comment Current music Maria Jose by Federico Aubele
using Javascript and CSS to mark outgoing links
It may be useful to your visitors to know which links will take them off of your site without having to hover over all of them. It might also be a nice touch to mark links pointing to PDF documents, for example, with a little Adobe PDF logo. With the help of Javascript [...]
Also posted in Programming Tagged CSS, Javascript, programming, tutorials, Web development 3 Comments Current music The Way I Are by Timbaland
using AJAX to implement a live search
I recently implemented a live search on the quotes page, so I figured I'd give a tutorial on how I did it. A "live" search is like a regular search feature, but if the user has Javascript enabled, the search will run as they type, instead of waiting for them to hit the 'Submit' [...]
Also posted in Programming Tagged AJAX, Javascript, PHP, tutorials 1 Comment Current music Beautiful Liar by Beyonce and Shakira
using AJAX to spiff up a gallery
Lightbox is nice and all, but sometimes I find it clunky, particularly in Firefox when I have a lot of other tabs open. However, I don't want to go the route of having an image load by itself in the browser, because it would be so much nicer to have it integrated into my [...]
Also posted in Programming Tagged AJAX, Javascript, PHP, programming, tutorials, Web development 6 Comments
how to reformat your pen drive
USB pen drives are everywhere these days, and for good reason, since they’re dead useful. I use mine with my Linux box, my Powerbook, and various other systems I’ve had cause to stick it in. After a while, my 1 GB drive was only holding a few hundred MB. When I would [...]
too little time for programming
I tell you, I just don’t have enough time to do everything I want to, which is a very common lament, I’m sure. I’ve been working on this project called Moola Tracker for my own use, and Todd’s as well, with these specs:
Easily add expenses and income, noting the location I spent money or [...]
the ease of Linux with a focus on Ubuntu
3till7.net had some excitement yesterday because a post from 2005 got Dugg, and is also garnering a lot of hits from StumbleUpon. I find this funny because it’s such an old post but also because the content is just an email my dad sent me about how all these different companies use Linux. [...]
DefaultKeyBinding.dict