Archive for May, 2006

Other projects

Besides BirdSpot I’m involved along with Pisi and some other excellent writers into the technical side of a hypertextual novel (or something like that).

Text scaling

Recently I had to deal with the famous problem of non-uniform text scaling (the issue is that doubling the height does not mean necessarily a double width). Of course this is only for TrueType fonts.
A way of solving it is to draw char-by-char and occasionally skip pixels so that the final width of the text rendered equals the initially computed (zoom 1.0 width multiplied by zoom) correct width. Still it may look weird in some cases (the i’s may stick together in some fonts) – so there’s still some research to be done for a correct way to do it (like MS Word).

Do you know C++ ?

Adrian found a weird C++ issue – at the first-glance it seems a bug:

class A
{

Yay!

We are in the finals ! (The Release Candidates)

Congratulations! Because of your team’s hard work and
exceptional final report, you have been selected to take part in the Windows
Embedded Student ChallengE (WESC) 2006 World Finals!

Symbian viruses

I just can’t believe so many people with smartphones are virus-infected (viruses on cellphones? WTF? :D ) – everytime I am leaving bluetooth on and go in the city I found someone trying to send me infected programs. So ensure to take mobile software only from *safe* places and p2p networks like dc++ is not one of them.

The formula

Get the week day for 1st of any month:

int firstday = (1 + 2*m + (3*(m+1)/5) + y + (y/4) – (y/100) + (y/400) + 2) % 7 – 1

Simple, right? Don’t remember where is it from.

1st of May

… means going to the seaside – so here are some (terrible!) pictures from Vama Veche, together with Pisi.

Did you know that …

Microsoft had tabbed browsing in Internet Explorer since the first MSDN release ?