05
Oct 13

Setting up a Rakefile for TDD

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.

Continue reading →

Share

29
Sep 13

Scheduling jobs using cron in Rails 4

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 →

Share

28
May 13

Deploying Rails 4 to VPS and fixing some problems

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.

Continue reading →

Share

13
May 13

Surprise surprise!

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!

Continue reading →

Share

28
Feb 13

Why Google+ sign up is a good thing

Google recently announced the Google+ sign in button which is very similar to the FB Connect button. So, why will the Google+ sign in be a better option than FB Connect?

Continue reading →

Share

04
Jan 13

Easy way to organize Ruby Gems using RVM Gemsets

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..)

Continue reading →

Share

30
Dec 12

Rails 3 polymorphic associations explained (somewhat)

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).

Continue reading →

Share

19
Dec 12

Announcing, PollDaal

As many people know, I have been working on a project by the name of PollDaal. I’d like to announce, today, I’ve made enough to give a demo of this project.

 

Continue reading →

Share

03
Dec 12

First “Startup Jaipur” Meetup

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.

Continue reading →

Share

16
Nov 12

Enjoying pushing code to a live server!

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!

Share