03 January 2010

User Authentication in Rails : AuthLogic

Working on any web application, there is always a need to have user authentication system running in the application. Ruby on Rails is blessed to have a such an active community which always comes up with solutions to rails of any kind. For user authentication there is an awesome plugin called AuthLogic. I have used this plugin in an application I am currently associated with and it works like a charm.

In this post you can find step by step instruction on getting this plugin up and running in your application.

Installing AuthLogic

AuthLogic can either be installed as a plugin or as a gem. I would rather go with installing a gem. So from the command line:
gem install authlogic
After installing the gem, we will be creating a very simple rails application just to test the user authentication functionality via authlogic gem.

So from command line create a new application named user_authentication_demo
C:\>rails user_authentication_demo -d mysql
after the application is created, lets just go ahead and create a dummy controller dummy method in the controller and a dummy view. This is just to have a page up and running where we will be displaying the working of user authentication functionality.

So create a controller by:
C:\user_authentication_demo>ruby script/generate controller home index
You can add some dummy text in your app/views/index.html.erb file just for fun. Working on rails, you got enough time for fun stuffs !
(Make sure you have <%= flash[:notice] %> in there to get the flash messages)

Next open up the config/database.yml find athen replace the entire content here with the following code
development:
      host: localhost
      adapter: mysql
      database: user_authentication_demo_development
      port: 3307
      username: root
      password:

test:
      host: localhost
      adapter: mysql

production:
      host: localhost
      adapter: mysql

All I have done is removed unwanted junk of codes from there to keep it straight and simple.

Now if we run the server and go to http://localhost:3000/blog, we will be taken to the dummy page as shown below:



We will be adding the user authentication to the above page. In this page we will be showing "Register","Login" links if the user is not logged in and "Edit Profile","Logout" links if the user is logged in.

Next we need to create Model and Controller for Users. First we will be generating our User Model
C:\user_authentication_demo>ruby script/generate model user
After all the associated files are created, we will edit the migration file at db/migrate/20100103124423_create_users.rb and ad the following codes in it.
class CreateUsers < ActiveRecord::Migration  
  def self.up  
    create_table :users do |t|  
      t.string :username  
      t.string :email  
      t.string :crypted_password  
      t.string :password_salt  
      t.string :persistence_token  
      t.timestamps  
    end  
  end   

  def self.down  
    drop_table :users  
  end  
end
AuthLogic can pretty much handle fields called email, crypted_password, password_salt and persistence_token and hence we need not bother much about them So let's go ahead and run rake to create the database tables
C:\user_authentication_demo>rake db:migrate
Next we will have to edit the app/models/user.rb file and add the following codes in it
class User < ActiveRecord::Base
  acts_as_authentic 
end
This is to add the Authlogic to the class, without which it will be just a standard model class. Our next task is to create users controller. Also we require new and edit views, and hence we will make sure to create them through generators by the following command
C:\user_authentication_demo>ruby script/generate controller users new edit
Next we need to modify config/routes.rb file a bit and add the following line of code
map.resources :users  
Now inorder to display the link for "Register" , in all the pages of your application add the following lines in your app/views/layouts/application.html.erb file(If you dont have application.html.erb file, then create it)
<%= link_to "Register", new_user_path %>
<%= yield %>
Next add the following bunch of code in app/controllers/user_controller.rb
class UsersController < ApplicationController

 def new  
  @user = User.new  
 end  

 def create  
  @user = User.new(params[:user])  
  if @user.save  
   flash[:notice] = "Registration successful."  
   redirect_to :controller=>"blog"  
  else  
   render :action => 'new'  
  end  
 end 

 def edit
 end

end
We will be putting the code for registration in a partial as we will require it for registration as well as editing. So create a patial file in app/views/users/_user.html.erb and add the following codes in it.
<% form_for @user do |form| %>  
 <%= form.error_messages %>  
 

  1. <%= form.label :username, "Username" %> <%= form.text_field :username %>
  2. <%= form.label :email, "Email" %> <%= form.text_field :email %>
  3. <%= form.label :password, "Password" %> <%= form.password_field :password %>
  4. <%= form.label :password_confirmation, "Password confirmation" %> <%= form.password_field :password_confirmation %>
  5. <%= form.submit "Submit" %>
<% end %>
And then add the following code in the app/views/users/new.html.erb to call the partial for registration purpose
<%= render @user %>  
Now if we check http://localhost:3000/blog we will see the "register" link and if we click on the link, we will be taken to the registration form. If we click on the register button without entering any details, we will get the validation errors and if we enter valid data and then register we will be redirected to blog page. So far so good. next we will add a "Login" link next to "registration" link to let our users to login to the application. For this we have to create UserSession model to get the current status of our users. From the command line,
C:\user_authentication_demo>ruby script/generate session user_session
This generator will create UserSession model and this model will be just have an empty class. Next we generate controller for the UserSession
C:\user_authentication_demo>ruby script/generate controller UserSessions
And add the following codes within the UserSessions Controller
class UserSessionsController < ApplicationController

 def new  
   @user_session = UserSession.new  
 end  
 
 def create  
   @user_session = UserSession.new(params[:user_session])  
   if @user_session.save  
     flash[:notice] = "Successfully logged in."  
    redirect_to :controller=>"blog"  
   else  
     render :action => 'new'  
   end  
 end 
 
 def destroy  
   @user_session = UserSession.find  
   @user_session.destroy  
   flash[:notice] = "Successfully logged out."  
   redirect_to :controller=>"blog"   
 end 

