Trip to Moscow

I went to Moscow to buy wool socks and hunt some bears lately. I didn’t buy the socks and was unlucky to kill any bear – they all ran away. It disappointed me and I went to take CCNA security exam. I have passed it.

As a bonus, I went to polytechnic museum (nice exposition), saw Resident Evil 4 movie (awesome action) and took a walk with fiskus (appeared to be a nice guy).

Автобус

Только кажется, что автобусы не возникают на дороге внезапно. Они возникают. Внезапно, прямо перед тобой. Несмотря на то, что ты посмотрел сначала налево – ничего не увидел, потом направо – ничего не увидел и только потом пошел через переход. Автобус может возникнуть в двух метрах от тебя. Огромный, бесшумный и неотвратимый. Драматично, правда?

Мы шли через переход с женой. Мы всегда очень аккуратно переходим дорогу. Тот раз не был исключением: посмотрели налево, направо, пошли. На середине дороги я каким-то чувством заметил автобус. Не знаю, услышал я его или увидел, но я о нем узнал, а жена нет. Я остановился, а жена нет. И автобус нет. Векторы их движения пересекались. В следующий момент я обнаружил себя, двумя руками схватившего жену, жену застывшую на месте, автобус проезжающий по тому месту, где она должна была идти.

После перехода на другую сторону я вспомнил, как все произошло. Когда я заметил автобус, мое зрительное внимание перешло на него – жену я уже не видел. Но я знал. где она находится, знал в каком положении находится каждая из ее конечностей, знал как они перемещаются в пространстве. Не сводя взгляда с автобуса, я передвинул правую ногу вперед (это, как я уже потом понял, помогло мне сбалансировать себя), наклонив корпус вперед,потянул обе руки к жене, схватил ее за руку, легко потянул назад. Она остановилась.

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

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

I hate VMware server

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.34.6-47.fc13.x86_64/include

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.34.6-47.fc13.x86_64).  Even if the module were
to compile successfully, it would not load into the running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] ^C
[root@hp ~]# uname -r
2.6.34.6-47.fc13.x86_64

Paintball

That is my team I have played paintball with. There are two girls one of them Is blond. Guess who?

Linux Tutorials for Newbies

When you learn something using practical approach, you can miss small fundamental bits of information. The bits can be useful or useless, but it’s always good to know them. That is the reason I scroll through many Linux tutorials every now and then. Most of them are casual, but I have to highlight a gem I recently found: the Linux basics from Daniel Robbins. They are perfectly structured and there were some points I missed during my self-education.

The articles in Linux Fundamentals series are focused on Linux basics and position themselves as tutorial for preparation to LPI exams. I wouldn’t consider the tutorials as robust exam preparation guide – exam topics are wider than the ones discussed in tutorial. But tutorials are still very good. They are written in a very good easy language with nice input of nerd humour.

http://www.funtoo.org/en/articles/linux/lpi/1

http://www.funtoo.org/en/articles/linux/lpi/2

http://www.funtoo.org/en/articles/linux/lpi/3

http://www.funtoo.org/en/articles/linux/lpi/4

There are few more topic oriented tutorials written by Daniel, like BASH, SED, AWK guides. There is a file system guide for the ones who does not know which file system to choose . I’m too lazy to publish all direct link to the articles here. Just open http://www.funtoo.org/ page and scroll down. You’ll find all you need.

Собака-улыбака

Счастливая воронежская собака

Lingvo dictionaries in Linux. Stardict way.

There is a version of Lingvo dictionaries for Stardict available on the net. I do not think it’s legal, so do not forget to purchase you Lingvo license before proceeding with the following instructions.

At first, install stardict and archiver:

yum -y install stardict p7zip

At second, download the dictionaries. Beware that original Lingvo dictionaries shipped with product will not work. You have to use special ones“.
Copy downloaded folders to /usr/share/stardict/dic. Now unpack them:

 cd /usr/share/stardict/dic; 7za e \*.7Z;

You’ll get a list of files and dirs. dirs are not needed, delete them:

for dir in *; do if [ -d $dir ]; then rm -rf $dir; fi  done

At last, kill all instances of Stardict and star one up. Go to “Manage dictionaries”: you shall see a list of added dictionaries there. If you see no any new dictionary, it means you have done something wrong. Go to the second tab (Manage Dict), choose query dict group, press [+] button, select all available (needed to you) dictionaries and press enter. Now you have to have the full list of dictionaries searchable.
Test it. Enjoy.

