24 September 2012

Geek goes to PyCon PL 2012 - day 1

Last week, I went to my first programming conference ever - PyCon PL 2012!

Here's what I wore on the first day:


I fooled a few people that I worked at Google, which wasn't my intention, but this misunderstanding was promptly explained.

Day one was mainly the trip there and being too tired afterwards to party like it's PyCon 2012. Still, the lectures were rich in content and very interesting.

Łukasz Langa talked about Ralph, an asset management system for your data centers. Written in-house to manage the biggest cloud in Poland, it is now open-source. Łukasz talked about how Ralph was born: out of need, when adding new admins wasn't helping to keep the huge and varied infrastructure in order. The beginnings were tough, as there was only one developer and no process like scrum was in place. This one developer wanted to do everything for everyone, which of course couldn't work well. The solutions for this situation were:
  1. more devs
  2. applying scrum by the book (I never knew that in the real scrum, a task from outside the sprint cancels the entire sprint!)
  3. git workflow
  4. one good changelog
  5. one good backlog
  6. thematical sprints.
 The second talk was by PyCon PL's youngest speaker ever, 18-year-old Marek Šuppa. He talked about programming Lego NXT robots with Python and how he taught it to kids. He created his own IDE, nxtIDE, complete with a simulator, for that purpose. The show was the best part:





 The third talk was by lvh, about fractal architectures. Big data is big these days and everyobody is scaling up - but why not scale down first? Why not, for example, shard your data by user and for every user, set up a separate SQLite database? Once you've scaled down this much, scaling up is easy. Well, except when it's not. Some problems arise, like wide queries for statistics, global, non-user-specific data, handling transactions... Depending on your project, these issues might be bigger or smaller and a fractal architecture can be a good solution for you or not. It's not a silver bullet, but definitely an interesting concept.

The last talk on that day was about forms in Python, their challenges and existing solutions. Szymon Pyżalski presented them, along with a framework of his own: Anthrax. (See his page for PyCon materials and more on Anthrax.) Szymon works for STX Next, the daughter company of my previous employer. Having dealt a lot with forms at that job, I knew exactly what Szymon was talking about. :) Since my current job is so different, however, (I basically have one big form!), I wasn't very interested in the details and didn't take many notes.

After the talks, I had a few drinks with STX Next people, then went to sleep.

To be continued...

26 May 2012

On my wish list: a ready-to-use, convertible house

I'm fascinated by little convertible houses, where all space and furniture is designed to be multi-functional. I'd love to live in one.

Why don't I? Well, as with everything in life, there's some trade-offs. Not only that sort of home needs a lot of time to be designed, you also have to build most of the furniture yourself, as the commercial options are limited. (I think that my most functional piece of furniture is my sofa, that doubles as a guest bed and has storage underneath.) And let's face it, you need quite a bit of resources to make your own furniture, starting with lots of space (at least temporarily).

Well, as it turns out, there is another option: Graham Hill recently designed such an apartment for sale.


 The sofa hides a Murphy bed:


The kitchen counter expands to a table where you can sit up to 12 people! (Stackable chairs are stored behind one of the walls.) This is what amazes me the most. One of the biggest trade-offs of minimalism is the one of hospitality. Many people would feel offended if they were invited to stay in uncomfortable conditions.


Even the tableware was carefully chosen to be multi-functional!



For now, there is just one apartment of the kind, but with the rising popularity of minimalism, there will hopefully be more and more options widely available. Hopefully my next house will have lots of well-designed, multi-purpose convertible space for kids, guests, hobbies, everything.

[Picture credit]

21 May 2012

Become awesome in 366 days

It started with Jerry Seinfeld's productivity secret. Well, it's not technically a secret, since quite a few fellas  know that it is:

Don't break the chain.
 I'm not gonna praise it here. On the contrary: it's one of the productivity tricks that work the least well for me. There's always a weird day where a lot happens and keeping chains of my good old habits is really hard for me, let alone some new habit I'm working on. And when things go back to normal, I easily and happily get back on track. (Bah, as you see on this blog, getting back on some track can happen at the weirdest of times for me.)

But, there's me, and there's other people. Like Chris Strom. That guy used the secret above to become awesome in 366 days. That's how his chain goes:
Every night, I ask a question to which I don't know the answer and I try my damnedest to answer it.
Sticking to that chain for 366 days made him learn a lot and write 3 smart books (the details are on LifeHacker).

