Generating Jekyll pages from data

I wrote a Jekyll-generated site for Botanic Organic that sells products and includes product and ingredient pages that are generated from data. Jekyll is a blog aware, static site generator. Botanic Organic’s site was forked off of Octopress, which uses Jekyll but adds a few plugins and styles.

Read More

Experimenting with Octopress

My personal blog began life on Blogger and was switched to Posterous in late 2010. The switch to Posterous was driven by an interest in easier media publishing, but I haven’t found Posterous to have lived up to my hopes. In particular I’ve found performance of their site to be a bit lacking, and have been disappointed that basic editing features have not evolved.

Being adventurous, and now having to support multiple web sites, I thought I’d experiment with Jekyll and Octopress and see what their limits are. I know this is not going to provide an improved editing experience, but this will address performance issues and provide a place for me to experiment.

Read More

curl, JSON and pretty print

Curl is a wonderful thing. The output can be a bit messy, however.

This python pipe pretty prints your otherwise messy JSON output.

$ curl -H 'Accept: application/json' http://localhost:3001/myserver/cmd | python -mjson.tool

Or, using Ruby, if necessary run

sudo gem install json

then pipe your output.

cat myfile.json | prettify_json.rb

An even nicer solution is this node script, written specifically to handle curl output. You’ll need to make sure you’ve installed Node.js before you can use it.