Monday, November 19, 2007

How can you get enough coffe / hot water from your cofffe machine?


Today's learning started form the coffee machine, usually i takes hot water to prepare black tea. and to get a glassful of water, i have to press the button 2 times. they adjusted the machine so that it can fill a half of the cup in a single press. but today i found

Once you pressed the button, the coffee will flow until you release it. regardless of a half cup, or full cup you can get as much coffee as you want!

beware of cron jobs!

my perforce server was yelling like there is no disc space for anymore sync. and just now i came to know that - the cron job which i configured to make the check point in each weekends made this problem...i deleted those files..and it is working now.

so when your machine complaints about the disc space, and you are sure that there was enough space even in the last week..suspect the cron jobs. some of them which scheduled by you may backing up the entire disc ! ( LOL )

Outlook work offline ??


It was todays coolest learning... i am getting so many junk mails now a days, so i decided to create a rule in outlook 2003, but suddenly a message box pop up and it shows like

"You are currently working offline. To use this command, you must go online and connect the Microsoft Exchange Server."

Funny!!! i am using this for last 2 years, and even created so many rules.. what is happening with it now? but i noticed the outlook icon in the system tray bar of outlook express. it appeared in some other way - a red cross symbol upon the normal icon..ALERT !!!

oops, i played around about 10 minutes and finally found that a simple setting can make you mad.
To change the settings, go to Files and un select - Work Offline.

still i didn't have any idea, how it became checked...

Google mobile platform - android


I got a mail from my friend about the googles new mobile platform - android.
i too heard about this sometimes before, but only today i got the actual name and its URL.

http://code.google.com/android/

yeah its quite interesting....!

Want to check your disk is full in Unix ???

oops! it happened again... unix machine says, disc is full...more precisely

write: journal: No space left on device

No probelm, command df can save our life.

df shows how much free space is available in each mount.

It has a list of options, and the man page says like

a, --all include dummy file systems
-B, --block-size=SIZE use SIZE-byte blocks
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
-H, --si likewise, but use powers of 1000 not 1024
-i, --inodes list inode information instead of block usage
-k like --block-size=1K
-l, --local limit listing to local file systems
--no-sync do not invoke sync before getting usage info (default)
-P, --portability use the POSIX output format
--sync invoke sync before getting usage info
-t, --type=TYPE limit listing to file systems of type TYPE
-T, --print-type print file system type
-x, --exclude-type=TYPE limit listing to file systems not of type TYPE
--version output version information and exit


But among them, i used df -h. it displays the result in easy to read format. like

Filesystem Size Used Avail Use% Mounted on
/dev/hda3 39G 2.8G 34G 8% /
/dev/hda1 99M 11M 83M 12% /boot
none 254M 0 254M 0% /dev/shm

perforce and chmod


Perforce does not look at your file system to determine if files need to be synced.
It keeps records on the server of everything you've synced.if you have to chmod a file,
you're probably doing something that will get you into trouble later.
if you do stuff without telling perforce, you'll just be swimming against the current
and it will be a lot of trouble Lesson : Don't change the mode of perforce files in your client!