<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-5025614511371353046</atom:id><lastBuildDate>Sun, 15 Sep 2024 04:48:23 +0000</lastBuildDate><category>rails</category><category>Linux</category><category>gem</category><category>IBM</category><category>action-mailer</category><category>activerecord</category><category>aptitude</category><category>blogpost</category><category>git</category><category>gmail</category><category>image_science</category><category>jekyll</category><category>mysql</category><category>static website</category><category>ubuntu</category><title>Open Source Rocks!</title><description>Do the new.....</description><link>http://blog.arunprasath.in/</link><managingEditor>noreply@blogger.com (All about programming)</managingEditor><generator>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5025614511371353046.post-6290797330800880538</guid><pubDate>Fri, 14 May 2010 16:17:00 +0000</pubDate><atom:updated>2010-10-22T11:09:42.595+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">activerecord</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">rails</category><title>ActiveRecord Bulk Insertion of data in rails</title><description>why we go for bulk insertion?&lt;br /&gt;&lt;br /&gt;You take one scenario like there is a loop which insert a record each time it runs. For each and every time it will run a Insert SQL statement for creating the record. You no need to care if it is small number of data. You take millions of record then it will definitely get into performance degradation and slow up your application. So in this case you should have something for bulk insertion.&lt;br /&gt;&lt;br /&gt;Solution for Bulk Insert:&lt;br /&gt;&lt;br /&gt;When I am looking for bulk insertion of data with activerecord, I got an excellent and efficient way of doing bulk insertion.You may heard of Activerecord::Extensions which gives you the API for bulk insertion. &lt;br /&gt;&lt;br /&gt;Step 1:&lt;br /&gt;&lt;br /&gt;First install gem&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;sudo gem install ar-extensions&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;step 2:&lt;br /&gt;&lt;br /&gt;Include this gem in your model&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;include ar-extensions&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Step 3:&lt;br /&gt;&lt;br /&gt;Usage : Model.import(columns,values,options)&lt;br /&gt;&lt;br /&gt;:columns =&gt; array of column identifier&lt;br /&gt;:values =&gt; array of values&lt;br /&gt;:options =&gt; hash of options&lt;br /&gt; &lt;br /&gt;If your model is employee.rb&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;columns = [emp_id, emp_name, emp_address, emp_dob]&lt;br /&gt;values = [[1, abc, def, &#39;2010-01-01&#39;],[2, foss, texas, &#39;2009-01-01&#39;],[3, xyz, mno, &#39;2008-01-01&#39;],[4, sammy, NYC, &#39;2007-01-01&#39;],......... etc.] (you can add millions of record data)&lt;br /&gt;&lt;br /&gt;Employee.import(columns, values)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;options:&lt;br /&gt;&lt;br /&gt;:validate =&gt; true|false default : true. if it is false then it won&#39;t use validations&lt;br /&gt;&lt;br /&gt;:on_duplicate_key_update =&gt; Array|Hash – this tells import to use the associated Array or Hash to update rows where a duplicate key already exists. This is specific MySQL&lt;br /&gt;&lt;br /&gt;:ignore =&gt; true|false – this tells import to issue a “INSERT IGNORE” when running each SQL statement. This is useful when you are importing mass amounts of records and you don’t care if MySQL finds duplicate entries.&lt;br /&gt;&lt;br /&gt;While using this import API you can reduce the data insertion time. I was more surprised with speed when using import API. I hope you also get surprised by using bulk insert.&lt;br /&gt;&lt;br /&gt;References - &lt;a href=&quot;http://www.continuousthinking.com/are/import&quot;&gt;http://www.continuousthinking.com/are/import&lt;/a&gt;</description><link>http://blog.arunprasath.in/2010/05/activerecord-bulk-insertion-of-data-in.html</link><author>noreply@blogger.com (All about programming)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5025614511371353046.post-5197989269560822113</guid><pubDate>Fri, 18 Dec 2009 17:50:00 +0000</pubDate><atom:updated>2010-02-04T00:22:37.976+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">aptitude</category><category domain="http://www.blogger.com/atom/ns#">Linux</category><title>Aptitude Package search in Linux</title><description>We can search the packages available in the synaptic package manager without accessing Synaptic Manger GUI mode.&lt;br /&gt;&lt;br /&gt;In Terminal&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$sudo aptitude search package name&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It will gives you the package list which contains your package name. It also tells you whether this package is installed in your machine or not.&lt;br /&gt;&lt;br /&gt;Installed Package - starts with &#39;i&#39;&lt;br /&gt;Not installed Package - starts with &#39;p&#39;&lt;br /&gt;&lt;br /&gt;for eg.,&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;sudo aptitude search firefox-3&lt;br /&gt;i A firefox-3.0                                                            - safe and easy web browser from Mozilla                                          &lt;br /&gt;i A firefox-3.0-branding                                                   - Package that ships the firefox branding                                         &lt;br /&gt;p   firefox-3.0-dev                                                        - Development files for Mozilla Firefox                                           &lt;br /&gt;p   firefox-3.0-dom-inspector                                              - dummy upgrade package for firefox-3.0-dom-inspector -&gt; xulrunner-1.9-dom-inspect&lt;br /&gt;p   firefox-3.0-gnome-support                                              - Support for Gnome in Mozilla Firefox                                            &lt;br /&gt;p   firefox-3.0-venkman                                                    - dummy upgrade package for firefox-3.0-venkman -&gt; xulrunner-1.9-venkman          &lt;br /&gt;p   firefox-3.1                                                            - dummy upgrade package for firefox-3.1 -&gt; firefox-3.5                            &lt;br /&gt;p   firefox-3.1-branding                                                   - dummy upgrade package for firefox-3.1 -&gt; firefox-3.5                            &lt;br /&gt;p   firefox-3.1-dbg                                                        - dummy upgrade package for firefox-3.1 -&gt; firefox-3.5                            &lt;br /&gt;p   firefox-3.1-dev                                                        - dummy upgrade package for firefox-3.1 -&gt; firefox-3.5                            &lt;br /&gt;p   firefox-3.1-gnome-support                                              - dummy upgrade package for firefox-3.1 -&gt; firefox-3.5                            &lt;br /&gt;i   firefox-3.5                                                            - safe and easy web browser from Mozilla                                          &lt;br /&gt;i A firefox-3.5-branding                                                   - Package that ships the firefox branding                                         &lt;br /&gt;p   firefox-3.5-dbg                                                        - firefox-3.5 debug symbols                                                       &lt;br /&gt;p   firefox-3.5-dev                                                        - Development files for Mozilla Firefox                                           &lt;br /&gt;p   firefox-3.5-gnome-support                                              - Support for Gnome in Mozilla Firefox                                            &lt;br /&gt;&lt;/blockquote&gt;</description><link>http://blog.arunprasath.in/2009/12/aptitude-search-in-linux-terminal.html</link><author>noreply@blogger.com (All about programming)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5025614511371353046.post-4847856709221904499</guid><pubDate>Thu, 17 Dec 2009 13:46:00 +0000</pubDate><atom:updated>2009-12-18T23:20:27.590+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">IBM</category><category domain="http://www.blogger.com/atom/ns#">Linux</category><title>IBM&#39;s Mainframe Machine Dresses up with Linux</title><description>IBM&#39;s new system uses IBM&#39;s specialty Linux processor and runs either Novell SUSE or Red Hat systems. They are not using mainframe operating system z/OS but includes mainframe management software as well as IBM&#39;s z/Virtual Machine system on that machine. So IBM Machines are going to rock with Linux...&lt;br /&gt;&lt;br /&gt;Details from &lt;br /&gt;&lt;a href=&quot;http://www.computerworld.com/s/article/9142007/IBM_s_newest_mainframe_is_all_Linux_&quot;&gt;http://www.computerworld.com/s/article/9142007/IBM_s_newest_mainframe_is_all_Linux_&lt;/a&gt;</description><link>http://blog.arunprasath.in/2009/12/ibms-mainframe-machine-dresses-up-with.html</link><author>noreply@blogger.com (All about programming)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5025614511371353046.post-1394105451430392144</guid><pubDate>Sat, 12 Dec 2009 17:58:00 +0000</pubDate><atom:updated>2009-12-12T23:54:50.436+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">git</category><title>git revert wrong commits</title><description>If you made any mistake in newly committed data then you can revert the git HEAD to previous commit.&lt;br /&gt;For that u have to run the command&lt;br /&gt;&lt;br /&gt;git revert --hard &lt;hash value of previous commit&gt;&lt;br /&gt;&lt;br /&gt;for eg.,&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$git revert --hard ab343n78&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;you can get this hash value in git log file for that you run this command&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$git log&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This shows you the Commit details in your local machine</description><link>http://blog.arunprasath.in/2009/12/git-revert-wrong-commits.html</link><author>noreply@blogger.com (All about programming)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5025614511371353046.post-4989487627150078773</guid><pubDate>Tue, 08 Dec 2009 12:58:00 +0000</pubDate><atom:updated>2009-12-12T23:21:41.363+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">blogpost</category><category domain="http://www.blogger.com/atom/ns#">jekyll</category><category domain="http://www.blogger.com/atom/ns#">static website</category><title>Using Jekyll - blog post for static website</title><description>Basically jekyll is the gem which is mainly used for blog aware and static web page generator.&lt;br /&gt;Jekyll follows its own directory structure and we can write it in any markup languages such as HTML, Textile or markdown etc.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;#Install Jekyll gem &lt;br /&gt;&lt;br /&gt;$ sudo gem install jekyll&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;You should have your website directory like&lt;br /&gt;&lt;br /&gt;|--_layout/&lt;br /&gt;|----default.html&lt;br /&gt;|--_post/&lt;br /&gt;|----2009-12-8-how-to-post-a-blog-using-jekyll.html&lt;br /&gt;|--css/&lt;br /&gt;|----style.css&lt;br /&gt;|--js/&lt;br /&gt;|--index.html&lt;br /&gt;|--_config.yml&lt;br /&gt;&lt;br /&gt;The configuration for jekyll as follows&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;#_config.yml&lt;br /&gt;&lt;br /&gt;destination: ./_site&lt;br /&gt;auto:        false     # for auto updation without restarting jekyll server&lt;br /&gt;lsi:         true      &lt;br /&gt;server_port: 4000      #port number for server&lt;br /&gt;permalink:   date      #Type of url generated for _posts&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The _layout/ folder contains the default layout for website and you can have multiple layouts&lt;br /&gt;&lt;br /&gt;The _post/ folder contains the blog post for your website Blog.&lt;br /&gt;&lt;br /&gt;The post file name should be in this format &quot;2009-12-8-how-to-post-a-blog-using-jekyll.html&quot;&lt;br /&gt;For reference &lt;a href=&quot;http://wiki.github.com/mojombo/jekyll/permalinks&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In terminal &lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;cd website/        #give project directory&lt;br /&gt;jekyll              #It creates the _site/ in your website folder&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;The _site/ folder has the static web pages with blog posts...&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;Layout page i.e default.html has html, head and body tags&lt;br /&gt;&lt;br /&gt;default.html:&lt;br /&gt;&lt;br /&gt;Inside Body tag contains &lt;br /&gt;&lt;blockquote&gt;{{ content }}&lt;/blockquote&gt;&lt;br /&gt;This will replace the content for each page..&lt;br /&gt;&lt;br /&gt;The Index.html looks like&lt;br /&gt;&lt;br /&gt;index.html&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;---&lt;br /&gt;layout: default&lt;br /&gt;title: Index Page&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;------ content for index page ----------&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;After runninng the jekyll all this convention are converted as static page.</description><link>http://blog.arunprasath.in/2009/12/using-jekyll-blog-post-for-static.html</link><author>noreply@blogger.com (All about programming)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5025614511371353046.post-8219114108187800151</guid><pubDate>Tue, 06 Oct 2009 12:20:00 +0000</pubDate><atom:updated>2009-12-12T23:48:33.949+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">action-mailer</category><category domain="http://www.blogger.com/atom/ns#">gmail</category><category domain="http://www.blogger.com/atom/ns#">rails</category><title>Rails ActionMailer gmail Configuration using SMTP</title><description>If u have RAILS_VERSION &gt;= 2.3.3 and RUBY VERSION &gt;= 1.8.7&lt;br /&gt;&lt;br /&gt;then you no need to install any tls plugin.... Just follow the below steps....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;You have to add the following Configuration settings in {RAILS_ROOT}/config/environment.rb for Gmail ..&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;config.action_mailer.raise_delivery_errors = true&lt;br /&gt;config.action_mailer.delivery_method = :smtp&lt;br /&gt;config.action_mailer.smtp_settings = {&lt;br /&gt;  :address  =&gt; &quot;smtp.gmail.com&quot;,&lt;br /&gt;  :port  =&gt; 587,&lt;br /&gt;  :domain  =&gt; &quot;gmail.com&quot;,&lt;br /&gt;  :user_name  =&gt; &quot;YourmailID@gmail.com&quot;,&lt;br /&gt;  :password  =&gt; &quot;password123&quot;,&lt;br /&gt;  :authentication  =&gt; :login,&lt;br /&gt;  :enable_starttls_auto =&gt; true       #This line is must to ensure the tls for Gmail&lt;br /&gt;}&lt;br /&gt;config.action_mailer.default_content_type = &quot;text/html&quot;&lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Step2&lt;/b&gt;&lt;br /&gt;Create mailer for your Project&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;#Type this in terminal&lt;br /&gt;&lt;code&gt; script/generator mailer &lt;your mailer name&gt; &lt;/code&gt;&lt;br /&gt;for eg.,&lt;br /&gt;&lt;code&gt; &lt;br /&gt;$ script/generator mailer Mailnotifier &lt;br /&gt;      exists  app/models/&lt;br /&gt;      create  app/views/mailnotifier&lt;br /&gt;      exists  test/unit/&lt;br /&gt;      create  test/fixtures/mailnotifier&lt;br /&gt;      create  app/models/mailnotifier.rb&lt;br /&gt;      create  test/unit/mailnotifier_test.rb&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Step 3&lt;/b&gt;&lt;br /&gt;Then you need to generate the mailer method for describing the mail content etc.,&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;&lt;br /&gt;$ script/generate mailer Mailnotifier notifier&lt;br /&gt;      exists  app/models/&lt;br /&gt;      exists  app/views/mailnotifier&lt;br /&gt;      exists  test/unit/&lt;br /&gt;      exists  test/fixtures/mailnotifier&lt;br /&gt;overwrite app/models/mailnotifier.rb? (enter &quot;h&quot; for help) [Ynaqdh] Y&lt;br /&gt;       force  app/models/mailnotifier.rb&lt;br /&gt;overwrite test/unit/mailnotifier_test.rb? (enter &quot;h&quot; for help) [Ynaqdh] Y&lt;br /&gt;       force  test/unit/mailnotifier_test.rb&lt;br /&gt;      create  app/views/mailnotifier/notifier.erb&lt;br /&gt;      create  test/fixtures/mailnotifier/notifier&lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Step 4&lt;/b&gt;&lt;br /&gt;Then your models/Mailnotifier.rb looks like&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;&lt;br /&gt;#models/Mailnotifier.rb&lt;br /&gt;&lt;br /&gt;class Mailnotifier &lt; ActionMailer::Base&lt;br /&gt;  def notifier(sent_at = Time.now)&lt;br /&gt;    subject    &#39;Notifier&#39;&lt;br /&gt;    recipients &#39;mailertest@gmail.com&#39;     # Give the recipients mailID&lt;br /&gt;    from       &#39;somemail@gmail.com&#39;       &lt;br /&gt;    sent_on    sent_at&lt;br /&gt;    body       :greetings =&gt; &#39;Hi,&#39;&lt;br /&gt;  end&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Step 5&lt;/b&gt;&lt;br /&gt;In views/mailnotifier/notifier.erb file you can format the mail content as you like....&lt;br /&gt;&lt;br /&gt;You Type this in your Terminal change directory to your rails application&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;&lt;br /&gt;$ script/console &lt;br /&gt;Loading development environment (Rails 2.3.4)&lt;br /&gt;&gt;&gt; Mailnotifier.deliver_notifier&lt;br /&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This will send You the mail to your recipients address... :)&lt;br /&gt;&lt;br /&gt;It Works Cool for me.....</description><link>http://blog.arunprasath.in/2009/10/ruby-on-rails-actionmailer.html</link><author>noreply@blogger.com (All about programming)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5025614511371353046.post-7450137119003545614</guid><pubDate>Sat, 19 Sep 2009 08:41:00 +0000</pubDate><atom:updated>2009-09-19T14:33:25.313+05:30</atom:updated><title>Argument Error (A copy of SectionsController has been removed from the module tree but is still active!)</title><description>U have seen this error frequently in rails 2.3.3.. So what u have do is just call your controller(which is shown in the ArgumentError) explicitly in your dependent controllers.&lt;br /&gt;&lt;br /&gt;Add this line on top inside the class:&lt;br /&gt;&lt;br /&gt;require &quot;&lt;controller_name&gt;_controller&quot;&lt;br /&gt;&lt;br /&gt;This will not throw the following error...&lt;br /&gt;&lt;br /&gt;ArgumentError (A copy of SectionsController has been removed from the module tree but is still active!):&lt;br /&gt;  app/controllers/sections_controller.rb:61:in `index&#39;&lt;br /&gt;  haml (2.2.2) lib/sass/plugin/rails.rb:19:in `process_without_compass&#39;&lt;br /&gt;  /usr/lib/ruby/gems/1.8/gems/chriseppstein-compass-0.8.8/lib/compass/app_integration/rails/action_controller.rb:7:in `process&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/server.rb:95:in `start&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/server.rb:92:in `each&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/server.rb:92:in `start&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/server.rb:23:in `start&#39;&lt;br /&gt;  /usr/lib/ruby/1.8/webrick/server.rb:82:in `start&#39;&lt;br /&gt; &lt;br /&gt;Rendered rescues/_trace (185.0ms)&lt;br /&gt;Rendered rescues/_request_and_response (0.5ms)&lt;br /&gt;Rendering rescues/layout (internal_server_error)</description><link>http://blog.arunprasath.in/2009/09/argument-error-copy-of.html</link><author>noreply@blogger.com (All about programming)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5025614511371353046.post-887423942383745518</guid><pubDate>Sat, 19 Sep 2009 08:36:00 +0000</pubDate><atom:updated>2010-01-20T15:17:16.788+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">gem</category><category domain="http://www.blogger.com/atom/ns#">rails</category><title>Gem command reference for Rails</title><description>I used this link for gem command reference.... I think this may useful to u...&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://rubygems.org/read/book/2&quot;&gt;http://rubygems.org/read/book/1&lt;/a&gt;</description><link>http://blog.arunprasath.in/2009/09/gem-command-reference-for-rails.html</link><author>noreply@blogger.com (All about programming)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5025614511371353046.post-3129549422612115762</guid><pubDate>Tue, 30 Jun 2009 11:08:00 +0000</pubDate><atom:updated>2010-01-20T15:18:22.674+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">gem</category><category domain="http://www.blogger.com/atom/ns#">image_science</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>How to Install the Image_science gems on hardy</title><description>&lt;p&gt;The Gem Image_science is depends on FreeImage and RubyInline.So we have to install these two packages first.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Step : 1&lt;br /&gt;&lt;br /&gt;Install FreeImage First from source:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;1 sudo apt-get install build-essential&lt;br /&gt;2 cd ~/sources&lt;br /&gt;3 wget http://ftp.cica.es/ubuntu/ubuntu/pool/universe/f/freeimage/freeimage_3.9.3.orig.tar.gz&lt;br /&gt;4 tar -xvf freeimage_3.9.3.orig.tar.gz&lt;br /&gt;5 cd freeimage-3.9.3.repacked/FreeImage&lt;br /&gt;6 make &lt;br /&gt;7 sudo make install&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Step : 2&lt;br /&gt;Install RubyInline as Gem&lt;br /&gt;&lt;code&gt;&lt;br /&gt;1 sudo gem install RubyInline -v 3.6.3&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Step : 3&lt;br /&gt;Install ImageScience as Gem&lt;br /&gt;&lt;code&gt;&lt;br /&gt;1 sudo gem install image_science&lt;br /&gt;&lt;/code&gt;</description><link>http://blog.arunprasath.in/2009/06/how-to-install-imagescience-gems-on.html</link><author>noreply@blogger.com (All about programming)</author><thr:total>1</thr:total></item></channel></rss>