Monday, March 9, 2009

How to get CPU utilization for Unix OS?

You may use top and ps commands.

Display the process utilizing the most cpu and quits to sh: top -b -n -1

Display CPU Utilization: sar -u

And use ps to display processes with the highest CPU utilization: ps -eo pid,pcpu,args | sort +1n

Read man pages of each of the above commands to get more details and supported options.



Bookmark and Share

Friday, March 6, 2009

Copy/Paste the block of text in vi/vim

  • Mark the location of the first character of the block of text you want to copy by pressing mx
  • This marks the begining of the text to be copied into a buffer 'x'.
  • Move the cursor over the last character of the block of text you want to copy and press (shift)+x
  • By pressing shift you are moving all the characters from mark to the current position into a buffer.
  • To copy (or, in vi terminology, to yank the buffered text) press y'x
  • This will yank everything from the buffer x. ('tick' character ' is command in vi to read from the named buffer)
  • Now move the cursor above the location where you want to paste the yanked text and press p
  • p (for paste) will insert the copied (yanked) text at the line below the cursor.


Bookmark and Share

Wednesday, March 4, 2009

[vi/vim] Save on Exit

I see a lot of people using 'wq' a lot but never a form 'x'.
In vi and vim, if you want to save and exit with a simple key stroke simply use:
:x


Bookmark and Share

Saturday, February 28, 2009

Scrum in less than 10 mins

Here is an introductory video of Scrum. Video is hosted on Youtube and is 8 min long.



Related posts:

Bookmark and Share

Monday, February 2, 2009

Maven: The Definitive Guide - Free Download

The people at sonatype have released Maven: The Definitive Guide book for free on PDF/html.

Download your copy and folow the blog.

Download eBook
Follow Blog



Bookmark and Share

Staying in Touch: How Does Your Generation Communicate?

MILLENNIALS
Text and IM all day long; reach out to friends by posting status or photos on Facebook; use Skype to call a college friend who's getting a masters at Oxford; post to a personal blog; microblog through Twitter "tweets"; email Mom

GEN X
For friends, use Facebook to send messages, post photos of last weekend's party or write on an old friend's wall; for colleagues, connect through LinkedIn

BABY BOOMERS
Email or phone old friends and colleagues when there's time

THE SILENT GENERATION
Send cards and letters, with an occasional email

[Received in an email]


Bookmark and Share

Sunday, February 1, 2009

How Do You Want to Pay? Google?

Herald Sun reports that Google Australia is considering a plan to take on payments giants such as Visa, Mastercard and B-Pay in the booming online payments market.

The move comes as the search giant secured a financial services licence from local regulators.

The Australian Securities and Investments Commission recently issued Google Australia with an authority to provide deposit and payments services to local merchants and shoppers.

While the licence does not permit Google to provide cash-based payments services to Australian clients, it will enable the group to facilitate digital or online transactions.

Web-based commerce is a hotly contested and lucrative market for payments providers and has spawned a raft of new players including E-Bay subsidiary PayPal.

The ASIC licence potentially opens a fresh revenue stream for Google which will be able to collect processing and transaction fees for bringing shoppers and merchants together via its websites.

Through PayPal, EBay has stolen a march on Google in the Australian online payments arena.

Market research published earlier this month by Neilson Online found that 7.3 million Australians shop over the internet.

The survey found that credit cards were the most preferred form of online payment, followed by PayPal and BPay.

Payment from a personal bank account was the least preferred method.

www.news.com.au/heraldsun/story/0,21985,24982159-664,00.html



Bookmark and Share

Saturday, January 31, 2009

How to make WSAD ask for workspace location?

When WSAD starts-up, it ask for the workspace location to open. In the same dialog box, there is a checkbox below the workspace location and it reads like - Use this workspace as the default and donot show this dialog box again.
Accidently, I checked the checkbox, and alas, I was unable to change my workspace. So, what to do now? How to get the dialog box prompt back?
Right click on the WSAD icon and go to Properties -> Shortcut -> Target. Add -setworkspace to Target, and we are ready to go.
After making the changes, Target should read like the below-
"C:\tools\IBM\WebSphere Studio\Application Developer\v5.1.2\wsappdev.exe" -setworkspace

Next time, you open WSAD, you will be prompted to select your workspace!


Bookmark and Share

Monday, January 26, 2009

[Vista] Delete files using Disk Cleanup utility

Do you know whenever a program crashes in Windows Vista OS, it stores some 100 MB of system information on your hard drive, so that it can send to Microsoft to tell them why customers are unsatisfied with their product? One can only imagine the amount of data Microsoft’s servers have to handle!

However, there is a built-in utility (Disk Cleanup) that allows you to free your system from unnecessary files, creating some extra space, and making the computer a bit faster. It removes temporary files, empties the Recycle Bin, and removes a variety of system files and other items that you no longer need.
  • Disk Cleanup can be found in the Start Menu by going to Accessories -> System Tools. Alternatively, you can always use the search box and type the word "disk".
  • In the Disk Cleanup Options dialog box, choose whether you want to clean up your own files only or all of the files (i.e. for all users) on the computer.
  • In the Disk Cleanup: Drive Selection dialog box appears, select the hard disk drive that you want to clean up, and then click OK.
  • Click the Disk Cleanup tab, and then select the check boxes for the files you want to delete.
  • When you finish selecting the files you want to delete, click OK, and then click Delete files to confirm the operation. Disk Cleanup proceeds to remove all unnecessary files from your computer.
  • [Instructions are available at Microsoft's site at Delete files using Disk Cleanup].
Run Disk Cleanup on regular basis to reclaim the disk space. Better run CCleaner after running DiskCleanup.




Bookmark and Share

Sunday, January 25, 2009

Learn AJAX with Google's help - Google's AJAX Playground

Google today released a new browser based tool that will make learning and testing code for Google's Javascript APIs a lot easier. Google's AJAX API Playground gives developers an easy to use interface to write some basic Javascript code for Google's eight Javascript APIs (Maps, Search, Feeds, Calendar, Visualization, Language, Blogger, Libraries, and Earth).

The programming console provides sample starter applications for all APIs but you are free to change the source code and save the modified version to your own Google Account for referencing later.

The Playground runs on top of Google's App Engine and was developed as a '20% project'. It will also be Google's official way to show Javascript samples.

For anyone interested in exploring various Google APIs, I am sure this could be a great way to get some coding experience.

Link: Google AJAX API Playground


Bookmark and Share

Monday, January 12, 2009

[Humor] New Stock Market Definitions - Have a laugh while still you can!

New Stock Market Terms

  • CEO —Chief Embezzlement Officer.
  • CFO — Corporate Fraud Officer.
  • BULL MARKET — A random market movement causing an investor to mistake himself for a financial genius.
  • BEAR MARKET — A 6 to 18 month period when the kids get no allowance, the wife gets no jewelry.
  • VALUE INVESTING — The art of buying low and selling lower.
  • P/E RATIO — The percentage of investors wetting their pants as the market keeps crashing.
  • BROKER — What my broker has made me.
  • STANDARD & POOR — Your life in a nutshell.
  • STOCK ANALYST — Idiot who just downgraded your stock.
  • STOCK SPLIT — When your ex-wife and her lawyer split your assets equally between themselves.
  • FINANCIAL PLANNER — A guy whose phone has been disconnected.
  • MARKET CORRECTION — The day after you buy stocks.
  • CASH FLOW— The movement your money makes as it disappears down the toilet.
  • YAHOO — What you yell after selling it to some poor sucker for $240 per share.
  • WINDOWS — What you jump out of when you’re the sucker who bought Yahoo @ $240 per share.
  • INSTITUTIONAL INVESTOR — Past year investor who’s now locked up in a nuthouse.
  • PROFIT — An archaic word no longer in use

[Received in an email forward]

Total Pageviews

Popular Posts