Donating Platelets

I’ve been giving blood for a while now and it’s a pretty easy and painless thing to do. The blood bank used to be on the way to Taco Bell and the bank, so I’d stop by every eight weeks on my lunch hour. The giving blood part only takes about 15 minutes but the questionnaire and waiting after giving means that about an hour total is used up. I switched to doing an R2 donation a few years ago because it meant that I only had to go every 16 weeks and the amount of time actually donating is only about 45 minutes, so I saved a half hour of time. A few months ago they were desperately short of platelets and asked if I could give. I didn’t have anything else to do that day so I went home and got my laptop and donated.

It’s a little bit uncomfortable, but mostly because you have to stay in one place for 2 1/2 – 3 hours. When the blood leaves your body and goes to the machine, it feels just like when you are giving blood. In other words, no sensations at all. But when they put the red blood cells back in you get a weird sensation, almost like having a couple glasses of wine. Not unpleasant but weird. You can donate every two weeks, but that’s a bit too often for me, so I go once a month unless they have a critical shortage.

If you haven’t given blood before or haven’t done an R2, I’d recommend starting slow and working up. If you have given blood before, go for it. The platelets are used in patients undergoing chemotherapy or who have had organ transplants.

Here’s Flat Stanley and me donating.

Flat Stanley and me donating platelets

Things I can’t remember – Permissions

We recently migrated our sites to Linode. Since we switched distros from Gentoo to Ubuntu we had to add the users in by hand. That meant that the permissions on the old system didn’t match the permissions on the new system. In most cases, I want the person who owns the site to be the owner of the files and the group for the site be able to read and write the files. I usually put myself, artists, and system maintainers into the group. Everyone else, including Apache, gets read access. To do this manually is a real pain. Fortunately, there is an easy way.

To change the permissions on the directories go to the site you want to change and use:


sudo find . -type d -exec chmod 775 {} \;

To change the permissions on the files go to the site you want to change and use:


sudo find . -type f -exec chmod 664 {} \;

You need sudo since you probably aren’t the owner of the files. That’s it. The commands work recursively from wherever they are started.

Things I can’t remember – Backup MySQL

We used to do a cron job every night that made a copy of the MySQL database. Since we moved to Linode for hosting, we don’t need the cron job, but every once in a while I make a backup of the database and download it to my computer. This is the command I use.


mysqldump -u backup -A --default-character-set=utf8 -e --create-options >/srv/mysql-backup.sql

Will Apple ever sell me another laptop?

My first laptop was an AT&T Safari running Windows 3.1 that I bought using my employee discount in 1993. It was fine for spreadsheets and word processing but was woefully underpowered for running Photoshop or Director. Even the games that I wrote at the time were barely able to run on it. So my main computer for many years was a desktop. Usually it was the second most powerful Apple computer that Apple sold. And I replaced it every 18 months or so. In July of 2000 I got an Apple G3 laptop that was capable of doing real work. It lasted a bit longer than my typical desktop and was used for testing games for at least 10 years. It still ran, albeit too slow to browse the current internet, when I recycled it a few months ago. After that I used a couple of G4 laptops and handed them down when newer models came out that were significantly faster. I bought my last laptop in June of 2006 and have been happily developing web pages, Director programs, and apps with it. It runs Photoshop and Flash fine and I’d still be using it if I didn’t need a computer that runs Mountain Lion. I briefly borrowed a newer Apple laptop and I am now using a Mac mini. I can’t really tell much difference in the speed compared to my almost 7 year old laptop. The biggest difference is the hard drive. I upgraded my laptop to a 500 GB drive a few years ago and I’m using most of it. The mini has a terabyte drive and it’s nice to have the extra space.

So why did I buy a Mac mini when I’ve been happily using laptops for years? Three reasons. I work at home and at the office, so I need to have the same data in both places. I don’t go into the office as often now but when I do, I can unplug the mini and take it with me. The second reason I liked my laptop was because I used it to look stuff up when reading, watching TV, gardening, etc. But now I have an iPad Mini and an iPod Touch so I don’t use the laptop the same way I used to. All of the information I need can be found with the iDevices. Plus they are much more portable than the laptop. The iPad Mini also lets me watch iTunes University courses and from time to time Netflix.

But probably the deciding factor was performance and price. The Mac mini was $864 including tax. I already have a couple of monitors. The big Samsung is great for coding and the smaller ViewSonic holds mail, files, and miscellaneous code just fine. It has great color fidelity for the times when I need to edit photos. The Mac mini comes with two video ports and an HDMI to DVI Adapter cable, so I connected the Samsung to the HDMI port with the adapter and the ViewSonic to the mini-Display port with my current adapter. It has four USB ports, which aren’t nearly enough on their own, but with a couple of 4 port dongles I could connect my iDevices, Logitech Mouse, and Dell QuietKey keyboard. Two backup hard drives remain behind my big monitor.

I added a Jawbone JAMBOX to get better sound. Since that’s the main selling point of my apps, I need to be able to hear things well. But it was only $164. And that’s all the extra stuff I had to buy.

So for $1,028 I got a 2.3GHz quad-core Intel Core i7, 4GB RAM (expandable to 16 GB for $168 from Crucial if I need to) and a 1TB hard drive. The same specs in a laptop are $2,160. For me, that’s a significant difference. I suppose if I worked at client locations or coffee shops, I’d need laptop. But, since I don’t, it seems like a waste of money to me. Even the lower spec laptop at $1,620 is almost twice what I spent on the Mac mini.

I’ve been using this setup for a month now and it works really well. About the only thing I need to change is to organize the rat’s nest of cables behind the monitor.

Desk

Update: As of April 2015 I still don’t need the extra RAM. And I did fix the rat’s nest of cables as I describe in this post.

Update: Summer 2016. My laptop is still going strong, but my wife’s 2009 MacBook is starting to have problems with the trackpad and is a bit slow for editing photos. I considered getting her a Mac Mini, but she works in a variety of places so she needs a laptop. I like the retina display on the MacBook Pros, but they haven’t been refreshed for four years. The MacBook on the other hand just came out. It is light and much smaller than the MacBook it replaces. Speed hasn’t been a problem and she is getting used to using Pixelmator and Acorn, so she doesn’t miss Photoshop. If I need a laptop, We got the low-end model and it works just fine—especially compared to the old one. As a bonus, it plays Netflix and other video sites fine.

Backups

Backup

It’s amazing how many files you can create when developing software. I had backups scattered over several disks and CDs and recently cleaned everything up. This is the backup of my backup.

I upgraded to a Mac Mini and just use my laptop for accounting and my database since the programs are too old to run on Mountain Lion. I got a little scare though when my laptop wouldn’t boot up. Turns out the battery was so far gone that it wouldn’t even hold enough charge to start the computer. Since I wasn’t using the computer for daily work, I got out of the habit of backing it up so the last backup was a couple of months old. I picked up a cheap ($12) 10GB USB stick for backup. Then I decided to make a second copy of the data on my computer. This one goes to the office so I’ll have a recent backup in case something happens to the computer and the backup in the house.

I also have a git repository for the apps that I’m writing and it gets updated every day. Worst case there is that I lose a couple of hours of work.