How To Scan Multiple Pages Into a Single PDF on OS X
My new printer has a document feeder which makes scanning of multiple pages easy, but I didn't know how to kick off the scan on OS X. Turns out it's quite easy: Open the OS X Preview app Go to the File...
View ArticleHow To Dynamically Import Python Modules
Here's how you import a python module dynamically: say your module is called "mysettings" and it's in the directory "config". Make sure you have a __init__.py in your "config" directory and use:...
View ArticleStudent Loans Are Killing Entrepreneurship
If you know me you know I'm a huge fan of entrepreneurship - instead of renting yourself out to someone else, start a business that scales. Be your own pimp. I gave a guest lecture at UCSD recently...
View ArticleSFTP: Specifying Port, SSH key
This page is helpful. Specifying port: sftp -v -oPort=6636 -o IdentityFile=keys/my-key.ssh my_username@sftp.somesite.com
View ArticleHands On With the BlackBerry Playbook: Actually Quite Nice
Over the weekend I attended the Blackberry hackathon with the hopes of creating an Xpenser blackberry app. The RIM folks were nice enough to give away a Playbook to everyone who presented, so I ended...
View ArticleEfficiently finding large (size and dimension) images
I needed to efficiently find large images (those with dimensions greater than x). Here's what I came up with: First, find images whose file size is greater than 3M: find . -name '*jpg' -size 3M >...
View ArticleHow To Program Viper Car Alarm Remote
Took me a while to figure this all out, so here are some notes to hopefully make it easier for others: You can program a new remote to work with your car alarm quite easily, without the need to know...
View ArticleUndo last git commit / merge
Note to self: I quite stupidly merged and committed an unwanted branch into master. Took a surprisingly long time to figure out how to get rid of it: git reset --hard HEAD^ Which means reset git to one...
View ArticlePython itertools.groupby : a clearer example
itertools.groupby allows you to group a sorted list (or any sorted iterable) by some key, giving you the grouping key and the list of items grouped by that key. For example, say you have a Django the...
View ArticleBootstrap 16 Column Grid
Notes to self, for future reference: Via the Bootstap Customize page: gridColumns = 16 gridColumnWidth = 50px gridGutterWidth = 10px If you're planning on printing the result be sure to turn off all...
View Article
More Pages to Explore .....