Thursday, 29 October 2009
Sunday, 25 October 2009
Wednesday, 21 October 2009
Tuesday, 20 October 2009
Have you ever heard about UNIX
pv command? I bet you didn’t — and I promise you, your life will change and you’ll become warm and fuzzy inside — because
pv stands for “pipe viewer”.
Try to count, just how many times did you do something like:
grep -i something file.txt | gzip -c > output.gz
and wondering, just how the hell long will it take for it to finish? Well, for me it did happen quite often, especially when handling 10GB+ files (such as, say, Wikipedia dumps). That is exactly when pipe viewer comes to the scene. That’s how it looks:
[user@host wikipedia]$ pv enwiki.xml | wc -l
767MB 0:00:16 [67.9MB/s] [> ] 3% ETA 0:07:58
It’s the most simple use case — but so far one of the most useful ones (if you can say that about the use case). Say, you pipe more than one command and want to display the progress separately for every of them — no problems, you can do it! — as well as many other things.
Check out the pv’s webpage: http://www.ivarch.com/programs/pv.shtml — to me it’s one of the little utilities which make my life substantially easier.
Monday, 19 October 2009
I can't really comment on it - so I will just cite the text of the original email. I've never, ever, ever seen anything like that before.
This email has been sent to you by Griffin Technology to help facilitate testing and/or replacement of merchandise.Generally we handle returns for our international customers a little differently than for our domestic customers. We assure you that this is our preferred method for handling your return as it will help save you money (shipping costs) and the hassle of having to send the product back to us. It also has the added benefit of helping us to ensure that your unit is truly non-functional.First, destroy your defective product. Yes, really destroy it. A hammer works well for destroying most products however feel free to use whatever tool you are most comfortable with. This can be a great opportunity for you to express yourself creatively and take out some frustrations at the same time. Also, you may want to use eye protection and protect yourself from any flying debris that may result from this process. Second, document the destruction. We recommend taking a digital picture of the destroyed unit while it is laying on a printed copy of this email so that the RMA number and other information are visible. Also, take a digital picture (or scan a copy) of your receipt.Third, send us the pictures. Just reply to this email and attach the digital pictures of the destroyed product on the printed email and the receipt along with any other pictures that we might enjoy, such as you holding the destroyed product or the town where you live. Of course including the extra pictures is optional but feel free to include them if you want to. Once we receive the email and verify the photos we will send a replacement to the address that you have provided us below. In order to ensure that we receive your email, please limit the size of the email to around 3MB. If we have not received a response from you within 30 days from the when this email was sent, your request for a replacement will automatically be removed from our system. So please respond as soon as possible.Processing may take up to 2 weeks once the photos are received. Thank you,Griffin Technical Support
Indeed, I've sent them the photographs of (thoroughly) destroyed cable and received confirmation, that the new one will be despatched soon. I don't know, how long will it last, but the approach to returns I've seen from Griffin - is truly admirable!
Saturday, 17 October 2009
Friday, 16 October 2009
Had probably re-invented the way of copying gzipped files via SSH to Hadoop's HDFS: