aklump's blog

Before You Use OS X Time Machine

When you buy a hard drive that you will use with Time Machine, the first thing you do after connecting it to your Mac should be this (the instructions are for the current version of Mac OS X, which is 10.5.6):

Drupal Naming Conventions Cheat Sheet Chart & Summary

  • CONSTANT_NAMES
  • css-classes
  • css-ids
  • DOCUMENTATION.txt (!notice l.c. extension)
  • filenames-in-general
  • html_form_variables (since they convert to php variables)
  • javascriptFunctions
  • javascriptVariables
  • mysql_columns
  • mysql_tables (all tablenames should be singular, e.g. node)
  • mysql_databases
  • _php_global_variables (!notice leading underscore)
  • _php_private_functions (!notice leading underscore)
  • php_functions

Upgrade to Snow Leopard

Upgraded to Snow Leopard last night when I went to sleep, not sure how long it took since I was sleeping. Woke up this morning and ran Software Update for two rounds of updates.

BTW I was warned to repair permissions before doing this and so I did that before upgrading.

I'll report any oddities here:
- I had to update my license code on Snapx Pro X, it seemed to have forgotten
- had to upgrade my Mail accounts, but that took less than a minute
- 1Password link in Safari toolbar disappeared
- monitor color profiles were reset to factory defaults
- dock crashes a lot

Web Cheat Sheets Galore

This is definitely worth visiting; this page has a number of key pdf cheat sheets for many areas of web dev. I found it looking for something on mod_rewrite.

http://www.ilovejackdaniels.com/cheat-sheets

From PowerPC to Intel

Bought a MacBook Pro today and am trying to upgrade from my G5 tower. Here’s what doesn’t work so far:

I used SuperDuper to clone my G5 harddrive onto the MacBook Pro and after 6 hours for 202GB via Firewire 800, I was disappointed to learn that it wouldn’t boot. So the question, can I use SuperDuper to clone my G5 harddrive to a MacBookPro, is answered with a standing… No! I think it has to do with a difference in formatting between powerPC and Intel…?

Now I’m waiting for the new os to be installed from the DVD that came with the MBP; guess I’ll try the migration assistant.

Building My First OS X Widget

Lot’s of great stuff out there and I found it quite easy with a strong background in html,css and javascript. I only have two things that would have saved me time had I known them upfront.

  1. The most comprehensive tutorial I found was at apple’s site
  2. The final step to get the .wdgt file was glossed over by of the tutorials I visited. So here it is:

Moving Large Dirs & Content From Remote to Local via FTP

During a project today, where I had to move 3600+ folders, each containing numerous text files from one remote folder to another, as well as copy that dir to my local server, I realized that if I logged in as a shell user, zipped the directory and all it’s contents

$zip -r filename dirname

I could move the zipped file much faster via ftp. Too add to the problem, some of the filenames contained invalid characters and were causing the ftp transfer to stop. Zipping alleviated this problem too!

PHP Class for the Basecamp API

Today I worked on a php class called Basecamp to interact with the Basecamp API.