end
Next create a view file in app/views/user_sessions/new.html.erb and add the following codes
<% form_for @user_session do |form| %>  
 <%= form.error_messages %>  
 

  1. <%= form.label :username, "Username" %> <%= form.text_field :username %>
  2. <%= form.label :password, "Password" %> <%= form.password_field :password %>
  3. <%= form.submit "Submit" %>
<% end %>
We will have to edit the config/routes.rb a bit to add the following codes.
map.login 'login', :controller => 'user_sessions', :action => 'new'  
  map.logout 'logout', :controller => 'user_sessions', :action => 'destroy'  
  map.resources :user_sessions
We can also modify our application.rhtml file to add the link for login
<%= link_to "Register", new_user_path %> | <%= link_to "Log in", login_path %>
Now if we check our blog page along with "Register" link we also ha "Login" link and if we click on "Login", we will be taken to a Login page with fields for username and password. Upon valid username and password entry, we will be taken to blog page with a flash message. On invalid login details, we will end up with validation errors. Our next aim is to write code for logging out and display "Edit Profile" and "Logout" Links for the logged in users. So let us modify the application.rhtml and have the following codes in there:
<% if current_user %> <%= link_to "Edit profile", edit_user_path(:current) %> <%= link_to "Logout", logout_path %> <% else %> <%= link_to "Register", new_user_path %> <%= link_to "Log in", login_path %> <% end %>
<%= yield %>
And also add the following code in the app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
    helper_method :current_user  
      
    private  
    def current_user_session  
      return @current_user_session if defined?(@current_user_session)  
      @current_user_session = UserSession.find  
    end  
      
    def current_user  
     @current_user = current_user_session && current_user_session.record  
   end  
end

To make the "Edit profile" working modify the user_session controller to
class UsersController < ApplicationController

 def new  
  @user = User.new  
 end  

 def create  
  @user = User.new(params[:user])  
  if @user.save  
   flash[:notice] = "Registration successful."  
   redirect_to :controller=>"blog"
  else  
   render :action => 'new'  
  end  
 end 

    def edit  
      @user = current_user  
    end  
      
    def update  
      @user = current_user  
      if @user.update_attributes(params[:user])  
        flash[:notice] = "Successfully updated profile."  
        redirect_to :controller=>"blog"  
     else  
       render :action => 'edit'  
     end  
   end  

end

And then we have to call the form partial by adding the following code within /app/views/users/edit.html.erb
<%= render @user %>


Thats it. We are set to go with our application with this wonderfull gem/plugin for the user authentication functionality.

12 December 2009

Ruby on Rails PDF generator : Prawn gem & Prawnto plugin

Download the pdf_demo application from GitHub

It has been amazing working for a project using Ruby on rails framework. And with the awesome support from its community, the experience has been always smooth. In this post I will be introducing you with a wonderful gem/plugin for Rails to generate PDF's. Generating PDF's has never been this easy. When I was asked to generate PF reports in my current project, the hunt for the best plugin began and after testing a few plugins I came across a gem called 'prawn'.

"Prawn takes the pain out of generating beautiful printable documents, while still remaining fast, tiny and nimble."

And Prawnto is a rails plugin which leverages the new prawn library to produce compiled pdf views.

In this post , I will provide simple step by step instruction to install and configure prawn/prawnto and hence will be walking through a simple PDF generating demo application.

Installing Prawn and Prawnto:

To begin with, we have to install prawn gem. From your command prompt(windows OS)

gem install prawn

Once we have successfully installed prawn gem, we need to install Prawnto plugin. Before installing the plugin, lets create the demo application which will be using MySQL database..

From the command prompt

C:\>rails pdf_demo -d mysql

After the project folder structure is created, move into the project folder:

C:\>cd pdf_demo

And now we will be installing the Prawnto plugin


C:\pdf_demo>ruby script/plugin install http://github.com/thorny-sun/prawnto.git/

After we have succesfully installed this plugin, we need to add the following line inside the environment.rb file of our project.

config.gem 'prawn'
within "Rails::Initializer.run do |config|"

Next, lets go ahead and create the Controller named Book


C:\pdf_demo>ruby script/generate controller Book
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/book
      exists  test/functional/
      create  test/unit/helpers/
      create  app/controllers/book_controller.rb
      create  test/functional/book_controller_test.rb
      create  app/helpers/book_helper.rb
      create  test/unit/helpers/book_helper_test.rb

