Thursday, February 19, 2009

Dealing with bugs in Linux and Windows

This afternoon Eva told me her Firefox crashes about 10 times a day on just bought Lenovo IdeaPad S10. We've checked that updates are enabled and that she is using latest version 3.0.6 and no extra add-ons are installed but nothing helped. In the end we installed a Chrome for a while. Now what to blame? Old Windows Xp running on netbook, mozilla, antivirus? No clue where to start or what to do next.

Contrary, on my Linux machine one super application stopped working. It is called gnome-do and it is unbeliable productivity booster. I worked for about two days without it and my work flow was seriously disrupted. Today I created bug in ubuntu and joined #gnome-do IRC channel on freenode server and got an answer which has solved my problem within few minutes.

You decide which system works better.

Saturday, February 14, 2009

1234567890 is here, heureka

Time on UNIX like machines (including Linux) is counted in seconds since midnight January 1st 1970, the moment when time began on the Unix operating system (aka the Unix Epoch).

Today at 00:31:30 CET (23:31:30 UTC) counter showed magnificent number 1234567890 (that happens once in an epoch !) and many hearts of the right geeks have been pleased ;) Congratulations.

Celebrations have taken on many places around the world. Sometimes its the little things I enjoy.

Monday, February 9, 2009

Sunday Linux adventures

Sometimes it does not help how much you prepare ... the system is mighty.

To keep practicing and learning Linux with my friend we are running small business including hosting couple of websites and running about a dozen of virtualized machines. We are actually proud of our solution as we have managed to build kinda interesting infrastructure that runs for years.

If we have any problem with it, the it is usually with hard drives. We now have achieved 222 days without a downtime (I guess our SLA is now much better then London Stock Exchange powered by Microsoft). With this gained confidentiality we decided to upgrade whole SW stack on our infrastructure including major changes (XEN core, Linux Kernels and up-to-date to all services / packages). We decided to clean up everything for the next big thing.

We spent whole Friday and Saturday preparing all the packages and the process for smooth upgrade. On Sunday before lunch, we were ready just for the reboot. I asked my friend to get to site just in case anything goes wrong. In short we ended up at 1:00am on Monday morning. But we learned a lot, all the services have been restored and machines are ready to rock again.

Now follows Linux rant about the problem:

13:00 - Hypervizor complains about being compiled against wrong kernel headers. Solution was to recompile against latest xen headers. That means boot into usable environment using rescue CD. Our system has not CDROM, create usb stick and boot from that.

14:30 - Root partition is not detected. We use otherwise excellent Enterpise Volume Management System ( EVMS ) stack to manage our disks/partitions. But for some reason the root (main) partition was not detected. Too bad, after some help from IRC we reenabled EVMS flag on the partition and it was back online. Ok we can access everything to recompile the XEN.

15:30 - Hypervizor recompiled and is booting but now complains about mismatch with kernel. It turns out, kernel for some reason was compiled without PAE extension. XEN has dropped support for non-pae kernel in 3.1+ series. Took a while to figure out, but we recompiled the kernel with High Memory Support.

16:30 - Hypervisor boots, kernel boots but now init complains it can't switch root partition from RAM to EVMS partition. After some investigation it turns out something is worng with BusyBox (missing switch_root function). Edited initrd manually and used busybox from working initrd.

18:30 - System boots. We now have our main domain ready.

19:00 - 01:00am we spent in an effort to bring the rest of our services back on line. We allso had to recompile kernel for domU machines, modules for our FireWall to include support for iptables and TUN/TAP interface for VPN services, modify udev rules to create persistent rules for network interfaces.

What a learning experience. Anytime I hear a PM saying upgrade process has to be smooth, there has to be 0 downtime I have to laugh. World is not static, so is not development of the packages. The longer you do not touch your system, the more interesting things appears when you try to get it up-2-date. Linux is great.

UPDATE: One day later we probably could avoid the hypervisor booting and save about 5 hours! Everybody is a general after a battle :)

