Thursday, January 31, 2008

Уж очень понравилось :)

Зима. Горнолыжная трасса. На склоне лыжник в полной экипировке: очки,шлем, модный костюм. Несется со склона и подпрыгнув на трамплине падает кубарем и врезается в дерево. Встает: палки погнуты, лыжи поломаны,костюм в клочья, очки разбиты, все лицо в крови и не хватает зубов.Отряхивается, подымает взгляд обратно на вершину спуска и говорит:"Б&_*ь! Все равно лучше чем на работе!

Tuesday, January 29, 2008

Nice feedback matters

I was going through the list of "TODO" things that I got from one of my customer. This was more like a short transcript from the discussion that had all the feedback and suggestions from the users of the product.

I like this line from there:
"I must add I really like what the [____] team has created here. It has the potential to be a great resource ... we have the motto in [____] "We care enough to steal only from the very best" ... this is the best."

I know that some people might say that this might not be always sincere, it might have been said just to make you feel good. ... and it makes me feel good as it suppose to ;-)

Sometimes I appreciate this kind of feedback more that the financial rewards I get from doing my work, because I think that eventually it will last longer.

Monday, January 28, 2008

Cat Wake Up Call

Забавный видео прислал Роман :)

Saturday, January 26, 2008

Что меня радовало сегодня


Сходили на День Рождения к друзям: Юле и Сергею. Хорошо провели время. Каждый раз когда ходим к ним в гости, то стол ломится от еды в самых лучших русских традициях. Так что объелись в очередной раз и ещё и на завтра нас приглашали доедать недоеденное.

Еше раз с Днём Рождения Юля!




Денис - мой однокурсник по университету, прислал линк на свой блог: http://kumlander.blogspot.com.

Мне понравилась статья на тему:
Легко ли стать доктором наук

и логический вопрос заданный Владом в комментарии к этой статье перерос в еще одну статью:
А зачем быть доктором наук если есть идея?

Не могу сказать, что ответ раскрывает тему. Многие моменты остаются достаточно спорными и не достаточно убедительными, по крайней мере для меня.

Тем не менее желаю удачи всем кто ставит перед собой цели и их добивается.

Friday, January 25, 2008

Mac vs PC: fun videos :)

I found these videos today and I admit they are funny.
Although, I own a MacBook Pro myself, all of my (and my company) projects and income comes from PC world so far.

... speaking about skiing vacation :


... and money:



... and iTunes:


... and work:


Enjoy ! :)

Monday, January 21, 2008

Про copyrights & trademarks

Интересную статейку написал мой приятель Сергей:
http://www.volinrok.com/2008/01/20/torgovaya-marka
Очевидно что такое может затронуть всякого кто принимает решения сам, а не работает на дядю. Пожелаю удачи в дальнейших разборках.

полезная ссылочка на будушее:
United States Patent and Trademark Office

Friday, January 18, 2008

Что меня радовало сегодня

* Нашел как удобно для себя печатать на русском языке: http://www.translit.ru. Начинаю писать здесь и на русском языке.

* После долгого перерыва в Virginia выпал хороший снег, уехал с работы пораньше. Приходили в гости Серега с Леной, выпили по бокальчику коньячку, побеседовали.



* Понравилась Картинка:


* Завтра - Пятница!

Sunday, December 16, 2007

Bad Code

It happens so , that besides my primary job, I currently have other projects on a side.
One is WTL/C++ , couple more with C#.NET and today I also had to fix some legacy code written with ASP/VBscript that I inherited (very poorly written code).
Yes, that's right VBScript. It would take much longer for my clients to contact the original developers of that code, than me fixing the bug.

After seeing such "masterpieces" from time to time I think I might start to collect them and publish on my blog.


Here is what I found today:
todaysDate = Now()
resultDate = Right(Left(todaysDate,(InStr(1, todaysDate, "/"))-1),3)+1 & "/1/20" & Right(Left(todaysDate,(InStr(1, todaysDate, " "))-1),2)

Isn't that beautiful ?
Try to see what happens with today's date 12/16/2007 ......
.....
bingo 13/1/2007 .... and there is no 13th month.

Whoever wrote the code was relying on particular format of the date, parsing it's string representation, in such a way that makes sane developers cry.


One of the ways to fix it and to get to the same result in this case, would be to do something like:
tempDate = DateAdd("m",1,Date())
resultDate = Month(tempDate) & "/1/" & Year(tempDate)

... and think twice before shopping for cheapest software engineers :)

Monday, November 26, 2007

ASP.NET API incosistency

HtmlAnchor has HRef property, while HtmlLink has Href.

My guess is that some architect at MS left the review board in the middle of the project. Let me know if you have other opinions.
Now MS would have to support this API the way it is.

Wednesday, November 21, 2007

How to remove blogspot's top frame ?

Don't know how long this solution would work.

If you look at HTML source of the page it has the following style that is getting inserted into the web page:
#navbar-iframe { display:block }

So, all you have to do is to add into your blog's template something like this:
#navbar-iframe{
height:0px;
visibility:hidden;
display: none !important;
}
Good Luck!

Tuesday, November 20, 2007

back to blogspot

I'm moving my blogging activities back to blogspot.
It's been more than 2 years since my last post here and I was surprised that my "blogger" account still exists.
The silentcoder.com domain is currently forwarded to this blog and the cached version of the silentcoder.com blog is still avaible through google search.

Will see how it goes from now on.

Wednesday, August 03, 2005

Useful header file for STL MBCS/Unicode portable code

#pragma once

#include <vector>
#include
<string>
#include
<fstream>

namespace std
{
// Define TCHAR compatible elements of string/iostream
#if defined _UNICODE || defined UNICODE
typedef wstring _tstring;
typedef wostream _tostream;
typedef wistream _tistream;
typedef wfstream _tfstream;
typedef wifstream _tifstream;
typedef wofstream _tofstream;

#define _tcout wcout
#define _tcin wcin
#define _tcerr wcerr
#define _tclog wclog
#else
typedef string _tstring;
typedef ostream _tostream;
typedef istream _tistream;
typedef fstream _tfstream;
typedef ifstream _tifstream;
typedef ofstream _tofstream;

#define _tcout cout
#define _tcin cin
#define _tcerr cerr
#define _tclog clog
#endif
}

Thursday, April 21, 2005

My Google Blog's Birthday

Already have a Microsoft Spaces' blog and just wanted to try what Google offers.
We will see which one I will use more often.

Today Google shares hit $204 per share mark...wow.