EventMachine – how to get client’s IP address

I’m using EventMachine in one of my projects. EM is robust library to handle all dirty stuff related to low level network activities. However it is not very well documented. You can learn a lot from it’s sources, but I’m not (yet :) I hope) so good to crunch such library in 15 minutes in …

Interacting with Facebook without user

As a developer of applications based on Facebook Platform I was asking myself how to make changes in user profile not only when user is interacting with application directly. Users sessions are infinite First Eureka was to understand, that with Facebook Platform web application, every user session is infinite (does not expire) as long as …

Changing markers icons with Google Maps API

Almost year ago I’ve wrote short info about how to change icons in markers placed already on map with Google Maps API. It is cumbersome method, since it requires to delete and create markers. It is problem when with markers are associated some event listeners, since they need to be recreated also. But then was …

Save editing WordPress theme on live site

I’m preparing to make major change in layout of this blog, mostly because of poor bounce rate. When reader comes here from Google, and lands directly on some post page, there are no suggestions what he/she can read more. I do believe I have here some useful content and make bounce rate better. So I …

Helpers available both in controller and templates

With famous DRY, I have written a bunch of common checks from RNS to some helpers methods. And I have to find some way to access them both from templates (RHTML) and controllers. Rails provides two places to hold common helpers. First is app/controllers/application.rb, parent for all controllers. Methods defined in this class will be …