четверг, 23 декабря 2010 г.

Парадокс ката з маслам

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

понедельник, 20 декабря 2010 г.

Подарок на Новый Год

Придумал себе подарок на Новый Год.
Кто меня сильно любит, тот может сделать и подарить мне вот такую футболку:


Сделано с помощью редактора Gimp. (Немного рекламы:)

Обновил картинку: теперь вместо "хангук" - "хангуг".

пятница, 17 декабря 2010 г.

Еще один блог

Решил создать другой блог, где буду писать на более технические темы.
Буду писать на английском, чтобы зацепить бОльшую аудиторию.
Надеюсь будет интересно.

Заходите на choboprogrammer.wordpress.com.

пятница, 10 декабря 2010 г.

G-Star 2010

18 ноября университет организовал поездку на выставку компьютерных игр G-Star 2010 в Пусан. Я не ожидал ничего особенного, поэтому не взял с собой фотоаппарат, о чем сильно сожалею. Но сделал немного фотографий отстойного качества на айпод.

После 3-х часовой езды на автобусе, мы всё-таки приехали в BEXCO (Busan Exhibition and Convention Center), огромный комплекс (размер зала внутри - примерно 2 футбольный поля) для всякого рода выставочных мероприятий.

пятница, 26 ноября 2010 г.

Как написать отличную научную статью?


Вчера за чашкой кофе пролистал довольно интересную презентацию: How to write a great research paper (Simon Peyton Jones, MS Research, Cambridge). Идеи, заложенные в ней, довольно сильно отличаются от моих представлений об оформлении и самом процессе написания научной статьи.

среда, 27 октября 2010 г.

Что же едят корейцы?

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

Вот например, сегодня наш профессор повел всех студентов на ужин. В Корее принято, что профессор раз в месяц ведет всех студентов из своей лаборатории на ужин. Обычно, еда на таких ужинах не совсем обычная. Как правило, она готовится прямо перед тобой и закусывается огромным количеством местного алкоголя.

Сегодня на ужин были жаренные кишки, и некоторые другие, неопознанные нами, внутренности коровы. Приносят приправленные специями кишки сырыми, так что еще удается ощутить их чудесный аромат. Все это кладется в специальную печку встроенную в стол и жарится.



Услужливая хозяйка ресторана перед тобой всё это дело разрезает и перемешивает. На закуску также подается сырая печенка и кишки, предположительно другого вида, также сырые.



Спросите как на вкус? А какими могут быть на вкус жаренные коровьи кишки? Единственное, когда они достаточно долго пожарятся, напоминают чипсы, и с пивом нормально.

Стоит, также, отметить антисанитарные условия этого заведения. Столы расположены буквально возле входных дверей, открытая кухня, толпы народа. Но по моим наблюдениям в Корее это нормально. Много клиентов приходит в недешевых костюмах, и условия их совсем не смущают.

Всем приятного аппетита :)

четверг, 5 августа 2010 г.

Twisted Python Tutorials

I heard many times about Twisted networking library for Python.
But haven't looked on it until now, because I got a task to make a simple server.
I'm getting really sick of C++ these days, so decided to use Python.
And twisted seems to be the way to go. But there's one problem, I've never used it.

I started to search the web for some tutorials, and found really great tutorial series here.

I don't know who is this guy, but it's the best tutorial series I've ever read, despite it was just written in blog.
The author first gives good foundation, and then incrementally describes what is Twisted, how to use it, and what design decisions are behind it.

Material is supplied with bunch of diagrams, which makes really helps understanding.
Each part is ended by conclusion followed by several exercises for practice.
All the source code is stored on GitHub, so everybody can easily access it.
Author is also quickly responding to any comment.
Very good quality.

Recommend to anyone, who would like to study Twisted.

P.S. After reading these tutorials I finally understood why server side of EVE online got great performance boost after implementing server logic using Stackless Python (slides, video). And why multi-tasking single-threaded application, can run faster than single-tasking single-threaded one.

Instead of waiting for completion of some blocking operation (I/O, networking, ...), we can switch to some other task.

понедельник, 2 августа 2010 г.

HP Mini and Ubuntu

Last weekend I purchased HP Mini 210 netbook.
I really like the model, and recommend it to anyone.
Small size, good design and really great keyboard.

It cost me around 320$ with preinstalled slow running windows xp sp3.
For a long time, I wanted to test Linux OS (My debian server does not count:), so before buying the netbook, I decided to install some linux distribution on it.

My first try was Kubuntu Netbook Edition. But nothing good came from it.
It appeared to be slow for my netbook hardware. Especially when I tried to customize my panel with some widgets. Some random crashes. Well apparently something was not right.

So today I installed Ubuntu Desktop Edition, and was really fascinated with it.
It automatically installed all the drivers, except for wireless adapter.
But there was no problem to fix it. Ubuntu will find everything it need from the web.

I was surprised with the way I could customize menus and shortcuts.
I have assigned a dozen of shortcuts on combination of 'windows' button + other key.
Since the key is there, why shouldn't it be utilized? :)

Right now everything runs smooth. Let's see what will happen next.
I should also note that the installation process was really easy.
Even with windows dual-booting (in case I need to run some windows apps, I will)

среда, 7 апреля 2010 г.

Why Python?


It's been a while since my last post.

I have visited my home, changed my supervisor professor, changed my room in a dorm, found new part-time job... and decided to write my blog in English. Yep, i hope it'll help me to improve my English writing skills.

Today's post is about Python programming language. Not 'another overview', just i'd like to share the reason why I started to use it.

I started to write some scripts in Python last year, i think it was summer time. The raining season, damn-hot weather...Okey.

And I was completely fascinated with Python, and what it allowed me to create in a short time. The highly dynamic nature of the language has made me look different about programming. Yeah, at first it hard to use Python because of the static programming background. You start to find the way, how apply old techniques to Python. But later you'll become more Pythonic. And it's cool.

I don't want to provide a deep comparison with other modern languages. Just give here some of my thoughts.

When I think about C# or Java it like they say: "Hey man, don't use C++. pointers are bad, memory leaks. Use us". And they completely miss that memory is not the only resource that can leak. File handles, sockets,... These languages still provide additional contructs to handle these leaks in similar to RAII fashion.

But when it's come to Python: "Hey, I will give you as much as I can to increase your productivity. If what you need is performance, you can use me together with C or C++". And that's what I really like.

Got picture from here (Hope they don't mind)