Sunday, 8 February 2009

Revival!

Ok, time to revive this son of a b*tch!

I'm relaunching this blog for my GNU/Linux switch ( but as you read on, this is not my only reason). Yes everybody. Now the only OS on my computers are based on *nix. OK, Fedora ( my stationary computer) is far away from Solaris but hey. It's not Windows at least. Although when switching you realize that Msoft is not doing everything wrong. Windows is actually a pretty good OS. At least that's my two cents.. Then again I am a switcher. And it all started with OS X.

To start with I will try to update the blog once a week. I really don't care if someone reads it though. But it would be nice to get some feedback sometime. :) I intent to make this blog the creative outlet for my programming, my GNU/Linux switching and pretty much everything else between heaven and earth. You can expect blogs about How to install Compiz-Fusion, screaming at Xorg, installing Direct X 9 in WINE, installing Windows applications with the help of WINE, setting up a Squid Proxy and a whole lot more.

Finally, in the spirit of GNU/Linux. Here is the story about the cutey now called TUX.. ;)

" Linus Torvalds (torvalds@cs.helsinki.fi)

Thu, 9 May 1996 17:48:56 +0300 (EET DST)

.
Somebody had a logo competition announcement, maybe people can send their
ideas to a web-site..
.
Anyway, this one looks like the poor penguin is not really strong enough to
hold up the world, and it's going to get squashed. Not a good, positive logo,
in that respect..
.
Now, when you think about penguins, first take a deep calming breath, and
then think "cuddly". Take another breath, and think "cute". Go back to
"cuddly" for a while (and go on breathing), then think "contented".
.
With me so far? Good..
.
Now, with penguins, (cuddly such), "contented" means it has either just
gotten laid, or it's stuffed on herring. Take it from me, I'm an expert on
penguins, those are really the only two options.
.
Now, working on that angle, we don't really want to be associated with a
randy penguin (well, we do, but it's not politic, so we won't), so we
should be looking at the "stuffed to its brim with herring" angle here.
.
So when you think "penguin", you should be imagining a slighly overweight
penguin (*), sitting down after having gorged itself, and having just burped.
It's sitting there with a beatific smile - the world is a good place to be
when you have just eaten a few gallons of raw fish and you can feel another
"burp" coming.
.
(*) Not FAT, but you should be able to see that it's sitting down because
it's really too stuffed to stand up. Think "bean bag" here.
.
Now, if you have problems associating yourself with something that gets
off by eating raw fish, think "chocolate" or something, but you get the
idea.
.
Ok, so we should be thinking of a lovable, cuddly, stuffed penguin
sitting down after having gorged itself on herring. Still with me?
.
NOW comes the hard part. With this image firmly etched on your eyeballs, you
then scetch a stylizied version of it. Not a lot of detail - just a black
brush-type outline (you know the effect you get with a brush where the
thickness of the line varies). THAT requires talent. Give people the
outline, and they should say [ sickly sweet voice, babytalk almost ]"Ooh,
what a cuddly penguin, I bet he is just _stuffed_ with herring", and small
children will jump up and down and scream "mommy mommy, can I have one too?".
.
Then we can do a larger version with some more detail (maybe leaning
against a globe of the world, but I don't think we really want to give
any "macho penguin" image here about Atlas or anything). That more
detailed version can spank billy-boy to tears for all I care, or play
ice-hockey with the FreeBSD demon. But the simple, single penguin would
be the logo, and the others would just be that cuddly penguin being used
as an actor in some tableau.
.
Linus
"

Wednesday, 5 December 2007

Java and Me

Been a long time now since I updated. Actually could probably say the everytime i update.. Butthat would just point out the bleeding obvious, so no more!

Some changes have been made to my life recently, moved back and in to my GFs apartment in Skelleftehamn. Cleaned up and gave back my apartment to the landlord in Sundsvall. Quit my band, well actually we broke up as we live in different parts of the country. Started my last projekt for school at TietoEnator.

And It's this last subject i want to talk about. See im writing this program in Java. It reads data from an XML-file and converts it into inputs for outputs in a GUI. Basically it's a GUI for an already existing TeleCom product being released in a couple of weeks. Nothing fancy and it's just for TeleCom buisnesses. That being said i must say that what i do like about working in java is the premade packets. They serve most of onces needs and when they don't most of the times you can tweek them into doing so. But sometimes you jsut want to smack the creators stright in the face and scream: - "What the hell did you just do? WHAT THE HELL DID YOU DO!?!?"

Eherm .. My problem is this. I input table data in to a Object[][] the i insert this as data into a table with two columns. Each row in column two has a different ValueType. This is however not supported by default. So we have to simply overide a couple of functions. No biggi. Problem is when you update the cells. Say that you want to edit cell 1:1 - which is a Float. You edit the value. Press enter .. An it converts the value into a String. Why am i getting so uppset by this?

a) It should not do this!
b) I loos the integrity check in the cell.
c) It should not FUCKING do this!

So now two days later i still hasn't figured it out by myself. I am relying on some people on the java.swing forum to help me out. Problem is .. they tend to answer after 18 .. it's now 14. This whole day goes by so slowly .. well back to work! .. and don't complain about my grammar.. Im Sweedish god damn it, and the spell check dosn't work :(