Tuesday, July 28, 2009

Testing my feed to Drupal

http://drupal.org/handbook/customization/tutorials/beginners-cookbook

Looks very powerful, easy to use and cool! And best of all, its GPL'd.

http://maxsobell.com/drupal/


http://pingv.com/videos/1/what-drupal-57-seconds

Labels: , ,

Wednesday, July 22, 2009

Gmail on iPhone

For as much as Apple and Google are in bed together, the way the iPhone sets up gmail by default kinda sucks. So here's a better way (from Google):

http://mail.google.com/support/bin/answer.py?hl=en&answer=77702

Then go to "Settings" - "Mail Contacts and Calendars" - "your-account@gmail.com" - "Advanced" and under "Mailbox Behaviors" change the following:

Drafts Mailbox: On the Server - "Drafts"
Sent Mailbox: On the Server - "Sent Mail"
Deleted Mailbox: On My iPhone - "Trash"

The Deleted Mailbox seems strange, but they recommend it here: http://mail.google.com/support/bin/answer.py?answer=78892# I had it on the gmail server until I decided I better double check before posting online, and it seemed to be working just fine.

Labels:

Saturday, July 18, 2009

Can't we all just get along?

.flac? .ogg? .mp3? Wouldn't it be great to just have one standard? That sounds like a tagline, but I'm going nowhere with it.

Very useful instructions to convert .flac to .wav to .mp3.

This guy got it right: mp(3).

Labels:

Friday, July 17, 2009

APGT Linux Commands, Editors, and Shell Programming

The rsync scipts will be in the next edition of A Practical Guide to Linux Commands, Editors, and Shell Programming! The author and I go way back... ;)

Anyway, its (again) a handy utility. My roommate used to play all 90's music (and not the good stuff) on his Mac. The rsync utility comes default in Mac OS X (not to say that it didn't before...) so it wasn't too hard to write a script to sync up his iTunes with my music database:


rsync \
-av \
--compress \
--port=[redacted for security :P] \
--stats \
--exclude=Movies \
--exclude=Podcasts \
carter@192.168.1.110:'/media/disk/My\ Music/iTunes/iTunes\ Music/' \
'/Volumes/External Space/Music/Music_from_Max/'


So there -- taking the music from my disk (its only in iTunes so when I boot Vista it syncs up with my iPhone... Vista? iPhone? now I'm embarrassed...) and putting it on his disk. There are a few issues we ran in to. First of all, his username is capitalized on the Mac -- Carter -- and lowercase on my computer. So thats why, even though its almost the same user, we have carter@192... . Also, the port=### option doesn't seem to work on rsync on the Mac. I run ssh on a non-standard port, but even with the --port= option it kept defaulting to 22. So, we edited /etc/ssh/ssh_config and put my port in there. Also, we're doing this with rsa keys so the script could run on a crontab! Then, every time I download music from this millenium, he would get it.

Finally. No more Red Hot Chili Peppers.

Labels: , , ,

Saturday, July 11, 2009

Backup software

I keep hearing people say: "man, I really should back up my computer" with this look of dread on their faces. Its really not so bad. Here are a few ways, ranging from the absolute easiest to the most nerdly-satisfying :) Oh, and they're all free (at least for the most basic option)

1. Dropbox: for the novice who needs to back up some documents, a couple pictures maybe, or even some music. All in all, less than 2 GB ("500 songs", in Apple-speak). 2 GB is free. If you're willing to pay, you can back up your whole system with Dropbox -- 50 GB is $100/yr and 100 GB is $200/yr. The best part about Dropbox is that its got version control (covered in "subversion" later on) so its great for programming projects or group projects -- its also got a "share folder" feature so everyone can be working from the same files. ALSO: Dropbox works for Mac, Linux and Windows. Awesome! My favorite new piece of software. The downside (or upside, depending) is that its all got to be in one folder called "Dropbox" on Linux or "My Dropbox" on Windows. I put mine on my desktop for easy access. If you want to just sync your whole desktop or documents across a couple computers (Windows only), try www.sugarsync.com. They now offer (because of competition from Dropbox) a free 2 GB option.

2. Picasa web: Backing up pictures can be very space-consuming. If you use Picasa (now for Mac, Windows and Linux) and have a google account, you can back up to the google servers. They give you 1 GB for free (pictures only) which will hold a lot of pictures at medium resolution. Now, you could just use 1 GB of your Dropbox space, but most cameras now take pictures that are really high resolution (and take up more space on your disk) -- Picasa reduces the size of your photos before it uploads them, so its a simple way to make sure you still have a decent quality copy of your pictures even if you disk fails.

These are the 2 most basic options that cover most things. However, some people are concerned with privacy. These sites keep things private (Dropbox is password protected unless you "share" a folder with someone, and Picasa has 2 options to keep things private -- "unlisted", which means the link isn't public, or "sign in required to view" which means even if you have the link, only people you explicitly share it with can see your pictures).

Some people are even more concerned with privacy and are resolutely "anti-cloud". Cloud computers are, generally, computers that you can't see (because you don't know where they are) that have your data on them. So, webmail (gmail, hotmail, yahoo, etc.) is a cloud-based service. There are some people (you know who you are) who don't use cloud-based services. This makes life very difficult. So, for these people, there are a few other options. I've gotta write about these later because I have to finish an rsync script first ;)

Labels: , ,