After my last post on how Ruby initializes objects, Sagar shared with me following code.class Abc attr_accessor :a, :b def self.new(a, b) @a = a @b = b end end o
Deep buried in Rails source code, there is a code snippet:class DeprecationProxy def self.new(*args, &block) object = args.first return object unless object super end ... end It was added 9
We organized a SICP reading meetup on 11th May in Pune. Our inspiration was similar meetup from our friends Siddharth and Soham in Mumbai. This was the second such meetup that we did.
Recently I updated Postgres.app and after that I started getting a weird error while running Active Record tests locally using PostgreSQL adapter./Users/prathamesh/Projects/sources/rails/activerecord/lib/active_record/connection_
I keep forgetting how to install eventmachine on El Capitan Mac OS X.So adding this post to lookup when required.$ gem install eventmachine -v '1.0.8' -- --with-cppflags=-I/usr/local/
Recently I started tracking the time I spent on various coding activities using Org mode. C-c C-x C-i is used to start the timer and C-c C-x C-o is used to stop the
I use web-mode for editing different templates like html, .erb, .js.jsx. It understands React’s JSX tags also which is great because I don’t need a separate mode just for JSX.
I was trying to upgrade Codetriage to use Ruby 2.2.0-preview, the latest Ruby version. The project is hosted on Heroku. So to upgrade I changed Ruby version in Gemfile:# Gemfile ruby
Today, my openssl library on Mac OS X Mavericks got updated. After the update, when i tried doing rails s on one of the rails apps, it gave following error:/Users/prathamesh/.rbenv/
I wanted to setup ruby source code on my machine. The source on Github has detailed instructions on how to do the setup.git clone github.com/ruby/ruby cd ruby autoconf ./configure
Recently i was bitten by this weirdness of BigDecimal in Ruby.BigDecimal.new excepts initial value and number of significant digits. In one of my app, BigDecimal.new was called with string initial
I was trying to setup flyspell mode on new Mac and whenever i doflyspell-buffer but Emacs was throwing error -Problem - Flyspell does not work with Emacs. Can't find ispell. Mac OS X