M3

Probably you're familiar with the BMW M3 and its already uber popular "sport sedan" class. Its neighbors in this class are the C63 Mercedes-Benz, the IS F Lexus and the RS4 Audi. Although they all seem to be extraordinary cars, neither could steal the crown from the Bimmer, furthermore, this statement holds water no matter what period of time we're looking at.
It looks like BMW invented a class and monopolized it ever since. Or is it ?

The big pile of nothing

A couple of days ago I found myself having a chat with a friend about boredom and, while on the subject, we were evaluating different techniques of getting some. Shitty business, I agree. Nonetheless, something interesting happened. Well, to be honest, several interesting things happened, but one caught my attention. The cute one was the fact that most of the highest ranked techniques involved some kind of repetition. I've said to myself... what a wonderful world ... and that's just stupid. Repetition is not a thing that humans should experience.

Nope, Chuck Testa ...

I'm not a religious person, I also think that astrology is a big fat bullshit. This is a very sad prospect for some, but, in my case, this helps me think and act as if I have control over most of my life. Not giving up on your life sounds pretty healthy to me, and that's why I'm OK with my beliefs.
Anyway, I shall leave this because this is not a debate on religious views.
Here comes the problem. There was always a fact that kept repeating and this gave me shivers. The story goes like this:

New sensations

People tend to become very dedicated to their cause. Furthermore, the more support you get, the more fanatic you become in defending it. I think these are all facts. Fine examples supporting this theory are football hooligans, terrorism ... Most of the time this subject involves two opposing sides, or that's the way I see it.
The sensations I'm talking about are those things that occur to you when you switch sides.

UPB vs Stanford

M-am inscris la cursul online "Introduction to Databases" oferit publicului larg, gratuit, de Stanford. Sunt curios cum va evolua experienta asta. Mai ales ca in semestrul al doilea, daca nu ma insel, din anul al treilea voi face acelasi curs, de data asta pe plaiuri autohtone, cu personaje autohtone si teme autohtone.

Happythankyoumoreplease

I took a bite from my cute IMDB wanted list: Happythankyoumoreplease. It was quite boring and not as intensive as I thought. I don't recommend it. Same ideas are presented better by other movies.

Convention over configuration

Luckily for me I met JavaEE in the good old fashion: starting with servlets, JSPs, EJBs and so on. In other words, I started with those old technologies that are considered today not productive, not developer-friendly ... As J2EE grew bigger and stronger, a new wave of technologies emerged: JSF, for example, but also a pile of 3rd party frameworks that promise to be fun, easy to use, easy to learn, productive ... you now.

How to mark an important event in Java code

Obviously important events that happen in your code can be emphasized using comments, Javadoc comments etc. We all know how boring and grey they look in your code. While I was looking over some SCJP mock exams one pretty cute solution to the previous problem occurred to me.
Let's pretend that you want to make a big fuss about you calling the kaboom() method. This is my solution to this crucial hurdle:

public enum LetsBegin {
FIVE,FOUR,THREE,TWO,ONE;
public void kaboom(){
}
}

Gingerbread

After a dozen unsuccessful attempts and a lot of drama, my humble LG P500 is the proud owner of an outrageously cool Gingerbread upgrade.
So, why drama ?
At first, I tried to do it as clean and old-school as possible. I downloaded the official LG Update tool and started the update procedure. Everything went smooth until the inevitable happened and a big, ugly "crapaciune" occurred. This made my phone a cute brick.
So, why a dozen unsuccessful attempts ?

Singletons in Java

Once upon a time I was writing an article for my old and lame website about how to make a singleton class thread-safe. The resulted code was the following (sorry for the poor naming of the fields):

public class Gigi {
private volatile static Gigi gigiSingurelu;
private Gigi() {}
public static Gigi daGigi() {
if (gigiSingurelu == null) {
synchronized (Gigi.class){
if (gigiSingurelu == null){
gigiSingurelu = new Gigi();
}
}
}
return gigiSingurelu; }
}

Pages