Fastest route to Postgres and Python with psycopg2 on OSX.

Download Postgres.app from postgresapp.com. Unzip into /Applications, then run it.

To get psycopg2 to then install do:

PATH=$PATH:/Applications/Postgres.app/Contents//Versions/9.3/bin/ pip install psycopg2

Tada! Your done and without having had to use fink or brew.

Posted in Other | Comments Off on Fastest route to Postgres and Python with psycopg2 on OSX.

JSON Pretty Printer in Go

Posted in Other | Comments Off on JSON Pretty Printer in Go

voronoi_colors

A quick trial at creating color fields (and then sticking textured stuff on top).

Posted on by jdboyd | Comments Off on

python-lzo

I realized that when searching for python and lzo, my github page is the first link. I’ve also noticed that people keep forking my github version and that there is no PyPI entry for python-lzo.

So, I decided it is fair to consider myself the maintainer for python-lzo and have registered it as a PyPI package. Find it here: https://pypi.python.org/pypi/python-lzo/1.08.

I guess the next steps will be to setup travisci, update the setup.py, add python3 compatibility and find out what changes the people forking it are making.

Posted in Programming | Comments Off on python-lzo

New experience:  a hard pretzel so fresh that the insides are still soft.  Yum.

Posted on by jdboyd | Comments Off on

How to fix BIND’s journal out of sync error

This is a note for my future reference.

Example error:

zone example.com/IN: journal rollforward failed: journal out of sync with zone
zone example.com/IN: not loaded due to errors.

While named isn’t running, remove the .jnl file for the example.com zone. It will be in the same directory as the zone files. Restart named and the error should be gone.

This error occurs if you have dynamic entries (say pushed by in by a DHCP server or other automatic mechanism) in a zone and then also change the zone files on disk (say deploying updates from a manual edit).

To prevent this in the future, freeze a zone before changing the zone file, then thaw after.

rndc freeze example.com
vi /path/to/zonefile/example.com
rndc reload example.com
rndc thaw sxample.com

Where I learned about this: thedumbterminal.co.uk

Posted in Other | Comments Off on How to fix BIND’s journal out of sync error

How to convert audio format in a video file:

ffmpeg -i input.mkv -vcodec copy -acodec ac3 -ab 448k output.mkv

Posted on by jdboyd | Comments Off on

irccat3

I liked last.fm’s irccat as an easy way to post events (task completion and errors) to an IRC channel. I was less crazy about the recommendation to use ant to execute it. When I moved it to a OpenVZ VPS that used venet, it stopped working reliably. I’ve actually had trouble with quite of few Java services on that sort of VPS. So, I wrote my own in python, and it can be found on github and PyPI.

An added benefit is that much less memory is now used as well.

Posted in Programming, System Administration | Comments Off on irccat3

I can’t believe that Game Developer Magazine is ending in July! I hope they don’t switch my remaining issues to some Windows publication like the last two computer magazines I subscribed to did when they ended.

http://gamasutra.com/view/news/190148/Game_Developer_magazine_closing_in_July_2013.php



Posted on by jdboyd | Comments Off on

Google Calendar drops CalDAV

In January, Google said:

“With the launch of CardDAV, it’s now possible to build a seamless sync experience using open protocols (IMAP, CalDAV and CardDAV) for Gmail, Google Calendar and Contacts. We’ll start rolling out this change as planned across all platforms.” (citation)

Yesterday, Google said they would be moving CalDAV support to whitelisted only on September 16, 2013, and that new developers should use their propriatary API (citation).

Removing an entire service, like Google Reader is fair enough, but open standards access, like CalDAV, from products that are used by default with most new phone and tablets sold is low.

Removing Google Reader made me glad I never switched to it. Removing CalDAV support makes me want to renew my efforts not to use Google services beyond search.

Does anyone know if aCal is still read only?

Posted in Other | Comments Off on Google Calendar drops CalDAV