7 Dec, 2008 in Merb + RoR3 by khelll

Well, finally it’s there, many important improvements were added to rails 2.2, and yet new things are on the way, you can check this blog post to check what’s new, while i’m gonna list here what i really liked about the new version of rails 2.2:
Thread safe
If you really don’t know what it means, [...]

6 Dec, 2008 in Ruby, metaprogramming by khelll

I wanted to start blogging on ruby reflection api, but i just realized that i have to give a second part of my previous article on ruby introspection .
So here we go:

s = ”
# s.is_a? String, this is the same!
String === s
 
# Determines whether the object has a public or protected method with [...]

5 Dec, 2008 in mysql by khelll

Now a days, UTF-8 is the most used data encoding format, and the fact that your database is not using UTF8 encoding is really annoying, specially additionally when it comes to integrating different systems, that has no one unified encoding format.
So if you think it’s time to change your data encoding to utf8 format, then [...]

5 Dec, 2008 in Grails by khelll

A little problem that i faced with grails , was setting the locale dynamically, i followed this nice article , and here is how i could manage it :

I made a new file called messages_ar.properties that contains the arabic localization under the i18n folder.
I made a simple beforeinterceptor:

def beforeInterceptor = {
[...]

5 Dec, 2008 in Ruby, metaprogramming by khelll

I’m pretty sure that you have heard lots about ruby, specially as being a dynamic language, you can create methods on the fly, add instance variables, define constants and invoke existing methods dynamically , and that’s what this post is all about :
As you know in ruby you can call a public instance method directly [...]

5 Dec, 2008 in Ruby, metaprogramming by khelll

Hi, this is my first blog post!, i’m already done of reading this artilce on groovy’s lang introspection , and i wanted to submit the equivalent one for ruby, so all you need now is to fire your irb and follow me :

# Whats is your class?
 
a = 5
b = "Hello"
 
# Whats is [...]