units of measurement

May 1st, 2007 mysurface

To measure a quantitative object, we usually use certain standard of units. To measure width or length of a piece of paper, we may use inches, centimeter or meter. Sometimes, the conversion between one system unit to another might not be straight forward. For examples convert inch to cm approximately, 1 inch is 2.54cm, 1 [...]

Posted in bc, Common, Misc, units | Hits: 36371 | 3 Comments »

linux alarm clock

April 14th, 2007 mysurface

I have too used to alarm clock, to wake me up every early morning. I set my alarm on my cellphone every night before I going to sleep. But recently, a simple stupid idea of creating an alarm clock in Linux comes to my mind. I usually turns on my laptop overnight for some downloads, [...]

Posted in bc, Misc, xmms | Hits: 75803 | 9 Comments »

Command line calculator, bc

September 4th, 2006 mysurface

How to do calculation if I only have command line? If you have BC you can, and you can do a very complicated calculation. To perform calculation, you can type bc and start to type your question, or passing question through pipeline, such as echo “56.8 + 77.7″ | bc Let say you want to [...]

Posted in bc, Calculation, pipeline | Hits: 152714 | 21 Comments »