09 May 2015
This is a common problem, you have an object, and that object does some logic,
and then you find that at some point this logic needs a special condition,
because the object is null, or somet variable inside it that holds another
variable is null, here’s a small example
Continue reading
03 May 2015
Any rails developer probably uses rails console every day, when testing methods,
when debugging, or doing some database modifications, knowing some convenient
tips will make you save some time, and on the long run you’ll become more
productive with these simple tricks.
Continue reading
25 Apr 2015
When I’m writing a heavy query rake task or just running something in the
console that does a lot of updates, and i want to output something it gets lost
in all the query logs output.
Continue reading
02 Apr 2015
Some times we find our selves having a time expensive method or in some cases
using an API that costs money per request, or a slow one, I had that issue once
when using twitter API, I was fetching the last tweet for a website, and
sometimes that request took a second or two to return, which was annoying.
Continue reading
12 Mar 2015
Recently I needed to install elasticsearch on my debian jessie laptop, first I
found it in the repos so I installed it normally, it installed a bunch of stuff
with it that I didn’t actually need but I thought like fine w/e it needs, I need
it to work to finish my task, and at the end it didn’t really work anyways.
Continue reading