Next lets create the model named book


C:\pdf_demo>ruby script/generate model book
      exists  app/models/
      exists  test/unit/
      exists  test/fixtures/
      create  app/models/book.rb
      create  test/unit/book_test.rb
      create  test/fixtures/books.yml
      create  db/migrate
      create  db/migrate/20091211170948_create_books.rb


Our project contains one database table(books) with two columns namely name and author.So add the following code inside your migration file (20091211170948_create_books.rb)


class CreateBooks < ActiveRecord::Migration
  def self.up
    create_table :books do |t|
      t.string   :name
      t.string   :author
      t.timestamps
    end
  end

  def self.down
    drop_table :books
  end
end

Before we go further with any more code, if you open up your database.yml file, it says


development:
  adapter: mysql
  encoding: utf8
  reconnect: false
  database: pdf_demo_development
  pool: 5
  username: root
  password:
  host: localhost

So we need to create "pdf_demo_development" named database. We can do that from the command prompt itself as shown below


C:\>mysql -u root

Here I have assumed that the username is "root" and password is nil.
If you have got password then use the following command

C:\>mysql -u root -p (password)

Once you get inside the mysql, we can go ahead and create the required database using following command

mysql> CREATE DATABASE pdf_demo_development;

Once this is successfull, we move ahead and migrate the database for our project.


C:\pdf_demo>rake db:migrate
(in C:/pdf_demo)
==  CreateBooks: migrating ====================================================
-- create_table(:books)
   -> 0.0630s
==  CreateBooks: migrated (0.0630s) ===========================================

Next we will be adding some dummy data's into our newly created database table namely 'books'

Use the following command to add data to the table. First select the database from mysql using


mysql> use pdf_demo_development;

Next lets add the dummy data


mysql> INSERT INTO books (name,author) VALUES ("The Rails Way", "Obie Fernandez");
Query OK, 1 row affected (0.06 sec)

mysql> INSERT INTO books (name,author) VALUES ("Agile Web Development with Rails", "David");
Query OK, 1 row affected (0.01 sec)

So finally we write the codes for generating the PDF and showing the datas entered into the database.

Add the following codes into your app/controllers/book_controller.rb

class BookController < ApplicationController
 def index
 
 end
 
 def show
  @book = Book.find(:all)
  respond_to do |format|
   format.pdf { render :layout => false }
  end   
 end
end

Here we have created a method called 'show' and created a variable called '@book' which contains all the record from the 'books' table.

Next lets create a view(.rhtml file) for the index method within the books folder and add the following line of code inside this file, which is just a link to generate the PDF file.
app/views/book/index.rhtml

<%= link_to "(PDF Report)", :controller=>"book", :action=>"show", :id=>"2", :format=>'pdf' %>

And one final step before we run our server to view the result is to create a file with extension .pdf.prawn
This is the file where we write the code to display the contents in the PDF file. So create a 'show.pdf.prawn' file and add the following code
app/views/book/show.pdf.prawn

pdf.move_down(30) 
books =  @book.map do |item|
 [
  item.name,
  item.author
 ]
end

pdf.table books, :border_style => :grid,
     :row_colors => ["FFFFFF", "DDDDDD"],
     :headers => ["book", "author"],
     :align => { 0 => :left, 1 => :right, 2 => :right, 3 => :right }

Now lets go ahead and run the server

C:\pdf_demo>ruby script/server

And in your favorite browser go to => http://localhost:3000/book/index
and you will be taken to a page with your (PDF report) link and on clicking on this link you can get your PDF report.


You can visit prawn and prawnto websites to view their documentations and generate PDF's with various effects.

09 December 2009

BrowserCMS - RoR Content management System

Hi
These days I am busy learning new technical stuffs from Rails framework to wordpress developments. Recently I am engaged with a project which is related to Rails Content Management System. And among the various content management systems available for Rails framework, I am doing this project in BrowserCMS.



Quoting the description about BrowserCMS's from their WiKi,


BrowserCMS is a general purpose, open source Web Content Management System (CMS), written in Ruby on Rails. It is designed to support three distinct groups of people:
  1. Non-technical web editors who want a humane system to manage their site, without needing to understand what HTML or even Rails is.
  2. Designers who want to create large and elegantly designed websites with no artificial constraints by the CMS.
  3. Developers who want create CMS driven websites for their clients, or add a CMS to their Rails applications.



The very first thing every developer would do is install the BrowserCMS system in their local server and once learn how to go about using it, then move on to installing the system over the server and deploy the application.


The funny part is , In my case it all began in a reverse order.


We have got hosting account from HostingRails, where as our client has got hosting account from WebbyNode.


Initially we configured the BrowserCMS on HostingRails which worked fine as we were successfull in deploying the BrowserCMS demo site. Later on we did the same over WebbyNode and were successfull there too.


As I wanted to work on this project on my local machine and later on deploy it over the server, I went ahead and tried installing it on my local server which was also a successful attempt.


