Archive for August, 2004

2004-08-31 14:56

Tuesday, August 31st, 2004

Yesterday I wanted to study, but my head started hurting for some unknown reason (looks like the terminology of the logic programming is bad for me, I’ll probably write a bit in prolog), so I listened to some Hipodil – such vulgar music helps :)
(I really have no idea why the people explain the simple things in such complex manner…)

The script for the webalizer isn’t working properly (nothing surprising here, I’ve tried this before, and what happens to run from the first try?), so I’ll do some experimenting with a different log, that gets rotated every 2 hours, but that will be after I finish the written exam on LP.

2004-08-31 14:53

Tuesday, August 31st, 2004

Вчера мислех да уча, само дето ме заболя главата по неизвестни причини (изглежда, терминологията на логическото програмиране не ми понася, ще попиша малко на пролог…), та си пуснах Хиподил – просташката музика определено помага :)
(наистина не мога да си обясня защо хората обясняват простите неща сложно …)

Скрипта за webalizer не работи правилно (то си беше ясно де, и преди съм го пробвал, пък и какво ли тръгва от първия път), та ще поекспериментирам с отделен лог, който се върти на 2 часа, но това след като се оправя поне с писмения изпит по ЛП.

2004-08-30 14:38

Monday, August 30th, 2004

I’ve found that having correct information for the technical contact of a domain is a good thing – in the morning I got a call with the question why is marla.ludost.net scanning someone’s network on ports 3128 and 1080. It turned out that I’ve already replied to an email about this, but for some strange reason both MXes for the domain of the receiver were filtering me, and the mail wasn’t received.

In the end the problem was solved, and I have the feeling that some users in some company will be asked why are they using irc in their work time :) I find it interesting that in these times there are people, who log and check those things – with all those worms, scanner and stuff, that keep the background noise high, reading the log of the firewall and checking the reasons for some of the traffic is somewhat futile… Looking at marla’s logs, for the last 2 days it’s rejected connections on 1031 different ports, a 7142 lines log :) The thorough admin is Stoyan Genov (who seems familiar for some reason, but I really don’t remember faces and names …).

Because of this there is already a FAQ for marla, if someone has an idea what to add, write to me (seems that faq-o-matic was really easy to setup :) ).

2004-08-30 14:29

Monday, August 30th, 2004

Да имаш вярна информация за технически контакт на домейн се оказа полезно – сутринта ми е обадиха, за да ме питат защо, по дяволите, им сканирам мрежата по портове 3128 и 1080. Оказа се, че аз съм отговорил на писмо по въпроса, но по някаква странна причина и двата MX-а на получателя са ме филтрирали, и писмото не се е получило.

Е, в крайна сметка изяснихме проблема, и усещам как в определена фирма някои потребители ще бъдат запитани защо ползват irc в работно време :) Интересно ми беше как се намират хора, които да следят тези неща – при купчината червеи, скенери и т.н., които обхождат мрежата, да следи log-овете на firewall-а си, и да проверява защо има определен трафик – като гледам, за последните 2 дни firewall-а на marla е записал отказани връзки на 1031 различни порта, общо 7142 реда :) Съвестния админ е Стоян Генов (който отнякъде ми се струва познат, само дето аз наистина не помня лица и имена… )

По този случай вече има FAQ за marla, ако някой има идея какво да добавя, да ми пише (faq-o-matic се подкарвал много лесно :) ).

2004-08-30 01:07

Monday, August 30th, 2004

Exactly by Murphy’s law I found out, that on 3.09 I have an exam on logic programming. Because of this I dug out my textbook, some lectures, that I have copied, and I’m reading… The problem is that it’s a bit hard to connect the questions in the conspectus with the stuff in the textbook, so I’ll fight it for a while, and I have to remember how to write in prolog (damn pervert language :) ).

Because of this I won’t be able to go to visit Dobrich in the next month, damn…

2004-08-30 01:05

Monday, August 30th, 2004

Като по закон на Мърфи открих, че на 3.09 имам изпит по логическо програмиране. По този случай си извадих учебника, едни лекции, които имам записани, и чета… Проблема е, че ми е малко трудно да свържа точките от конспекта с нещата от учебника, та ще го мъча известно време, а и трябва все пак да си припомня как се пишеше на пролог (проклет извратен език :) ).

По този случай няма да мога да се прибера до Добрич в следващия един месец, по дяволите…

2004-08-29 17:37

Sunday, August 29th, 2004

Nothing special again.

I went to the standard anime meeting, after which I went home – I could’ve gone to drink at “O!Shipka” with chervarium and vortex, but I didn’t have the ability to survive an alcoholic event like that, and I just found out that they met atl and Chorbadhiyski there (who has come back, this summer he was mostly away on some kinds of vacations :) ). I’m pretty sure that I wouldn’t have survived that…