There's also yet other people. That guy doesn't need 366 days to become awesome:


However, let's leave Barney out of this - none of us can hope to be half as awesome as he is!

Chris' example (and the comments below the article) made me think. We all know it's not easy to start a good new habit. We all have lots of ways to fill our time (otherwise boredom would drive me right into the good habits' arms). We all need to rest too. You can only add so many one-hour-long daily activities (24 - to be exact). But how about 5-15-minute ones? (The number is instantly way bigger!) I know some people are for instance taking care of small children and have a hard time getting even 10 extra minutes from their day (do you know what small children can do in 10 minutes?), but not me. I could squeeze one in the morning and a few ones after work. Is it worth the shot? Will it make me even more tired, or on the contrary, energized and happy about my productivity? How many ways to find out are there? And finally, as a wise commenter on Lifechaker asks:
If I hadn't spent that time doing those small things, what might I have gained, a high score on spider solitaire?
[Picture credit]

20 May 2012

Dilemmas

Wow, it's been almost a year... Screw the excuses, I just didn't feel like blogging. And I'm still not totally sure I do.

I thought that being funemployed would give a lot of time for blogging and that the stress of writing my thesis would encourage my to seek comfort in this diary-like therapy. Somehow that didn't happen. The thesis went as usual: it started with a feeling like "I'm writing the best thesis ever!" and ended with "I'm so tired of it! When will it be over?". Of one thing I am absolutely sure (got the Twilight allusion?): school is not my happy place. Happily, school is over: I graduated last December. I now have two masters. It's really cool when it's over.

What do you do when you graduate? You get a full-time job. (Well, depending on your industry, this my be easier said than done, but in mine, staying unemployed is more of a challenge than finding work.) That's what I did. Since it's only one query away, I'll just say it: it's at WebInterpret. (Now my physical location is only another query away - is that the way things should be? Dilemma... Can I openly write about where I am or is that an entry for please-rob-me.com? Dilemma...)

My life is so much more grown-up now. Grown-up in the sense that my party small talk involves tales of recent purchases and maintenance actions performed in my home. I come home from work tired (being tired is a common denominator for all adults) and cook and clean. When I browse the web, it's for cooking recipes. Am I interesting enough? Will I provide entertaining content? Dilemma...

Or maybe I'm just ranting too much? (Forgive me, I'm currently in bed with a cold.) Because on the other hand, I'm feeling like I'm gradually getting so much stronger. In October-December, I was just getting used to full-time work and it drained all my energy. I came home, made dinner, sat at the computer. In January, I added 3 hours of physical activity a week. In March, I was up to 6. (I still am.) Maybe it's time to add some more hobbies and interests to the mix. Maybe it's time to read, do and write more cool stuff. Let's hope it is!





06 August 2011

Blogging my thesis - second edtition

Ladies and gentlemen, welcome to the second edition of "Blogging my thesis".

This time, I'm doing a cloud version of the Sage Notebook. I'm doing the front-end in ASP.NET MVC 3 with C# and Razor, the back-end in Python and an SQL Server database in-between.

Since a screenshot is worth around 1024 words, here's a little preview:


The good news is that it's cool and I'm learning a lot while writing it (like MVC or jQuery).

The bad news is that it's due on September the 30th. I wished to have it finished by the beginning of next month, but I'm afraid it will take too much work.

Well, however it turns out, it's cool.

23 June 2011

Hugging cat

Dear readers,

For your amusement, below is a picture of a cat hugging a little girl.


[Source]

01 May 2011

Geek goes funemployed

Hi guys, I'm funemployed!

This is good news for two reasons:

  1. I now have more time to do loads of great stuff,
  2. I'm gonna blog more, since I'll be looking for a job and trying look my best out there in the interwebs.
