This year I attended RubyConf India which was extremely awesome to say the least. I interacted with great programmers and got to learn many new techniques to get most out of this spectacular programming language.
One of my favourite takeaway from Conference was Test Driven Development (TDD), which was showcased by Jim Weirich, creator of Rake. You can take a look at the keynote in this video.
After deploying an Application, I have to at times do repetitive things like running a rake job, mailing me the log file, clearing the logs, sending newsletter every friday, etc. These are basically some commands I have to run on a regular basis. Running them manually for sometime is great as it allows us to iron out all the errors, but after it stabilizes, there is no reason for us to be doing it manually again and again.
What we need is a way to automate these tasks, which needs to be triggered at specific amounts of time. The most common way of doing this is to use cron, which is available on most UNIX-based (Linux, Mac for example) systems. Continue reading →
So, Rails 4 release candidate 1 has been released and I wanted to get a feel of how different things were in it. So, I made a small trivial app to get the feel of changes with which I have to deal with.
Remember I made a game 2 years ago just to get the feel of what Android platform was? Well, the game didn’t really take off back then but it seems to be creating (a very little) buzz right now. And why not, after all it did get featured at YourStory. :D
I have no image to show so here is the video on how to play the game!
Finally, I have completely ported my workspace for PollDaal from Windows to Ubuntu. Windows is great, I have nothing against it, it just does not adjust well with Rails and the community is mostly on Unix based Operating System, thus making me search for any sort of errors for hours and hours because the first solution (and the continuing copy cat articles) assume you to be on Linux or Mac. So, after my 6th wubi installation, here I am, taming the might lion in the form of Ubuntu (12.04, Precise Pangolin).
Now, there are many ways to install Ruby on Ubuntu but the easiest and most efficient one which I found was to use RVM. Trust me, you’ll love it! (Otherwise, trust me, I am an engineer, I know my shit, well, sorta..)
So, in past few days, I got requests from people to offer a Quiz type question at PollDaal. Being a nice fellow as I am (Modesty at its best!), I listened to them and started looking for ways to do it elegantly in Rails 3. After searching for a bit here and there, I got to know about polymorphic associations could be my saviour. I had learned earlier what they were but that was that. I quickly forgot them and thus they never came in my mind. So, someone said, teaching stuff makes you remember it. Thus, here I present, Polymorphic Associations 101 (kinda).
If you’re based in Jaipur, you’d know how difficult it is to find people in the Web industry. I personally know at most 10 people who could make a website or design a website or have even a little knowledge about the internet industry. For most of the people, internet is pretty much restricted to Facebook. Thus, in a city dominated by jewelers, how do you wish to network and connect with people of the – buzzword alert – startup ecosystem? Thus, to sustain and improve whatever ecosystem we have, I am trying to make a group of people who are trying or wish to create successful online products.
Finally, I was able to put online my long awaiting Ruby on Rails application. It’s currently in very primitive stage. What it does is allows you to create public polls for people to answer on. Very simple idea, nothing universe denting about it. The site is currently live at atulyalabs.com. Go ahead, make a account and give it try. Don’t forget to share your experience or feedback with me!