Jonas Forsberg

I like to do high fives, take photographs and make cool things with Ruby.

Dublin

Thought I might be able to shoot a bit more again and get inspiration for some nice pictures when I was in Dublin for a couple of weekends ago. But i was a little bit disappointed when i transferred the photographs to my computer. Anyway, here is a photo of Eva on a shopping street in the middle of Dublin.

A sunday walk to Långsjöbadet

Took a walk with Eva this grey Sunday. Came to a lake with a empty beach and came home with wet shoes. Looking forward to visit that beach in the summer instead.

Mynewsdesk through Loopcam

Stekarveven :D Kickoff Kickoff RC-car Nordic Ruby

Having fun with Loopcam.

Real-time Instagram feed for SilarApp

Working on a real-time Instagram photo feed for a new SilarApp dashboard. Perfect for an event or a venue who wants to encourage the use of Instagram to increase their reach in social media.

And by the way, I love my kitchen table!

Forest

The last days of my summer vacation was spent at my fathers house, out in the countryside. Among other things we took a walk in the forrest to pick some chanterelles. Did not find that much mushrooms but it did not matter because I’m not so fond of it.

A web interface to Jekyll

Use Prose, a content editor for GitHub, optimized for managing websites, to get a web based interface for managing your Jekyll site (or other text-based content in your Github repositories). You can now write a new blog post or fix that typo without even leaving the browser. You can even specify metadata defaults for your posts.

This work really out of the box if you host your site on Github via Github pages but if you, like me, are using Heroku you need to set up some more automation. See my previous post on how to automatically deploy to Heroku when pushing to Github.

Deploy to Heroku from Github

Automatically deployment of your app to Heroku when it has been pushed to Github with github-heroku-pusher by ajlai on Github.

I found this little Sinatra app a couple of days ago and have now set up it to automatically deploy this Jekyll site to Heroku when I push the repository to my Github account. It receives a post from Github via the post-receive service hook, fetches the updates and push them to Heroku.

I have made some changes to the app, so use my fork until the pull requests has been merged. My fork adds support for private repositories and makes it run smoothly on just one free Heroku Dyno.

Just follow the instructions in the README and you’re done in less than 5 minutes.

Vacation

I’m in the middle of my four-week summer vacation and it has been awesome so far. Took this photo of Eva a couple of days ago when we were visiting my mother, who lives right next to Göta Kanal.

Jekyll + Heroku + Unicorn = Blazing fast blogging

Deploy your Jekyll site on Heroku with 6 workers ready to take on your massive traffic without first having to generate the Jekyll site locally and there’s no need for a third-party buildpack. And the best of all, it runs on a single and free Heroku Dyno.

Rack-Jekyll

I have previously used jekyll --serverin my Procfile on Heroku which in turn generated the jekyll site and booted up a webrick server. But I wanted to run my site with Unicorn and it’s support for multiple workers on a single Dyno. And to do so my Jekyll site must be a Rack app.

Rack-Jekyll to the rescue! It was exactly what I was looking for, it turned a Jekyll site into a Rack app. I had some issues with it on Heroku and made a pull request with the fixes. At this moment it has been merge with the master but there is not a new version released of the gem.

Jekyll + Unicorn + Heroku

Jekyll-Heroku-Unicorn is a sample app of a simple Jykyll site with 6 Unicorn workers ready to be deployed to a free Heroku Dyno:

  1. git clone git@github.com:himynameisjonas/jekyll-heroku-unicorn.git
  2. cd jekyll-heroku-unicorn and run bundle install
  3. heroku create followed of git push heroku master
  4. heroku open and you’re done!

Roxen

Took this photograph last year’s spring at Roxen outside Linköping while we were out looking for a Geocache.