15
May 12

The Janitor from Columbia [Link]

It’s a feel good story about reaching beyond limitations and finding new potential. But I think it highlights how much a society loses by not creating an inexpensive route into higher education. Is there any downside to getting an education other than debt?

By way of Kaush’s Journal


15
May 12

Plumbum [Link]

Plumbum is a Python library for cross platform shell commands in Python? I’m not sure when I would use this instead of the Python OS modules. Maybe if I wrote more scripts that were intended to be cross platform. It’s something interesting to play with.

By way of Clark’s Tech Blog.


14
May 12

Purposeful Mistakes

This post at The Visual Exegesis was entertaining, but it’s the video embedded half way down that really stuck with me.1 I wouldn’t consider myself a comic book fan. I like them well enough and I have my own personal preferences, but I am no Andy Ihnatko. That also means I don’t really know anything about Neal Adams who is the artist in the video.

Here’s the video:

I watch that video and I see someone making hundreds of directed mistakes. He has many false starts and ideas flow out onto the page while he works through his process. He doesn’t seem to filter out his ideas, but rather builds upon each one and abandons what he doesn’t like. Part way through he obliterates almost the entire work except for the skeleton left by all of those mistakes. His art is made from continuing to move forward beyond the individual faults and failures. His art is a product of many mistakes he makes on purpose in pursuit of the greater perfection.2


  1. Sorry, I don’t remember where I first heard about this. I have some strange sources in my RSS feeds. 

  2. I’m not a philosopher, this is just something I thought was “magical”. I know it made me pause and think about how I make things. Before anyone comments, I also know a purposeful-mistake is an oxymoron. Some people take all the fun out of the internet. This footnote is for you. Dicks. 


14
May 12

Haircut [Link]

Am I the only one that wants more political writing from Andy Ihnatko?


14
May 12

Purposeful Mistakes

This post at The Visual Exegesis was entertaining, but it’s the video embedded half way down that really stuck with me.1 I wouldn’t consider myself a comic book fan. I like them well enough and I have my own personal preferences, but I am no Andy Ihnatko. That also means I don’t really know anything about Neal Adams who is the artist in the video.

Here’s the video:

I watch that video and I see someone making hundreds of directed mistakes. He has many false starts and ideas flow out onto the page while he works through his process. He doesn’t seem to filter out his ideas, but rather builds upon each one and abandons what he doesn’t like. Part way through he obliterates almost the entire work except for the skeleton left by all of those mistakes. His art is made from continuing to move forward beyond the individual faults and failures. His art is a product of many mistakes he makes on purpose in pursuit of the greater perfection.2


  1. Sorry, I don’t remember where I first heard about this. I have some strange sources in my RSS feeds. 

  2. I’m not a philosopher, this is just something I thought was “magical”. I know it made me pause and think about how I make things. Before anyone comments, I also know a purposeful-mistake is an oxymoron. Some people take all the fun out of the internet. This footnote is for you. Dicks. 


14
May 12

The New Simperium API is the Future of Data Availability

Simperium is the company behind Simplenote. It’s now also a data syncing service. Simperium announced the Simperium API and it looks nothing short of amazing.1

Here’s a fantastic example from their API Samples page:

Simperium is offering libraries to incorporate this impressive data sync into iOS, Javascript and Python based apps.

There are a number of other concept videos showing how developers can think about the Simperium service. I’m not sure if this could be done with iCloud in iOS, but I do know that this is not something that can be done with JavaScript and iCloud. To be fair, this is not like iCloud’s data sync. Simperium is syncing much more simple (and much smaller) objects. JSON is really just text.

Just some highlights from the Simperium overview:

Simperium persists your data for you in buckets. Buckets are application-wide namespaces and exist as a convenience for you to organize your application’s data. Every Simperium object is JSON data that is stored in a bucket.

Simperium uses an inherently schema-less datastore. Objects in the same bucket need not have the same structure…