Tuesday, October 28, 2008

Back to Athens, Greece

Well after my return from Kuwait, I managed to spent some time back in Prague and visit most of the friends I've been neglecting for a long time. With Eva, we bought some furniture and I've spent like a week to put it all together. But at the moment, the kitchen, the bedroom and the bathroom are almost finished. Hurray!



And then the good news came and I packed all my stuff (two kites and few t-shirts) and headed back to Athens to spend nice and warm autumn here. I kinda got used to sun this year (spring in Greece, summer was exceptionally hot in Denmark, then Middle East and now Greece again). Staying in the same flat with Petr Novak. Gotta visit Acropolis this time!

My friend Petr Drobny aka 'drobek' (which means tiny, but Peter is almost 190cm tall) arrived and we went to Paros to catch some wind at Punda. We stayed at SunSet studios (place I can reccommend to everyone). No wind on Friday was not at problem as we rented 150cc quads and it was a lot of fun to ride it around the island.



Rest of the stay was great, wind was up to 20knots and we managed to do some small jumps as well. Only problem was my kite, a local guy who knows how to ride told me: 'This is EVIL kite'. True, if I do not watch it for a second, the beast is already going another direction and I shortly fly-follow. Well as they said Nobile High Performance, turns fast, high power, superior hang time. If only I could say I match those prerequisites. Neverethe less I also tested 2009 Cabrinha Switchblade, this is excellent kite for beginners.



Now back to Athens, working for the customer and occasionally trying to catch some wind at Loutsa. Which is always too strong for me, so the whole point of riding is to get to the open water and then spend like 2 hours trying to get back to starting point. But I will manage!


I'm off to have my first lesson of scuba diving.

Saturday, September 13, 2008

Kuwait, Al Kuwait

Ok, few days ago I moved to do some tasks in Kuwait. I flew with Fly Emirates and yey, what an Airline. On 1,35h flight I got served like a king. It was this huge Airbus (no, not the 380), and the food was delicious. Three courses, compare that to sandwich I get on 1.1h flight to Denmark with CSA (I still like CSA a lot though;) ).

First thing I really enjoyed was the TAXI ride from Airport to the hotel. Perhaps it was because I tried to look like I do not care (or better like 'I own the world' - which was btw another advise from my Danish colleagues ! They said, every Arab behaves like that :)) this guy has impressed me. Driving old Ford (but with at least 5.0L engine) we were in 140+Kmh (or was it Mph?) going on the motorway from one lane to another and honking everyone around. What a ride, say WOW!

Al Kuwait city centre from the Marina Mall.

During a day I was mainly working and because the sunset is about 6:30pm most of the pictures were shot at night when I wondered around the city. Hotel was great and I spent a lot of time in this place ;)

Hotel's pool on top floor (23rd).

Most of the week I was starving. Ramadan in Kuwait is a litlle bit more seriously taken (at least when it comes to people just visiting the place) then in UAE. If they catch you drinking or eating during a day (Iftar starts about at 6 pm) you pay fine of 1000 KWD (about 4000$) and you go to jail until end of Ramadan (about three weeks from now). I really tried my best to not to miss my vacation. So the first day I was very happy to see the hotel service to forgot to clean my room. There were some leftovers from the breakfast .)

In the evening I tried to explore the surrounding areas but at the first sight there is just nothing in Al Kuwait. Only a few people wondering around, lot of dust and heat. This is what the Mall looks like at 7PM. At 10PM it got quite crowded.


Yesterday I got little bit of tired of thinking of Al Kuwait as a bad place to live. I asked the people where the locals go, there has to be some markets right? So I went to Souk Mubarakia. And that changed my mind completely. Temperature got down to about 37 degrees at night so it was 'comfy' to walk around in my full cotton trousers.
The whole markets is consisted of hundreds of small streets connected together. Those streets are full of small shops of various kinds. Interestingly same types of shops are close to each other. From spice shops, dates shops, fish market, meat streets to all kind of groceries shops.