In upcoming days I will be posting step by step instructions, how I was able to install BrowserCMS over localhost in my computer and also various technical aspects on BrowserCMS.


So if you are a rails developer and is interested about BrowserCMS, do get back to get more updates.

02 November 2009

iPod-Genius: October statistics


Hi


October month was a high traffic month for iPod Genius blog. Since it's launch this was the best month in-case of traffic. Compared to other months October month saw immense traffic from various countries, yet again US visitors leading the chart. have a look into the statistic image and let me know what do you feel about it.

22 October 2009

Working with Ruby On Rails


Hi
It's a real shame on me to tell you that I am a Rails developer and I haven't mentioned about this in my blog yet. I have been working on this amazing web application framework from June 2009. And its almost 5 months along with this framework and I am really enjoying it. Infact this is my first exposure towards a Web application framework and I am really happy to begin it with Rails. With rails you feel comfortable. It gives you the freedom to think out of the box. Being a newbie to this language and framework, there a lot of stuffs to learn and practice. Presently I am using Netbeans IDE for developing my project and Netbeans has never given any problems to me. It infact seems to be the best IDE for Rails with so much of support and help for Rails framework.
I will be keeping you guys updated about Rails with this blog. So do check back regularly.

08 October 2009

Aslam's BlogBuzz: Best On Blogspot Contest


I don't know how many of you might have heard of best-on-blogspot contest. Well let me tell you. This is a kind of contest run by blogspot blog to give recognition to other blogspot blogs. In this contest, bogspot blog owners can submit their blog in various categories when the contest is running. Once the contest begins, various readers can vote for their choice of blogs in various categories and hence at the end of the contest period(normally 2 months duration), the blog with maximum votes will be awarded with prize.


Aslam's BlogBuzz was the part of this contest twice, once in 2008 contest and in Aug-Sep 2009 contest. And I am very proud to say that, both these times this blog was selected to be the winner.


In Aug-Sep 2009 contest, the prize amount was $30 and one premium blogspot($15) theme from OOruc for FREE

04 October 2009

Aslam's BlogBuzz >>>>> Aslam'sBuzz


It was Sunday and I had nothing much to do. After spending whole week with Ruby on Rails and Word-press theme design at office, Sunday has to be something innovative. I have been thinking to redesign my blog template for quite a few time. And finally it was today. Woke up bit too late and after the daily basic routine of breakfasts and other stuffs, I was in a complete good mood to give a new look to my blog.


My friends always used to make fun of my blog as it had hell a lot of colors and it was all shabby. But I loved my blog all the time. Why wouldn't I. It has won the best personal blog title twice from one of the blog contests and it earned me few dollars. Anyways it was today that I decided to give my blog a new look after one and half year long time. yes that does explain how busy I have been ;)



Looking for some good and attractive free blog templates online, I finally found this particular template from BloggerTricks.Com Template was cool, after checking it's demo, I decided this will be my new template at-least for some period of time.


In my previous blog template, I had installed Intense Debate commenting widget, and going ahead with this new template had the risk of getting rid of all my previous comments which was stored in IntenseDebate's server. But I had to take this risk to give a new look and feel for my blog. After the final installation, I had to make a lot of changes through this template. It had few problems which I had to fix manually. It did not have "Read More" option in the front page posts, so I had to write manual codes to get it fixed. Also top navigation bar was very dull, so worked on it to give some hover effects as well.


Well as of now everything seems to be fine with the template. I would be sticking with this template now. But I noticed one problem here, and that's whenever someone visits the blog for the first time in any browser, the browser asks them their twitter user-name and password. I think this has to be with the twitter updates widget installed in the template. I will be fixing this issue very soon.


Okay, what do you think about this new template of Aslam's BlogBuzz(Now Aslam'sBuzz)?
Do you find any issue with this particular look, if so please let me know your views so that I can work on it to make it more and more better.


So for now, CiaO ^_^

01 October 2009

iPOD Technical Support: September Analytics

FREE iPod Technical Support



 Compared to August, there was a very large increase in the number of visits in September and majority of the visitors coming from the Search engines like Google and Yahoo


19 September 2009

Playing with PhotoShop 1

Little threshold, little blending and here's what I ended up with a dancers image. How's that ?

02 September 2009

The Biased International Media

Dear friends,
How many of you have heard about Taliban flogging a teenage girl at Swat? I hope many of you must have heard about this news. It was a sensational news in all forms of International media. If you have not heard about it, you just need to search it over the internet and you will find 1000's of news,discussions,videos about this incident. Click HERE to see the video in youtube.


All over the world , politicians came infront and started condemning this incident, Pakistan government decided to start investigation on this issue. Lots of people came infront saying that, this video was a fake video and done by enemies of Taliban. All over the media worldwide, it was a headline questioning the Islamic Laws(Sharia), how barbarian a religion can go in the name of justice, what kind of cruel religion it is. Indeed you and me, who watch this video and the news in various international channel are forced to think how cruel the religion Islam is?



