Entries Tagged 'Internet' ↓

Update Rails on Mac

Why Update Rails

Ruby on Rails 2 on OS XMac OS X Leopard ships with Rails 1.2.6 which was the latest version when the OS released. But the rails team has updated Ruby on Rails to version 2.0 (2.0.2 now to be exact). Version 2 of rails brings many new features, updates and fixes. To get your Mac running the latest version of rails, open the terminal and run the following commands

Commands

$ sudo gem update --system
$ sudo gem install rails
$ sudo gem update rake
$ sudo gem update sqlite3-ruby

You have to run the commands with the sudo prefix to run them as the super user (equivalent of admin) or you will get a the following error

You don’t have write permissions into the /usr/bin directory.

Commands Explained

$ sudo gem update –system - this command updates the ruby gems package manager (this update is required by the latest version of rails)

$ sudo gem install rails - updates and installs the latest version of rails including the dependencies

$ sudo gem update rake - updates the rake tool which is used by rails

$ sudo gem update sqlite3-ruby - updates the ruby sqlite3 bindings, you can skip this command if you don’t use sqlite as your database

Testing

You will get visual updates as the update process goes on but if you still feel like testing the update once you are done, type this command in the terminal

$ rails -v

and to get a list of all the gems currently installed on your mac displayed with their version numbers use the following command

$ gem list

If you have any other suggestions or questions about the update, write a comment.

Themes coming to Orkut?

Its Diwali today, one of the most exciting festivals in India. India is a country dominated by Hindus but still people from other religions can never find a better place with such cultural harmony. Every religion’s major festival is a national holiday for us. Diwali is the festival of lights, people celebrate by lighting candles and is now more of a multi religious festival with everyone enjoying the spirit. I will stop talking about Diwali here and you can find more about the festival at the Wikipedia page for Diwali.

Okrut today had a link in the top header when clicked toggled the theme to a Diwali theme which lookied like in the screenshot below.

Diwali Theme Link

Orkut Diwali Theme

Much attention has been paid to the footer to make it look more web 2.0

Okrut Diwali Theme Footer

The logo has been slightly changed to belnd with the theme

Orkut Logo

Okrut Logo Diwali

Incase you don’t use Orkut, this is how the original theme looks like.

Okrut Theme Original

This Diwali theme just showed how ready the site design is to implement clean and blended themes. It might as well be an indicator that Orkut is getting ready to be themed. And the recent Open Social launch makes the okrut team more busy as they have to make it Open Social ready. Till now there is no sign of adding applications to Orkut.

Orkut does not allow customization like MySpace, but they have recently added many features like ability to embed media in messages, show updates from friends in the user’s homepage, ability to add feeds to user’s profile and more recently an Ask Freinds feature.
Orkut is one of the major social networks and is watched closely by analysts because its from Google. Intially Orkut was like a Brazilian social networking site but the scene is fast changing. It noew enjoys a strong presence in India. The Demographics page from orkut proves the point.

Orkut Demographics

In India you can rarely find students who don’t have an Orkut profile. There are many home grown social networking sites trying to get a pie of this but most of their users overlap with Orkut. Online social networking is more a wild phenomenon among the youth and the college going crowd than with the working class. This might be more because of the censorship at offices than lack of intrest to network online. More schools and colleges are starting to block the use of social networking sites in India.

Google calls me a computer virus

Well what can I say, I’m so sad and depressed with what Google said to me today. Google called me a computer virus :( Oh you mighty Google, how ever mighty you might be, you can’t call a real person a computer script. People use CAPTCHA to avoid this situation, but you guys at Google used a CAPTCHA but still you called me a computer, too bad, real bad.

How it all happened

I was trying to create a new Google mail account, yaa I already have many but this desire thing, it never dies. I was trying to get hold of an impressive name when this insult was thrown at me. I tried quite a lot of combinations for my username, may be this is what pissed Google off.

google_virus

Computers may be impressive electronic devices, but when some one praises the work done by a computer, they are actually praising the the algorithm that made the computer do that task which was in fact written by a human but when things like this happen, its the algorithm creators that are culprits.

GMail Temporary Error

I was a bit freaked out but again trusted in the mighty Google, becasue as soon as i logged into my GMail it agev a message
We’re sorry, but your Gmail account is currently experiencing errors. You won’t be able to log in while these errors last, but don’t worry, your account data and messages are safe. Our engineers are working to resolve this issue.

Please try logging in to your account again in a few minutes.

I have seen “We’re experiencing problems”  messages many times before but this one said “your GMail account is experiencing error”, the next thought was did i do something strange today or did i violate some polocies or something or did someone try to hack into my account? After a while I just relaxed and thought may be its just the GMail team having some problem with the system and they even said “don’t worry” in the message :D Lets see how long it takes them to get the fault rectified as I don’t worry about my primary email account ;)

Firefox Tab Close Button Options

Firefox can be called the browser of the decade and its usage has been growing steadily since version 1.0 Version 1.5 and version 2.0 were two major upgrades we saw in the browser and the current version 2.0 is arguably ahead of the competiton in features. The first reason for its success is the ability to configure it your won way and the ability to add any feature you want by the help of Add-ons or Extensions. Version 2.0 has new features like automatic prefetch, completely new visual style, ability to view tab list at the extreme right of the tab bar and not limited to but including a new position for tab close button.

Earlier tere was only one common tab close button and clicking on it would close the current tab, but now every tab has a close button which is good but when it comes to closing multiple tabs it is a pain in the ass. You have to move the pointer to the close button on every tab and click on it instead of the earlier single common button which allowed to close tabs one by one by just clicking on the single button. There was a problem with this too, when you are closing multiple tabs one after the other using the common button you may accidentally close a tab you didnt intend to close. You dont have to worry now because firefox now has a Undo Close Tab option [ Ctrl + Shift + T ], right click anywhere on the tab bar andthe drop down menu has the Undo Close Tab option for you.

Firefox Tab Bar

So why not change the Close Tab button back to its original place, which is a single close button for all tabs - to do this you will have to open the Mozilla configuration page about:config and type browser.tabs.closeButtons you will see an option with value 1 which is the default, double click and change the value to 3 and press OK. You now have a common close button. But what if you want both the common button and the individual button on each tab? Firefox doesnot support that yet but you have a solution, move your mouse over the tab you want to close and Middle Click it, almost all new mouse configurations have the Scroll wheel instead of the middle mouse button in which case click the scroll wheel, for those of you who never did this its gonna be exciting to see the tabs disappear as you middle click on them. You can close any tab not just the current tab. And if you feel like you closed the wrong tab right click on the tab bar and Undo Close Tab to see the tabs come back.

Now if you feel a little itchy you can remove the tab close button altogether by changing the vaule of browser.tabs.closeButtons to 2 in the about:config page. Changing it to 0 will make only the current tab to have a close button.

Incase you discovered more possibilities with the tab close button please let me know in the comments