Working as a Rails Contributor

2011
08.03

Finally, I got the time to write something about my Rails Contributions. I have started contributing in April 2011. In start i usually do some test cases fixes and some updates.

After sometime i found that if you are using JRuby as a platform then you need to customize your template after generation. Or you need to use some custom template with -m option to customize your application.

I started digging into the Rails code base and i found that it can be added easily. Then… I just added and my pull request got accepted. wOOOttt!!

But that for master that means the feature will come in Rails 3.1 so after that i done some commits into 3-0-stable branch and yeah.. that feature is coming in Rails 3.0.10.

It’s really great to talking those guys on github. Specially when they ask you to change something which you have written wrong.

After that i started contributing in Rails more and more. It helps me to understand internal code and the basics of Ruby.

In recent we organized two bugmashs and we were the part of global Rails Hackfest. It was really very good. Enjoyed. Learnt a lot.

I am a part of BangaloreRubyUserGroup which helps a lot.

 

Cheers,

Arun

@arunagw

Working With Mongoid Team

2011
07.03

It’s long time i am writing again Blog. I am very happy that i have started working with Mongoid dev team.

Mongoid is a gem written in Ruby for MongoDB use.

MongoDB is a NoSQL database.

It’s great to work with open source project as a core member.

Mongoid Organization https://github.com/mongoid

Mongoid Gem : https://github.com/mongoid/mongoid

Mongoid Doc : http://mongoid.org

 

 

 

Certified Scrum Master

2011
01.14

I have completed my certificate in Scrum Master. Completed training and evaluation.

Now i am Certified Scrum Master.

Cheers,

Arun

Scrum Master Arun Agrawal

ErrorApp Application

2011
01.12

Hi All,

We have done a WebApp which is useful to track exceptions coming from your Rails Application.

You can checkout this App. ErrorApp

This app will notify you when any error occur in your Application and you can start looking into them.

It keeps track of your exceptions and let you know the full backtrace, environment information and many more details to figure out the problem.

You can add project as much you want.

Currently this application can work with Ruby on Rails application. Later on we can use this with any language.

Currently we are looking to catch Java projects error. Source

We want you guys to give us feedback about ErrorApp

Feel free to ask any question to me at  arun(at)errorapp.com

Cheers,

Arun

Creating Documents, MongoDB — 2

2010
11.22

Inserts are the basic method for adding data to MongoDB. To insert a document into a collection, use the collection’s insert method:

> db.foo.insert({"bar" : "baz"})

My Android Apps

2010
11.21

Started using AppBrain for my Android phone.

AppBrain is a cool way to sync apps on android.

Check out my apps on AppBrain: http://www.appbrain.com/user/arunagw

Using DropBox

2010
11.21

Hi,

I am using DropBox from last year. Very good storage program. Syncing between devices is awesome. No dependent on operating system. You can use what ever you want to use. Everything will be synced.

They have free plans in which you will get 2GB online free storage.

Check this out DropBox

MongoDB — 1

2010
11.19

Hi,

I have started using MongoDB for my projects.

MongoDB is a powerful, flexible, and scalable data store. It combines the ability to scale out with many of the most useful features of relational databases, such as secondary indexes, range queries, and sorting. MongoDB has built-in support for MapReduce-style aggregation and geospatial indexes

Using DreamHost now for blogs and hosting

2010
11.19

Hi,

Just switch to Dreamhost for my new hosting provider. These guys are good if you are looking for a good hosting.

Dreamhost provides me to create unlimited shell accounts so my friends also can use this for their blogs.

Check this out..!!!

You can use my email address in refer page. it’s arunagw at gmail.com

Or you can follow this link http://www.dreamhost.com/r.cgi?550551

Method Visibility: Public, Protected, Private

2010
10.25

Instance methods may be publicprivate, or protected.

Methods are normally public unless they are explicitly declared to be private or protected. One exception is the initialize method, which is always implicitly private. Another exception is any “global” method declared outside of a class definition—those methods are defined as private instance methods of Object. A public method can be invoked from anywhere—there are no restrictions on its use.

A private method is internal to the implementation of a class, and it can only be called by other instance methods of the class (or, as we’ll see later, its subclasses). Private methods are implicitly invoked on self, and may not be explicitly invoked on an object. If m is a private method, then you must invoke it in functional style as m. You cannot write o.m or even self.m.

A protected method is like a private method in that it can only be invoked from within the implementation of a class or its subclasses. It differs from a private method in that it may be explicitly invoked on any instance of the class, and it is not restricted to implicit invocation on self. A protected method can be used, for example, to define an accessor that allows instances of a class to share internal state with each other, but does not allow users of the class to access that state.

Using git revert

2010
10.05

Hi,

We are doing revert our code in different different ways.

The basic way of doing this using git revert command.

The git revert commit command is substantially similar to the command git cherry-pic commit with one important difference: it applies the inverse of the given commit. Thus, this command is used to introduce a new commit that reverses the effects of a given commit.

My Current master status

A => B => C => D => E

If we are reverting commit D

Then it will become

A => B => C => D => E => D”

Here D” is the commit reverse of D


Arun

Rake Migration

2010
10.01

Hi,

I have started working on a plugin which helps rails projects to maintain the list of rake tasks.

Here what i am doing is we are maintaining files using version numbers.

As one rake command will tell us what is left to be run in a team environment.

Suppose i have written a rake task or some ruby code to be execute on the db in a order.

Other team member also want’s to run that task on their DB and as well as on production environments.

What this plugin is doing is, when you want to add some ruby code or want’s to run some ruby code in a sequence.

Just create an empty ruby file using rake migration generator and add ruby stuff there.

if you have migrate that file into the DB. Which means that you have applied that ruby code into your environments. Other developer can take your changes and just migrate those things in their DB also.

Idea is same like as DB Migrations are working.

Here is the URL for plugin

http://github.com/arunagw/rake_migration

This plugin is under development currently.

Cheers,

Arun Agrawal

Missing my iphone badly…Died…

2010
09.14

Missing my iphone badly…Died in from of me ;(

Fake Nexus One browsing fake E…

2010
09.02

Fake Nexus One browsing fake Engadget http://bit.ly/dqkGr4

From Bengaluru http://frombeng…

2010
08.27

From Bengaluru http://frombengaluru.com