Docker leads to so much win (psql ftw)

Uncategorized
Containers are an incredibly effective way to be more productive. I'd put it on the same order of convenience as version control: a bit of effort to learn but each technology allows tremendous flexibility and safety and enjoyment out of programming. Just now I wanted to verify my backups. I didn't want to run Postgres directly on my macOS, as I'm going to nuke the database after a few tests. So instead I started one in its own container. I ran it on a weird port so I couldn't accidentally use the wrong database/proxy: $ docker run --name temp_postgres  -p 5555:5432 -d postgres:9.6 Next I verify my new database is up and answering commands: $ PGPASSWORD='' psql postgresql://postgres@localhost:5555/postgres -c 'select now()'               now -------------------------------…
Read More

talk tomorrow: Automatic Parameter Optimization

Uncategorized
good news: I'll be presenting for the Professional Python group tomorrow in Santa Monica, on "Automatic Parameter Optimization". I'll also highlight upcoming classes and lead a discussion. Meetup: Professional Python Users Group The gist: let's say you have 1000 files to process. Do you want to process them all, and get all the results at once, a long time later? Do you want to work on one at a time? Do you care about the overall time it takes, or being efficient with the CPU or storage? I'll demonstrate the Hyperopt library which is easily adapted to automatically figure out different types of parameters for you. In related news, Facebook spins servers up and down to efficiently manage power consumption -- Making Facebook’s software infrastructure more energy efficient with Autoscale
Read More

appearances in August: Testable and VueJS

Uncategorized
Hi all! I'll be going to two Meetups next week. The first one, VueJS on Tuesday 8/13, is at the WeWork on Jefferson in Culver City. The group is friendly, I visited them a couple months back and met a new friend who wants to establish a code school alternative. I'll be there Tuesday to tease my buddy Alex, who's giving a talk on using Vuejs with Electron to build desktop apps!https://www.meetup.com/VuejsLA/events/263446192/ Next up, I'll be MC'ing at TestableLA in Santa Monica on Wednesday 8/14. The people are super mellow and friendly. The group is all about developers going towards QA (better tests), which is an especial focus of mine! The speakers will go over testing React components, and testing app performance over variable networks. Drop by and say hi!https://www.meetup.com/testable/events/wmkmdqyzlbsb/
Read More

pretty titles (and cats) in your terminal!

Uncategorized
A little-known feature of iTerm2 is that you can insert images directly into your (previously text only) terminal!  This can be useful (render calculation as plot directly in terminal) or we can use it for silly purposes. Cats. Who on the interwebs doesn't love cats? Setup brew install imagemagick copy iTerm2's imgcat script into your path Test: display built-in image convert rose: - | imgcat /dev/stdin Pretty Title convert -background lightblue -fill blue  -font Tahoma -size 165x70  label:Anthony    z.png && imgcat z.png Good Job, Bub! curl -s http://thinga.com/assets/uploads/images/Lil-Bub-pic-02.jpg | imgcat /dev/stdin Note the "Tahoma" font used above is probably only on macOS.  Choose another font that's installed into ImageMagick.  What fonts are those, you say?  Here you go: List ImageMagick Fonts (Awk FTW) $ convert -list font | awk…
Read More