2004-09-02 00:50

September 2nd, 2004 by Vasil Kolev

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

Днешното IBB беше много забавно, най-вече защото успяхме да напълним 4-5 маси в “Кривото” (много хора се бяха върнали от ваканция), дойде и Весо Колев, с който си говорихме за бая неща, като routing протоколи, ntp сървъри, GEANT и т.н. Дойде и Ники Недялков, и ми даде един USB четец за смарткарти (който вече подкарах, остана да напасна нещата в thunderbird-а). Открих и че вратната пържола там я правят страхотно, и точно по мой вкус я дават с едно прилично количество чеснов сос :) От срещата си тръгнах с едно листче неща за правене, с остатъка от които ще се заема като стана сутринта.

2004-09-01 13:58

September 1st, 2004 by Vasil Kolev

I’m still writing in Prolog…

Last night I programmed until 21:00, after which I was tired of it, and went out for a beer with Heth. We went to “Divaka” (where we found Velin, on a table in the other part of the pub), we drank a bit, and then chervarium came, and we kept drinking until 1:00, speaking about the normal amount of topics (about one of them I’ll talk after a while). After that we went through home, to give him the book on quantum computers, to check for himself something about the algorithm for factoring large numbers, and I sat again to program in prolog – it turned out that I was able to solve a lot of the problems in one try – the way I need it, because the exam will be on paper. I might post the solutions somewhere, as an appendix to the textbook.

Right now I’m still working on the prolog stuff, after taking care of the washing machine – it came at noon, and with the driver we carried it without any great problems (its weight isn’t specified in the documentation or in google, but it’s probably somewhere aroung 100kg). Now I’ll have to find someone to link it to the water and the drain, and to get something to hang the clothes to dry.

And something work related – who has a seagate disk, to pull some SMART parameters (with smartctl -a), and to tell me the result? I have a problem, there are drives, that give me errors only in smart, but nowhere else, and are working, but I have no idea how long this will continue… Here’s (a part of) smartctl -a ‘s output of one such drive>

Vendor Specific SMART Attributes with Thresholds:
Revision Number: 10
Attribute                    Flag     Value Worst Threshold Raw Value
(  1)Raw Read Error Rate     0x000f   062   059   006       149772871
(  3)Spin Up Time            0x0003   096   096   000       0
(  4)Start Stop Count        0x0032   100   100   020       2
(  5)Reallocated Sector Ct   0x0033   100   100   036       0
(  7)Seek Error Rate         0x000f   076   060   030       42680804
(  9)Power On Hours          0x0032   100   100   000       679
( 10)Spin Retry Count        0x0013   100   100   097       0
( 12)Power Cycle Count       0x0032   100   100   020       53
(194)Temperature             0x0022   025   040   000       25
(195)Hardware ECC Recovered  0x001a   062   058   000       149772871
(197)Current Pending Sector  0x0012   100   100   000       0
(198)Offline Uncorrectable   0x0010   100   100   000       0
(199)UDMA CRC Error Count    0x003e   200   200   000       0
(200)Unknown Attribute       0x0000   100   253   000       0
(202)Unknown Attribute       0x0032   100   253   000       0

As seen, attributes 1 and 195 have huge values, and this really troubles me. The drives are Seagate ST3120026AS, Serial ATA (but in the BIOS they’re specified to show as PATA). If someone had similar problems, please, write to me, because can be a problem in the lot. After searching in google I saw a similar problem in a forum, but it was under windows, and looked like driver related (although every few weeks the drive went into such condition that a reformat through seagate’s utils was needed).

2004-09-01 13:45

September 1st, 2004 by Vasil Kolev

Аз продължавам да пиша усилено на Пролог…

