# Friday, August 17, 2007

Лора

Една приятелка почина вчера.
Тъжно: http://mihail.stoynov.com/blog/2007/08/15/InMemoriamLorkis.aspx

За първи път в съзнателния си живот се сблъсквам от толкова близо със смъртта. В началото нищо не почувствах, но днес разгледах снимки и ми стана адски тъпо. По-скоро тъжно и мъчно.

Наскоро си мислих какво става ако нещо ми се случи (всички ми разправят, че шофирам доста опасно) и си мислех, че е хубаво да напиша някъде до къде са ми стигнали делата и семейството ми да има отправна точка - да може да се възползва от това, което имам.

Също наскоро една приятелка ми каза, че готините хора си отиват по-бързо. Вярно е. Лора беше един от най-готините хора, които познавам. Общото мнение е, че беше много усмихната. Така е, беше. Но на мен много повече ми допадаше това, че беше добър приятел. Не отказваше помощ. Ако съм искал да се забавлявам винаги съм търсел нея. Напоследък като излизахме беше по-скоро като гид на софийските заведения. Знаеше ги всичките. С нея постоянно беше забавно. Фен. Беше от готините хора. Беше точна. Беше готова за всякакви простотии. В нейното присъствие се чувстваш в приятелска обстановка.

Като съм тук сега и животът си върви. Сигурно в БГ е много по-тъжно. 100% е - всичките ѝ приятели са в траур, родителите ̀ѝ също. Не искам да знам какво е на родителите ѝ. Единствено дете. Децата винаги трябва да надживяват родителите си. Винаги. Тук никой не скърби, защото не я познава и мен това ми държи настроението добро, ама само като погледна снимките ... Слушам едно парче вече втори ден. Само него въртя. Eva Cassidy - autumn leaves


Много е хубава



Сега си мисля какво мога да направя, но то няма какво да се направи. В БГ всичките ѝ приятели ще се погрижат.

Питаха ме дали не съжалявам за нещо, което съм пропуснал да ѝ кажа. Не знам. Може би не. Не съм си траел - всичко съм ѝ казвал. Може би съжалявам, че толкова често я наричах "пиянде". Тя го приемаше на сериозно. Не си пиянде, бейби.

Чао, усмихвай се дори там горе, не пуши толкова много и започни да си отспиваш.
# Wednesday, August 15, 2007

In Memoriam - Lorkis

A friend died today



Ще ни липсваш. Беше страхотен човек

Малко снимки: http://picasaweb.google.com/mihail.stoynov/InMemoriamLorkis
Още малко снимки: http://picasaweb.google.com/renkata/ByPUWK

И едно парче за фон: Eva Cassidy - Autumn Leaves

# Tuesday, August 07, 2007

Books that I have read

I just published a list I kept offline. It contains all the books that I have read since 02.02.2001.
Here's the link: http://mihail.stoynov.com/readbooks.html

# Monday, August 06, 2007

Having a blog

 Having a blog is not as easy as it seems.
 I wanted to have the blog on my own server. So I had to find the proper software for that. I had to install it. One day is gone.
 Then I started writing. This is easy because I'm full of useless stories.
 Then I had to subscribe to my own blog in every possible reader, so I could see how it looks like inside it. In google reader it has the " by Your DisplayName here!" suffix which I don't know the source of. Also in google reader it didn't display my post with the Amsterdam pictures (this one).
 Then I have to define the look and feel so that it looks good to me.
 Then I have to make sure that my posts are final, because frankly I don't know what happens if I make a change to a post.
 Then I have to make sure that I don't make syntax or grammar errors, because ... it's obvious.
 
 And finally I have to be persistent and write in a consistent manner in regards to time. Which is the hardest thing.

 But frankly I don't care about all that, the important thing is that I have a blog.
 Let's see how that would work.

JavaScript and its traits

This is a story about my trying to print a date using javascript.

I was working on an ajax component and had to display a date in the following
format: YYYY.MM.DD.
First of all js (javascript) doesn't supply a formating method. At least
I didn't find one.

Then I tried to get the months using the js method Date.getMonth().
It comes out that the months are in the range 0-11, and not 1-12 as
expected. WTF?

After that I try to print the day, logically using the Date.getDay(). Wrong.
The getDay() returns the day of the week (0=Sunday, 6=Saturday). I read
a little more. The correct method is Date.getDate(). I expect the range
0-30, again wrong. The range is 1-31. Go figure...

Then I try to print the year. Again a surprise. Years before the year
2000 are returned in a two-digit format. The year 1997 is returned as
97. And the biggest problem there is that the js calendar (a fancy
js thing that we use to choose a date) sees 97 as the year 97
and not 1997. Crazy!

JavaScript sucks. Sucks big time.
How about a good naming convention?

And if you think java is better, look at this:

If you have a java.util.Calendar object and want to see the time in
milliseconds since the start of the Era (00:00:00 01.01.1970) you have
to write this:

calendar.getTime().getTime()
\________________/
 returns a Date
\__________________________/
     returns a long

Does this look clean or neat? Would it be clear if I didn't tell you
what it did? For me - not really.

Again, how about a good naming convention.

And don't even get me started on inline conditionals - in java and in
javascript they have different priority. Again: go figure... One has to
put extra brackets just to make sure.
# Thursday, July 26, 2007

Firefox memory print going crazy

I'm a firefox user. I use it extensively.

Since Ajax gained popularity and more and more sites getting "ajaxed" my firefox is getting slower and slower. I sometimes don't kill the process for days and open and close numerous windows with numerous tabs. I even have a bookmark folder called "Open these" and in there are links to my web mail sites, web rss reader, web calendar...

So, anyway, firefox starts taking more and more memory and the thing I noticed is that when I kill the process and then start it again and reopen everything I had opened just before killing it it takes few times less memory.

Before: a whopping 676 MB of memory.

After: just 240 MB

(Screenshots from Process Explorer an excellent (now Microsoft) tool from sysinternals)

So I don't know if the difference is some caching or just memory leaks, but 670 MB for a browser with 5 windows and total of 9 tabs (one window was just empty) is too much.

And I wouldn't make it that much of a big deal, but recently it started lagging and taking up to 50% of my processor - I don't like it. The machine on which the screenshots were taken is a Pentium 4 3.2Ghz, 2GB memory (hp workstation).

On my laptop (Core 2 Duo 1.67Ghz, 2GB memory) it's not lagging yet, but I expect it to. And then I'll look for an alternative.

# Sunday, July 15, 2007

Pictures from Amsterdam

Here are some pictures from my stay in Amsterdam
# Tuesday, July 03, 2007
# Wednesday, June 27, 2007

Ground rules

So, I now have a blog. That was easy. Now the hard part is to put content in it.
So I decided to write a post that explains some stuff first.

I'm a Bulgarian, why am I writing in English? First, I'll practice my English. Second, more people will be able to read this.

What will I write about?
The short answer is: I have no idea. A better one is: I'll write about everything that I find interesting. A little about software for sure.

Who am I? You can find some info about me on the web site. What web site? mihail.stoynov.com

So, I hope you'll like it.