So what exactly are these loads of great stuff?
  1. Meeting lots of friends (I've started already and it's going great.)
  2. Writing my master thesis in CS (I've started already and it's going to be going great.)
  3. Getting another Microsoft certificate, 70-562 this time.
  4. Writing the best Android app ever, the one from the Big Bang Theory that solves differential equations (yeah, I'm 100% serious).
  5. Running and biking in the sunshine.
  6. Surely many more - funemployed doesn't mean idle!
I am told not to show off my material status on the Internet, so I won't get into the details, but let me just say I am now the lucky owner of an Android device - all the app out there are really great and I feel inspired to contribute some of my own. Even cooler, I have a few friends who feel the same way - bring on the SDK!

27 November 2010

Creative gift wrapping

Three years ago (boy, is my blog old!) I blogged about some creative gift wrappings. Well, it's that time of the year soon and people are publishing many more great and innovative ideas.

Country Living
has fun with tape:


How About Orange
explains how to make a gift bow from a magazine page:


Mondo Cherry has fun with aluminum foil:


Real Simple features, among other ideas, a ribbon with holes:


Design Sponge replaced the classical bow with a pom pom:


Even more ideas are featured at Squidoo.com - check it out!

19 November 2010

Lanvin for H&M: a 200$ disaster

It's no secret that I love clothes, the more colorful, the better. I like looking at clothing pictures on the web and when I first saw that Lanvin was doing a collection for H&M, I had a serious "WANT!!!" moment.

Lanvin is a fashion designer famous for making clothing with amazing ruffles:



What H&M is famous for is clothing that anyone can afford. So, beautiful, designer and affordable - what's not to want? I glued my eyes to the screen.

Not for long. Soon after pictures were published, prices got announced. These weren't the usual H&M prices: while these stores are filled with 40$ dresses, the Lanvin ones cost 200$. Quite a lot.

I didn't give up on the dream so soon: ok, it was expensive, but the dresses were so nice and trendy (though that means they will stat screaming "I'm so last season!" soon) and perhaps the quality was worth it.

It turns out it is not. On the promotional shot below, you can see on the collar how the fabric is raveling.


And my, it's a promotional picture! If that looks so much better than in reality, how bad must these dresses look like!

It seems I'm not the only one to disapprove of the quality of those dresses. A few days ago, a polish gossip site published pictures of a star wearing one. They didn't mention the names of Lanvin and H&M, but the lack of hem was heavily criticised. No wonder, it's so visible!


Honestly, I expect way more for 200$ and way more from a world-famous designer. Doesn't he have a reputation to loose?

[Picture source, source, source]

Geek diggs minimalism

Minimalism is recently really growing on me.

I guess it started with reading Lifehacker, which lead me to reading Unclutter, which lead me to wanting less clutter and here I am.

That transformation started at a lucky point: about a year before my wedding, which also was about a year before moving out of my parents' place and starting a new home. It's not everyday that you get to start from scratch - it's a 0-3 times in a lifetime opportunity! So I did my best to take advantage of it and tossed away lots of things that I didn't want to have in my new home. I got down to 4 moving boxes and a few bags of stuff and my moving was almost unnoticeable - my fiance visited me as usual and took my stuff to our new home in his car.

Today, my home is nowhere near like the nice minimalist pictures you can find on the web, nor would our stuff fit into 4 boxes. We keep buying and receiving stuff, however, I try to buy as little as possible and set high expectations for the stuff I decide to pay for, especially clothing: I have the habit of buying a lot if it, which might have been a good idea when I was young and just building my wardrobe, but definitely isn't anymore. I also prefer getting nothing than any gift, I enjoy tossing stuff away (but only if I can prove it's worthless) and I try to have as little e-mails in my Inbox as possible (never went under 7, actually) . So I guess I'm becoming a minimalist.

At this point, all minimalist bloggers feel obliged to point out that they are minimalists, but not in a "have at most 100 prosessions" or "screw all material possessions" kind of way. So, minimalism, extreme minimalism - not the same. There, done.

What I feel the need to point out is the difference between realistic and unrealistic minimalism.

Take the picture below:



That room looks fantastic! There's a lot of light and the amount of stuff is just optimal for a room to relax in. Plus, I don't exactly know how, but you can tell form the picture that it's an actual room in someone's home - perhaps an extra room besides a bigger and less minimalist living room, but still, it's real and it's inspiring.

Next picture:


Nice bathroom, but even if it isn't rendered in 3d, I don't see myself ever owning a bathroom even close to that one. I can't imagine having that much room for a bathroom nor the walls being white and yet so clean on an everyday basis. That's just too unrealistic.

There are a lot of great blogs on minimalism, written by people doing it for various reasons (travelers often become minimalists) and in various degrees - In the spirit of minimalism, I subscribed a dozen today. If you're interested in the subject, here's a great article to start: The Rewards Of Adopting A Minimalist Lifestyle: 13 Bloggers Share Their Views.

[Picture credit, credit]

13 November 2010

Where the Geek is when she's not blogging (in Egypt or on a Eurotrip)