Well I have some comments to make on media. Here is one more news which I happen to see today in NDTV and Headline's Today news channels. Its about an Andhra women being beaten up in public and later on she dies in the hospital. Click HERE to see the video and click HERE to read the NDTV news on it.Similar kind of incident as of Taliban flogging a girl.Both the incident saying that these girls had affairs and their characters not being good.This incident occurred last month, and if I ask you or any other person about this incident , i dont think many would be knowing about this, Infact the Indian political leaders may not be knowing of this Andhra incident, leave apart International politicians. I tried searching for this news over the internet and to my surprise very less information about this incident which is far more barbarious than Taliban issue. Well i just went into some of the well known news websites of India, but other than one or two news media, other famous media's never covered this issue, or this issue just went unnoticed as a daily local news.


Now here is the question. Why was this serious incident which happens in India,the country which is having strong presence worldwide went unnoticed by indian politicians and Indian media, leave apart International media. Anyways few of the media which did show up this news, why was it headlined as "A Mother's Cry" or "A Mobs Punishment". Why the religion of the attackers were not put under question here? Why?


 Here is my view on this, Just because a powerful nation and its government along with its allies is against Islam and its rules, the whole of media turns against Islam and presents Islam as a religion of Terror(Though the fact is that Islam is a religion of Peace, Humanity and Mankind.). Ask any US or Europe citizen who is aware of international news, about the Taliban flogging issue, he will be able to explain how cruel the Taliban is and the Islamic law is. But if you ask him about the similar more barbarious incident that happens in India(Just like the one here about Andhra woman's death), he for most sure will not be aware of this. We cant blame him for that, as International media did not cover this issue as it has nothing to do with Islam or Islamic laws.


Why is this happening, why  Islam and its followers are being on target every now and then by the government of many nations and hence of the International media. Don't you think if this Andhra incident had happened in Pakistan or Afghanistan or say Iraq, then I say with full guarantee that it would have been the BREAKING NEWS in almost all International news channels and all around the world people condemning the attack and questioning Islam and its laws.


Crime is crime, no matter which part of the world it occurs. People behind these crimes must be punished be brought behind the judiciary, rather than pointing your fingers against a specific religion, for you have got no right to say a religion preaches terror as all religions stands for Peace, humanity, mankind , love etc.


My request to all of you is, please wake up, understand how serious the situations are around you, how things are being put in-front of you and how you are made to hate a specific religion or a specific group. my request to all forms of media is go back to the basics of these religions and understand what they stand for, rather than just showing it down as terror group. Remember, by this you are hurting the faith of many out there. Stand for justice and not for those who are in powers. Remember, those who are in powers will never be in power forever, they will comedown as it is said in religious scriptures that, truth will prevail and falsehood is born to perish.


Share it with me your views on issues of this kind and the reaction of International media.

31 August 2009

ATM Transaction... How Strange !

Here is the deal.
I have two savings bank account from banks namely Sity Bank and Exis Bank. I had 10,000 bucks in my Exis Bank account and just Rs.4 in my Sity Bank account. Near my locality I did not have any ATM, either of these banks, but I found out an ATM of yet another bank named Onion Bank. Well, I wanted to withdraw the entire 10,000 bucks from my Exis bank account for some need. So I decided to walk into Onion bank ATM. I took out my ATM card from my purse, swiped it through the ATM of Onion bank and when it prompted me to enter the password, I entered the password. Password got  accepted  and then I enter the amout for withdrawal and then after sometime, i get a message of failed transaction. I tried it for 3 to 4 times, still the same error, TRANSACTION FAILED !. I thought that Onion bank ATM does not accept my card for some reason and I walked out of the ATM.



On the way back to my home, I just had a strange feeling for what might be the reason for transaction failure for no specific reason. Later I realized. Did I tell you, which ATM card I used to swipe through the Onion Bank ATM? I guess no. Well to my stuppidness I used the Sity bank ATM card which just had Rs.4 in it. How dumb I am. You must be agreeing to the fact that, yea I how dumb I am  for I tried to withdraw 10,000 from an account which just had Rs.4. 



That did not stop me from thinking deeply into that on the way back home. I cant be that dumb, I might have accidentally picked up Sity bank ATM card from my purse. Accidentally picked up my Sity bank card thinking it is Exis bank ATM card...hey hey..that means to withdraw money I must have used the Exis bank password right. Yes, I remember , I used Exis bank password on a wrong  ATM card. But then how the hell did the password work out on Sity bank ATM card and provided me with my bank details. This question is still killing me. Is something wrong with the Sity bank ATM system that on its card any random password just worked out. Oh crap this is very bad indeed, or is it something else, if it is what is it??


Have you ever been in this kind of situation or would like to share with me your ATM funny experince, just leave me a comment. 


Have a good day :)

30 August 2009

iPod Technical Support

