Godspeed for the King of the pop

A little word for the big guy…

I’m not a big fan of Michael Jackson. But when he played with the Jackson5, or the song Thriller, Bad, he is definitely the only one we can named “King of the pop”.  I loved the Motown sound and the Jackson5 is one of the most famous artists from this time.

Then even if that’s true he did not make a new album for a long time now and we don’t know if it’s gonna happen again (yes there will have some albums which will run out of his Magic Hat falling from the sky… rumors said around 150 songs !) I think he deserved the Title of King of the Pop, he deserve it because he was so revolutionary in many aspect of the contemporary music. He “happened” at the right time with the right rhythms and now that we are in the big revolution of all the music industry I’m pretty sure that he was the only One who can be named as well. I’m also sure there will be others great artists but nothing compares to his impact, even if now we will more talk about “billion of downloads” and not “millions of albums”.

So I went to the “Giant Moonwalk” organized by some fans at the bottom of the Eiffel Tower last week-end, just to “be there” and take some interesting shots ! 🙂

Keep Dancing Michael!

In my despair, I tried to find an enchantress to make some magic stuff, then he may revive Michael… but nothing worked but some fire appears on his finger… (no photoshop, live shot)

finger fired [640x480]

Magic guy [640x480]

I’ll try to make him fly next time, maybe he can meet him somewhere over the rainbow…

Advertisements

Mazel tov !

A humble topic about the marriage of my friend Benjamin Fellous (a great android developer by the way) which I have had the honor to be invited!

As you can see there are lots of marriage during this time, I went to my cousin’s one a month ago, to the marriage of a friend of my girl two weeks ago and yesterday the marriage of my friend Benj. As the title said you can guess that was a Jewish marriage! 🙂 Then I have to admit that it was really fun and interesting for a Vietnamese guy like me. Firstly it was really fun because of the music, Jewish music and more generally North Africa’s music are really folklore. The sound was so captivating and the woman’s dance is so unctuous… 🙂

It’s also the first time that I see the “chair throw”, it means that the new husband and wife seat in a chair that everybody bring up and down. The cook was good too, I ate for the first time the Pkaila! It’s not really light… 🙂 but very good! 🙂

Everything was cacherouth (I don’t know the word in English, if someone can help, he’s welcome). Even the wine, which was a “Bordeau supérieur 2004”, also cacherouth ! 🙂

I was very touched to see a friend got married…and scared, I mean who’s the next ?? 😉 I’m sure you will have a nice and wonderful marriage in Israel too!!

Enough, below some pictures I shot with my Iphone (sorry for the low quality), I think you can find some great shot on the Benj’s blog! 🙂

Again, MAZEL TOV Benjamin and Jessica! 🙂

dance with me Babe

I'm a king and you are my star ! :p

BENM_Dancing_with_Jessica

Hang on !!

Hang on !!

Slaaam!

Slaaam!

Meet on the camel seat!

Meet on the camel seat!

Like a Sultan !!

Like a Sultan !!

I'm the king !

Stand by me my princess.

Berlin, Citizen place

I went a month ago to Berlin for my cousin marriage.  But I went in Berlin few days before the ceremony with my friend Dewi. It was our second trip to Berlin, but the first time we were very young, both of us. We already loved this city but this time was very special.

The main feeling about this city was the fact that people are really cool, and they love their city, they’re really living in their. I mean they take their place in the town, I feel like I was in a urban jungle…

There are so many secret place, bars, gardens, and green’s places. In the garden you can find some hammock for your daily break, you can even make a fire in the garden in the evening. If you take time to walk around the city, I mean by feet, you can find some garden where people spontaneously come with friends, have a drink eat some grilled Wurst, have a cookout. For sure next time, I’ll come back with some wines and candles to share…

I definitely want to come back with more friends, and spend some fun time…

