Author Archives: defaude - Page 6

Found this one on moronail.net

Hilarious:

Back to Munich, back to life, back to normal – well, kind of…

Alright, it’s been a funny time lately 🙂 Came back from London eleven days ago. Finally got to see my family again. Installed the new graphics adapter into my Windows PC (lovely, now it’s even more silent than before). Spent some days relaxing and literally doing nothing. Ate good food. Did a little bit of tidying up my room and my life. Did not do any sports 🙁 Found out that a huge bouldering gym will open this summer in Munich :mrgreen: Prepared for the next big step in my life: My very first “official” job as graduate engineer, the starting point of my carreer! First day’s on Monday, so keep your fingers crossed!

I’m really looking forward to this one – the job interview was really cool and the people and the whole atmosphere left me with a very good first impression. Can’t wait to find out what kind of projects I’ll be working on soon! Hope I’m really fit and good enough for the job…

The future’s wide open… open source!

Hey, I just released my very first contribution to the world of open source software! It’s basically not a really big thing but while I’ve been researching about a reasonable and stable multi-threaded producer/consumer problem implementation C#, I quickly found out that there are not many resources out there on that topic. Oh wait… That is to say: There are hefty amounts of resources on that topic, but all of them are just forum posts like “can you help me with that” without really helpful answers. A few hits I had were actually trying to solve the problem but most of them were contradicting the other possible solutions. I think you can see where this was going…

I expanded my search and eventually ended up deep-diving into the .net Framework and its crappy documentation and teaching all that fancy multi-threading stuff to myself. I came up with a small, probably helpful example that I wanted to share with the world 😉 It can be used in other projects because it’s completely generic and hides all the threading magic inside the three classes. If you think it’s too much overhead for your project or the way the produce() and consume() methods are called doesn’t fit into the workflow of your project, you still can check it out in order to learn a little bit.

I called it tspcp (thread-safe producer-consumer pattern) and just released it on github. Feel free to fork! :mrgreen:

It’s getting worse…

… seriously, get me out of here! 😉

Testing the syntax highlighting

Just installed a new plugin and want to test it. And what could be better than testing it in several programming languages at once?

# Language: Ruby
# This is so cool because it demonstrates how the String class itself gets opened and augmented
class String
     def say
         puts self
     end
 end
 'Hello, world!'.say
Language: Brainfuck
This is just weird (but funny!)
++++++++++[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.<<+++++++++++++++.
>.+++.------.--------.>+.>.
// Language: Objective-C
/*
Hmm... I don't really like this language but it's amazing that most parts
of Snow Leopard, Apple's latest operating system is written in this one
(or at least I think so)
*/
#import <stdio.h>
#import <objc/Object.h> 
 
@interface Hello : Object
{
}
- hello;
@end 
 
@implementation Hello
- hello
{
   printf("Hello, world!\n");
}
@end 
 
int main(void)
{
   id obj;
   obj = [Hello new];
   [obj hello];
   [obj free];
   return 0;
}
// Language: JAVA
// A classic
 public class HelloWorld
 {
      public static void main(String[] args) 
      {
           System.out.println("Hello, world!");
      }
 }
// Language: C#
// Looks almost like JAVA, feels kind of like JAVA, has a really bad IDE - in contrast to JAVA
class HelloWorldApp
{
    static void Main()
    {
        System.Console.WriteLine("Hello, world!");
    }
}
// Language: C
// What should I say? Almost everyone learns programming here!
 #include <stdio .h>
 
 int main(void)
 {
    printf("Hello, world!\n");
    return 0;
 }

I might be a little geeky, actually…

My workplace looks like this at the moment:

I have a desktop PC running Ubuntu Linux. On that machine, I have a Windows XP virtual machine (to be seen on the 30-inch monitor) and on the very right, there’s my Mac. Hmm. I’m seriously working with 3 OSes at the same time 😯

Winter mayhem, Code, Climbing, Solitude

Whoa, time flies when you’re busy, right? I am quite busy, actually 😉

So what has happened since my last post? Ah right, a new year started! Unfortunately, I could not attend the cool party I was invited to due to feeling sick for three days… But fortunately, I was invited to another party at my hometown so I decided to fill myself up with Aspirin and go there to meet lots of friends – of whom I’ve known some for almost 18 years already – at 11 p.m. :mrgreen:

The following days were very calm and peaceful: Just stayed at home, had great food and slept a lot. That’s always a good thing to do when you have the chance to! But on January 5th, I finally emerged from my laziness and hopped over to England where I rejoined the coding team of Booka. Ever since then, I barely left the house because I basically do nothing but working here 😎

England… It’s so funny! We got a little bit of snow here and the whole country descends into pure mayhem… Seriously – in many parts of Germany these amounts of snow are just normal and the same procedure as every year! But because the snow clearing services are not that good (or, seem not to be existing) here, it takes days or even weeks until several roads are clear again. Combined with the fact that snow tires are almost unknown here… Well, you can imagine what’s going on! 😉 All airports face severe problems, too!  So I can call myself lucky that I came home on December 24th without bigger delays… But the view I get to see is great:

Alright, back to my topic-checklist: climbing! Yes, climbing! Even though my skin has not yet recovered from my first attempts in December, I couldn’t resist going bouldering together with the other guys 😀 and now my hands are wrecked again… But it’s fun and I’ll just continue until my skin turns into leather :mrgreen:

Next topic? Ah yes, solitude. Solitude? You ask? Well, it seems we’re having some kind of epidemic here: Adrian’s sick, Booka’s sick, Miri doesn’t feel so well… So therefore I’m sitting at my desk all alone 🙁

Burning bridges

For someone very, very special… Farewell.

Ubuntu and the Christmas break

I’ve been working on a system running Ubuntu 9.10 and even though I’m still a Mac fanboy, I have to admit that Ubuntu has grown to be a really fast, stable and fun system! But who cares? Computers suck anyway :mrgreen:

Side note: I’ll return to Germany for the holidays, fuel up on relaxation and will be back here in England on January 5th. Merry Christmas to you all and have a great new year 2010!

Tons of code and witches

Phew… Have been working a lot lately. The project in London is really great and interesting but also very demanding. And due to the fact that I barely left the house except for destoying my fingers, I did not catch up on Christmas mood and all that stuff at all (luckily, I say :o) ) Anyways, Adrian and me had our free day today so after being lazy – and also unable to find a good sauna place, we went to London 🙂 We did a short visit to the British Museum just to find out that they were closing already (dammit). After having had dinner, we watched the Musical Wicked and it was a blast. Folks, if you happen to be in London during the next few weeks, make sure to watch it!!