Archive for Geek

Goodbye Palm

Dear Palm OS, you have been with me for a decade, and I’ll miss you. I’ve found a new friend named Blackbery, and, well, let’s not draw this out.

I’ve literally been using Palm OS for ten years and I’m switching to a Blackberry Curve. It’s only been a day and I’m still halfway between bewildered and confident. I’ve got everything up and running: Calendar and Contacts sync with Google, work email comes in, and the GMail app for my personal mail all work.

I can’t figure out how to personalize ringtones. I mean, I found the setting but it doesn’t play when that person calls, it’s just silent. Not sure what I’m doing wrong.

Anyway, Palm OS, it’s not you, it’s me. I hope your new Web OS on the Pre works out for you.

Comments

Firefox: search by keyword

I showed this feature to some friends and they loved it, so I thought I’d share it with you, too.

Firefox allows you bookmark search boxes and supply a keyword shortcut for that search. Here, I’ll show you how I bookmark the Google search box to the letter ‘g’.

First, go to the Google homepage. Right-click on the search box and select “Add a Keyword for this Search…”

add_keyword.png

Save the search with a name, which doesn’t really matter and give a keyword, which will be the shortcut that you’ll use to refer to the search from the address bar in a moment.
Personally, I made a new folder called Quick Searches to save all of these bookmarks, which you may or may not wish to do.

saving_bookmark.png

Go to the address bar and search for something by entering your shortcut letter and the word/words you want to look up. For instance, “g quick search” turns into a search for…

example_search.png

… this:

keyword_search_results.png

Comments (1)

Practical jokes for nerds

So, I’ve been messing with my coworker today.

We have a wireless point on our internet router and he’s the only one in our office using it. He just bought a new laptop and he’s been setting it up, so he’s still getting to know it.

I keep disabling the wireless connection from the router side, so his connection drops.

Maybe this is cruel, but it’s kinda funny.

Comments (1)

mySQL error 2006: mySQL has gone away

This was such a nice message.  mySQL has gone away.  To take a nap, or something.

I got this error when trying to copy a production database to my local machine so I could do some comparisons locally.  I dumped the database, but it failed to load.  In particular, there was a massive bulk insert statement that failed.

I added this to my.ini under the [mysqld] section:

max_allowed_packet = 16M

Restarted mySQL and my big bulk import statement causing the mySQL error 2006 went away.

Comments

Moving Windows event log file locations

We were running out of space on the system drive on a server, so I decided to move the Event Logs to a different drive.

Originally, they’re located in the %SystemRoot%\System32\Config\ folder.

I made a new folder (d:\EventLog\) to put them in, then changed the registry keys for all of the event logs.  The registry key for moving the event logs is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog

Inside this key are folders for each event log (Application, etc…) and you’re looking for the File key.  Change that to the new filename (d:\EventLog\app.evt).  You’ll have to do this for each of the event log types.  I had six, your mileage may vary.  If you don’t know how to open the registry, you probably shouldn’t be doing this.  Consider yourself warned.

Comments

Setting up trac on Textdrive

Never used Trac before. I like the way it’s laid out, so I definitely want to try it out. Having never set it up, I want to set it up for a new project.

First, you need a port to put your tracd daemon on, so put in a TextDrive Support Ticket first because it’ll take a little while to get it (my response time was 3 hours and 6 minutes.)
I started with the TextDrive manual for installing trac.

I’ve already got a subversion repository that I’ve been using for several months, so that part is ready to go.

I made my directory as ~/trac

Since my project is not on my primary domain, I had to write out the path to it so I didn’t forget. There’s not auto-tab-path-completion inside the trac prompts, and I just can’t type all that path stuff out by memory.
On chilco, I had to modify the trac-admin command by adding ‘/users’ to the beginning of the path:

trac-admin /users/home/wesgarrison/trac/sampletrac initenv

The same caveat about /users applies when running tracd, too.

I chose to put my trac start in a file and put it in ~/etc/rc.d/trac_start , just like my lighttpd and rails start scripts.

After running my startup script, I could see trac wonderfully on its port.

I logged into webmin and made my cron job, using the script as the job to be run on system boot.  Next, I turned my attention to setting up a rewrite rule to proxy to tracd from Apache.
Now, I need to add some tickets and start getting them done!

Comments

« Previous entries