By the way you have to go to the Raw Tempel, a really nice place. It was an old train station, and now it became an association place where you can see movies in outdoor, have fun with your skateboard if you know how (not my case),  do some climbing, and the night have a good concert, Electro party… beers are very cheap (don’t forget to bring back the bottle, you will have a discount on your next!! Yes… it’s so green even the beer ! 😉 )

I forgot my Nikon, then I don’t have lots of pictures..too bad, but Dewi shot some times, I’ll post here his best ones next time I have the opportunity.

Hopefully my father brought me the Nikon for the week-end.

Anyway, my main purpose is the marriage of my dear cousin. We were very close because we lived together when we were young in Vietnam, at Hanoi with our grand-mother. She was my protective sister against the bad guys and girls… 🙂 so nice… ok few times she had fun with me, just like children did… I’l never forget this two Van anh ! 😉

She’s very nice woman (just like Kyeu [my second cousin] 😉 ), espescially this day with her dress… Oh my god Sacha you are so lucky guy !

Here are some pictures from this day, I wish they’ll have a beautiful and happy life together, and have a lots of children… 😉

Like a princess waiting for her charming prince (so romantic :p )

Like a princess waiting for her charming prince (so romantic :p )

Sacha and Van ready for walking through life... (yes we can....)

Sacha and Van ready for walking through life... (she's so nice !!)

As Van's friend said, Sascha means protective (you I did this shot !! :) )

As Van's friend said, Sascha means protective (you I did this shot !! :))

Our new family

Our new family (the guy on the left is my step cousin, Steeve !)

Me and Van, for the Fame ! ;)

Me and Van, for the Fame ! 😉

One more... fading out like good dream....

One more... fading out like a good dream....

Here is a last shot, I tried do some stuff in the dark. When I took the picture, the sky was quite black…

Peace line

Peace line

Did you ever be an ant? Look how worls is cool for an ant ! :)

Did you ever be an ant? Look how world is cool for an ant ! 🙂

Bucuresti !

 Then theses two weeks at Bucuresti are now done. I came here to meet my IT Team and also to be trained in our legacy production system. 

Oh my god, technically speaking if you knew… I mean you never believe me 🙂 Understand what ever you want… Anyway It’s at least interesting let’s see how long I can manage with this… :p

If you have an American’s Iphone 3G which uses a sim hacking method (same as mine), you may be advised that it will not working here at Bucharest. I simply can’t connect to network. But hopefully, and I don’t really know why if you buy a sim card here, it’s working quite well. So Sim hack + sim from France == not working, you may change to sim hack + sim from Romania == works fine !??!!?!

Ok enough of geek topics, let’s talk about the city and people here. I were very lucky here at Bucharest because I only met nice people ! :p Really ! I mean in every places it should have some ugly guys but fortunately I didn’t met even one of them at Bucharest. My colleagues are all so nice, fun and also interesting guys. I learned a lot about my job. After the work we usedto go playing pool at the end of this week, and kidding about theses bard-maid… I don’t want to open long description about Romania’s girls because my girl will be jealous but I have to admit that it should begin by “Oh my God…” lol. Come to see yourself gentlemen !

People in Bucharest seems to not like very much their City, they use to say : “Bucharest is dirty, expensive, stressful…” All of theses things may be right but as a “Work Visitor” It was a real pleasure. During my first evening I met a french guy, Remi, who’s working in a booking call center here. Very nice guy who becomes a kind of travel guide… thanks Remi !! 🙂 He knows a mountain of things about Romania/n and Bucharest. I can’t find a better way to discover this town, I mean “Really thanks Remi !!!”

He introduced me to a friend of him, Lily who is a French teacher ! She really talks French fluently, with no accent.. really amazing… I met her with Remi at an Irish music’s pub. It was really a nice and fun night, Dancers were good and drinks too ! 🙂 Players/ Singers were Romanian geeks, just entering in a kind of Irishmania !

The girl really enjoys here dance!

