attilagyorffy.com

attilagyorffy.com

I'm Attila. I'm a senior full-stack freelancer, an ex-Londoner who worked previously for @terracycle, @ubxd and @lastfm. My focus is on high quality output using agile development, Ruby/Rails and JS.


AuthorAttila Györffy
Featured

Responsive Images in Rails applications

Posted on .

As a quick tip, here's how to generate a <picture> element within Rails that will instruct browsers how to load different images on different screen resolutions: In the above example I'm using standard media queries, you can obviously customize these to…

Featured

productivity til git

TIL: Git URL shortcuts to github, heroku and others

Posted on .

Git provides a mechanism to reference URLs during git commands. People usually use these to enforce HTTPS connections instead of using the git protocol. With a bit of creativity, one might turn these into shortcuts to github, Heroku, and other git hosts. This…

Featured

FreeBSD ansible

Bootstrapping a FreeBSD system with Ansible

Posted on .

FreeBSD does not come with python preinstalled and programmatically installing it via ansible from a control machine may be tricky. During the first invocation of pkg, it will ask you whether you want to bootstrap the pkg system on your machine: The package ma…

Featured

PostgreSQL rubyonrails ActiveRecord

Avoiding PG::NotNullViolation errors when adding new columns in Rails migrations

Posted on .

I have seen this being a common question across newcomers to Rails. When you are adding a new column to an existing table with a non-null constraint, you start writing a migration as follows: This will raise a PG::NotNullViolation error as postgres is smart e…

Featured

elixir phoenix emberjs jsonapi

TodoMVC with Ember and a Phoenix backend using JSONAPI

Posted on .

As part of my attempt to learn more about Phoenix I decided to write a Phoenix application backend to the infamous TodoMVC example using ember-cli and the JSON API standard. There are a few examples out there how to set up communication between an Ember applic…

Featured

FreeBSD security node.js LibreSSL

The state of LibreSSL in FreeBSD

Posted on .

As part of my ongoing effort to evaluate FreeBSD as a server OS I took the time to see what it takes to replace OpenSSL with LibreSSL for increased system security. I'm sure most of you are familiar with the beast that OpenSSL is and I wanted to see whether co…