August 10th, 2004 by Vasil Kolev
UPS-а го пробвах до час и 55 минути, и после го включих, защото навън гърмеше, да не остана на сухо около тестовете…
Днес chervarium инсталира fbsd-то, което ще се ползва за router/firewall за проекта, и имаше проблем с подкарването на dhclient по определен VLAN. Ще го бори отдалечено, да видим какво ще излезе (а на debian-а тръгна елементарно и адски лесно :) ).
След това се видяхме с tfl0pz, и тримата отидохме да вечеряме в Дон Домат, пак да опитам оня страхотен боб с бекон… Хубаво е човек да си угажда от време на време.
Днес тотално се убедих колко съм пропаднал – инсталирах си Descent Freespace 2, и го играя от време на време… обичам да летя, какво да се прави :) Имаше няколко дребни проблема, като например невъзможността да се използва левия ctrl за стрелба (понеже ctrl-z кара descent-а да се шашне), но ги оправих … Да видим за колко време ще го превъртя пак.
Posted in General | 2 Comments »
August 9th, 2004 by Vasil Kolev
Yesterday it was a very sleepy day… We had breakfast with Velin, and went to get our laundry, and were able to, with some small problems (it was already 18:30). After that I went home, and lied for a nap, and got up at around 22-23…
I should go to a doctor, every morning I feel weak, probably my blood pressure is low…
Today microphobic found me No Coracao Dos Deuses (soundtrack of a brazilian film, project of Andreas Kisser and Igor Cavalera from Sepultura), something that I’ve been seeking for a long time in some listen-able format (I have it on tape, but it just doesn’t count). He found me a .rar file, with mpc files in it, which turned out to be in musepack format. Good thing that there was a plugin for xmms, it sounds like a good format for high-quality audio (and doesn’t take as much space as FLAC :) ).
Today is a day to test the UPS, until now it held for hour and 45 minutes, and looks like somewhere in the middle of the battery :)
Tonight I’ll start working on the test for the september’s exams on network security…
Posted in General | No Comments »
August 9th, 2004 by Vasil Kolev
Вчера ми беше много заспал ден… Закусихме с Велин, отидохме да си вземем прането, и успяхме с малко зор (вече беше 18:30). След това се прибрах, и си легнах уж за малко да дремна, и спах до около 22-23…
Трябва да ида на лекар най-накрая, твърде често сутрин ми се вие свят, май пак ми пада кръвното…
Днес microphobic ми намери No Coracao Dos Deuses (soundtrack на един бразилски филм, проект на Андреас Кисер и Игор Кавалера от Sepultura), нещо, което търсех от много време в някакъв приличен формат (имах го на касетка, ама то това просто не се брои). В крайна сметка ми намери един .rar, с .mpc файлове в него, които се оказаха в musepack формат. Добре, че имаше plugin за xmms, изглежда добре като формат качествено съхраняване на музика (и не заема място колкото FLAC :) ).
Днес е ден за тест на UPS-а, до момента издържа час и 45 минути, и ми изглежда някъде на средата на батерията :)
Довечера ще започна подготовката на теста по мрежова сигурност за септемврийската сесия…
Posted in General | No Comments »
August 8th, 2004 by Vasil Kolev
I feel sleepy.
Pratchett is bad for your health – at around 2:30 I started reading the last book – “Night Watch”, and finished it some minutes ago. And found out that outside it’s bright and the sun is rising.
Other stuff – went to listen to Karajan again, and maybe today I’ll go, too. Watched “Troy” with Velin, dubbed in spanish, because that was the file he had found… And Homer must be rolling in his grave.
I came with an interesting solution of the problem of a X session to someplace and the dying of the connection, through Xvfb and vnc server, I might describe it later.
Posted in General | No Comments »
August 8th, 2004 by Vasil Kolev
Спи ми се.
Пратчет е направо вреден за здравето – към 2:30 почнах да чета последната книжка – “Нощна стража” – и преди малко я свърших. И открих, че навън е светло.
Друго – пак ходих да слушам Караян, може би и днес ще ида. Гледахме “Троя” с Велин, със дублаж на испански, понеже такъв беше намерил… Омир как се върти в гроба, направо не ми се мисли.
Измислих едно забавно решение на проблема с X сесия донякъде и прекъсването на връзката, чрез Xvfb и vnc сървър, може да го опиша по-късно.
Posted in General | No Comments »
August 7th, 2004 by Vasil Kolev
I felt too lazy last night to blog…
Yesterday through the day I had a funny task – a script to convert html to tiff, which was needed by a friend. It turned out to be really interesting, especially because it needed to have working cyrillic :) Because someone else might need it, here it is:
#!/bin/sh
# by
#requirements in debian packages:
# apt-get install htmldoc xpdf-reader imagemagick gs-common libtiff-tools
if [ -z "$2" ]; then
echo Usage: $0 input-file output-file-prefix
exit 2
fi
k=`tempfile`
rm -f $k && mkdir $k || exit 8
htmldoc --webpage --continuous $1 -t ps --charset cp-1251 -f $k/OUTPUT.ps
cdr=`pwd`
cd $k || exit 4
ps2pdf OUTPUT.ps
pdftoppm OUTPUT.pdf output
convert output*ppm $cdr/$2.tiff
cd $cdr || exit 5
rm -rf -- $k
It could probably be written better, especially the thing with that temporary directory, but it’s just a proof-of-concept. The conversion fom postscript to PDF is needed, because htmldoc has a bug in the pdf files generation, and convert doesn’t handle pdf well, and I have to go through ppm. It was a lot of tweaking, until it worked.
Nothing else interesting, except going again at the square to listen to the concerts, and reading Quicksilver. This time they played concert for piano and orchestra number I-can’t-remember-which by Tchaykovski, it was great (on the piano there was Evgeny Kissin, who then has been 15 years old …:) )
I’m having weird dreams, with some known female friends, really weird, second night in a row… Looks like Velin has such too, and I think that probably the apartment is cursed…
Posted in General | 1 Comment »
August 7th, 2004 by Vasil Kolev
Снощи твърде много ме мързеше да блогвам…
Вчера през деня се занимавах с нещо забавно – скрипт за конвертиране на html към tiff, който трябваше на един приятел. Оказа се много забавна задача, особено поради момента, че кирилицата трябваше да работи :) Понеже на още някой може да потрябва, ето го тук:
#!/bin/sh
# by
#requirements in debian packages:
# apt-get install htmldoc xpdf-reader imagemagick gs-common libtiff-tools
if [ -z "$2" ]; then
echo Usage: $0 input-file output-file-prefix
exit 2
fi
k=`tempfile`
rm -f $k && mkdir $k || exit 8
htmldoc --webpage --continuous $1 -t ps --charset cp-1251 -f $k/OUTPUT.ps
cdr=`pwd`
cd $k || exit 4
ps2pdf OUTPUT.ps
pdftoppm OUTPUT.pdf output
convert output*ppm $cdr/$2.tiff
cd $cdr || exit 5
rm -rf -- $k
Вероятно може да се напише и по-добре, особено с тая временна директория, но така или иначе си е proof-of-concept. Конвертирането от postscript до PDF се налага, защото htmldoc-а има бъг в генерирането нa pdf-и, а convert-а не се оправя добре с pdf-и и трябва да се мине през ppm. Бая играчка си беше да го подкарам.
Друго интересно няма, освен че ходих пак да слушам на площада пред театъра различни концерти, и си чета Quicksilver. Пуснаха концерт за пиано и оркестър не-помня-кой-номер на Чайковски, беше наистина страхотно (на пианото беше Евгени Кисин, който тогава е бил на 15 години … :) ).
Сънувам странни сънища, с разни мои познати девойки, ама наистина странни сънища, втора вечер подред… Велин май има подобни такива, и мисля, че има някакво проклятие над тоя апартамент…
Posted in General | 1 Comment »
August 6th, 2004 by Vasil Kolev
Laziness, apathy. I’m going out for a walk.
.
It’s nice after a day of apathy, laziness and depressing to go out for a walk… The beer that I drank while walking, and the big box of ice cream, that I bought for home, helped. It was a great box, and didn’t give up easy, but in the end I finished it… I just hope that I won’t get a cold (and I don’t feel like warming myself with heated brandy, it will be too much :) ).
Velin with his last sms message was a killer: “/etc/init.d/boiler start”. Probably he has written a script, that sends me this exact message…
I’m thinking about going back to Dobrich for a few days, I haven’t visited in a long time, to see if the city is still there :)
Posted in General | No Comments »
August 6th, 2004 by Vasil Kolev
Мързел, апатия. Излизам да се разходя малко.
Приятно е след цял ден апатия, мързел и депресиране да излезеш да се разходиш … Едната бира, която изпих в движение, и голямата кутия сладолед, която си взех за вкъщи, помогнаха. Страшна кутия беше, и не се даде лесно, но в крайна сметка свърши… Само се надявам да не настина (а не искам да се сгрявам с греяна ракия, много ще ми дойде :) ).
Велин с последния си sms изби рибата: “/etc/init.d/boiler start”. Може да си го е направил на script, който всъщност да ми праща това съобщение на мене …
Обмислям дали да се прибера до Добрич за няколко дни, че отдавна не съм се връщал, да видя дали градът все още си е на мястото :)
Posted in General | No Comments »
August 5th, 2004 by Vasil Kolev
Having traffic analysis of you homepage is a great source of fun. I just found in the stats what search strings are leading to my page, and one of them is “100 голи студентки” (100 naked female students) (http://marla.ludost.net/STATS/vasil.ludost.net/usage_200408.html, at Search strings, right now it’s 14th). I’ll start looking around, there could be some of those around… :)
Posted in General | No Comments »
August 5th, 2004 by Vasil Kolev
Да поддържаш статистика за страницата си е купон. Току-що в анализа видях един от search стринговете, по които ме намират в разни търсачки – “100 голи студентки” (http://marla.ludost.net/STATS/vasil.ludost.net/usage_200408.html, на Search strings, в момента на 14то място). Ще почна да се оглеждам, може някоя от тези студентки да е наоколо … :)
Posted in General | 5 Comments »
August 5th, 2004 by Vasil Kolev
To blog, and to do some more work …
Today I woke up at around 14:30, and went to finish some things on the servers. Chervarium still hasn’t come back from Yambol, so the gateway will be installed later…
There was a strange problem, the ASDL bridge was grabbing the incoming port 80 connections – that was it’s command interface (the previous one (the USB variant) didn’t do that). I spoke with the people from BTK-net, and one of their support explained the situation to me (and killed all the will I had to configure such thing (not that they give us user and password :) ), the terminology there is idiotic as hell). In the end they flashed a new firmware, and it started working normally (e.g. like a real bridge/router). The support at BTK.net did a great job, all this was fixed quickly and cleanly :)
The network topology is starting to grow bigger, with 5-6 vlans (and 5 servers, one of which still isn’t installed :) ). Most of the things are cleaned up, there are only some minor things left on the control machine (to configure syslog-ng and some other small stuff), and to see when will the big software come, to be installed (which will probably be a problem on it’s own, and will create some more :) ).
After that I went to IBB, where I didn’t stay too much – it started raining (as it turned out – not for too long), and I decided to go home, and on my way to pass through the square at the Theater, where there was a projection of some concerts of Herbert fon Karajan. I managed to pull there Ylith (who hid under my umbrella, and didn’t want to get wet), and Bobson (who came by his own will :) ).
The event turned out fine, nevermind the technical problems, and the long speeches by the conductor. They played the overture to “Vihlelm Tel”, “Poltava” by I-can’t-remember-who, and Symphony no 9 by A. Dvorak. The sitting on the hard bench was well worth it :)
Posted in General | No Comments »
August 5th, 2004 by Vasil Kolev
Да блогна, и да свърша още малко работа…
Днес станах по никое време, и отидох да довърша няколко неща по сървърите. Червото още не се е прибрал от Ямбол, така че gateway ще имаме по-късно …
Имаше странен проблем, ADSL бриджа поемаше всичко, което беше за нашето IP за порт 80 – това му беше командния интерфейс (това предишния (който беше на UBS) не го правеше). Говорих си с хората от БТК-НЕТ, и един от support-а им ми обясни ситуацията (и ме отказа от идеята някога да конфигурирам такова устройство (за което те така или иначе не ни дават user и парола :) ), терминологията е невероятно идиотска). В крайна сметка ми flash-наха нов firmware, и цялата работа заработи съвсем нормално (т.е. почна да се държи като съвсем истински bridge/router). Браво на support-а на БТК-НЕТ, решиха проблема много чисто и бързо :)
Мрежовата топология започва да става все по-голяма, с 5-6 vlan-а (и 5 сървъра, единия от които не е инсталиран още :) ). Повечето неща са изчистени, остава да се оправи контролната машина (да се настрои syslog-ng и още няколко благини), и да видим кога ще се носи големия софтуер (който най-вероятно ще докара нови проблеми :) ).
След това отидох на ИББ, където не се задържах много – закапа (както се оказа – за кратко), и аз реших да се прибирам, като по пътя мина през площада пред Народния театър, където прожектират конценти на Хърбърт(?) фон Караян. Успях да замъкна натам Ylith (която просто се беше скрила под чадъра ми, и не й се мокреше) и Бобсън (който всъщност си дойде съвсем сам :) ).
Събитието се оказа много приятно, въпреки че имаха малко технически проблеми, и водещия говори твърде много. Пускаха увертюрата на “Вилхелм Тел”, “Полтава” на не-помня-кого, и симфония номер 9 на А. Дворжак. Струваше си седенето на твърдата пейка :)
Posted in General | 1 Comment »
August 4th, 2004 by Vasil Kolev
Because there was a question how exactly can you clone machines with tar and netcat, here’s a short explanation.
We have machine R – already installed, and machine I, which we want to install.
1) On machine I we boot a liveCD distribution, like knoppix, partition the drive, make the file systems and the swap.
2) mount the main file system in /mnt/1 (for example), and chdir there.
3) We start (quickly) one after the other the following commands:
On R: tar cpsf – bin boot cdrom dev etc floppy home initrd lib mnt root sbin tmp usr var |nc -l -p 9988 -w 10
On I: nc -w 10 ip.addr.of.R 9988 |tar cfps –
This does the copying between the machines, and the willing can put a ‘v’ option on either tars, and to watch what’s being copied.
4) After that’s finished, you can go and fix the configuration of the copies distribution – /etc/hostname, /etc/hosts, /etc/network/interfaces , etc…, create a /proc, and then we do a choort /mnt/1 /sbin/lilo (if you’
re using LILO, I can’t remember what was the way with GRUB), and we’re ready.
Posted in General | No Comments »
August 4th, 2004 by Vasil Kolev
Понеже имаше въпрос как точно става номера с tar и netcat,ето едно кратко обяснение.
Имаме машина R – вече инсталирана, и машина I, на която искаме да направим инсталация.
1) На машина I boot-ваме някоя liveCD дистрибуция, като knoppix, правим си partition-и, файлови системи и swap на диска.
2) mount-ваме си главната файлова система в /mnt/1 (например), и отиваме там
3) Пускаме (бързо) една след друга следните команди:
На R: tar cpsf – bin boot cdrom dev etc floppy home initrd lib mnt root sbin tmp usr var |nc -l -p 9988 -w 10
На I: nc -w 10 ip.addr.of.R 9988 |tar cfps –
Това всъщност прави копирането между двете машини, желаещите могат да сложат опция ‘v’ на някой от двата tar-а и да гледат какво се копира.
4) След като това свърши, минаваме и си оправяме настройките като за новата машина – /etc/hostname, /etc/hosts, /etc/network/interfaces и т.н., създаваме си /proc, след което правим choort /mnt/1 /sbin/lilo (ако ползваме LILO, не помня какво беше за GRUB), и сме готови.
Posted in General | 4 Comments »
August 3rd, 2004 by Vasil Kolev
Today was a server install’s day … I’ve reached the following conclusions:
1) I have to stop being lazy, and to look into the network boot. Up until now I did nothing, just make something with mknbi, that while booting, made the screen flicker with differently-colored letters (reminds me of a memory overwriting under DOS), or a kernel which booted, and wasn’t able to mount it’s root from NFS (damn it, the old debian installer works fine).I tormented it, tortured it, and then the knoppix ( it was writing with 4x speed) finished writing, and I booted from it (one of the LiveCD distributions, that boots from USB cds).
2) The installation of a machine from another one using tar and netcat is something wonderful.
3) The configuration of the 3com switch with the vlans is easy, after you start to know where which menu is. When you add the nice vlan support in the kernel, it’s definitely great.
(and I have to clean up the notebook from the horde of strange daemons, like atftpd and dhcpd).
In the end I have a remote access to those machines, so I can easily fiddle with them from here tonight – they’re connected on a slow link, only 256kbps (an ADSL through BTK), so I can easily say ‘apt-get install all-that-i-need’, and leave it sucking…
I’ve printed 30 pages of Quicksilver – in fact 210, because that’s the compression ratio. It’s readable, but slowly, because Stephenson’s style is a bit overloaded.
I’m thinking about doing the mistake of trying Doom 3 on my machine… The linux binary should be out soon…
Posted in General | No Comments »
August 3rd, 2004 by Vasil Kolev
Днес беше ден за правене на сървъри … Стигнах до следните изводи:
1) Трябва да ми мине мързела, и да разуча мрежовия boot. До момента нищо не направих, само успях с mknbi да направя нещо, което като припалеше, и ми правеше екрана на мигащи разноцветни буквички (направо ми напомни на намазване на паметта под DOS), или ядро, което палеше, и не искаше да си закачи root-а от NFS (по дяволите, а стария debian-ски инсталатор пали). Мъчих, правих, накрая knoppix-а (който се пишеше на 4 скорости, проклето USB1) се написа, и припалих от него (една от малкото LiveCD дистрибуции, дето се оправя с USB cd-та).
2) Инсталирането на машина чрез прехвърляне на готова инсталация от друга такава с tar и netcat си е благина.
3) Настройката на 3com-ски switch с vlan-ове става лесно, след като усетиш кое меню къде му е. Като се добави и поддръжката на vlan-и в ядрото, направо се ражда човек…
(и трябва да си почистя notebook-а от хилядите странни демони, като atftpd и dhcpd).
В крайна сметка вече имам отдалечен достъп до машините, така че може да поръчкам малко оттук тая вечер – и без това там връзката е само 256kbps (един ADSL през БТК), така че спокойно мога да кажа ‘apt-get install всичко-дето-ми-трябва’, и да го оставя да дърпа…
Разпечатал съм си 30 страници от Quicksilver – т.е. всъщност 210, понеже такова е нивото на компресията. Чете се, но бавно, понеже стилът на Стивънсън е малко натоварен.
Обмислям да направя ли грешката да пробвам DooM 3 при мен… Linux-кото binary требе да излезе съвсем скоро…
Posted in General | 1 Comment »
August 3rd, 2004 by Vasil Kolev
Some good news – the new servers for the project are here, tomorrow I’ll be going there to take care of the installation. I’m thinking about preparing a nice netboot, to evade any stupid problems. Somewhere exists a nice documentation about this, but I’m a bit sleepy, and unable to find it…
I found some ways to optimize Velin’s database, and it works nicely with 100 000 records (i broke the relations table in a few smaller ones), and now the full query takes only 12 seconds. It could be better, I’ve looked the explain results, and I’ll dig in when I have time. I’m thinking about drawing a bit and clearing up the exact way of the JOINs, because some things are still unclear.
Today we celebrated my Mom’s birthday, the three – me, my mother and my brother. Quiet, calmly, outside it was raining…
Doom 3 is officially released tomorrow. Unofficially it’s on data.bg today, and my brother downloaded it and I looked at it, it’s really good. Hopefully I’ll have some time to play it seriously, in some gaming hall…
I’m thinking about printing Quicksilver by Neal Stephenson, I read the Cryptonomicon on the monitor, and it wasn’t easy (it took about 4 months). Let’s see on how much pages I can fit it with 6pt font size :) It isn’t urgent, today there were two new books released, I have what to do in the next few days.
Posted in General | No Comments »
August 3rd, 2004 by Vasil Kolev
Добра новина – дошли са още няколко сървъра за проекта, утре ще ходя да се занимавам с инсталациите. Мисля да си подготвя свестен netboot, за да нямам после глупави проблеми. Някъде имаше хубава документация по въпроса, ама съм леко заспал, и нещо не я намирам…
Намерих няколко варианта да оптимизирам базата за Велин, и се държи прилично с 100 000 записа (в общи линии разбих таблицата с релациите на няколко отделни), и сега пълния списък с всичките JOIN-ове отнема около 12 секунди. Може и по-добре, поогледах резултатите от explain, и мисля да задълбая, като имам време. Също така мисля да си нарисувам и изясня точния принцип на действие на JOIN-овете, защото няколко неща не са ми ясни.
Днес отпразнувахме рождения ден на майка ми, тримата – аз, майка ми и брат ми. Тихо, спокойно, навън валеше…
Doom 3 излиза утре официално. Неофициално го има на data.bg от днес, даже брата го свали и го разгледах, наистина са се постарали. Трябва да видя кога ще имам време да го играя сериозно, и да се завра в някоя зала…
Обмислям дали да не изтормозя принтера с Quicksilver на Нийл Стивънсън, Cryptonomicon-а го четох на монитор, и не ми беше лесно (отне ми около 4 месеца). Да видим на колко страници ще се събере с 6pt шрифт :) Поне не е спешно, днес са излезли 2 нови книги за четене, имам си занимание за няколко дни.
Posted in General | 3 Comments »
August 2nd, 2004 by Vasil Kolev
MMmmmmmmmmmooooooringin….
Last night I got the desire to test the database design that I’ve thought out for Velin’s library, and I found it to be slow as hell, so today I’ll be playing a bit with it, to see why. It could change it in the end… And here’s the explain output, for the interested:
velin=> EXPLAIN
velin-> SELECT b.orig_name, a.name as author, v.path ,g.name as genre
velin-> FROM
velin-> books b, authors a, variants v, genres g, relations r, relations r1, relations r2
velin-> WHERE
velin-> (b.id=r.id1 AND a.id=r.id2 AND r.rel='BA') AND
velin-> (b.id=r1.id1 AND v.id=r1.id2 AND r1.rel='BV') AND
velin-> (b.id=r2.id1 AND g.id=r2.id2 AND r2.rel='BG');
QUERY PLAN
--------------------------------------------------------------------------------------------------------------------
Nested Loop (cost=0.00..22.52 rows=1 width=890)
-> Nested Loop (cost=0.00..17.68 rows=1 width=816)
-> Nested Loop (cost=0.00..12.85 rows=1 width=308)
-> Nested Loop (cost=0.00..8.01 rows=1 width=186)
Join Filter: ("inner".id1 = "outer".id1)
-> Nested Loop (cost=0.00..6.95 rows=1 width=170)
Join Filter: ("inner".id1 = "outer".id1)
-> Nested Loop (cost=0.00..5.89 rows=1 width=154)
-> Seq Scan on relations r (cost=0.00..1.05 rows=1 width=16)
Filter: (rel = 'BA'::bpchar)
-> Index Scan using authors_pkey on authors a (cost=0.00..4.82 rows=1 width=154)
Index Cond: (a.id = "outer".id2)
-> Seq Scan on relations r2 (cost=0.00..1.05 rows=1 width=16)
Filter: (rel = 'BG'::bpchar)
-> Seq Scan on relations r1 (cost=0.00..1.05 rows=1 width=16)
Filter: (rel = 'BV'::bpchar)
-> Index Scan using books_pkey on books b (cost=0.00..4.82 rows=1 width=154)
Index Cond: (b.id = "outer".id1)
-> Index Scan using variants_pkey on variants v (cost=0.00..4.82 rows=1 width=524)
Index Cond: (v.id = "outer".id2)
-> Index Scan using genres_pkey on genres g (cost=0.00..4.82 rows=1 width=90)
Index Cond: (g.id = "outer".id2)
(22 rows)
(the idea is a few tables, and one separate, that describes all the relations. Looks like the postgresql didn’t like it).
This night I read at last “The moon is a harsh mistress” by Heinlein – in english, printed on about 80 pages (7pt font size, 2 columns). It was worth reading :)
Today everything seems different – yesterday I cleaned, moved my machine in the big room again (I’ll probably put up some photos later), and now the whole house looks better. There are a few things left to clean in the bathroom, and I’ll probably have to think up a solution for all the empty bottles, but there’s time for everything.
Something that I found out this morning – I should turn off the bell. To be able to deactivate it when I go to sleep, and activate it when I’m awake. If I was more evil, I whould’ve added an electrical shock for everyone pressing it while I’m asleep…
Posted in General | No Comments »