Blog Archive » January 2008

Play with Perl6 on Mac OS X Leopard

Updated: January 10, 2008January 8, 2008

Perl6 hasn't been released yet, but you can play with it all the same. It's a very interesting piece of work and I recommend you check it out, even if you're like me and don't do much Perl. First checkout the latest Parrot source code using Subversion : svn co https://svn.perl.org/parrot/trunk parrot Run the configure script, then compile Parrot using make: ...

Tom and Richard, Two Peas in a Pod

Updated: January 1, 2008January 27, 2007

Slayer's Tom Arraya Richard Dawkins, PhD " I reject all the biblical views of the truth, dismiss it as the folklore of the times.. I won't be force fed prophecies from a book of untruths for the weakened mind " <- W0rd..

Gentoo Linux stuff

Updated: January 1, 2008January 19, 2007

I now have three Gentoo servers up and running. I have distcc running on the first two so this third one's KDE compile is coming up pretty quick. There's so many cool options for Gentoo now. My /etc/make.conf files are a constant evolution as I run through more how-tos and stuff on the 'net. I name my servers after the planets. I haven't ever had more than nine ser...

Lighttpd proxied under Apache on Mac OS X

Updated: January 1, 2008December 21, 2006

Here's a how-to to show you how to run a local (development mode) Rubyonrails application using Lighttpd proxied under an Apache vhost on Mac OS X. You can use this same configuration in a production environment with a few minor changes. First, make some directories in your home directory. The Lighttpd process will run as your user and will live in your home directory, logs,...

Multi-threaded OpenGL WoW on Intel Macs

Updated: January 1, 2008December 6, 2006

Oh happy day! WoW update adds multi-threaded OpenGL on Intel Macs I'm getting 140+ fps in some areas now! Oh yeah and I found this cool map too.

Slashdot is obsolete and here's why

Updated: January 1, 2008October 18, 2006

It's a sad thing to admit but I've been thinking about Slashdot off and on for several months now. I'm a long-time Slashdot member , making comments about article postings, even drawing some flames at times from other posters who disagree with me. It's all good fun sharing opinions with other nerds.I think Slashdot's days are numbered. And here's why: News arrives late. ...

Rails breakpointer

Updated: January 1, 2008September 22, 2006

I sometimes help people out with Rails and Ruby coding issues in #rubyonrails on EFNet. One of the biggest issue most of them have is a lack of knowledge of what tools they have available for debugging when using Rails. script/breakpointer is an awesome tool when it comes to Rails debugging. Here's how to use it: Start a new terminal or command prompt or whtever sort of shell ...

PHP OO slowness is (not) bogus?

Updated: January 1, 2008August 29, 2006

So this guy, let's call him Ronald, told me about a bug report someone filed against PHP 5.1.6: http://bugs.php.net/bug.php?id=38630 The bug report includes a link to my benchmarks I wrote against and early version of PHP 5: http://destiney.com/benchmarks/db_insert_select The funny thing is the PHP developer who responded thinks it's "normal" for O...

My $3500 Text Editor Haiku

Updated: January 1, 2008July 12, 2006

On my drive home from work today I thought up a haiku. 3.5K Mac Textmate runs only on macs I code with TextMate Most haikus I've read sound dumb. This one seems to fit the pattern.

Rails form_tag

Updated: January 1, 2008July 7, 2006

Consider the api definition for form_tag: form_tag( url_for_options = {}, options = {}, *parameters_for_url, &proc) This form_tag: <%= form_tag( :action => 'upload', :multipart => true ) %> Produces this: <form action="/home/upload?multipart=true" method="post"...

3 Comments

The Hulk

Updated: January 1, 2008July 4, 2006

This is a clip from my Florida vacation this past spring. My wife Andrea is recording a ride on The Hulk at Universal Studios Orlando FL. http://www.youtube.com/watch?v=R9EuTQ-3uco

Hailstorm

Updated: January 1, 2008June 29, 2006

My wife Andrea taped the hail storm that caused over $8K worth of damage to our cars collectively. I added some old guitar riffs I recorded a long time ago. Enjoy. http://www.youtube.com/watch?v=PKhG8INo8ms

Xgl on Suse 10.1

Updated: January 1, 2008June 4, 2006

I've always been a big fan of Suse Linux . Of all the RPM-based distros I've tried it seems to be the most sane. But seriously I think Suse Linux has good gui tools to manage the overall OS. I'm by no means scared of the command line but it helps for things to just work sometimes. Recently the Xgl stuff has become increasingly popular so I gave it a whirl . It's amazing ho...

Website Graph

Updated: January 1, 2008June 3, 2006

Java applets usually do not interest me, but every now and then a really cool will come along. I found on that shows a graphical tree representation for a given website. Check out destiney.com .

Caution.. n00b Mac OS X user at large.

Updated: January 1, 2008June 1, 2006

Recently I purchased a new MacBook Pro from Apple. I got the 15.4" model with the 2.16 GHz duo core processor. I got an L270 Logitech mouse, and a very nice Brenthaven case. This machine is very fast. I'm even beginning to get used to the weirdness of a few things: Weirdness #1 Safari seems like a good web browser but I'm not much into RSS feeds and as a web develope...

Live Search

Updated: January 1, 2008May 22, 2006

I finally got around to adding a search feature to my site. It is an ajax-based realtime search setup. It searches both my content database and my blog entries database. I hope it doesn't cause too much database load.. hopefully not since I have indexing on all the searched fields.

FreeBSD note