If you are a fan of the Simplenote versioning system, Simperium provides that for all objects automatically. Grab the scrubber and watch the data roll back through time. Restore to any point along that timeline. Now imagine that option in sketching apps, games, or image editors.

Proper versioning and roll-back is something that I would like to see spread into new contexts. Rather than roll back an entire document, I would love to retrieve an old state of an isolated sentence or paragraph.

While the Simplenote app has not changed much in the past 3+ years, behind the scenes they were building the future. I have high expectations for this project.

The three integrations I expect in apps now: Dropbox, TextExpander, Simperium.

By way of Shawn Blanc


  1. No, I’m still not using Simplenote. I can’t go back until it stops messing with URL encoding in my text notes. That doesn’t detract from how impressive this service is. 


12
May 12

Upload to Amazon S3 from Dropbox using Hazel

I’ve been fiddling with my Hazel Dropbox to FTP rule lately. But in the middle of it, I received a polite prompt to make it work with Amazon S3 instead. I’m a sucker for learning something new so I made this Python based Hazel rule.

I Installed the boto module for working with Amazon AWS. This is a mature library of methods for doing all sorts of stuff with Amazon AWS. I really only needed a few methods though.

sudo easy_install boto

Then this script goes into a new Hazel rule.

import boto
from boto.s3.connection import S3Connection
import os
import sys
import urllib
from datetime import date, datetime
import subprocess
# This is how Hazel passes in the file path
hazelFilePath = sys.argv[1]
# Obviously, you'll need your own keys
aws_key = 'AWESOME_KEY'
aws_secret = 'SUPER_SECRET_KEY'
# This is where I store my log file for these links. It's a Dropbox file in my NVAlt notes folder
logFilePath = "/Users/weatherh/Dropbox/Notes/Linkin_Logs.txt"
nowTime = str(datetime.now())

# Method to add to clipboard
def setClipboardData(data):
    p = subprocess.Popen(['pbcopy'], stdin=subprocess.PIPE)
    p.stdin.write(data)
    p.stdin.close()
    retcode = p.wait()

# This is the method that does all of the uploading and writing to the log file.
# The method is generic enough to work with any S3 bucket that is passed.
def uploadToS3(localFilePath, S3Bucket):
    fileName = os.path.basename(localFilePath)
    # Determine the current month and year to create the upload path
    today = date.today()
    datePath = today.strftime("/%Y/%m/")
    # Create the URL for the image
    imageLink = 'http://'+urllib.quote(S3Bucket+datePath+fileName)
    # Connect to S3
    s3 = S3Connection(aws_key, aws_secret)
    bucket = s3.get_bucket(S3Bucket)
    key = bucket.new_key(datePath+'/'+fileName)
    key.set_contents_from_filename(localFilePath)
    key.set_acl('public-read')
    logfile = open(logFilePath, "a")

    try:
        # %% encode the file name and append the URL to the log file
        logfile.write(nowTime+'  '+imageLink+'\n')
        setClipboardData(imageLink)
    finally:
        logfile.close()

# How's this for terrible design. The actual body of the script is one line. I'm my own worst enemy.
uploadToS3(hazelFilePath, 'media.macdrifter.com')

This is very similar to the FTP rule. I add a file to a folder and Hazel will upload it to the designated S3 account and add a link to my Link Log file in NVAlt and my clipboard stack. Since the folder I use is in Dropbox, I can add an image or video right to Dropbox and get back an Amazon S3 link.

The Link log looks something like this:

Notes

My S3 bucket name is “media.macdrifter.com” so that I could use it as a subdomain for this site.

I structured the bucket folders like they are in my WordPress content directory. They exist as YEAR/MO, for example “2012/05″. I added a couple of extra lines to get this structure for me. If the folder does not already exist, the new_key method will create it for me.

If a file already exists with the same name as the one being uploaded, this script will overwrite it without warning. You’ve been warned.