Снощи писах до около 21:00, след което вече ми беше писнало, и излязох да пия бира с Heth. Отидохме в “Дивака” (където на една маса в другата част се оказа и Велин), пихме до някое време, дойде chervarium, и пихме до около 1:00, минавайки през нормалното количество теми (за една от които ще говоря след малко). След това минахме през вкъщи, за да му дам книжката за квантови компютри, да провери сам нещо за алгоритъма за разбиване на число на множители, и седнах да пиша пак на любимия ми език – оказа се,че доста от задачите съм почнал да ги пиша от първия път работещи – както и е нужно, понеже ще работя на лист. Може после решенията да ги кача някъде, като добавка към учебника, за желаещите да сравняват.

В момента продължавам със задачите, след като се погрижих за пералнята – пристигна към обяд, и с шофьора я качихме без особен проблем (не пише колко тежи в документацията и в google, но вероятно е около 100 килограма). Сега остава да се намери някой да я закачи към водата и канализацията, и да си вземем една сушилня.

И за нещо по работа – кой има нов seagate диск, на който може да извади SMART параметрите (със smartctl -а), и да ми каже резултата? Имам един проблем, има дискове, които ми дават грешки само в smart-а, но не и на друго място, и фактически си работят, само дето не знам докога… Ето как изглежда (част от) изхода от smartctl -а на един такъв диск:

Vendor Specific SMART Attributes with Thresholds:
Revision Number: 10
Attribute                    Flag     Value Worst Threshold Raw Value
(  1)Raw Read Error Rate     0x000f   062   059   006       149772871
(  3)Spin Up Time            0x0003   096   096   000       0
(  4)Start Stop Count        0x0032   100   100   020       2
(  5)Reallocated Sector Ct   0x0033   100   100   036       0
(  7)Seek Error Rate         0x000f   076   060   030       42680804
(  9)Power On Hours          0x0032   100   100   000       679
( 10)Spin Retry Count        0x0013   100   100   097       0
( 12)Power Cycle Count       0x0032   100   100   020       53
(194)Temperature             0x0022   025   040   000       25
(195)Hardware ECC Recovered  0x001a   062   058   000       149772871
(197)Current Pending Sector  0x0012   100   100   000       0
(198)Offline Uncorrectable   0x0010   100   100   000       0
(199)UDMA CRC Error Count    0x003e   200   200   000       0
(200)Unknown Attribute       0x0000   100   253   000       0
(202)Unknown Attribute       0x0032   100   253   000       0

Както се вижда, атрибути 1 и 195 са с огромни стойности, и това адски ме притеснява. Дисковете са Seagate ST3120026AS, Serial ATA (но в BIOS-а са сложени да се виждат като PATA). Някой да е имал подобен проблем, да не се окаже нещо в партидата? След търсене в google видях във един форум описание на подобен проблем, който водел до нужда от преформатиране на дисковете с util-ката на seagate на около 3 седмици, но там всичко беше под windows, и май донякъде беше проблем на драйверите.

2004-08-31 14:56

August 31st, 2004 by Vasil Kolev

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

August 31st, 2004 by Vasil Kolev

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

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

2004-08-30 14:38

August 30th, 2004 by Vasil Kolev

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

August 30th, 2004 by Vasil Kolev

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

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

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

2004-08-30 01:07

August 30th, 2004 by Vasil Kolev

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

August 30th, 2004 by Vasil Kolev

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

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

2004-08-29 17:37

August 29th, 2004 by Vasil Kolev

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

August 29th, 2004 by Vasil Kolev

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

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

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

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

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

2004-08-28 03:48

August 28th, 2004 by Vasil Kolev

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

August 28th, 2004 by Vasil Kolev

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

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

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

2004-08-27 01:48

August 27th, 2004 by Vasil Kolev

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

August 27th, 2004 by Vasil Kolev

Тих, спокоен ден… Оправих една-две дреболии, и за пореден път се убедих, че всички скриптове, които се пускат от 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

August 26th, 2004 by Vasil Kolev

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

August 26th, 2004 by Vasil Kolev

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

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

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

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

2004-08-24 20:57

August 24th, 2004 by Vasil Kolev

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

August 24th, 2004 by Vasil Kolev

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

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

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

2004-08-23 21:43

August 23rd, 2004 by Vasil Kolev

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