Latest Tweet
- Remember folks: the blue mini neon sour gummi worms are best. 2 weeks ago
- More updates...
Categories
Tags
academia alcohol animals boyfriend cooking databases email forwards family Flickr food friends health Lexington Linux list Mario math movies music news OS X Perl photos 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
There's a god-damned fly buzzing around my room. Time to grab a newspaper and beat the ruddy fly guts out of the fucker!
— Trin Syndication
All posts RSS feed
Category Archives: Techy
my slugification
I’ve been doing nothing but sleeping, eating, and playing different video games so far during my winter break, and it’s fabulous. I feel like such a slug! I get up a little before noon, eat a bit while playing the Sims, go visit my dad out at my brother’s house construction site, come [...]
vampire and zombie Sims
I bought The Sims 2 Nightlife Friday night and I’ve been playing it like crazy since then. I was very excited about the possibility of having vampire Sims, which was introduced in Nightlife, so I set about finding and then wooing one of the in-game vampires with one of my Sims. I was [...]
using Ruby to rename files and edit their content
Recently at work, the web admin for the computer science department came into our lab and told us that my employer's site was broken. The admin had need to make all .php files not act as PHP scripts, and instead, all files with the extension .sphp would now run as PHP scripts. Since [...]
finding invalid foreign keys in Rails
Sometimes it would be useful to tell users of your Ruby on Rails application if there is a problem in the database, such as some foreign keys are invalid. As an example, let's assume you have two models, Book and Author, such that each Book has an author_id which connects with Author via its [...]
DefaultKeyBinding.dict
To make it more convenient for me to take clean notes, as opposed to notes filled with "x^2" and "y_j", I looked into changing the key bindings in OS X.
.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 4 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
new iPod and boot issues