It’s actually convenient that files will be overwritten. It means I can browse to the Dropbox folder that Hazel is watching and edit the image directly. Any saved changes are immediately pushed up to Amazon S3. It’s like directly editing images on S3 (with Acorn of course)

I don’t really use Amazon S3 for image hosting. I have no problem hosting the images myself. This was just something that struck me as interesting and someone else might find it useful.

I was quite impressed with the Boto module’s ease of use. Amazon’s S3 was also fairly easy to get going with. Configuring the CName on my DNS was the hardest part of the entire process. If I didn’t care about having a nice looking URL for the hosted images, I could have skipped the CName and gotten on with wasting my time in some other way. I like the nice looking URL’s though.


11
May 12

Read Later Update [Link]

Read Later is one of my favorite Mac apps and one that I use the heck out of. Macstories points out how good it is getting for Pocket users1. What a great app for archiving.

Still on my wish list: support for downloading a lot more records and better search functionality. Those are minor wishes.


  1. I don’t use Pocket. I already have too many buckets. 


11
May 12

Humanity [Link]

There is nothing that anyone can do more important than helping a child that is hurting.1

I think most charities are a scam but St. Jude Children’s Hospital is one of the few I give money to regularly and include at the top of my donations page. Thomas Brand says it better than I have.

There’s a lot of good things to do on the internet today.

By way of 512 Pixels


  1. If you think your job is important, it’s highly likely it is not. That’s ok, but try not to get too high about yourself. 


11
May 12

American Prometheus

American Prometheus is the biography of American scientist Robert Openheimer. It’s a wonderful and sad story of a passionate person caught in the machinations of lesser men.

I listened to the 26 hour audio book which is tolerable but not great. As an unabridged audio book it is complete but somewhat disjointed. It was compeling and fascinating none the less.

I can recommend this book to anyone that has the slightest interest or enjoyment of any of the following topics:

  • Science
  • History
  • Politics
  • American Culture
  • The Manhattan Project
  • Psycology
  • Beautiful language
  • The human condition

10
May 12

The Best General Purpose Pot

I bought this 7.5 quart cast iron dutch oven from Amazon.1 It’s a little pricey at $80 but it is the single best pot I own. It is non-stick thanks to the enamel coating. It’s very easy to clean. But the real benefit is that it holds an entire meal and cooks better than an pot or device I have used. I threw in a large pack of chicken quarters with carrots, scallions, garlic, celery and tomatoes, cooked in the oven for two hours and got out a terrific meal. There’s really no reason to own a crock pot or many other pots now that we have this 20lb beast.

Cast iron is the future.


  1. Affiliate link 


10
May 12

HP Copying

As I have said before, Samsung copying Apple doesn’t bother me that much. Neither does HP copying Samsung copying Apple.


10
May 12

The Art of Simple Press Releases [Link]

See this.


10
May 12

Launchbar Sale [Link]

In case the restraining order preventing you from touching a computer just ended, Launchbar is a necessary part of the Mac. $17.50 for Launchbar is a good deal.


09
May 12

PhDs on Food Stamps? [Link]

Another good post over at In The Pipeline. This one examines claims about people holding advanced degrees needing assistance. Derek Lowe does his normal excellent work and debunks some of the conclusions.

Looking at advanced degrees as a percentage of the population, we have 4.3% in 1970, 7.2% in 1980, 8.8% in 1990, 8.6% in 2000 (a decrease I’m at a loss to explain), and 10.6% in 2009.

I agree with his scepticism. But I also know many PhD chemists that have been out of work for a long time or have been repeatedly out of work over the past two years. None of them have applied for Food Stamps. Granted, they probably wouldn’t go around talking about it if they were.

As for those increases in advanced degrees? When there are no jobs for college graduates they tend to go to graduate school. Unfortunately the Bureau of Labor Statistics groups all college degrees together.