iPod Technical Support  is my yet another blog where I write about iPod troubleshooting steps. Mostly i write to the questions posted by my visitors. I started this blog at around mid of April. After starting this blog I never wrote any article. Actually I was thinking whats the use of this particular blog. later in the month of June I saw a comment in that blog from an iPod user and she was requesting a help. I was very much surprised thinking, how come a person comment on a blog which had any article or posts about iPod. I replied to that comment by writing a neat article on how that particular issue can be fixed. I think it was around July end that I must have written that post and one of my friend suggested to make use of Google Analytic to get the accurate stats of the blog. So on July 29th I decided to install Google analytic and from then on there was no looking back. I am very proud to say that 80% of my visitors come from various search engines. and I get many requests through comments and through personal emails to help on various iPod issues. Though I give help for FREE, i decided why not I include a PAYPAL DONATE button so that in-case any visitor is really happy about my help, he can donate me and I did not have to wait too long that one of my visitor was so happy with my help that he donated me some dollars and I was really happy for this achievement.
This is my one month Google Analytic statistics:

23 August 2009

My Attempt To Design a Website Using Photoshop

Hi Friends


Working as an internet engineer for a design company, I see talented designers around me design some wonderful designs for our clients. The logos, websites designed by our designers are always eye catchy and to the mark. As a programmer I just appreciate the way they design stuff's and have a strong desire to learn Photoshop and design something of my own. I know, you cannot learn something overnight, but I thought I will give it a shot and I came up with a website layout. I designed this layout keeping in mind my one other blog named iPod-Genius. So let me know through your comments, hows my very first attempt of design.
Click on the Image to see the enlarged view. 

18 August 2009

Adobe Auto Updates.... I Hate Them :x

Hi Friends.

You must be thinking, why should I hate automatic updates from Adobe. Infact I would hate all kind of automatics updates which happen over the internet. The only reason behind this is my bandwidth limit provided to me by my ISP. It is just 1.5GB per month. That means per day 50MB.

Now most of the applications does allow us to prevent the automatic updates by changing it in their settings. But I never found any settings to stop Adobe automatic updates for all adobe applications. Finally I found the hidden trick to kill Adobe automatic updates.

Follow the step by step instructions below and you too can get rid of adobe auto updates.(Only for Windows OS)

1. Open the C drive, Go to Program files, Open Common Files folder,

2.There you find Adobe folder, open it.

3.There you find Updater5 folder, open that.

4.Double click on AdobeUpdater.exe, it will check for available updates, then after that you will find preferences option, There you find a check box to cancel auto updates. Just cancel it and click OK. You are done.

So now I can save some of my bandwidths. Yeahooooo :)

31 July 2009

BMW M1 Pictures

Click On The Images To View Enlarged Images...

28 July 2009

230 NIGHTS @ THE CALL CENTER - 2

Click HERE to read from the beginning.

The Three Months With  A New Team
Departed from the training team with whome i was living wonderful days of my life, it was pretty tough for me to accept that I have to be in a new team of nearly 15 members. All the faces were new. Few faces were the one which I used to watch during the traing days :P, so they did not seems to be that new though they seemed to be strangers in all aspects.

Team Leader Nancy.. A young lady in her mid twenties. With huge smile on her face all the time. Thus there begun new chapter of introductions all over again. I just hated this part, where we have to ask names,natives. Huh....But I loved when others asked me all these.. .My team had one of the cutest girl, her name was Monica, Everyone in the office had an eye on her.Did I mention earlier that, there were few faces which I used to watch during training days, well this face mite be the one.lol

Alrite, so days with new team were just going on. Initially we were not allowed to take any calls. Floor supervisors were giving us training on how to be professionals on the call, how to handle customers, how to solve certain issue. Well all these were pretty much useful to us as the trainer really sucked during training days. They never gave us proper training. Who the hell made them as Trainers, must be some part of politics within the company responsible for these useless people to get into these posts. No wonder why they played politics in final evaluations, Politics was running in their blood.

Well, Few of the Floor supervisor were really good at training us with basic necessity of call handling procedures and few just tried to flirt around with the young ladies in the team.As the days passed by, I started getting friendly with most of the team members and the Team leader Nancy...She was the best. We all liked her very much in a short period of time. Her character and the way she interacted with evryone, no wonder why most of them liked her.

Based on the good show in the training provided by floor supervisors and the team leader, few from my team including me was chosen to start taking calls. I was really nervous when I first took the call. I am not used to these American Accent. How am I gonna understand what they are saying and what will happen if i am not able to handle the customer well. All these thoughts was making me feel dizzy. But there was no looking back. I had the confidence that, if i collect some courage and handle few calls, i can then manage well. In my first few calls, some experienced representatives sat beside me to walk me through certain call handling procedures and that really helped to gain the confidence.

After few days call handling, i was being somewhat comfortable and I was having a good impression within my team. I loved it. My happiness did not stay longer, when one night, my team leader approached me and said that, One of the customer had sent a survey on my name and her remark was that, She was not happy with me and I did not resolve her Issue. I was getting depressed. Tension could be seen through me. But Nancy patted me on my back and told that, that paricular call was handled well by me(she had recorderd the call and listened to it), Customer was not satisfied due to some other reason. Nancy talked to me for nearly half hour consoling me and telling me that I was the best and I could do well in coming days. Her words were so encouraging and I promised her that I will gfive my best shot in each and every call and would not let her and the team down.