In the evening me and Velin watched “Alien 3”, and he fell asleep in the middle of it. Only he can fall asleep at such a movie, and to keep sleeping until the afternoon, in spite of the construction works on the other side of the street and the ones on the upper floor.

I again forgot to stop, last night I did some pushes, and this morning mu stomach hurts. I should make a habit not to forget to do some exercises for three months in a row…

I’ve began fixin my webalizer script, not to generate one giant log file and analyze that, but to use the incremental feature, which had some problems in the earlier days. I’ll be testing it in the next few days.

2004-08-29 17:32

Sunday, August 29th, 2004

Нищо особено, за пореден път.

Ходих на стандартната anime среща, след което се прибрах – можеше да ида да пия в “О!Шипка” с червото и vortex, само че нещо нямах сили за алкохолни изпълнения, а доколкото разбрах, те са се засекли там с atl и Чорбаджийски (който се е върнал, това лято основно го нямаше от разните почивки :) ). Организма ми определено нямаше да понесе това изпълнение.

Вечерта с Велин гледахме “Alien 3”, и той заспа по средата. Само той може да заспи на такъв филм, и да продължи да спи до следобеда, въпреки къртенето на горния етаж и строителите отсреща.

Аз пак се олях, реших снощи да правя коремни преси, и тая сутрин ме боли стомаха. Трябва да си изградя навик, и да не забравям по 3 месеца да правя по някакво количество упражнения…

Мисля да си оправя скрипта на webalizer-а, да не генерира един огромен log и да му прави анализ, както досега, а да ползва incremental възможностите, с които по принцип имаше някакъв проблем. Ще го пробвам в следващите няколко дни как ще се държи.

2004-08-28 03:48

Saturday, August 28th, 2004

Not a lot of news today, again a dead day. I have to change the version of the postgresql server in the project with 7.4.5, because of a ugly problem in the previous ones, but it’s still missing from the backports, and in debian, and my try to backport it failed miserably, and I still have no idea why… Tomorrow I’ll fight it again.

Interesting article about the security problems in clocks synchronization, at least the first part it interesting (the second one is a bit windows oriented).

I again had a problem with going to sleep and the nerves, and I might’ve drunk something like 25-30 valerianae pills, I’ve stopped counting them, because I don’t feel their effect… I’m probably taking them for the placebo effect only…

2004-08-28 03:45

Saturday, August 28th, 2004

Без много новини, пак никакъв ден. Трябва да сменя версията на postgresql в проекта с 7.4.5, заради един неприятен проблем в предишните, но още я няма в backports, и в debian като цяло, а моя опит да я backport-на се издъни много лошо, и още не мога да разбера защо… Утре пак ще я боря.

Интересна статия за проблемите на сигурността при синхронизацията на часовници, поне първата и част е интересна (втората е малко windows ориентирана).

Нещо пак имах проблем със спането/нервите, и май изпих около 25-30 валериана, вече не ги броя, понеже не им усещам ефекта. Май ги пия само заради placebo ефекта…

2004-08-27 01:48

Friday, August 27th, 2004

Nice, quiet day… I fixed some small stuff, and again found out that all scripts that are ran from crontab must check for an already running their copy… Here’s a template for such scripts:

#!/bin/sh
#the script's uniqe name
name=SCRIPTNAME

if [ -f /var/run/$name.pid ]; then
        if [ -d /proc/`cat /var/run/$name.pid` ] ; then
                echo $name.sh already running!
                exit 0
        fi
fi

echo $$ > /var/run/$name.pid
trap "rm -f /var/run/$name.pid" exit SIGHUP SIGINT SIGTERM 

#do some stuff
echo Ugabugabuga
#cleanup
rm -f /var/run/$name.pid

In the moment I’m sure that it works under linux, because I use /proc, to check if the pid of the process is still valid, it will work on all unixes, that have such semantics.

In the evening me and Velin watched “Conspiracy Theory”, after which I went out for a walk, because most of the day I had stayed at home… The walk through the center of Sofia in 1:00 is a pleasant one, not a lot of people around, but I was sweating a lot, it was still hot… When is the autumn coming…

2004-08-27 01:44

Friday, August 27th, 2004

Тих, спокоен ден… Оправих една-две дреболии, и за пореден път се убедих, че всички скриптове, които се пускат от crontab, трябва да проверяват за работещо тяхно копие… Ето един template за такива скриптове:

#!/bin/sh
#the script's uniqe name
name=SCRIPTNAME

if [ -f /var/run/$name.pid ]; then
        if [ -d /proc/`cat /var/run/$name.pid` ] ; then
                echo $name.sh already running!
                exit 0
        fi
fi