Updated: January 1, 2008May 10, 2006

When building a new FreeBSD kernel, you are instructed to execute boot -s to boot into single user mode. I was unable to locate anything executable named 'boot' on my system. Instead I did shutdown now

Testing.. 1. 2.

Updated: January 1, 2008May 10, 2006

After a while of writing code to make this site do what I want it to do, followed by an admin site to control all the data I want to store, I am finally getting around to writing some tests. So far I have a basic unit test for each model and its fixtures, and tonight I finished a css tester. The CSS test uploads each style sheet it finds to the w3.org validator and processes t...

Debian is the one

Updated: January 1, 2008October 31, 2005

After many years of using lots of popular (and some unpopular) Linux distros, I believe I have decided on a new favorite. I say 'new' mostly because I've had quite a few favorites already. Gentoo held my attention for a couple of years and in my early years of using Linux, Red Hat was my pick. Debian is rock solid and very polished. It has well-written package management to...

PHP 5 and MySQL 4.1 on Gentoo Linux 2005.1

Updated: January 1, 2008September 3, 2005

In case you weren't aware, the current availability of PHP 5 and MySQL 4.1 on Gentoo Linux is pretty much non-existent. Many PHP/MySQL developers using Gentoo Linux are frustrated and fed up with waiting on the Gentoo developers to repair the broken ebuilds currently in portage. Worse than that, instead of fixing the broken ebuilds, time is being wasted developing alternate ways ...

Ruby on Rails

Updated: January 1, 2008July 4, 2005

I rebuilt Destiney.com using the Ruby on Rails MVC framework. For the uninitiated, MVC means model-view-controller . Being fairly new to Ruby on Rails, the rebuild took me about 8 hours or so. I have some old benchmark pages of various stuff.. took time to bring those in. They were previously in a standalone section. I was able to display my recent Blog entries conten...

Web Server Marketshare

Updated: January 1, 2008July 3, 2005

Web server marketshare: http://news.netcraft.com/archives/web_server_survey.html Look at the second graph Apache 69.37% Microsoft 20.54% You can see in early 2002, Microsoft had a growth spurt. I suspect this was due to many developers looking into .NET and setting up new servers to check it out. Later as interest began to fade, Microsoft IIS usage continued...

2 Comments

Setting up a Fedora development server

Updated: January 1, 2008April 10, 2005

I recently setup Fedora Core 3 on an old server I had as a new a PHP/MySQL development environment. I downloaded the Fedora Core 3 #1 .iso image and burned it to cd. I booted it up and chose the 'minimal' install. Even the minimal install was fairly large, over 500MBs. The install completed without a hitch and I began to configure the system. First I tried up2date. This is s...

World of Warcraft

Updated: January 1, 2008February 3, 2005

I've been playing World of Warcraft lately. So far I have a level 16 Undead Warlock and a level 11 Undead Mage. I also have a paladin and a warrior but I don't find them very interesting to play and will probably not play them very much more if any. The Mage character is a straight out damage dealer. I'm thinking I will spec in fire mostly, with a little cold and arcane. I...

PHP Security

Updated: January 1, 2008December 9, 2004

Should system admins leave PHP web server security to the programmers alone? That's a bad idea. Sysadmins have full control over the httpd.conf and the php.ini files. Any PHP functions, classes, file extensions, execution access, etc., that he/she feels unsafe may be disabled quite easily.

Bill Nye refutes Genesis 1:16

Updated: January 1, 2008August 13, 2007

Gen 1:16 And God made two great lights; the greater light to rule the day, and the lesser light to rule the night: [he made] the stars also. But then Bill Nye reminded us the moon is not an actual light source. The moon's light is a reflection of the sun's light. Seems as if God really only made one great light along with a dead rock that can reflect light. And...

2 Comments

ESR dumps Fedora, yay!

Updated: January 1, 2008February 21, 2007

Eric S. Raymond (ESR) is a one of my favorite open source characters. I say "character" because the open source community and it's politics can seem like a bit of a soap opera at times. Linus said so-and-so about Gnome , or RMS revised the soon to be GPLv3 (again), etc. ESR calls it like he sees it, everytime. With so much crap on the 'net, that is somethin...

PHP extensions case

Updated: January 1, 2008April 29, 2005

One thing that really falls short with PHP is the crazy naming conventions that seem to follow no particular pattern. Trying to figure out why PDO doesn't seem to work today, I found yet another case naming difference: > cat extensions.php #!/usr/bin/php <?php print_r( get_loaded_extensions() ); ?> > ./extensions.php Array ( [0] => xm...

Debian GNU/Linux Kernel Howto

Updated: January 1, 2008December 3, 2006

Here's a quick howto for building a recent 2.6 Linux kernel on your Debian box: Do all this as root: su - Make sure you have the required tools and libraries: apt-get install module-init-tools initrd-tools procps libncurses5-dev kernel-package fakeroot Download and unarchive a kernel: cd /usr/src wget http://kernel.org/pub/linux/kernel/v2.6/...

Eggdrop iptables firewall rules

Updated: January 1, 2008December 6, 2006

Do you run a bunch of networked eggdrops on Linux? You realize they talk to each other over telnet which is unencrypted right? You didn't know that? Hmm.. Here's how you lock your hub bot down so it only talks to leaf bots from trusted hosts: #!/bin/bash LEAFS =(" 12.34.56.78 " " 21.43.65.87 ") for LEAF in ${ LEAFS [ @ ]}; ...

2 Comments