Phew. Day #3 felt a bit hectic.Read on →
The task for today was:
Today, I want you to start. It doesn’t matter if you feel ready. Start.
RepoReader was already a work in progress before I joined Week of hustle so it was all about pushing it harder than before. Instead of slacking off I did manage to accomplish quite a lot today.Read on →
I’ve been a part of an online community called JFDI. It’s a community for solo-founders, bootstrappers or anyone launching their own thing. Also JFDI stands for “Just Fucking Do It” so that should explain the whole deal behind it :)
Week of hustle
It’s a week long event (8 days to be more precise) organized by JFDI in which you work hard to push out a new product, finish an existing one or whatever. Simply put – a kick in the butt to get things done and it’s just what I needed so I’m taking a part in this event.Read on →
What do you do in Ruby when you need to get a count of elements in an array? You use methods like
length. Ok, but do you know what’s the difference between those methods? I’m not talking about Rails and ActiveRecord and the different approaches each of these methods take to return a count. I’m talking about plain old Ruby.
This is an explanation/reminder post about how to whitelist HTML tags and their attributes in the WYSIWYG editor called WYMeditor which is used by Refinery CMS.
I assume you have a running Refinery CMS v2.x.x application!
Lets start by opening
config/initializers/refinery/core.rb and looking for a config option called
At first that comment above the config may confuse you but don’t worry about it now.Read on →
I’m putting together a Ruby 2.0 talk for a local Ruby meetup group and I thought it wouldn’t hurt to write down what I have learned about Keyword Arguments which is a new feature in Ruby 2.0.Read on →
You’ve been using
Hash#fetch and are happy with it.
You also know that you can specify default return value in case the key you are looking for is not present in hash.
1 2 3 4 5
Lines 3 and 5 return the same result so what’s the difference you may ask? Read on →