Christos M Delivorias

Archive for 2012|Yearly archive page

Checking progress of a shell process

In CommandLineFu, Linux on 11 April, 2012 at 10:25 am

When dealing with processing really large files (300files~15MBeach), it quickly becomes a process that you have to wait a long time for it to finish. I wrote a Java program that manipulated a flat text P1/90 (Seismic Vessel’s Positions) file and outputed a corrected version in another directory. Thus I wanted to check how far along it had gone and when I should expect it to finish.

Mind you I could have done this in the Java code – keep a record of all the files and how many had been processed – but this project was time-constrained so I didn’t have the luxury of developing it the way I wanted; it had to be done quickly. I therefore delegated the monitoring to the command line tools. Since I new how many files I had originally and how many were being created in the new directory, all I had to do is count each of them and compare them. The following one-liner does exactly that:

watch 'ls *190 | echo -n "`wc -l`"; echo -n "/"; ls ../*90 | wc -l'

Read the rest of this entry »

Swimathon 2012

In Personal on 3 March, 2012 at 6:05 pm

I’ve decided to set a challenge for myself. It’s been a while since I actively did any kind of training/exercise. Partly because of feeling some anxiety from a recent hernia operation, I was hesitant to exert myself. Not anymore!

I was looking for something to push me into completing a challenge and what better way to do this than doing it to raise money for a charity. When I saw the Swimathon Weekend 2012 I knew I had to sing-up.

So this is me committing to swim 5 Km for the Marie Curie Cancer Care.

Being a true analytics guy, I did the only logical thing I could think of. I began to track my progress to make sure I’ll be able to complete the 5 Km. At this location you can, if you so wish, see my progress until the Swimathon on April 27th. I’ll try and test completing a 5K swim before that date, just to be sure I can do it. If you wan to show your support in any way you can head over to my Swimathon appeal page. There you can either send me a supportive message, or better yet make a donation.

The donation will help the Marie Curie Cancer Care nurses, help take care people with cancer in their own home. Please give as much as you can. Even £5 is enough if it comes from 50 people!

I plan to train until I’m sure I can do the 5K for this challenge. This will require some determination and endurance on my part, having to juggle work, my MSc, and the training, but I’m really excited to do this. I hope you can help support me any way you can.

I appreciate everyone’s support in whatever form it may come.

Thank you,

Christos

2011 in review

In Personal on 15 January, 2012 at 3:02 pm

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

A San Francisco cable car holds 60 people. This blog was viewed about 2,300 times in 2011. If it were a cable car, it would take about 38 trips to carry that many people.

Click here to see the complete report.

Customising OSX

In imac, Personal, ZSH on 15 January, 2012 at 1:45 pm

As I wrote some time ago, I recently migrated from linux to OSX. Since this OS was very new to me, it took me a while to figure out which applications were useful to me and which customisations added to my productivity. This article is a list for people new to OSX and want to hit the ground running. It is basically the article I would have liked to have found when I first migrated. Read the rest of this entry »

Follow

Get every new post delivered to your Inbox.

Join 233 other followers