Linux random passwords generation

This post is more a note to myself than a message I want to deliver to me struggling readers. There are two utilities for generating random passwords and one hack-around.

pwgen

Generates MANY passwords simultaneously. Very handy if somebody is behind your back watching you.

[root@hp ~]# pwgen
OVo4jiev Cohkah0r Iesev0ec thefuz0F asho6Zai em3tok5I Quoogh2k leeRuhi1
Eica7gie aew1ieTh Ukeewie3 Tee3aesa zasiCie7 iey9Ugho Eex5phae aip2ohHe
uL8AGee2 bux8rohX Aiv1voo2 AeS5thie uli1Shai aeWee0ai sha6aeV2 ni2Oong4
ahji7AiW rei0za9A uK1eih8a phoo4Aih taiGh0ab uod2ho8I tooX9coh jeeC5pie
ohxiCh7u oluif8Co OhTieC7e Phuro0sh eeca7Atu yee3Aeve Iwi1nige aiyu3Ein
AiCee0ba eC5Saehi voa2Aina ge4eiWee che8EeD2 Ait5ohth aQuahp4o oosou2Si
wa3aitiZ fah2oGhu do8oor5A Ied9Erob Caizei5a meeFai6b roh8WooW Lah8ieph
Eixoh6zi Cee8eidi eeChah6I eMohrij7 Zeisu0ha oech6Ae9 cioreT6p ee2Ohsha
Uu6yae5V zohShea8 Eizubo9r Reek2eiv Aak0veb7 phei3Ife onaeh7Oo jaiMopi9
Phohm9vi Ai3EeYie aequeeN8 eCiug9ei keiRee6I Aikei9wo tugh5Pae yie4maTu
eiH5Jei4 aeChia4I ahs3seeS eeg6Pa7M pei8Jooy ih1phiDu jee1ai4U uuY6eRai
wee5si4I ui2AhSoa Shee9EeB ahV4oof9 cei3pheZ iB5daw3u saegh4Lo Waroo1ah
aeth1Loo ohReesh4 Saidae7o meB7tha6 Eetae9Oh meiyiR5e AeTooc3c Bu0ou0se
Ahree5Of eiwuJie9 Cuogh7ae eekeeB8V ruu0Yoqu angie1Ki Oang3eeb Oobe9jiP
Loo3Oova yieNee0n moo2aiSh aem6ooD3 Paehoh2w xee6Ooph acahph2A kooGu5Ie
hag2Buon chah4Bii xaequ4In Ooy9Lohk oophoh4N Oo5Roh4a Phe8choo xa2Thoo4
XahBoo4j eeHah2ai Quaico6D Lauh0eiF Eiv9ga9c ih9pooPh aedeLaS3 ohleiGo2
aPh7wivi le4Xah9d lahl4Hei shu2Kuch OhfeDi7z Aengaej7 Phie4oom eige6Fae
Xaesh2Ju iN7Coh3S The8Ij4z kae0OGhi Shei6ohp RooReim6 Pheih3Ai Aikah8sh
taiph4Ei kaoRoh1f om0moh3S uaphee7E lab4Xu9k kahh3saZ ain8Zeic Uu1fohvo

apg

Generates few random passwords.

[root@hp ~]# apg
johebud6
VuwejThig1
TegtuIdNi
FlabEpNeec
bytjeewk
voyHatadd5

Unix hacker’s way.

This way is considered to be insecure, but Jesus! Who would know you have used this freaking way!

for ((n=0;n<10;n++)); do dd if=/dev/urandom count=1 2> /dev/null | base64 | sed -ne 2p | cut -c-8; done

Тату

Истина

Fregimus приводит перечень вещей, носящих имя “истина”.

1. Истина соответствия: истинно то, и только то, что соответствует фактической реальности. Установление истины в этом смысле требует учета возможных различий реальных и модельных фактов.

2. Истина когерентности: истинно то и только то, что находится в согласии с существующей системой знания. Установление такой истины зависит он возможности принять во внимание все существующее знание — или, по самой крайней мере, релевантное. К этой группе, как мне видится, относится большинство научных знаний.

3. Прагматическая, или прикладная истина: истинно то и только то, что используется удовлетворительным образом. Как я понимаю, сюда относятся традиционные истины, принимаемые некритически.

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

5. Наивный онтологический реализм: истинность утверждений об отношениях явлений не зависит от ни наших наблюдений или фактических знаний, ни даже от нашей возможности о них когда-либо узнать.