echo $$ > /var/run/$name.pid
trap "rm -f /var/run/$name.pid" exit SIGHUP SIGINT SIGTERM 

#do some stuff
echo Ugabugabuga
#cleanup
rm -f /var/run/$name.pid

В момента работи само за linux, понеже използвам /proc, за да проверя дали pid-а на процеса е валиден, ще работи на всички unix-и, които имат такава семантика.

Вечерта с Велин гледахме “Теория на конспирацията”, след което аз излязох да се разходя малко, че по-голямата част от деня си бях стоял вкъщи. Разходката по центъра на София в 1:00 е приятна, няма много хора, но аз се изпотих бая, още си беше горещо… Кога ли ще дойде есента…

2004-08-26 01:28

Thursday, August 26th, 2004

Deciding not to be sick feels better :)

Today Nedyalkov and me did some tests on the smartcard readers under linux (the kind that Information Services sell). Some things needed to be written in opencs, and a driver for the card, so it was impossible to use debian’s packages, and there was a lot of compiling… I hope in the end the patches to be released and accepted in opensc, so everyone here in Bulgaria to be able to use digital signatures.

IBB was good, we weren’t too much, but it was cool and nice in the basement of “Krivoto” (next time we’ll probably be there, too), I drank 4 amstels, and then went through “Divaka” with one of the admins of bTV (damn, I really don’t remember names) for a paunch soup, which had a good effect on me…

This vacation season sucks, everybody has hid somewhere…

2004-08-26 01:22

Thursday, August 26th, 2004

Като реша да не съм болен, нещата са по-добре :)

Днес проведохме тестове с Недялков на четецa на смарткарти под linux, и на смарткартите, които издават Информационно Обслужване. Оказа се, че се налага дописване на няколко неща в opencs и на един драйвер за картата, та не можеше да ползваме пакетите в debian, наложи да компилираме доста … Надявам се в крайна сметка patch-овете да бъдат release-нати и приети в opensc, за да може да се ползва нормално електронния подпис в България.

ИББ мина много добре, малко в камерен състав, но на хладно и приятно в мазето на “Кривото” (следващия път вероятно пак ще бъде там), изпих 4 амстела, и минах през “Дивака” с един от администраторите на bTV (по дяволите, как не помня имена) за една шкембе чорба, която ми се отрази доста добре.

Много неприятен отпускарски сезон, всички са се изпокрили …

2004-08-24 20:57

Tuesday, August 24th, 2004

I’m not sick. I’m not sick. I might be feeling bad, to be feeling dizzy, to be drinking the Fervex and the vitamins, etc, but I’m not sick, damn it :)

Today I finished the stupid bureaucratic stuff about the personal doctor, one piece of crap less… The walk was nice, made me feel a little more alive. On the way back I fixed a small problem with the internet connection at the project, and with the behavior of drbd, so now everything should work normally, we’re just waiting for some styff to arrive.

Tomorrow I’ll be going to the faculty, to get registered for some september exams (and maybe start studying for them :) ). I’ll also be doing some tests for some things, but more about that – tomorrow :)

2004-08-24 20:52

Tuesday, August 24th, 2004

Не съм болен. Не съм болен. Може да ми е зле, да ми се вие свят, да си пия фервекса и витамините т.н., обаче не съм болен, майната му :)

Днес си оправих нещата с личния лекар, една дивотия по-малко. Разходката ми се отрази добре, почувствах се малко по-жив. На връщане оправих един дребен проблем с връзката в проекта и с поведението на drbd, така че всичко си работи нормално, сега само се чака да пристигнат разни работи.

Утре ще ходя до факултета да се запиша за малко изпити за септември (и може и да почна да уча за тях :) ). Ще се правят и тестове на няколко неща, но за тях ще пиша утре :)

2004-08-23 21:43

Monday, August 23rd, 2004

Again a day that I slept through. I’m thinking cured from tomorrow on, I’m sick of it.

2004-08-23 21:42

Monday, August 23rd, 2004

Поредния напълно проспан ден. Смятам от утре да се броя излекуван, и да не ми пука, писна ми.

2004-08-23 12:49

Monday, August 23rd, 2004

I’ve forgotten to blog last night…

Not that there was something interesting to write about – I slept through the whole day, with short breaks for the next fervex, and in the evening me and Velin watched “Aliens” (Alien 2). I read some more from Quicksilver, now I’m somewhere around the 500th page.

Bine, are you getting my emails? There seems to be some problem in the way…

2004-08-23 12:47

Monday, August 23rd, 2004

Пак съм пропуснал да блогна снощи …

Не че имаше нещо интересно – проспах целия ден, с кратки прекъсвания за да изпия поредния фервекс, и вечерта да изгледаме с Велин “Пришълеца 2”. Почетох още малко от Quicksilver, сега съм на около 500та страница.