Very soon all of my team members began taking calls and sitting in a bay we all enjoyed a lot along with Nancy. We would play pranks with each other, Go for short breaks all together. It was really fun all throughout. The entire 15 members of the team were like a single gang out there  and there were other teams too in the floor and there used to be cat-dog race between different teams taking team performance on account.

There was a team Leader named Nathan and his team was equally good like us. Our team and his team used to sit next to each other and used to have a cold war all the time based on the performance.We had to agree to the fact that Nathan's team had some good performers because of which some weeks they topped the Team stats and some weeks we managed to get above them. All in all there were many teams competing with each other, but beating Nathan's Team gave us more satisfaction.
On the other hand, The guys who were moved to the premanent posts were having tough time out there as their team Leader screwed them all the time(As told by some of my old training friends). That was really pleasing to hear after what has happened at the end of the training.

After a month we came to know that, most of the guys from temporary posts will be kicked out based on the performance and only few will be made permanent. And till date what we have seen over here. We were pretty much sure that, no performance will be the factor. Just wish you were a girl, you would make it in there.Lolzz..After this news , everyone felt the heat and tension could be seen on every faces. I was also nervous though my performance never went down. But here anything can happen. I could also feel that My team was getting the heat in a pretty different way. I could see a line being drawn in between the team. Untill now, there was no groupism within our Team which we were very proud of, but after this news everything changed. There was no team spirit. Everyone just had only one thought. Just make it to the top so that Managers can never ignore you while preparing the final list.

All enjoyment was dried out. But the group in which I was a part, we still had a great time with each other.We wanted to live every moment of our days in the company. We had a slogan within us and that was "BUSINESS ROCKS". This slogan just added flavour to our bondings. Well if you ask what does that slogan Mean.. Well Just forget It.. :P

We could see that, other part of my team were trying to impress Team Leaders and other Supervisors to the max so that they be considered during final listing. Well not to blame them, They have seen the politics happen at the end of the training days and they are just trying to survive here. But we did not try anything. We just performed to our level and waited things to happen in its own way. During those days Our team also planned a one night trip to some tourist place. Had a great time. There were very emotional moments during this trip. We had to talk on each others character. All in all it was a hell of a trip and it would be remebered by each and everyone of us forver, though there was indifferences between each other during these days.

After the trip, within few days, shorlisting of candidates begun and few of the team mates were kicked out in no time. Actually this was not only with my team..every team was going through this phase. Few days later I was called into a meeting. When I moved into the meeting room, I could see some of the process managers and many other like me in the room. Once everyone who were asked to come for meeting had arrived, the meeting begun.It was said in the meeting that those who are present in the meeting will be made permanent from next month. I was surprised. A bit happy for my own selection, but sad a lot because this selection means, the rest of my best buddies will be kicked out.

Very soon the news was out. It was also said that one more shortlisting will be done to move some more into the permanent position. Most of my best buddies had to meet the HR's on the same day and they were told to submit their ID cards. That day was supposed to be the last day with my team as from the next day, new team will be made for those who were made permanent. We could see the sadness in the face of most of the guys. My team had some of the best technical representatives. My stats were good. So my chances were high to move into permanent position. But apart from me there was a girl from my team who too  was moved into permanent position. That even shocked my team leader.

She was no were near to the level of professionalism and performance showed by some of the other representatives.No questions were asked. We knew some bad politics went unnoticed behind the scene. Nothing could be done. Had to accept it and move on. When the next shortlisting was done, my other best buddy named Abhay got through it. I was really happy knowing this. I have someone with me from the old buddy list. The thrill to work was gone after the resignation of all other best buddies of mine.
But somewere I expected that much more BPO sutras are still left to be explored, and I did explore it in the rest of my journey in this field.

The Last Three Months With  Yet Another Team
Check back to Read what happens with Me in this new team....(Will Be Continued...) 

26 July 2009

230 NIGHTS @ THE CALL CENTER - 1

Well actually i was planning to write down something here since a long time. But the life after graduation. OMG.. Its driving me nuts.

Anyways am here back with something to share with you all.
Okay. You must be thinking What the "F" is the title of this post all about. Well, those who knows me well must have guessed it right what am I gonna share with you all.

Infact most of you might have read the novel from Chetan Bhagat titled "One night @ the Call Center". Well I am not gonna bore you with any of my stories here.Lol
Here I want to share with you all some precious moments of my life, actually 230 days of my life at the city of garden, Bangalore.

I was here in search of a job. Well when I say about the job, I remember about the three Job offers which I had received when I was doing my graduations, but none of the three MNC dared to take a peek into the lifes of these graduated freshers.