Hi there. Yeah, I know it's been a long time, my apologies. Thing is, I've been alternately getting sick and travelling - I am now in a sick phase, hopefully the last one in a while. Since my sicknesses are not half as interesting as my travels, let me tell you about those.

The first one was a total Eurotrip. The deal was that a friend of Marcin is currently working at Cern and he invited us to stay with him for what turned out to be an entire week. We took him with us on one way plus his brother both ways. That trip included:

  • me crashing a Linux event in a Microsoft t-shirt (guys were staying, but hell knows if it was the t-shirt or the gender)
  • a night and a morning in Prague
  • visiting Bayreuth (but unfortunately not Bayreuth Festival Theatre because it had shorter opening hours than the student's office at my school)
  • me meeting some friends I hadn't seen in at least 12 years (my, have they grown!)
  • hanging at the Cern, especially at lunch time (which felt like being in a BBT episode, except they were many many more geeks - epic!)
  • hanging at an English pub and playing some trivia games (there was a Star Trek category!)
  • living maybe 50 meters from my middle school (ah, memories!)
  • me visiting the place I grew up in, which is the most beautiful place in the world to me
  • all of us visiting Geneva and Annecy
  • the guys going to Milan to grab a pizza after climbing on the Matterhorn
  • shopping
  • drinking french wine
  • losing a debit card and finding it soon after
  • crossing the french/swiss border at least four times a day
  • getting a flat tyre on the german highway.

All in all, that's more adventures than in Eurotrip. (Afterwards, I got scolded by my boss for taking all that overtime without asking him.) We're looking forward to organizing a similar trip next year.

Then I spent 3 days at home. These included working full time plus going to school on the evening (these were the first classes of the semester, so I didn't want to miss them). Consequently, cooking became microwaving and "taking everything out of the bags and dropping it on the floor" was the new unpacking.

Soon, we hit the road again, this time to a "real" summer vacation in the middle of October: we spent two weeks in Egypt. That trip included way less that the previous one:
  • bathing
  • sunbathing
  • a bit of sightseeing.
That holiday did us both lots of good and we enjoyed every minute of it.

Okay, now, for the pictures: I'm still trying to get the ones that weren't taken with my camera, so below are a few of my own, featuring absolutely no one.

That's the nice place where I grew up:


That's the previously mentioned middle school:


And here is a little piece of Egypt (Deir el-Bahari):



Now, I'm back to the life I love! I recently came across a quote by Seth Godin:

"Instead of wondering when your next vacation is, maybe you ought to set up a life you don’t need to escape from."

I definitely don't feel the need to escape from my life, but a vacation now and again is a great way to spend more time with loved ones and friends, get a fresh perspective on everything, load your batteries, etc. etc.

06 October 2010

The world is wrong about the Monty Hall problem

Today, at school, we considered the probability theory paradox called the Monty Hall problem:

Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door, say No. 3, which he knows has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice?

The world says that by seeing that goat, you learn that the probability of the car being behind door number 2 is 2/3 and Wikipedia has various explanations.



I claim it's 1/2. My first argument is that there is full symmetry between doors 1 and 2. How could you lower the probability of door 1 being the winning one by picking it? Nonsense.

For my second argument, let's treat it like the conditional probability that it is. All probabilities will be from your, the contestant 's, point of view.

At the start, we've got 3 equally probable situations: I'll denote them as CGG, GCG and GGC hoping it's clear enough.

Now the host opens a door. You see the goat: you gain information. Probabilities change. The probability of the door number 3 being the winning one falls down to 0.

So far, no difference from the "official" solutions. However, those maintain that while the probability of the car being behind the first door stays the same, the probability of it being behind the second one increases. Why the incoherence?

An important remark here: with the new information, we now have new events. We know that GGC didn't happen, so we have 3 events that assume ~GGC, namely:
  1. if the first door wins, it's CGG | ~GGC and P(CGG | ~GGC) is 1/2
  2. if the second door wins, it's GCG | ~GGC and P(GCG | ~GGC) is 1/2
  3. if the third door wins, it's GGC | ~GGC and P(GGC | ~GGC) is 0,
the final results being basic conditional probability calculations.


According to Wikipedia, "even Nobel physicists systematically give the wrong answer, and that they insist on it, and they are ready to berate in print those who propose the right answer". That's comforting: I may be wrong, but at least I have excellent company.

[UPDATE] After reading all the comments, I can see that I was wrong. Boy, is that problem counterintuitive! Thanks everyone for contributing! [/UPDATE]

22 September 2010

5 reasons why I prefer cats over dogs

Below are 5 reasons why I prefer cats over dogs.

Reason #1:



Reason #2:



Reason #3:



Reason #4:



Reason #5:



[Picture credit, credit, credit, credit, credit.]

18 September 2010

Figuring out the right and wrong women's figures

When it comes to women's figures, the norms keep on changing. It however used to be simple: when sweets were a luxury, fat meant rich and thus was "in". Then it was thin's turn: thin people were the ones who could resist the temptation of tasty food - a kind of saint. That one has been taken too far, up to anorectic chick, and too many deaths later, something seems to be slightly changing. But how exactly?

If you're slightly too thin, there's always someone for you to ask whether you've got anorexia:


Yet, a model's silhouette is still this:


Can you see the difference?
(In reality, if an anorexic person is that skinny, it means that his or her illness has already gone very far and done severe damage. Read more about it on Psychology Today.)

If too thin is sick, what about the other way? There just was a plus-size show at New York Fashion Week:


Does that mean that extra weight is now socially acceptable? I'm not sure: Jessica Simpson has recently been heavily criticized for her weight gain, while she looks good and is far from being obese:


So what's right and what's wrong when it comes to a woman's figure? Go figure!

[Picture source, source, source, source.]

07 August 2010

Silverlight 4 with C# and Python (it's three!)

I recently felt like making a new Silverlight 4 app, but not just any app. I wanted it to have the following features:

  1. use an existing Python library
  2. be written in C#.
There is a way better way of using Python code - it is to write the app in Iron Python from the start. Picking C# to achieve that sounds like a bad decision.

However, I wanted to do something new and challenging, so I went for C#. Doing it on my own was hard, way harder than just following an "embedding Python in C#" tutorial. Finally, I found that working example and got something starting from there.

What I got is a three on a golden background:


Okay, maybe that's not the right angle to start with. What I did was used the numbthy Python library and used it's gcd function to compute the greatest common divisor of 15 and 3, and it's three!

Getting there was hard. Finding the right libraries to embed Python, importing them the right way were tough tasks for an inexperienced user - some error messages would be very cryptic. Then, the app would hang on the splash screen if something was wrong in the Python code, the debugger wouldn't show where the problem was, and the "problems" in the Python code were:
  1. the print statement
  2. a class inheriting from object.
Not obvious, and definitely not the kind of problems PyDev would warn you about. So I am afraid that importing bigger chunks of code could be hard - that is to be explored further.

05 August 2010

Yet another personal website

Thanks to my surgery, I recently had a bit of time to spend at home, so I built myself a new personal website. I spent a bit of time investigating the cool new features of HTML 5, CSS 3 and jQuery and ended up using a cool thing called jQuery Masonry, and here is the result:



This time, it's just a single page, because I can't really imagine what more I could share (besides the blog, of course). It's also only in English because... er... because.

Technically, I used some JavaScript not to do any copy-paste between the eight divs but ended up publishing a static html file with the end result.

Artistically, when I compare it to all the great designs featured on Smashing Magazine, I honestly think it sucks, but well, I'm more of a programmer than an artist. Plus, I put a lot of effort into editing it. Html is cheap and my mind has been to many many places, starting with Moroccan souks:


museums:


and texture factories:


All in all, I like it a lot, and I hope you do as well.

[Picture credit, credit, credit.]

26 July 2010

Geek gets surgery

A few days ago, I underwent my first surgery ever. The surgery itself wasn't as much of a big deal as the experience - I have wondered how it felt like since my childhood, when my little brother underwent one and I didn't. My curiosity finally got satisfied.

Wednesday, July 14th

I arrive at the hospital at noon. Waiting, paperwork, waiting, questions, waiting. Boring. They tell me not to eat to be ready the next day at 7h45 - I set my alarm clock to 7h30. I take a nap, then answer some e-mails, then go to bead early. Sleeping is something I'm actually really good at.

Thursday, July 15th

They wake me up at six and tell me to get ready now. I do. Then boredom comes back and I get back to sleep. (I guess there should be a part when I'm worried, but I'm really better at sleeping.) They wake me up just before eight. "Come on, it's time to go. (...) Okay, now the door on the right. No, on the right! But I can see you're smiling - that's the spirit!" When they lie me on the table, that's when I start to get nervous, but not for long: within a few minutes, I am asleep again.

I wake up to a doctor calling my name. Phew, I made it! Something is hurting me in the head. It must be the hair elastic I'm lying on. The algorithm to solve that problem is simple: lift head, move elastic, lay head back down. Ouch - lifting my head hurts. Oh yeah, they had to cut through my neck so now I can't really move it. I mange to pull the elastic away. Now what? Let's get back to sleep.

I wake up quite a few times that day and it's not pleasant. I miss Marcin, take a look at the clock and count the hours down to his visit on the following day. I want to drink - they give me a 9 ml bottle. I want to go to the bathroom. I want to cough. I want to lie on my side. I want to see Marcin. None of these are possible, but the deprivations are really bearable, as within a few minutes I am asleep again. I pass those minutes by observing all the IO interfaces I am connected to.

Friday, July 16th

I am back in my room at the hospital and am encouraged to start moving. I get to the promised land of the bathroom. I enjoy my position: no work obligations, no school ones, no social ones. I don't have to do anything. I can sleep all I want - and hell, I do! Visitors brighten my day, but I can't stay awake for the whole four hours when visits are allowed. As soon as they leave, I am asleep again.

Saturday, July 17th

Time to go! My stitches and all my IO interfaces get removed. I go to my Mom's for the week-end and spend most of the time - you guessed it - asleep.

Later on

I get two weeks of sick leave from work. So cool. So much time to sit at the computer, and, of course, so much time to sleep.

[Picture credit]

26 June 2010

I got my masters degree!

Two months after having my first defense and getting my bachelor degree in computer science, I am happy to announce I also got a master's degree in mathematics.

I now need to find a thesis subject in computer science, and besides that, I'm free for the summer!

05 June 2010

Rijndael S-box Sage implementation

It's no secret I like Python and Sage a lot. Today, I had the pleasure of working with Sage again: as a school assignment, I was required to show the calculations that prove that the value of the Rijndael S-box in row 2, column d, was indeed d8. While I am able to invert a polynome of this size by hand (let alone apply an affine transformation), I see no reason to do it, as a suitable tool is available.

So, here we go, the Rijndael S-box in Sage:

F.<y> = GF(2, name='y')[]
K.<x> = GF(2**8, name='x', modulus=y^8 + y^4 + y^3 + y + 1)

bin_digits = lambda h: [((int(str(h), 16))//(2^i)) % 2
for i in range(3, -1, -1)]
bin_poly = lambda n : sum([b * x^(3-i)
for i,b in enumerate(bin_digits(n))])

b1 = 2
b2 = 'd'

s = x^4 * bin_poly(b1) + bin_poly(b2)
p = (1/s).polynomial().coeffs()
p.reverse()

b = [0]*(8 - len(p)) + p
b.reverse()
c = [1,1,0,0,0,1,1,0]
d = [int((b[i] + b[(i + 4) % 8] + b[(i + 5) % 8] +
b[(i + 6) % 8] + b[(i + 7) % 8] + c[i]).n()) % 2
for
i in range(8)]
d.reverse()

s1 = sum([d[i] * 2^(3-i) for i in range(4)])
s2 = sum([d[i+4] * 2^(3-i) for i in range(4)])

print hex(s1), hex(s2)

I admit: the above is code, not calculations, but I did the calculations in class and worked hard on the code. My main problem was the bit order. Nowhere in the original publication did it say to reverse the bytes. Adding all the reverses was a moment of desperation, and imagine my surprise when it worked. I wonder how much credit that solution will get me.

A great Friday night it was.

03 June 2010

Xen virtual machines are the creepiest thing ever

Among the things that have always creeped people out are all kinds of ghosts and zombies, for one simple reason: since they are already dead, you can't kill them.

Along that line, here's what creeps me out: Xen virtual machines.


See what Wiki says about them:

Administrators can "live migrate" Xen virtual machines between physical hosts across a LAN without loss of availability. During this procedure, the LAN iteratively copies the memory of the virtual machine to the destination without stopping its execution. The process requires a stoppage of around 60–300 ms to perform final synchronization before the virtual machine begins executing at its final destination, providing an illusion of seamless migration.

Imagine that. On a traditional machine, if it was doing something you did not want it to do, you would slam the keyboard. On a VM, you'd kill the monitor. Then you'd pull the host's plug. Something would work. But here, as you try to kill the guest, it floats through the air to another host. There's no stopping it. There's nothing you can do but watch it do its evil.

Next, the robots revolt against us and it's Battlestar Galactica all over again. Brrr.