Gold district :0 I am not into gold, but this place is magnificent.

Dinning place, I've really enjoyed local fish with rice, Arabic bread, salads, mango juice and Čaj a lot. Eva would be proud of me for the way I cut this fish and got rid of the fishbones (she is the real master in this!). And all this just for 2KWD, I could barely walk after eating here, delicious!

On the streets one can see the REAL cars! In some way the time is ticking slower than other places. What I also found interesting were the people. Very friendly. And you go somewhere, you think there has to be something special because you see crowds of people there and when you get close, you realize they are just standing there. Talking and nothing more.

I even managed to get to the Liberation Tower and everybody told me it is possible to go up and see the city from the top. Well that turned out not to be so true. Anyway it is magnificent construction, tallest in Kuwait. I've enjoyed the markets a lot, bought a lot of junk (like night vision binoculars which of course do not work and zooming 1:1, but don't buy it if it was 3KWD).

Well, time to say good bye to Kuwait. My flight to back to Dubai is in about 4 hours, then transit to Amsterdam and then back to Prague, home sweet home. Full album is here.

Saturday, September 6, 2008

On the trip again, this time Dubai, UAE

There was not enough of wind in Denmark so I took the opportunity to try Dubai.

(the picture is pretty bad, I know)

People said things like this is not a good time to come here (temperature, humidity and Ramadan). A lot of that is true. Yesterday on the beach, I got new kite F-one Revolt 13m and was desperate to try it. But the wind was only about 5-7 knots (about 3m/s) and it was not flying at all of course. The water was so hot, it almost felt like a shower temperature Eva is used to ;) I tried to stay in the shade of the kite, but was sweating too much. By coincidence there was a 'ultimate survival' show on national geography that evening that showed how to squeeze a seaweed to get some water, will try that next time.

Then you get into taxi, and you get cold immediately. I think Taxis here are like public fridges. The temperature in it is close to zero. Everything here is air conditioned, so while you are in the building, Dubai looks like a great place, until you go out of course. Like trying to catch a taxi for 30 minutes makes you learn how to swear in Arabic. My colleague says, it is ok, you just get a shower three times a day. I agree.

My Danish colleagues also said a lot of other things that you cannot wear shorts on public, one cannot see womens face and more of that stuff. It took me several days of sweating in the trousers to figure out this is not true at all (they were just joking, like always). Dubai is actually quite open minded in those terms. People are very friendly. Just respect some basic rules and you are ok. It is Ramadan, so do not eat or drink on public as that is a sign of disrespect to those who are fasting them selfs. But takeaway is doable (just use the curtains in the hotel room).

Food here is great, you can pick from Indian, Pakistan, Japanese (I recommend Wagamama restaurant ), Arabic and many other cuisines. Price are affordable. What is really cheap is the oil (of course) and the cars. Friend told me a new VW Touareg costs around 110 000,- Dhs (around 20 000 Euro). Unfortunatelly you can't bring them back to Europe. Shops are huge, the only one I was to is Mall of Emirates, but that is enough.

I can't take photos, it is too humid here these days. This is the best I got to.


The temperature is close to 40 in the shade, I am heading off to Kuwait in two days. There is 50+, will see.

While in Dubai I met another Czech guy living in there. His name is Honza, he is kiting a lot, likes bikes and he is a great company, follow his story here. His friend is Passi (Finish guy, I hope I got it right) and he gave mi a ride in his Chevy Corvette. That car has 505HP and can do 0-100Kms in 3.6s (I witnessed it ;) With them I visited a place called Barasti Bar. One of the top rated bars in the world, check it out if you are in Dubai.

Ok, off to Kuwait now.

Tuesday, September 2, 2008

and she said Yes

Well it is probably time to tell everyone. Nine years ago I fell in love with Eva.


Our life together until now was like a video game with all the ups and downs. However last time I was in Czech, we took the boat and in the middle of the Máchas lake she said Yes.

And now, the game is over :)

(thanks to my lovely family for the perfect gift)