The girl really enjoys here dance!

The best was when they danced all together ! 🙂 They made big noises with their shoes and you made big noises with you glass ! 🙂

Dance together !

Dance together !

There was this evening I just walked around the city, alone and of course I lost my way… After few hours I decided to make a break and I stopped to the first pub I found on my road.  Fortunately it was one of the best hot wine bar in Bucharest ! 🙂 I told you… I were very lucky ! 🙂 After enjoying my hot drink I decided to find some help from people around this place then I met two nice students, Vlad and Bogdan ! After trying hard to explain how to go back to my hotel, they finally proposed to come with me. During the road we discussed together and I discovered that they are actors students !! They confessed to me that they’re just acting in some advertisements, and finally during our last met it seems they will play for a Romanian TV Show !! loool The TV Show seems to be famous in Romania, it titled a kind of  “Love Brokers”… they told me it’s a bullshit tv show… :p but it’s ok it could be fun  for them!

I definitely decided to come back for vacation in this country, to see Brasov (I missed the train at my week-end here… :p ), to see the Delta of Danube, to swim in the Black Sea so many things and placed to see… Anyway Vlad’s wife invited me for a week ! 🙂 I took it for words !

If you come around here you have to eat some local dishes and meals… Eat outside is cheap and it’s really good ! You may go to the student campus near from the river and eat some traditional meals, try their Enormous Pizza, and play pool with some friends 😉

Below are some shots I made during my trip: 

 

I'm sure the sky is missing you ! :)

I'm sure the sky is missing you ! 🙂

You should go in this place in the Bucuresti's center, Coyotte's place ! :)

You should go in this place in the Bucuresti's center, Coyote's place ! 🙂 There are so many pubs which are really nice and relaxing place in the small streets of Bucharest, you should take time to walk around.

One the most big building in thr world. The Romanian Parliament bult my the dictator Nicolae Ceausescu. You should know that Romanian hate this building ! :)

One the most big building in the world. The Romanian Parliament was built by the dictator Nicolae Ceausescu. You should know that Romanian hate this building ! 🙂 This building could be seen from the moon !!

Cheers !

Apple in your EYES !

Did you hear this rumor ?

We know Apple’s TV was not a big success, but it seems that’s Apple will make another shot.

And yes I think it could be a good idea because lots of TV constructors began to add gadgets and many features now in their products.  Then one day, they will need a bigger OS, to do bigger stuffs, and then this day they will get an apple in their eyes ! 😉

For my part, if design is good enough and of course price is low engough maybe…I will try another shot too with this screen TV.

I have to admit that Iphone I used for few months now gave me some nice time, but also some ugly moment… more information about my last issue in the next post.

The Java plan for you Valentine’s Day (second part)

Ok as I promised for while now, there is a post about simple effect you can play with in java…

