Prathamesh Sonpatki

tail -f /var/log/prathamesh

Jul 15, 2019

How to (not) use unscoped in Rails

Active Record provides unscoped to remove all the scopes added to a model previously.class Article default_scope { where(published: true) } end Article.all # SELECT * FROM articles WHERE published = true Article.unscoped # SELECT

May 16, 2019

Insights from the SICP meetup

Insights from the SICP meetup

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.

Aug 16, 2015

Log notes while stopping Org timer

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