Its all about Ruby On Rails
Terminate called after throwing an instance of ‘int’
Ever faced “terminate called after throwing an instance of ‘int’ ” error in RubyOnRails?
or
Specially on linux machine only not on windows.
Error occurred specially when dealing with some image handling, or with attachment_fu.
The cause of this error is image_science 1.1.3 . Add :processor => “Rmagick” to has_attachment options and get rid of this problem.
Enjoy!!!
No trackbacks yet.
11 Things to Consider Before Deploying Your Rails Application
November 16, 2009 - 5:21 pm
Tags: deploy, deployment, Rails, ROR, Rubyonrails, server, Tips
Posted in ROR, Rails, Rubyonrails, deploy, deployment, vinsol | 1 comment
Cross Posted from http://vinsol.com/blog
At VinSol, we have been developing and deploying Rails applications for more than four years. During this period, we have identified some best practices that we prefer to follow while deploying rails application to production server.
Below is the checklist of these practices:
1. Ensure that NS records [...]
Change timezone of ubuntu machine from command line
July 15, 2009 - 9:17 pm
Tags: hosting, server, Tips, Trick, tricks, ubuntu
Posted in bash, hosting, ubuntu | 7 comments
If you guys want to change timezone of your ubuntu machine then you can do it by issuing:
dpkg-reconfigure tzdata
This may be helpful if you deal with servers.
Hassle free installation of rails stack on debian based system
February 23, 2009 - 10:04 pm
Tags: debian, hosting, linode, Rails, rails stack, ROR, ruby, Rubyonrails, server, slicehost, Tips, tricks
Posted in ROR, Rails, Rubyonrails, Tips, deploy, ruby, tricks | 5 comments
Want to install rails stack on a machine? Just follow these steps. It will setup a rails stack(Apache + passenger + mysql + ruby + rubygems + common gems + git) on any server(debian based)
apt-get update
apt-get upgrade -y
apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev
apt-get -y install mysql-server libmysqlclient15-dev mysql-client
apt-get -y install [...]
ActionMailer Error: hostname was not match with the server certificate
January 28, 2009 - 1:20 pm
Tags: Action mailer, Exception, Postfix, Rails, ROR, ruby, Rubyonrails, Tips, tls, tricks
Posted in ActionMailer, Exception, Postfix, ROR, Rails, Rubyonrails, Tips, ruby, tricks | 4 comments
You guys may have stuck with following error while using ActionMailer with Rails 2.2.2 .
OpenSSL::SSL::SSLError (hostname was not match with the server certificate):
/usr/lib/ruby/1.8/openssl/ssl.rb:123:in `post_connection_check’
/usr/lib/ruby/1.8/net/smtp.rb:582:in `tlsconnect’
/usr/lib/ruby/1.8/net/smtp.rb:562:in `do_start’
/usr/lib/ruby/1.8/net/smtp.rb:525:in `start’
/vendor/rails/actionmailer/lib/action_mailer/base.rb:671:in `perform_delivery_smtp’
/vendor/rails/actionmailer/lib/action_mailer/base.rb:526:in `__send__’
[...]
Exceptional: Another rails application exception tracking application
October 24, 2008 - 11:15 am
Tags: Error, Exception, Exception Handelling, Notification, Rails, ROR
Posted in Exception, Hoptoad, ROR, Rails, Rubyonrails, exception tracking, exceptional, hosting, rails_plugin, ruby | No comments
Some days ago I found HopToad, as a subtitute of exception notifier plugin. Now, today I found another rails exception tracking application named Exceptional. Hoptoad is free while exceptional is paid.
Hoptoad: A Rails Exception Handling Service
August 12, 2008 - 4:01 pm
Tags: Exception, Exception Handelling, Rails, ROR, Rubyonrails
Posted in Exception, Hoptoad, ROR, Rails, Rubyonrails, hosting, notifications, ruby | 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 [...]
Git Error: trailing whitespace, indent SP followed by a TAB, unresolved merge conflict
I have been using Git from last few days, and faced following errors while committing:
1) Trailing whitespace
2) Indent SP followed by a TAB
3) Unresolved merge conflict
The first error “Trailing whitespace” is because of carriage-return/line-feed(windows style line feed/end). To resolve this problem comment following lines(58-60) in .git/hooks/pre-commit file:
if (/\s$/) {
bad_line("trailing [...]
Deploying rails application with pound as a Balancer
September 13, 2007 - 6:10 pm
Tags: deploy, pound, Rails, ROR, Rubyonrails, server, Tips
Posted in ROR, Rails, Rubyonrails, balancer, deploy, deployment, pound | 5 comments
Now a days Apache + mod_proxy + mongrel_clusters, Lighttpd + Mongrel cluster and Nginx + mongrel cluster are well known for deploying rails applications.
You can also deploy your rails application with pound(a reverse proxy, load balancer and HTTPS front-end for Web server).
First you need to setup mongrel_clusters for your rails application by issuing ” mongrel_rails [...]
Acts_as_solr: Starting solr server on windows
September 13, 2007 - 2:24 pm
Tags: Rails, ROR, ruby, Rubyonrails, server, solr, Tips, tricks
Posted in ROR, Rails, Rubyonrails, acts_as_solr, full text search, rails_plugin, ruby, solr | 25 comments
I was using acts_as_searchable for one of my project, which uses Hyperestraier in background. Yesterday I decided to use acts_as_solr which uses solr(based on Lucene Java search library). I did all written in its Manual/Readme, but when I issued
rake solr:start
to start the solr server, it threw a heart breaking “Bad file descriptor” error, although acts_as_solr [...]
Careful while using Exception Notifier Plugin
July 26, 2007 - 9:01 pm
Tags: Exception, Exception Handelling, Notification, Rails, rails_plugin, Rubyonrails, Tips
Posted in Exception, ROR, Rails, Rubyonrails, notifications, rails_plugin | 10 comments
Exception Notifier Plugin can make you crazy as it made me yesterday.
Let me explain, I was using this plugin for one of my project and our server got a DOS attack. We were requested some URLs that doesn’t exists, like http://somedomain.com/game.rar etc… . I had registered my gmail account to get notification mails. And due [...]
November 24, 2008 - 7:41 pm
That’s an uncaught C++ exception. I’m guessing that something in ImageMagick threw up. But as for why, I don’t know. A bug maybe? Try debugging it in gdb.