Please don’t laugh of my code because lot’s of what I done in java here came from my old “souvenirs” from what I learned when I coded it in C/Dos long time ago…I was very interested in Demoscene and all big effects you can do with sin/cos/+/-/*/:

I’m sure you can optimize this code for Java but I will let you enjoy this part !

Please stop grimacing at me like that, the code works well, easy to read and fast enough… 😉

This topic is related to the first one I wrote, you should take a look on it or at least get the code.

Here is the plan:

  1. Code the smooth effect / fading
  2. Join the projectile effect we did last time to our smooth effect
  3. Play with smooth effect

The smooth effect / fading effect

The fading algorithm is one of my favorites effects, because it’s easy and also nice !

Imagine we have a screen as an array, let’s name it back[width][height]. So as this array represents our screen, you should guess the screen contains pixel/color value.   The pixel/color value is stored in an integer. So the array is an array of integer. I mention here the term integer as common sense, because as you should know in computer science we could represent an integer in several forms… We will come back to this remark later.

the fading effect consist simply in processing each pixel as below:


for each pixel ([x,y]) in back
{
  if   (x =0 || x=width||y=0||y=height)
  {
    back[x,y] = 0;
  }
  else
  {
   back[x,y+1] = average_of(pixels around [x,y]);
  }
}

That’s it ! 🙂

There are three main ways to find “pixels around [x,y]“:

The three main algorithm of fading effet

The three main algorithm of fading effet

As you can note, in the third way, the pixel value is less than the others, which means the fading effect is faster than the others.

Thing to do to get more fun ! :p

Play to find another way to understand “around”. For example you could only computing pixels on the top of the current pixel, or you can enlarge the square around the current pixel, or even more complicated algorithm..

Here is the exact algorithm I used in my code:

Algorithm used in my code

Algorithm used in my code

As you can see I used the first fashion to find pixels around but I stored the new value to the pixel just at the bottom of the current pixel. So It gives to the fading effect a direction ! The fading seems to fall down… nice !!

Thing to do to have more fun ! :p

Again play with this to find another fun directions to give to the fading… for example we could do a spiral so the fading seems to be breathed in the center, you can fading up (set value to the top of the current pixel) and simulate things like fire… etc…

Come back to our pseudo-code, it gives us:

for each pixel ([x,y]) in back
{
  if   (x =0 || x=width||y=0||y=height)
  {
    back[x,y] = 0;
  }
  else
  {
    if(y == 1)
    {
      back[x][y] = 0;
    }
    back[x,y+1] = average_of(pixels around [x,y]);
  }
}

What is theses tips around (x =0 || x=width||y=0||y=height) and (y == 1) if statement ?

The easiest way to understand still remains to leave this code and re-build to see what changed…You should see some lost pixels in the border line which make things ugly on screen… I let you wonder why et enjoy it ! 🙂 I didn’t take time to optimize this part, but I think it’s one of the easiest part to change.

Going in deeper

Firstly take a look on the main code of the effect:


for(int x = 0; x < back.length; x++){
                for(int y = 0; y < back&#91;0&#93;.length;y++){                   
                    if(x == 0 || x ==back.length-1 || y == 0
                            || y ==back&#91;0&#93;.length-1 )                    {
                        back&#91;x&#93;&#91;y&#93;&#91;0&#93; = 0;
                        back&#91;x&#93;&#91;y&#93;&#91;1&#93; = 0;
                        back&#91;x&#93;&#91;y&#93;&#91;2&#93; = 0;                   
                    }
                    else
                    {
                        if (y== 1){
                            back&#91;x&#93;&#91;y&#93;&#91;0&#93; = 0;
                            back&#91;x&#93;&#91;y&#93;&#91;1&#93; = 0;
                            back&#91;x&#93;&#91;y&#93;&#91;2&#93; = 0;                           
                        }

                        for(int c = 0;c<3;c++){                       
                            back&#91;x&#93;&#91;y+1&#93;&#91;c&#93; = (back&#91;x+1&#93;&#91;y&#93;&#91;c&#93;+
                                    back&#91;x-1&#93;&#91;y&#93;&#91;c&#93;+
                                    back&#91;x&#93;&#91;y+1&#93;&#91;c&#93;+
                                    back&#91;x&#93;&#91;y-1&#93;&#91;c&#93;)>>2;/* I put code for the third algo in comments
                                    back[x-1][y-1][c]+
                                    back[x+1][y+1][c]+
                                    back[x+1][y-1][c]+
                                    back[x-1][y+1][c])>>4;*/
                        }                       
                    }
                    front.setRGB(x,y,new Color(
                            back[x][y][0],
                            back[x][y][1],
                            back[x][y][2]).getRGB());                   
                }
            }    

            gr.drawImage(front, 0, 0, null);

Thing you should notice, if you don’t know how pixel are managed by your computer is why am I doing this :


