Bounga's Home

Using I18n with Hanami

in Ruby
Last week I wrote about settings up Sikekiq
in Hanami. Another gem I often use
is I18n since it allows to localize
strings and keep them separated from my code by using a dedicated file. This way my
code don’t have any hard-coded string but rather uses something that looks like
a keys / values st...

Read more...

Using Sidekiq with Hanami

in Ruby
One of the gems I often use in my Ruby on Rails
projects is Sikekiq. For those of you who
don’t know about it, it allows to easily manage background
processes.

As I’m now using Hanami more and more for my
personal projects it quickly became essential to me to integrate
it in Hanami. Fortunately ...

Read more...

Running a JSON API with Rack and mruby on a Raspberry Pi

in Raspberry
I recently got a Raspberry Pi 2 so I wanted to experiment with home automation, surveillance system, movement detection and stuff like that.

Thinking of the things I could do with it I quickly realized that I would need an API at home to centralized everything. I immediately thought it was a wor...

Read more...

Setting up Rails, Nginx and Puma

in Unix
When Rails 4 was released it offered a bunch new features and deprecations :



You can see that thread safety is since on by default so a Rack server can safely create threads for your Rails app rather than forking process and waste cpu cycles and memory.

If you didn’t switch to a Rack compatib...

Read more...

Downgrading RubyMotion

in Tips
Sometimes after upgrading RubyMotion I face some bugs introduced in the new release. It can be bugs which can easily be workaround or really annoying bugs that will be pain in the ass in a daily work.

In this case most of the times I choose to downgrade RubyMotion rather than waiting for a new r...

Read more...