Monday, February 23, 2015

My Malta Marathon 2015 experience

My first marathon, therefore my personal best. The ‪Malta Marathon‬ was a test of mental fortitude. My legs are shattered but my spirits are high!

Tuesday, February 03, 2015

Monday, February 02, 2015

My first (almost) 18km run

An achievement followed by some sore muscles and in anticipation for the half!

Thursday, January 22, 2015

The Art of Decision Making - Sunk Costs

One of the life changing concepts I have recently learned during my MBA studies is to when effectively walk away from a business. Let's face it, we have more or less been all living in a society which dictated the myth that as long as we have previously invested substantial energy, time and money into something, we should continue doing it, even if the future benefit might get negative or we just hope to bring in some profit.

After studying about the concepts of relevant costs I do not agree with this traditional reasoning - past costs, known as sunk costs, should be never accounted in future decision making. You should just look at the present...the t = 0, when considering costs... Look at it this way - wondering about the future? Then consider only the FUTURE costs and the FUTURE benefits. The future benefit should always be more than the future cost if you decide to give green signal to a project.

For most people, including business men, they find it difficult to detach themselves from something which costed them lots of money and energy to get that far and they aren't seeing the profit yet. This is wrong.

Now quick question for my blog readers to ponder about: How many times did your manager, CEO or CFO, base his financial decisions on irrelevant sunk costs? And what can you tell about the outcome of such decision?

Saturday, December 13, 2014

Change LUKS disk encryption key

This morning I wanted to "cleanup" the work laptop to pass it over to a new colleague in the team. Then I remembered that I have used my LUKS password in other applications. Unwilling to share this password I decided to take the plunge and change it! These are the steps needed:

1. Determine the device with LUKS encryption:
╭─root@darktech  ~
╰─$ dmsetup ls                                                                                                                                                                                fedora-win8     (253:9)
fedora-backtrack        (253:6)
fedora-swap     (253:1)
fedora-root     (253:2)
luks-eca67822-2122-44ab-9dc7-2f13c8e94d6f       (253:0)
fedora-data     (253:7)
fedora-winxp    (253:4)
fedora-backup   (253:8)
fedora-f18      (253:5)
fedora-home     (253:3)
╭─root@darktech  ~
╰─$ dmsetup info luks-eca67822-2122-44ab-9dc7-2f13c8e94d6f
Name:              luks-eca67822-2122-44ab-9dc7-2f13c8e94d6f
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        9
Event number:      0
Major, minor:      253, 0
Number of targets: 1
UUID: CRYPT-LUKS1-eca67822212244ab9dc72f13c8e94d6f-luks-eca67822-2122-44ab-9dc7-2f13c8e94d6f

╭─root@darktech  ~
╰─$ pvdisplay
  --- Physical volume ---
  PV Name               /dev/mapper/luks-eca67822-2122-44ab-9dc7-2f13c8e94d6f
  VG Name               fedora
  PV Size               465.08 GiB / not usable 0
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              119059
  Free PE               0
  Allocated PE          119059
  PV UUID               yXSVeR-pwc4-nkJt-EXWq-CiLA-2XPs-qwdQVu

2. Create a new LUKS password:
╭─root@darktech  ~
╰─$ cryptsetup luksAddKey /dev/sda3                                                                                                                                                          
Enter any existing passphrase:
Enter new passphrase for key slot:
Verify passphrase:
╭─root@darktech  ~

3. Remove the first slot:
╭─root@darktech  ~
╰─$ cryptsetup luksKillSlot /dev/sda3 0                                                                                                                                                      
Enter any remaining passphrase:

The first slot is "Slot 0", second is 1, etc. Make sure you don't remove the wrong slot or you will lose your data permanently!

Friday, November 21, 2014

2015 Malta Eurovision Song Context - a review

Times of Malta have posted a lighthearted "Idiots' guide to 2015 Malta Eurovision Song Context" article this morning.

Of particular amusement the tongue-in-cheek reference to Lawrence Grey's "never giving up" experience with this song context, and Ludwig's sleek image:

Lawrence Grey - The One That You Love

“I’m never gonna be the one that you love. Is there a way that I can win your heart?”
I love the way our Lawrence never gives up and now he’s even spelling it all out to the audience, in a quite catchy, croony song.
The question is, though, Will the audience get the message?

Trilogy - Chasing A Dream

The trio is made up of Eleanor Spiteri, Roger Tirazona and Ludwig Galea.
Roger and Eleanor and diction don’t go hand in hand: Traaying Harrrd.
I love Ludwig and his sleek, blow-dried, Japanese straightened mane, and the way his vein in the neck pops when he reaches high notes and the way he throws himself, back, then to one side, then to another, then back again, when he’s reaching all the other notes.