<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ruby on Saleem Ansari</title>
    <link>/tags/ruby/</link>
    <description>Recent content in Ruby on Saleem Ansari</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>(c) 2024 Saleem Ansari</copyright>
    <lastBuildDate>Mon, 30 Jun 2014 05:00:48 -0700</lastBuildDate>
    <atom:link href="/tags/ruby/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Machine Learning with Ruby</title>
      <link>/2014/06/30/machine-learning-with-ruby/</link>
      <pubDate>Mon, 30 Jun 2014 05:00:48 -0700</pubDate>
      <guid>/2014/06/30/machine-learning-with-ruby/</guid>
      <description>This post is about the talk I was supposed to give at Ruby Camp 2014, Delhi/NCR. After all the preparation, slides and code I missed it. Unfortunately, I fell sick overnight and I couldn&amp;rsquo;t make it. Apologies for that.&#xA;The best I could do is upload all the material online on GitHub and my website.&#xA;the code is on GitHub at this repository: tuxdna/rubyml. the generated slides are also online here Thats all!</description>
    </item>
    <item>
      <title>A bug in RPM ? ( for rubygem-sprockets and rubygem-tilt )</title>
      <link>/2012/03/05/a-bug-in-rpm-for-rubygem-sprockets-and-rubygem-tilt/</link>
      <pubDate>Mon, 05 Mar 2012 00:00:00 +0000</pubDate>
      <guid>/2012/03/05/a-bug-in-rpm-for-rubygem-sprockets-and-rubygem-tilt/</guid>
      <description>I packaged Rails 3.1.0 and its dependencies few days back for Fedora 16. The repository configuration file is as below:&#xA;[rails3] name=rails3 baseurl=http://tuxdna.fedorapeople.org/packaging/rubygems/f16/ enabled=1 gpgcheck=0 Now when I installed Rails 3.1.0, I got into a in issue:&#xA;$ sudo yum install rubygem-rails-3.1.0 ...OUTPUT SKIPPED... --&amp;gt; Running transaction check ---&amp;gt; Package rubygem-polyglot.noarch 0:0.3.3-1.fc16 will be installed ---&amp;gt; Package rubygem-sprockets.noarch 0:2.0.3-1.fc16 will be installed --&amp;gt; Processing Dependency: rubygem(tilt) &amp;lt; 1.3.0 for package: rubygem-sprockets-2.</description>
    </item>
    <item>
      <title>Problems with Ruby GEM to RPM</title>
      <link>/2012/03/04/problems-with-ruby-gem-to-rpm/</link>
      <pubDate>Sun, 04 Mar 2012 00:00:00 +0000</pubDate>
      <guid>/2012/03/04/problems-with-ruby-gem-to-rpm/</guid>
      <description>I can&amp;rsquo;t emphasize more the importance of packaging RPMs ( or any other packaging system ), as I already did it in an earlier post.&#xA;Same arguments apply to Ruby Gems as well. That is to say, Ruby Gems already have a gem command to install and update packages. However it is still not a complete packaging system in itself.&#xA;Consider the situation where you need to install a gem called A which dependes on B and C.</description>
    </item>
    <item>
      <title>Ruby GEM to RPM all in one go</title>
      <link>/2012/02/22/ruby-gem-to-rpm-all-in-one-go/</link>
      <pubDate>Wed, 22 Feb 2012 00:00:00 +0000</pubDate>
      <guid>/2012/02/22/ruby-gem-to-rpm-all-in-one-go/</guid>
      <description>This is my first attempt at building RPM packages for Ruby GEMS. https://gist.github.com/1885411&#xA;Requirements:&#xA;yum install rpmdevtools yum install ruby rubygems rubygem-gem2rpm How to run:&#xA;$ ruby make_rpms.rb -t ~/tmp/rpm-gem-packaging/ -n mechanize -r 2.2.1 This will download the gem and dependencies and generate SRPM and RPM files in the following folder:&#xA;~/tmp/rpm-gem-packaging/rpmbuild/ NOTE: The status of SUCCESS and FAILURE can be seen in the file:&#xA;~/tmp/rpm-gem-packaging/rpmbuild/status.txt Check for RPM and SRPM files which were generated:</description>
    </item>
    <item>
      <title>JRuby on Rails with RVM ( on Fedora )</title>
      <link>/2012/01/29/jruby-on-rails-with-rvm-on-fedora/</link>
      <pubDate>Sun, 29 Jan 2012 00:00:00 +0000</pubDate>
      <guid>/2012/01/29/jruby-on-rails-with-rvm-on-fedora/</guid>
      <description>First install RVM and set it up:&#xA;sudo yum install rubygem-rvm rvm-install To include RVM into your bash shell, add following line to ~/.bashrc:&#xA;[[ -s &amp;#34;$HOME/.rvm/scripts/rvm&amp;#34; ]] &amp;amp;&amp;amp; . &amp;#34;$HOME/.rvm/scripts/rvm&amp;#34; # This loads RVM into a shell session. Now install JRuby and use it as default Ruby interpreter:&#xA;source ~/.bashrc rvm install jruby-1.5.6 rvm use jruby-1.5.6 Setup Rails environment:&#xA;gem install rails gem install bundler Lets create a new Rails application:</description>
    </item>
    <item>
      <title>Potential bug in Ruby bindings of Apache Qpid</title>
      <link>/2012/01/14/potential-bug-in-ruby-bindings-of-apache-qpid/</link>
      <pubDate>Sat, 14 Jan 2012 00:00:00 +0000</pubDate>
      <guid>/2012/01/14/potential-bug-in-ruby-bindings-of-apache-qpid/</guid>
      <description>I wanted to experiment with Ruby bindings of Apache Qpid.&#xA;Lets install the the server and client:&#xA;$ sudo yum install qpid-cpp-server ruby-qpid qpid-tools $ service qpidd start Now check which version of Ruby bindings have we installed here:&#xA;$ rpm -qi ruby-qpid Name : ruby-qpid Version : 0.8 Release : 2.fc15 Architecture: x86_64 Install Date: Fri 13 Jan 2012 06:21:55 PM IST Group : Development/Ruby Size : 219877 License : ASL 2.</description>
    </item>
    <item>
      <title>Turbocharge your Emacs for Ruby on Rails with rinari and rails-reloaded</title>
      <link>/2011/11/12/turbocharge-your-emacs-for-ruby-on-rails-with-rinari-and-rails-reloaded/</link>
      <pubDate>Sat, 12 Nov 2011 00:00:00 +0000</pubDate>
      <guid>/2011/11/12/turbocharge-your-emacs-for-ruby-on-rails-with-rinari-and-rails-reloaded/</guid>
      <description>Rinari is an Emacs minor mode that is aimed towards making Emacs into a top-notch Ruby and Rails development environment.&#xA;Rails reloaded is the minor mode for editing Ruby On Rails code with Emacs. This minor mode makes your work much easier and user friendly.&#xA;Lets first install rinari:&#xA;cd ~/.emacs.d/ git clone git://github.com/eschulte/rinari.git cd rinari git submodule init git submodule update ( Curious about git submodules? Read here http://book.git-scm.com/5_submodules.html )</description>
    </item>
    <item>
      <title>Ruby Code Snippets</title>
      <link>/2007/09/22/ruby-code-snippets/</link>
      <pubDate>Sat, 22 Sep 2007 00:00:00 +0000</pubDate>
      <guid>/2007/09/22/ruby-code-snippets/</guid>
      <description>Code:&#xA;Time.at(Time.local(2007, 10, 5)-Time.now).strftime(&amp;quot;%d days %H hours %M minutes and %S seconds&amp;quot;) </description>
    </item>
    <item>
      <title>Finding duplicate files on your system?!</title>
      <link>/2007/09/04/finding-duplicate-files-on-your-system/</link>
      <pubDate>Tue, 04 Sep 2007 00:00:00 +0000</pubDate>
      <guid>/2007/09/04/finding-duplicate-files-on-your-system/</guid>
      <description>I ( and many others ) have a lot media files ( mp3, jpg, avi, etc. ) lying around in the system. I wondered that how shall I get the list of all the duplicate files lying in my computer. Writing a script in Ruby which identifies the duplicate files using the MD5 hash values of the files contents, was no difficult a task. Here is the script.&#xA;#!/usr/bin/ruby ## This file finds all the duplicate files form a directory given ## at the command line.</description>
    </item>
    <item>
      <title>Learning Ruby</title>
      <link>/2007/09/04/learning-ruby/</link>
      <pubDate>Tue, 04 Sep 2007 00:00:00 +0000</pubDate>
      <guid>/2007/09/04/learning-ruby/</guid>
      <description>Ruby - The Programming Language&#xA;Here a few links that are good as a first look while learning Ruby.&#xA;General:&#xA;http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml http://www.ruby-lang.org/ http://www.37signals.com/ http://www.ruby-doc.org http://api.rubyonrails.com/ http://www.ruby-forum.com/ http://www.rubyforums.com/forumdisplay.php?f=1 http://www.sitepoint.com/forums/forumdisplay.php?f=227 http://railsforum.com/ http://www.rubyinside.com/ http://redhanded.hobix.com/ http://www.rubyist.net/~matz/ http://www.planetrubyonrails.com/ :symbols in Ruby&#xA;http://glu.ttono.us/articles/2005/08/19/understanding-ruby-symbols http://onestepback.org/index.cgi/Tech/Ruby/SymbolsAreNotImmutableStrings.red Writing daemons&#xA;http://daemons.rubyforge.org/classes/Daemonize.html more to come&amp;hellip;</description>
    </item>
  </channel>
</rss>
