Since pretty much all I do is post a song a week or so, THIS IS SO GOOD YOU GUYS.
In which I explain how Sunlight scrapes the Congressional Record and other fun things like calculating vector similarity!
Put this script together shortly after joining turntable a few months ago. It ‘awesomes’ songs at a random timeout every 0-60 seconds. I’ve found it useful for getting work done while still looking like you’re paying attention in smaller rooms.
Archived at: http://bit.ly/ttawesome
Listened to Standard Fare’s The Noyelle Beat a few times today after I couldn’t find any Kid Canaveral on Rdio. Not bad, like a little bit of Los Campesinos! meets The Blow or something like that. Looks like they have a new record due out next month.
Photoshop is a *tremendous* tool for all things design & photo editing, but oh man has it gotten slow on my macbook. It seems that the more apps and files I put on my machine, the worse it gets. The reason? I tend to work on the go, from the studio, to home and everywhere in between, so I’ve been using my internal hard drive as a scratch disk. For those of you too lazy to click through to wikipedia, a scratch disk (or scratch space) is temporary storage allocated for things like processing filters, transformations, layer data, etc. Photoshop has far too much going on to store all its data in RAM, so it needs to write some of it down to disk. The problem is, HDD access is way slower than RAM, and it gets exponentially worse when your file system isn’t optimized—your scratch space gets scattered all over the drive, and photoshop has to do extra seeking to find what it needs. This all ads up to lots of beach balls, wasted time, and grumpy designers.
Because I’m not willing to carry around another drive when I’m slicing up psd’s on metro or a plane, I decided to dedicate a small partition of my startup drive to scratch space for apps like Photoshop, Final Cut, or whatever else can make use of it. Turns out it’s really easy to do with Apple’s bundled Disk Utility. The only thing you need to know is that you can’t be booted from the drive you’re trying to partition. I just popped in my Leopard install disk, restarted (holding down ‘c’ to boot from the CD-ROM), clicked out of the installer, and launched disk utility from there. Once you’ve got it running, select the primary disk (very first item in the list, above the Macintosh HD volume), and then the partition tab. Add a new partition, give it a name (I used ‘Scratch’) and a size (20GB, in case I want to do more than just Photoshop), and hit ‘Apply.’ In moments, you’ll have a new scratch disk that’s separate from your already-full-with-virtual-memory startup drive! Finally, tell photoshop to use the new disk (preferences->performance), and voila! No more random beach balls or crashing when you try to save :)
I love Google alerts, but am somewhat perplexed at Google’s uncanny ability to discover something that I posted to flickr a year ago and proudly email me a link to it in the middle of the night. For those less vain than myself, here’s the lowdown: You essentially can subscribe to a Google search, and get an email every time new stuff gets crawled for that search. If it sounds a little self-absorbed, that’s because it is, but hey, we’re all friends here, right? I have a google alert on my name, address, etc., and I’d be willing to bet you probably do too. It’s a very cool idea, and would be super cool, if only it didn’t send me emails 14 times a week to tell me I posted a new photo or updated my status on twitter.
Soooo… I got to thinking, this wouldn’t suck so much if it worked with all of the filters and hacks available in google.com’s search box. Well, I tried it out, and turns out it does! So without further ado, some useful tips to add to your google alerts:
Edit: If you’re planning on copying your current email into your backup a) remember to hold down option when you drag, and b) add another line to the end of your rule to tell it to stop evaluating rules, so you don’t get multiple copies :)
—
So, I was inspired this morning to share some basic wisdom regarding the backing up of emails by this guy. It seems that for whatever reason his Gmail account (no, you should not do business on your gmail account, it’s bush-league and not failover-able, if that’s a word… buy a domain and use apps) was suspended, and he lost a whole bunch of stuff, blah blah :’(
Backing up your email is super easy with Mac Mail or any other normal IMAP client, provided that you don’t mind letting it run in the background (I’d recommend you actually use it to ‘read email,’ as well, but that’s up to you)… So, without further ado, backing up your email for dummies!
Step 0: Make sure that your mail account is enabled for IMAP connections and your Mac Mail is hooked up to it (click here for Google’s how-to)
Step 1: Locate the “add mailbox” button and give that bad boy a click. Find the option “new mailbox….” and give your backup box a name. Be sure ‘on my mac’ is selected in the location dropdown. Hit “Ok” and your box will be created, showing up in the sidebar.
Step 2: Add a rule to put your mail in this box. Command+, (comma) will bring up the preferences window (this is true for just about any app on a Mac), after which you just select the rules option, far right. Name your new rule, and set these criteria: If all of the following:
- Account is [your account to backup, not the mailbox you just created]
Then:
- Copy Message (not move) to mailbox: [here is where you pick the box you just created]
-Optional, but be aware it will mark all your mail in your inbox, not just your backup folder, as read, defeating the purpose of the feature: (click the plus)
-Mark as read
That’s it! now every time you get a message, a copy of it will be placed in your backup folder and marked read. Now if your gmail goes down for whatever reason or your account gets cancelled, you have all your messages stored locally. If you’re using apps on your domain, you can just switch your MX record and use whatever client you prefer from there on out, or chill and wait for Gmail to go back up. Note that hard drives fail too, (especially Apple ones) so you should export and zip your backup mailbox from time to time as well.
Important note!!!!!1
Because of Mail’s behavior when it comes to attachments, you need to back those up separately. I’d recommend never opening any attachments from your email, ever, because your hard drive will slowly fill up due to tons of temp files that don’t get cleaned out, so if you want to keep your files, be sure to save them locally as well.
Also worth noting, you’ll have to do this for sent mail as well, as the rule above only applies to incoming mail. :) Happy backing-up!
Textmate is full of awesome shortcuts, and this gem is no exception. Say you’ve got a project with a lot of files—so many that you can’t fit the ones you keep open in tabs along the top, or even without scrolling in the overflow window! This happened to me this month, and I found ‘Go to file…’ to be a lifesaver.
All you do is invoke the window and start typing the name of the file you’re looking for, a la Quicksilver. It ranks the results by frequency and recency of use, and all that’s left for you to do is arrow down to the one you want and hit enter.
As of Firefox 3, Mozilla has implemented their own getElementsByClassName() method, which returns a dom node instead of an array, thus breaking lots of old prototype apps. If you see a pesky error like myVar.each() is not a function showing up only in ff3, try switching all instances of: el = obj.getElementsByClassName('myClass') in your plugin to: el = obj.getElementsBySelector('.myClass') and el.each(function(){ }); should work again.
Open Gov apps in Ruby & Python.