Tuesday, June 30, 2009

BitlaSoft 2nd Year Anniversary

This year too we had a great celebrations in our office for Bitlasoft's 2nd year Anniversary. This year we had a dark blue Jacket with a logo on the front side and punch line on the back side.

We had party with our family too. Nice enjoyment with all the quiz, Tambola, some silly questions, silly games :) .

We discussed all the cool things about the company. We wish all the best to all of us for a bright future of bitlasoft.

Friday, May 22, 2009

REST Client - Simply Test REST APIs

Our company prepared a new tool for testing the REST API's.
Using this you can Test the REST APIs.
GET, POST, PUT, HEAD, DELETE methods are supported.



Its very easy. Give the URL and select the method ex. "GET" and want to pass any parameters, you can also pass them.
Thats it!!
You will get the response.

Visit this link for a test. http://www.bitlasoft.com/tools/rest_client/
If you have any doubts you can mail to info@bitlasoft.com

Saturday, April 25, 2009

Ticket simply updates

I am very glad to say that we are increasing our customers for our lovely product ticketsimply(http://www.ticketsimply.com).

Right now these are list of customers for ticketsimply.

Seabird Tourists(http://www.seabirdtourists.com)
RoadLink India(http://www.roadlinkindia.com)
Sona Travels (http://sonatravels.in)
SR Konduskar(http://www.konduskarsr.com)
Manowj Travels(http://www.manowjtravels.com)
USL Bus(http://www.uslbus.com)
Shiva Express(http://www.shivaexpress.com)
Kiings Travels(http://www.kingstravels.in)
SRS Travels (http://www.srsbooking.com)

Hope we will be getting more and more customers.

Will update soon with some more customers list.

Clone in Ruby

Clone is help ful for the values changed in the object but not the complete object change.

Let me explain with an example.

take an array
arr1 = ["a", "b", "c", "d"]
let me initiliza arr1 to arr2
arr2 = arr1
puts arr2
=> ["a", "b", "c", "d"]


If I change arr1 values i.e.,
arr1[1] = "z"
puts arr1
=> ["a", "z", "c", "d"]

then see arr2
puts arr2
=> ["a", "z", "c", "d"]

#This wil get changed because the whole arr1 is pointed to one block of memory and the same arr2 is also pointing to the same block. You can check this.
arr1.id and arr2.id which will be same.
puts arr1.id
=> 40972250
puts arr2.id
=> 40972250

Suppose if you want arr2 as the previuos arr1 and arr1 should get changed?

Do this:

arr1 = ["a", "b", "c", "d"]
arr2 = arr1.clone
puts arr2
=> ["a", "b", "c", "d"]

arr1[1] = "z"
puts arr1
=> ["a", "z", "c", "d"]

puts arr2
=> ["a", "b", "c", "d"]



But if you change the whole arr1 to some other values then arr2 will not change.
Eg:
arr1 = ["a", "b", "c"]
arr2 = arr1
puts arr2
=> ["a", "b", "c"]

arr1 = ["z", "y", "x"]
puts arr2
=> ["a", "b", "c"]
arr2 will be same as old arr1 because arr1 memory locaton will be different after the new initilaization.

You can check this by arr1.id and arr2.id
In this case clone is not needed.



More about clone (copied from Ruby book(Dave Thomas, The Pragmatic Programmers))---

clone obj.clone -> anObject

Produces a shallow copy of obj---the instance variables of obj are copied, but not the objects they reference. Copies the frozen and tainted state of obj. See also the discussion under Object#dup .

class Klass
attr_accessor :str
end
s1 = Klass.new » #
s1.str = "Hello" » "Hello"
s2 = s1.clone » #
s2.str[1,4] = "i" » "i"
s1.inspect » "#"
s2.inspect » "#"

Tuesday, March 3, 2009

Mobee.in entered Press

This is really a good news for me at the time of my marriage. Mobee.in entered into press. Our CEO Dashratham Bitla has been interviewed for the press.

These are some of the links related to the press.

http://www.indiaprwire.com/print/?type=pressrelease&id=2009021119556

http://muralilistening.blogspot.com/2009/02/dasharatham-bitla.html

Saturday, February 21, 2009

My mariage Invitation

I have developed a website for my marriage. Its http://harishwedslavanya.info
I tried to post all teh details there it self also I tried to post an individual email to every one. Every one is invited to my marriage. The following is the invitation.


"Marriage is the union of two unknown souls, written at Heart


settled in Heaven and celebrated on Earth,


on moving wheels of life"

 



Solicit your esteemed presence with family and friends on the occasion of my marriage with

Lavanya




On Sunday the 1st March, 2009 @ 7:30 a.m.

at Sri Gokul Kalyana Mandapam A.C,


Eluru


Reception & Lunch

starts by 12 noon.





http://harishwedslavanya.info










Regards,

Harish

Saturday, December 20, 2008

Changes from Rails 1.2.3 to Rails 2.2.2

After a long time we have changed one of our project from Rails 1.2.3 to Rails 2.2.2 .
Steps to follow for migrating.

1. Get the latest Instant Rails
2. gem install rails (This will get the latest version (now its 2.2.2))
3. gem update --system (This will update your gems)
4. rake rails:freeze:edge (This will freeze your application to the new version. This will require svn installed)

Later start the server, then you will definitely face some problems with your old application.

The problems(with solutions) I faced while migrating are,

1. Error: undefined method `cache_template_extensions=' for ActionView::Base:Class

When you try to start the server, you will get this error.
cache_template_extensions is deprecated. so you need to remove config.action_view.cache_template_extensions = false in config/environments/development.rb

2.
*******************************************************************
* config.breakpoint_server has been deprecated and has no effect. *
*******************************************************************

This warning will appear, you need to remove config.breakpoint_server = true in development.rb

3. NameError: uninitialized constant Inflector
This will appear if your environment.rb or any other place including your old plugins consisits of
Inflector.inflections do |inflect|

end
This is actually deprecated. If you find any of these issues in plugins kindly update your plugins with your latest versions.

4. NameError: uninitialized constant Rails::Plugin::Dependencies
This will come if you use any old gems, Actually Dependencies are deprecated to ActiveSupport::Dependencies, so you can change this in your code.

These are the main issues i found while starting the server. But after starting the server you will find so many issues to fix. You need to fix them accordingly with Rails 2.2.2.