for(int c = 0;c<3;c++){                       
                            back&#91;x&#93;&#91;y+1&#93;&#91;c&#93; = (back&#91;x+1&#93;&#91;y&#93;&#91;c&#93;+
                                    back&#91;x-1&#93;&#91;y&#93;&#91;c&#93;+
                                    back&#91;x&#93;&#91;y+1&#93;&#91;c&#93;+
                                    back&#91;x&#93;&#91;y-1&#93;&#91;c&#93;)>>2;/* I put code for the third algo in comments
                                    back[x-1][y-1][c]+
                                    back[x+1][y+1][c]+
                                    back[x+1][y-1][c]+
                                    back[x-1][y+1][c])>>4;*/
                        }

As you can see, I computed each component of the pixel (Red,Green and Blue) instead of computing directly in integer, for intance something like this:


 back[x][y+1]= (back[x+1][y]+ back[x-1][y]+ back[x][y+1]+back[x][y-1])/4;

There are two reasons for this, firstly because it doesn’t give you the same result. See the example below:

Difference between integer and component computing

Difference between integer and component computing

As you can see the rest of division prevent us from computing the right result.

The second reason took its roots from how graphic cards manufacturers managed pixels for years ago. The problem is that they used their own rules, and there are no standard on how stored pixel in memory.

For example for 16 bits depth color, how could we divided properly 16 bits for three components R/G/B ?? Some manufacturers decided to avoid the 16th bit, and stored as {R =5bits ; G = 5bits ; B=5bits} = 15bits. And some others decided to give to green componenent more bits (because human eye is more sensible to green), then we got {R=5bits ; G=6bits;B=5bits}.

Basically RGB integer is stored as below by the main part of manufacturers:

15bit = {5,5,5}

16bit = {5,6,5}

24bit={8,8,8}  (8bit == 1byte, simple operation to get RGB component 😉 )

32bit={8,8,8,8 } (the 4th byte is the component Alpha of the pixel, which refers to the transparency of the pixel)

And that’s not all ! Some manufacturers stored component in different order than RGB, for instance BGR ! So how could we manage this? We had to check which configuration is used on the current card, there is no other solution.

Fortunately the class Color in Java, help you to get the right structure for your integer, take a look on the source of the Color class, and you will see bit operations I’m talking about here.

For the best geek of you

You can play to recreate your own Color class and try to optimize it ! To success you have to get some tutorials on bit operations like shifting and bit masking.

Ok enough words now, let’s see the result of all our efforts:

Java me!

It's better in motion ! 😉

Get sources code here! It’s really better in motion ! 😉

Now is your turn ! Dance in Java but don’t forget to go out with your girl at Valentine’s day ! 😉

Photosynth

Did you heard about PhotoSynth ?

First time I heard about it, was 3-4 years ago now… And I have to admit that I were very excited about the idea that you can replace the photo in 3D !!

I tried it few times ago now, and it’s really cool.

You should try it with your own shots if you have some cool time to spend…

Enjoy it !

Enjoy it !

Google Chrome, What else ?

How to not talk about this buzz today ? 🙂 It’s a buzz because it’s about Google, and furthermore the announce was done with a comics book !! You can find it here !!

And you can find this offline version (pdf) here, thanks to my friend BenJ !

Yes, Google’s launching his own Web browser: the Chrome.

So Why ?

Some guys think that Google was nervous about the anonymous mode of Microsoft’s browser, which is a good argument. Of course, this functionality hide your personal data to the others websites, and so prevent Google to show you their ads, or at least their ads no longer fit to user profile.

Others just think that Google’s guys are just boring. Hum…

And finally some others think that is one more bullet which aim to hit Microsoft’s heart, because the border-line between the Browser and the OS is becoming very thin… very very thin, and Google announced it in the first page:

google's chrome first

Google 's OS ??

Anyway, let’s be a Google’s fan (for a moment…a minute…maybe just a second…a nano-second?? ) , google is good, and google did it because they love us !!
So How ?

