After a long silence, Simple Captcha is back in move now. Simple Captcha 2.0 will be here very soon.
Here are some very useful features coming up with Simple Captcha 2.0
- Ajax based refreshing of captcha image — a much awaiting one!
- Full control on the image font — now this is fun-do! You would be able to use any font.. yeah literally any font. The overview of this feature is that you would just need to put .ttf font file in the plugin’s directory and that is it. Cool yeah ?
- Better control on the default values and settings via simple_captcha.yml file.
- Ability do define/undefine case sensitivity.
September 14th, 2008
No Comments
Its been around three months I am practicing Martial Arts. I have refined my kicks and punches to some good level, punches comes out with new kind of energy now ;). Just now started having the one-on-one fight practices. On last weekend, while fighting with an opponent, I got a minor hair fracture in my right feet’s thumb. It was a solid kick though on his knee, but since shoes are not allowed in practice I got the reaction of the hit as well. I had a great joyful fight.. one of the big scene was when I hit hardest punch and it made my opponent’s right hand’s two knuckle joints swollen and that was the end of the fight. Though I didn’t feel good for him at the first place, but actually this is why we were there at the dojo.
Right now along with some interesting Rails projects and personal Ruby coding(an interesting mesh up of ActiveRecord and Socket Programming) also enjoying the broken bones :).
August 13th, 2008
No Comments
Many of you guys(as me) may have used Exception Notifier plugin to get Rails app exceptions right into your mailbox, and may also have faced some problem like this.
Also if you have 2-3 or more apps running in production then managing such exception mails is also a big headache. In such case one have to keep track of many things like which type of error is resolved/unresolved for which project etc… .
So, here is a good news for those who don’t know about Hoptoad. It is an hosted service by thoughtbot which receives your exceptions, notify you once per error type by email and keep track(resolved/unresolved, count etc…) of your errors on project basis.
By now its a free service. I’m gonna use this as my next project goes live. What abt you??? ;-P
August 12th, 2008
No Comments
Last month I spent much time while configuring tinymce’s spellchecker with my rails application. But finally I got it working and thought I could be a good post. To configure this I took some help form gusto’s blog and google (as usual). So, Lets do it now without spending more time.
First of all create a rails app and install tinyMCE rails plugin:
1) rails tinymce
2) script/plugin install git://github.com/kete/tiny_mce.git
3) rake tiny_mce:scripts:install
We will be using aspell utility to check spellings so install “aspell” first. You can do it by “apt-get install aspell” or “port install aspell”
Once it is done then add following two lines in your layout(application.html.erb):
1) <%= javascript_include_tiny_mce_if_used %>
2) <%= tiny_mce if using_tiny_mce? %>
Now consider that I have a Users controller and User model with a text field ‘about_me’, and I want to use tinymce with spellchecker for that field.
To convert about_me textarea(new user form) to tinyMCE, add following code to users controller:
**Please cross check that you have added(enabled) ’spellchecker’ in :plugins and added spellchecker button(I have added it in :theme_advanced_buttons2).
Now if you go to new user form you will see that about_me text area is replaced by tinymce editor with spellchecker button.
Now, add two more lines for spellchecker in above tinymce editor configuration:
1) :spellchecker_languages => “+English=en” (english language)
2) :spellchecker_rpc_url => “/users/spellchecker” (rails url where spellchecking will be done)
So our final configuration will be look like:
Now download Spelling.rb, save it as spelling.rb in your rails lib dir and change ASPELL_PATH at line 7 according to your aspell installation.
Once it is done include this module(”include Spelling”) in application.rb or you controlller (here in our case users controller).
Now, create an action in named spellchecker in you controller(’users’):
Now, Type some thing in tinymce editor and click on spellchecker button. It will highlight misspelled words.

And when you click on highlighted misspelled word it will show suggessions.

Enjoy
August 8th, 2008
No Comments
Hey guys, Yesterday I did an interesting server configuration. Actually we had a rails app hosted on server which is using passenger(a.k.a mod_rails). This application can be access by going to http://domain.com . Also we had a wordpress running which could be access by going to http://blog.domain.com.
But, for SEO sake I had to change configuration so that wordpress can be access by http://domain.com/blog instead of http://blog.domain.com/
The problem was if I configure wordpress for http://domain.com/blog and go to this url, the request was handled by rails app because of domain.com virtualhost.
So what I did? I changed apache virtualhost configuration for http://blog.domain.com and http://domain.com as:
Also I created a symbolic link to wordpress installation directory under rails public folder(ln -s /var/www/html/wordpress /var/www/html/railsapp/blog).
I restarted apache and it worked fine. Wordpress was running at http://domain.com/blog and rails app was as http://domain.com/.
August 8th, 2008
No Comments