Anyways, let me not divert from the fact that I am here to share something about those 230 nights. Okay, Now that you have read so far, and had a good look into the title of this post, I needn't mention what was the job I finally landed into.

Those who are getting bored by the stuff over here, Please just get the hell out of here.Just Kidding. Its your time.Why should I be bothered of your time.Wohaaaah... Okay back to track.

One Month Of Training:

I was really exited about this job, Though this was not the right kind of job I must be doing.Anyways job is a job untill they pay me for what I am doing. Well, The first day was pretty cool. My training team was great. trainer too was great. I was loving this place.Did I mention that i was a graduate fresher.Well okay, I am a graduate fresher and this was my first professional exposure. So I was just enjoying pretty much in all ways.
Days of training were going incredibly great,Why shouldnt it be. The Client to which we are supposed to work after the one month of training was a huge name in the market.

We had few tests based on the training. Some were exceptionally good that they topped the tests in all means.
Did I mention that this company is a call center. yea.. the final test which we trainees had to undergo was MOCK CALLs, where we trainees had to attend the calls of some other trainers and the calls would be monitered by some other trainers and finally all these trainers would evaluate each trainee based on his performance.. few of my team members were having a charming faces as they had done exceptionally well..and few had dull faces, for the reason that you must have guessed it right.My face expressions were pretty much fifty fifty kind of.Lol. And these dull faces were of those charming girls who were supposed to be always charming being the fact that they are always charming. Hahaha..

But surprise surprise.... The Dull faces turns out to be charming and few charming faces turns out to be dull. You know why.. haha...the results are out and it seems like the great trainers liked the charming faces of girls so much that performances were not looked into but the charmness and the butteryness of few others were the basis of test evaluations.

This was the begining of so called politics in a professional world. We had to accept it. We have to move on. Well the one with the charming faces and buttery character were straightly moved into the respective positions and made permanent employees. And the rest of them were put into a temporary positions for three months.What about me? I am not a girl with the charm and ya...i dont have buttery soapy words flowing out of me for my trainers, so I am in the Temporary post.

The Three Months With  A New Team

Click HERE to read the second part.

21 May 2009

Back Online !

Hi Friends.
As promised am here, back to the world of blogging.I know most of you might have had a thought in their minds that I might not return.But I had to.Its been eight plus months I have been away from the Blogging.I had given the reason for the same in my previous posts.
Working as Technical support representative for US Process, I was so busy with the Bangalore night life that I never got time to turn around to se whats happening arond.Yea, A lot of things has happened.Satyam Computer, the firm in which I was placed is no more.Unfortunates happened with this company and thus unfortunates happened with most of the Satyam freshers of 2008.Am one among them.Hopes are high for the bright future.Never get dejected.Be calm and composed on every aspects of life.If you are destined for success, then no one can stop you from acheiving it.
I wish all the 2008 freshers who are hit by the current recession, GOOD LUCK.

12 January 2009

MESSAGE FROM ASLAM

Hi Friends
I am really sorry for not posting here for such a long time.Reasons are obvious.From my previous post you must have guessed what kept me so long from posting here.Anyways life's hectic.Am here at Bangalore.Working in one of the prestigious BPO.Though its a prestigious organization,feels not that good as this is not what i am supposed to do.Anyways hopes are high.Hopes from Satyam Computers are dead.But life will give me a second chance to bounce back.pray for me.
Will be back with full flow to the world of blogging.untill then Good Bye
HAPPY NEW YEAR TO ALL MY READRES AND FRIENDS

16 September 2008

A Step Towards My Career

Dear friends,
Before I pen down something which surely gonna bore you like hell,I would like to quote two famous inspirational ones:
The turning point, I think, was when I really realized that you can do it yourself. That you have to believe in you because sometimes that's the only person that does believe in your success but you.

If we agree that the bottom line of life is happiness, not success, then it makes perfect sense to say that it is the journey that counts, not reaching the destination.

Well good one's right.Anyways I feel it so.
You might be wondered what is the step which am gonna take towards my career.Its nothing that great.Though into one or two IT firms,but the current IT slowdown has affected the companies so much that, we, the freshers are suffering with the delayed date of joining.Been waiting to get a call from the company from past 3 months.Yet no sign,But hopes are always high.And with the wishes of my beloved and loyal readers am surely gonna have a mark into one.
Oh sorry friends still I have not mentioned what is the step which  am gonna take now though I haven't got any call letter from the companies who recruited me an year back.After so much of wait and frustrations, now I have decided to move on.I have decided to land my foot into the IT City,Bangalore.As am electronics graduate my plans are to drop my resumes over some of the electronics and communication based firms.Who knows, If am that lucky enough to be shortlisted to appear for an interview.Then wonders can happen to my career.lols.
Ok Ok Ok am not going  any more deep into my career plans.I will be surely updating the happening around whenever I get time.
Till then I just have only one request from my friends and visitors to this blog,
WISH ME LUCK AND REMEMBER ME IN YOUR PRAYERS.
Thank You...