There are the features, highlights list that I did for all of you who don’t like comics:

  • One thread per page, so if a page you lastly opened crash, it doesn’t affect the others pages:
    This feature is an excellent idea, unfortunately it happens frequently in Firefox.
  • Webkit for rendering engine:
    Excellent idea, apple’s product speak for itself. It’s fast !
  • Each tab has its own address bar:

    It seems logic, because tab now appears as window…

    (from techcrunch)

  • You could move tabs on one window to the another one:
    It could be useful, but for my part I prefer to keep one window, it’s much better to have a clean window…
  • V8, which is the totally new virtual machine for Javascript, done by Google’s guys in Danemark (a cold place somewhere in Europe… 😉 ). If the V8 fulfil its promises, as speed and memory optimization with their famous garbage collector, it could be THE THING that makes THE difference with others browsers. So for my part, it’s one HOT thing to keep in mind !
  • Securities improved thanks to Sandbox and auto-updating of malware’s list and phishing’s list. Mmm the Sandbox have to be test… by the community which is more appropriate that Google’s guys… Maybe after some months, I could be convince…
  • The welcome Page, by Google, which is a minor functionality but not a less interesting thing. It appears like a Welcome page, but it shows you a thumb of you favourite sites: Good idea !
  • anonymous mode… hum is it anonymous for Google’s ads ??? lol
  • Tab manager, as window’s task manager, which shows you the memory,the processor took by each page: good idea !
  • Chrome, V8 are open source.
first screen, from crunchbase.com

first screen, from crunchbase.com

So the naive moment past, and the Why?? is coming back from the bottom of my brain… and my answer is simple as :

bigbrother google

Take care, someone is watching you, right now !!

Take a moment, and think why do we use every day this OS, Window’s System. Because it was cheap ! And so It’s everywhere !!

Even Google is good, is it normal to use, to store, to trust every actions, every data, everything to ONE UNIQUE company !

So if you followed me well, If you like Chrome, stop using Gmail ! 😉

I’m Virtualized !

I’m so busy during this period, and I spent all my time at home to write my final studies dissertation, which is about Virtualization.

I have to admit I feel proud about the result; unfortunately it’s in French, but I wrote an abstract in English. I think it really could help some of you who are looking for french documents talking about “How choosing, managing and exploit a virtualization project”

so there is my abstract, and I will post soon the entire document in french.

The growth of the number of service centres within Essilor’s information system constantly increases. Now, as we know, the average load of a processor is generally contained between 9% and 12% according to the experts, and Essilor does not depart from this rule, as according to internal studies, our average load is 10%. From that moment, the strategy of consolidation, optimization of our resources becomes an essential stake in the control of the costs connected to the increasing needs on the one hand, and in the technological control connected to the growth of the total number of our computers on the other hand. In this context, virtualisation appears to be a « smart » solution.

All along this report, we are going to try and answer to several questions, which aim at better understanding the stakes and prospects of virtualisation. I have decided to schematize the outline in three main questions:

o What is virtualisation?

o For whom is virtualisation intended? Why virtualisation?

o How to implement virtualisation?

So as to help us in understanding the different aspects of such a project, and sometimes to convince us of some figures, we are going to back up our explanations with the results observed in the framework of Essilor’s project.

IPhone is cheaper but I’m richer, so what ?

No really I’m not an Apple’s hater, but there’s an other story from Apple’s land that makes me laugh a lot, by the way, it confirms what I supposed in last post.

Another Quality product from Apple store...

Another Quality product from Apple store...

Finally, Apple removed this useless tool…because some customers bought it by accident… I don’t know how to judge the “quality” of this product, but as everybody said (see trackback) it’s sure that the quality process at Apple Store is minimalist… I think it’s just a kind of unit-test series about security, but no human gets an eye on it… Useful or Useless, Apple always gets 299.99$ (30%) of 999.99$ ! You see what I mean…