Showing posts with label Computers. Show all posts
Showing posts with label Computers. Show all posts

Thursday, July 3, 2008

How good is your mobile

Would you like to know if your mobile is original or not ?????

Press the following on your mobile
*#06# and the-international mobile equipment identity number appears. Then check the 7 th and 8 th numbers:


IF the Seventh & Eighth digits are 02 or 20 this means your cell phone was assembled in Emirates which is very Bad quality

IF the Seventh & Eighth digits are 08 or 80 this means your cell phone was manufactured in Germany which is fair quality

IF the Seventh & Eighth digits are 01 or 10 this means your cell phone was manufactured in Finland which is very Good

IF the Seventh & Eighth digits are 00 this means your cell phone was manufactured in original factory which is the best Mobile Quality

IF the Seventh & Eighth digits are 13 this means your cell phone was assembled in Azerbaijan which is very Bad quality and also dangerous for your health

Mine is 01... hahah I am safe :D

=================================================
||My FREE services||

ParkingWHOIS is now not only a domain parking lookup, but now also has reviews on Parking Companies.
=================================================


Saturday, March 15, 2008

Setup GIT for Rails


GIT is a popular version control system designed to handle very large projects with speed and efficiency; it is used mainly for various open source projects, most notably the Linux kernel. Git falls in the category of distributed source code management tools, similar to e.g. GNU Arch or Monotone (or BitKeeper in the proprietary world). Every Git working directory is a full-fledged repository with full revision tracking capabilities, not dependent on network access or a central server. Basically it Rocks.

I am on a Linux box so this is what I need to install GIT

sudo apt-get install git-tk git-svn git-email git-doc git-cvs git-core git-arch

once this is done you can test the GIT setup by typing GIT in the terminal. You should typically get this output.

So now your GIT is up and ready to fire. Now navigate to your rails project folder. Follow these steps to create your repository:
  1. Initialize a new git repo
  2. Create a .gitignore for files git should ignore while committing
  3. Default values for a .gitignore
  4. In case you don't see a /log /vendor /tmp | note use sudo(super user) if these directories are already created but are empty
  5. Commit your files in the repo | again do this from the home of the project
  6. You can check the status of the repo

// Initialize a new git repo
git init
//Create a .gitignore for files git should ignore while committing
touch .gitignore
//Default vaules for a .gitignore
DS_Store
log/*.log
tmp/**/*
config/database.yml
//In case you dont see a /log /vendor /tmp | note use sudo if these directories are already created but are empty
touch /log .gitignore /vendor .gitignore /tmp .gitignore
//Adding your files for the repo | do this from the home of the project
git add .
//Commit your files in the repo | again do this from the home of the project
git commit -a -m "Some message here... mostly the reason to commit"
//You can check the status of the repo
git status

And that pretty much covers the basics. Till the next time.... peace

=================================================
||My FREE services||

ParkingWHOIS is now not only a domain parking lookup, but now also has reviews on Parking Companies.
=================================================

Sunday, December 16, 2007

Common rails validations



A rather short post, this one if focused on few validations in rails that I often use. In rails you could do a lot of validations, as they are very simple to handle. Because of the well structured and separated MVC architecture all you need to do is write you validations for the database in our model. Actually as a matter of fact you could also write them as a library and call its methods. The ones below aim to do just that. They use regular expressions, in case you are confused with what that is do read up.

Validating an Email Address

validates_format_of(:email,
:with => /^([^@s]+)@((?:[-a-z0-9]+.)+[a-z]{2,})$/i,
:on => :create,
:message=>"has an invalid format")

Validating URLs

validates_format_of :url, :with => /^(https?://)?([^/]+)(/.+)?$/i

# OR

validates_format_of :url, :with => /^(ftp|https?)://((?:[-a-z0-9]+.)+[a-z]{2,})/

Validating IP addresses

validates_format_of :ip, :with => /^(d{1,3}.d{1,3}.d{1,3}.d{1,3})?$/

=================================================
||My FREE services||

ParkingWHOIS is now not only a domain parking lookup, but now also has reviews on Parking Companies.
=================================================


Thursday, September 13, 2007

Does your command center have the essentials??

Yes, its your computer I am referring to. I have often seen people buy the most expensive computers in the market at that time. They believe that it would help them do more tasks and last longer before being outdated. Well, I don't believe that is entirely true. On an average any computer is new only for three months. After three months there is always a new processor or higher ram or even better graphics card. I guess then what really matters is what your computer can do or rather what is its functionality; Obviously assuming the fact that those functionalities are hardware independent. There are always a small bunch of functionality that one would always expect his computer to do. Let me name a few...

  1. Access the web and use its various elements like email or chat or telephony
  2. Draft documents
  3. Keep their computer safe from malicious programs
  4. Gather and organize pictures
  5. Listen music and watch movies

I am sure a lot of you accomplish all this in one way or the other. But this is for the few that don't, here is what you can do; Try Google Pack, it has the most basic essentials that are required. This is what you get when u download and install Google Pack...

  • Google Earth (Zoom from space to street level — tour the world)
  • Norton Security Scan (Detects and eliminates viruses and internet worms)
  • Google Desktop (Find all your email, files, web history, and more)
  • Firefox with Google Toolbar (Browse the web quickly and securely)
  • Adobe Reader (View, print, and search PDF files via a redesigned interface)
  • Skype (Make free voice and video calls to anyone else on Skype)
  • StarOffice (Word processing, spreadsheet, presentation, and more; also includes Java™)
  • Google Toolbar for IE (Search from any web page and autofill forms; Block annoying pop-ups)
  • Spyware Doctor (Detects and removes spyware, adware, trojans and keyloggers)
  • Picasa (Find, edit, and share your photos in seconds)
  • Google Photos Screensaver (Display photos from your PC and photo sharing sites)
  • Google Talk (Connect with your friends via IM or free voice calls)
  • RealPlayer (Play popular media formats, organize music and videos)

Well although I am not such a big fan of the Google Pack but recently I understood how important it is have something on similar lines. My aunt wanted to watch one of her documented videos, her XP have nothing but a standard installation, it took a mind boggling 3 minutes 18 secs for her PC to boot (as compared to 26 seconds on my uBuntu box). I was her all time favorite computer mechanic. It was so sure her computer was stuffed with malware and trojans; And I was imagining my task list...
  1. Need some antivirus
  2. Have to shift to Firefox
  3. Needed something for communication

Luckily all of this could be covered by a single Google Pack installation. Moral of the story, although not my favorite but Google Pack can save you some time but if you are old school like many(including me) then you wouldn't really need this product.

==================================================================
||My FREE services||
Parking WHOIS
and many more...
==================================================================