free minds A Personal Web(b)log, Photodump and Source for every other stuff

Randomize Colors

I needed to colorize some rectangles so you can better see them. Therefore i wrote a so small method to do this, its incredible :)

                // Some Vars needed for the color. Some of them can also be hardcoded... (max_co, step)
		int[] next_color = {0x70,0x00,0x00};
		private int max_co = 0xF0;
		private int next_c = 0x01;
		private int step = 0x10;

		public Color getNextColor(){
			// Bam, increment and then mod it same time :o
			next_color[next_c%3]%=max_co;
			next_color[(next_c++)%3]+=step;
			return new Color(next_color[0], next_color[1], next_color[2]);
		}

awesome!

PC Magazin...

Ich habe gerade das PC Magazin in die Hände bekommen und bin ein wenig entäuscht... Darin stehen Dinge die schon mehr als 3 Monate bekannt sind und bei den Tests scheint mir auch das gewisse Software bevorzugt wird... Es war ein Test über Panorama Software enthalten, bei der nicht einmal Hugin auftaucht. Dafür tausende andere Tools die ich noch nie im Leben gesehen hab.
Auch die Softpornowerbung irgendwo am Ende der Zeitschrift finde ich zwar nicht schlimm aber gehört nicht in ein Fachmagazin.

Erm yes...

I dont know... but what the fuck is going on? In Norway died 90 people and also Amy Winehouse died, and both are on the title page of a regnional newspaper? I dont think that Amy Winehouse wasnt that important as 90 people and the tragedy of norway...
but ok, i dont read this newspaper anyway.

Security @Amazon

I just changed my mail address on my amazon profile, and what i get? Wow, two mails, on every adress! So one on the old and one on the new!

I think this is a great security feature! Well done amazon! :)

Back on theme

Okay, so my theme is back! i cant see whats going wrong there... fonts are not working still :(

Inhalt abgleichen