Tigraine - tigraine.at - Tigraine
General Information:
Latest News:
Amazon S3 uploads fail in numerous ways for no apparent reason 9 Jan 2013 | 03:12 pm
Today I spent almost 30 minutes trying to debug a problem where one of our Servers was not correctly synchronizing files to Amazon S3. First thing I tried was manually doing a s3cmd put of the files i...
Installing Eclipse on Mac OSX 11 Oct 2012 | 12:26 pm
Most Mac applications come bundled as a .app package that you simply have to drag&drop into your Applications for them to show up in Launchpad and Alfred. Or, if an application is a bit more complex y...
When to use raw() and when to use .html_safe 23 Aug 2012 | 06:33 pm
What rails does very nicely is protect you from XSS attacks through aggressively HTML encoding anything you write between . But there is one caveat: At times you may really want to render HTML from a ...
How to expire all active Sessions in Rails 3 3 Aug 2012 | 05:32 pm
I know this sounds like a very simple task to do, but since I just spent half an hour reading up on how Sessions in Rails work I decided it’s time to put this up so I can Google it again next time Fir...
Optional locals in Rails partial templates 12 Jul 2012 | 05:33 am
In Rails it is very advisable to not use any instance variables inside your partials if you want to re-use that partial in a different context. It is much better to simply leverage locals that you pa...
Explicit path helpers with STI in Rails 26 Jun 2012 | 12:00 am
I am currently working on an application that makes use of Single-Table-Inheritance (STI) for some of it’s models. STI in Rails is quite simple, you simply subclass a model and add the type column to...
Removing delete and destroy in Rails models 3 Feb 2012 | 02:02 pm
Today I had an interesting feature request to implement: Get rid of all deletions and replace them with a deleted flag in the DB. It’s the usual story: Nobody really does deletes but rather everythin...
A word of advice on Bundler and Gems from git 28 Jan 2012 | 08:13 am
At times (especially after Rails version upgrades) some Gems don’t work out of the box so I usually spend some time on GitHub looking through the network graph for a fork that fixes the issue. This w...
Make GNU screen xterm-256color work on OSX 26 Jan 2012 | 10:26 am
I just ran into this and spend like 2 hours with Linux genius Jam trying to figure out why in the heck I could run Vim in 256 colors mode on my server while once I started screen it didn’t work any mo...
New team member on dotless: Luke Page 13 Dec 2011 | 09:27 am
You may have noticed that my blog is filling itself slowly with stuff about Ruby and Unix in general. This has to do with the fact that for now 3 months I am working on Rails full time with very littl...