<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="http://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:tezro</id>
  <title>tezro ▲ mortal moron's unerring log</title>
  <subtitle>tezro</subtitle>
  <author>
    <name>tezro</name>
  </author>
  <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/"/>
  <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom"/>
  <updated>2009-11-10T13:58:57Z</updated>
  <lj:journal userid="2101070" username="tezro" type="personal"/>
  <link rel="service.feed" type="application/x.atom+xml" href="http://tezro.livejournal.com/data/atom" title="tezro ▲ mortal moron's unerring log"/>
  <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:225690</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/225690.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=225690"/>
    <title>tezro @ 2009-11-10T16:58:00</title>
    <published>2009-11-10T13:58:57Z</published>
    <updated>2009-11-10T13:58:57Z</updated>
    <content type="html">&lt;img src="http://farm3.static.flickr.com/2739/4090557332_b804ce0c10_o.jpg" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:225418</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/225418.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=225418"/>
    <title>Good news everyone!</title>
    <published>2009-11-05T16:05:41Z</published>
    <updated>2009-11-05T16:05:41Z</updated>
    <category term="анти-спам"/>
    <category term="не работа"/>
    <category term="mailpic"/>
    <category term="круто"/>
    <category term="whitespace"/>
    <content type="html">&lt;a href="http://www.mailpic.ru/"&gt;http://www.mailpic.ru/&lt;/a&gt; &amp;mdash; миллион спасённых почт.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:225055</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/225055.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=225055"/>
    <title>Обновили Макдак</title>
    <published>2009-11-05T11:34:52Z</published>
    <updated>2009-11-05T11:36:49Z</updated>
    <category term="вёрстка"/>
    <category term="сайт"/>
    <category term="не работа"/>
    <category term="кайф"/>
    <category term="разработка сайтов"/>
    <category term="код"/>
    <category term="whitespace"/>
    <category term="django"/>
    <category term="python"/>
    <lj:music>Mahavishnu Orchestra - Smile of the Beyond | Powered by Last.fm</lj:music>
    <content type="html">&lt;a href="http://www.macdac.ru/"&gt;http://www.macdac.ru/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Переписал робот, собирающий новости. Переписал сайт их показывающий. Поменял хостинг. Поменял немножко дизайнчик, спасибо Бачу. Ещё делать и делать.&lt;br /&gt;&lt;br /&gt;Поисковики ещё как обычно пол года будут обновлять свой индекс.&lt;br /&gt;&lt;a href="http://www.macdac.ru/"&gt;&lt;img src="http://whitespace.ru/o_O/job/macdac/website/macdac-logo.gif"&gt;&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:224924</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/224924.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=224924"/>
    <title>tezro @ 2009-10-29T13:34:00</title>
    <published>2009-10-29T10:36:22Z</published>
    <updated>2009-10-29T10:36:22Z</updated>
    <category term="картинка"/>
    <category term="фотография"/>
    <category term="программерский юмор"/>
    <lj:music>Borgore - 5 Years VIP (Bjork's Cover) (Ft Adi Ulmansky) | Powered by Last.fm</lj:music>
    <content type="html">&lt;img src="http://img.leprosorium.com/706753" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:224752</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/224752.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=224752"/>
    <title>Пункель Коммандрнст</title>
    <published>2009-10-22T10:10:20Z</published>
    <updated>2009-10-22T10:10:20Z</updated>
    <category term="Пункель Коммандрнст"/>
    <category term="приятно"/>
    <category term="музыка"/>
    <lj:music>Melvins - Skin Horse | Powered by Last.fm</lj:music>
    <content type="html">&lt;a href="http://www.last.fm/music/%D0%9F%D1%83%D0%BD%D0%BA%D0%B5%D0%BB%D1%8C+%D0%9A%D0%BE%D0%BC%D0%BC%D0%B0%D0%BD%D0%B4%D1%80%D0%BD%D1%81%D1%82"&gt;&lt;img src="http://gyazo.com/932a4aa2a3866e0ba486912dc84e2547.png" alt="" /&gt;&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:224333</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/224333.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=224333"/>
    <title>Хорошие логотипы, плохие логотипы</title>
    <published>2009-10-20T12:50:15Z</published>
    <updated>2009-10-20T12:50:15Z</updated>
    <category term="мысли"/>
    <category term="картинка"/>
    <category term="логотип"/>
    <category term="ностальгия"/>
    <category term="мудаки"/>
    <lj:music>Melvins - Air Breather Deep In The Arms Of Morphius</lj:music>
    <content type="html">Собственно, я просто вспомнил, что раньше, когда ходил по компьютерным выставкам в Москве или просто по магазинам, это было давно уже, но я помню старые Макинтоши, на которых было пластиковое, разноцветное, надкусанное яблоко. В купе с матовым корпусом это было непередаваемо.&lt;br /&gt;&lt;br /&gt;Бесспорно, современные маки выглядят стильно и минималистично с их новым глянцевым логотипом. Но старый... Он же такой душевный и домашний :)&lt;br /&gt;&lt;br /&gt;&lt;img src="http://gyazo.com/7708cec8d6e1e07b50579d8cac699ab9.png" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;А вот мой любимый &lt;a href="http://en.wikipedia.org/wiki/Fiat"&gt;FIAT&lt;/a&gt;. Переделали логотип в дух времени и получили какую-то сраную надпись на красном гербе.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://gyazo.com/fa857a6a676eb4f998949aa16c520e21.png" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;Та же ситуация с Маздой. Пусть самый старый логотип сейчас уже совсем не смотрится для кого-то, хотя мне и нравится. Эдакий в духе &amp;laquo;&lt;a href="http://en.wikipedia.org/wiki/Back_to_the_Future_%28film_series%29"&gt;Back to the Future&lt;/a&gt;&amp;raquo; с их &lt;a href="http://en.wikipedia.org/wiki/DeLorean_DMC-12"&gt;DeLorean DMC-12&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://gyazo.com/9622f608687be8ad7d5b439818bb808f.png" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;Потом я вспомнил ещё &lt;a href="http://en.wikipedia.org/wiki/7_Up"&gt;7 Up&lt;/a&gt;. То, что у них используется сейчас, не говоря уже о логотипе, который они ставят на неамериканские поставки, это уродский современный набор безликих линий.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://gyazo.com/db8c4d75e9120cdf4b0ef331854295b1.png" /&gt;&lt;br /&gt;&lt;br /&gt;Один только Microsoft, как имел говёное лого, так и имеет...&lt;br /&gt;&lt;br /&gt;&lt;img src="http://gyazo.com/4b5deead8b5a6814883bdd0e893a7444.png" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:224004</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/224004.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=224004"/>
    <title>Не</title>
    <published>2009-10-14T07:26:40Z</published>
    <updated>2009-10-14T07:26:40Z</updated>
    <category term="полный"/>
    <category term="видео"/>
    <category term="перевод"/>
    <category term="пиздец"/>
    <content type="html">Айвазянец, смотри!&lt;br /&gt;&lt;lj-embed id="177" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:223845</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/223845.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=223845"/>
    <title>This video is not available in your country due to copyright restrictions. This video is unavailable</title>
    <published>2009-10-13T07:27:42Z</published>
    <updated>2009-10-13T07:27:42Z</updated>
    <category term="youtube"/>
    <category term="хуета"/>
    <category term="заебался"/>
    <category term="устал"/>
    <content type="html">Эта хуета заебла уже!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:223611</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/223611.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=223611"/>
    <title>tezro @ 2009-10-12T15:35:00</title>
    <published>2009-10-12T11:45:43Z</published>
    <updated>2009-10-12T11:45:43Z</updated>
    <category term="family guy"/>
    <category term="reese witherspoon"/>
    <content type="html">&amp;mdash; Looks like I'm just gonna cut through it. Good thing I brought Reese Witherspoon's chin.&lt;br /&gt;&lt;img src="http://images.inquisitr.com/wp-content/reese_witherspoon1.jpg" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:223331</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/223331.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=223331"/>
    <title>Don't text and drive whilst listening to Queen</title>
    <published>2009-10-06T12:57:18Z</published>
    <updated>2009-10-06T12:57:18Z</updated>
    <category term="queen"/>
    <category term="видео"/>
    <category term="кайф"/>
    <category term="музыка"/>
    <category term="реклама"/>
    <lj:music>Four Question Marks - Hedonistic Captivity | Powered by Last.fm</lj:music>
    <content type="html">&lt;lj-embed id="176" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:223115</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/223115.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=223115"/>
    <title>SK8</title>
    <published>2009-10-06T09:30:57Z</published>
    <updated>2009-10-06T09:31:46Z</updated>
    <category term="скейт"/>
    <category term="видео"/>
    <category term="кайф"/>
    <category term="ностальгия"/>
    <lj:music>Haujobb - Slugbait | Powered by Last.fm</lj:music>
    <content type="html">Клёво было в 2002-м...&lt;br /&gt;&lt;br /&gt;&lt;lj-embed id="175" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:222757</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/222757.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=222757"/>
    <title>&amp;laquo;Выгоднее предложения просто нет сегодня в Рунете!&amp;raquo;</title>
    <published>2009-10-05T07:11:58Z</published>
    <updated>2009-10-05T07:11:58Z</updated>
    <category term="идиоты"/>
    <category term="ссылка"/>
    <category term="новости"/>
    <category term="реклама"/>
    <category term="мудаки"/>
    <lj:music>Haujobb - Platform | Powered by Last.fm</lj:music>
    <content type="html">Пишет, например, &lt;a href="http://macradar.ru/announcement/ads/"&gt;макрадар&lt;/a&gt; у себя на странице с ценами на рекламу. А сами с трудом набрали &lt;a href="http://www.liveinternet.ru/rating/en/?search=macradar.ru&amp;amp;ok=search"&gt;250 человек до 12 дня&lt;/a&gt;. Что ж за ссаные тряпки вокруг... Хорошо хоть за свои &lt;i&gt;27 000 подписчиков в RSS&lt;/i&gt;, о которых ни баннера ни другой инфы, просят копейки. У меня, кстати, блог читают 34 000 человек в день, ну и все знают, что цена за рекламу стоит у меня 1 рубль за предложение.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:222585</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/222585.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=222585"/>
    <title>Пиздец</title>
    <published>2009-10-04T23:28:07Z</published>
    <updated>2009-10-04T23:28:07Z</updated>
    <category term="сал"/>
    <category term="картинка"/>
    <category term="идиоты"/>
    <category term="ёртёмёй лёбёдёв"/>
    <category term="пиздец"/>
    <category term="мудаки"/>
    <content type="html">Над этим ржать, примерно как ржать над словом "лопата". Контент манагеры Студии Лебедева ну такие смешные, такие смешные...&lt;br /&gt;&lt;br /&gt;&lt;img src="http://img.artlebedev.ru/kovodstvo/idioteka/i/1F429E90-89C1-4E3E-A2B4-4A5599D53326.jpg" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:222260</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/222260.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=222260"/>
    <title>Современные сайты</title>
    <published>2009-10-02T23:41:14Z</published>
    <updated>2009-10-02T23:41:14Z</updated>
    <category term="не удобно"/>
    <category term="картинка"/>
    <category term="говно"/>
    <category term="вконтакте"/>
    <category term="сайты"/>
    <category term="не работа"/>
    <category term="проблема"/>
    <category term="интернет"/>
    <category term="мудаки"/>
    <lj:music>Korn - Here to Stay | Powered by Last.fm</lj:music>
    <content type="html">Помимо всяких прочих недостатков - огромного объёма страниц и хуёвого хостинга - имеют такую болезнь, как "динамичность".&lt;br /&gt;&lt;br /&gt;&lt;img src="http://cs1826.vkontakte.ru/u829391/94931379/x_5c966ed4.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;Понажимав 29 раз на кнопке "моар", я перехожу на страницу интересующего меня сообщения. Читаю и возвращаюсь назад. Что вижу? Последние 10 сообщений? А где ещё 280? Опять мотать? Опять ждать &lt;i&gt;оёкс&lt;/i&gt;? ВКонтактик, вроде, справляется с этим кучей яваскрипта, из которого, например, просто удаляют копирайты и берут несжатую версию.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:221997</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/221997.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=221997"/>
    <title>tezro @ 2009-09-29T09:07:00</title>
    <published>2009-09-29T05:09:19Z</published>
    <updated>2009-09-29T05:09:58Z</updated>
    <category term="футбол"/>
    <category term="видео"/>
    <category term="кайф"/>
    <category term="корейцы"/>
    <lj:music>Tool - Reflection | Powered by Last.fm</lj:music>
    <content type="html">&lt;lj-embed id="172" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;lj-embed id="173" /&gt;&lt;p&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:221937</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/221937.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=221937"/>
    <title>Молодечик</title>
    <published>2009-09-29T02:25:36Z</published>
    <updated>2009-09-29T02:48:24Z</updated>
    <category term="caduceus"/>
    <category term="radio"/>
    <category term="wine"/>
    <category term="tool"/>
    <category term="mjk"/>
    <content type="html">&amp;mdash; Poo sniffer.&lt;br /&gt;&lt;br /&gt;&lt;lj-embed id="169" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;lj-embed id="170" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;lj-embed id="171" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:221528</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/221528.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=221528"/>
    <title>Просто пятно на полу</title>
    <published>2009-09-27T15:03:33Z</published>
    <updated>2009-09-27T15:03:33Z</updated>
    <category term="google"/>
    <category term="карта"/>
    <category term="пятно"/>
    <category term="пол"/>
    <category term="кипр"/>
    <category term="фото"/>
    <category term="грязь"/>
    <lj:music>Michael Jackson - In the Closet | Powered by Last.fm</lj:music>
    <content type="html">&lt;img src="http://farm3.static.flickr.com/2639/3958338109_36b271c83e_o.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://maps.google.ru/maps?hl=ru&amp;amp;safe=off&amp;amp;client=firefox-a&amp;amp;q=cyprus&amp;amp;ie=UTF8&amp;amp;ll=35.126413,33.429859&amp;amp;spn=2.073324,4.22699&amp;amp;t=h&amp;amp;z=9"&gt;Похоже же&lt;/a&gt;?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:221147</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/221147.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=221147"/>
    <title>tezro @ 2009-09-22T15:33:00</title>
    <published>2009-09-22T11:34:48Z</published>
    <updated>2009-09-22T11:34:48Z</updated>
    <category term="картинка"/>
    <category term="анимация"/>
    <content type="html">&lt;img src="http://cdn-www.cracked.com/phpimages/photoshop/1/8/2/3182_slide.gif?v=1" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:220751</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/220751.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=220751"/>
    <title>Кайф</title>
    <published>2009-09-21T01:46:38Z</published>
    <updated>2009-09-21T01:46:38Z</updated>
    <category term="картинка"/>
    <category term="данные"/>
    <category term="инфографика"/>
    <content type="html">Да и вообще надо заняться информационными рисунками.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/bulooji/3366979462/sizes/o/"&gt;&lt;img src="http://farm4.static.flickr.com/3542/3366979462_a44221b041_b.jpg" alt="" /&gt;&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:220550</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/220550.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=220550"/>
    <title>Краткое содержание недавней презентации Apple</title>
    <published>2009-09-17T16:18:55Z</published>
    <updated>2009-09-17T16:18:55Z</updated>
    <category term="смешно"/>
    <category term="видео"/>
    <category term="steve jobs"/>
    <category term="apple"/>
    <content type="html">&lt;lj-embed id="168" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:220389</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/220389.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=220389"/>
    <title>Toxicity by System of a Down</title>
    <published>2009-09-15T08:51:55Z</published>
    <updated>2009-09-15T08:51:55Z</updated>
    <category term="пиздато"/>
    <category term="барабаны"/>
    <category term="девки"/>
    <category term="видео"/>
    <category term="кайф"/>
    <category term="музыка"/>
    <category term="скрипка"/>
    <content type="html">&lt;lj-embed id="167" /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:220016</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/220016.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=220016"/>
    <title>Ещё одна поделка</title>
    <published>2009-09-14T17:57:51Z</published>
    <updated>2009-09-14T17:58:40Z</updated>
    <category term="не работа"/>
    <category term="mailpic"/>
    <content type="html">httр://www.givеmаil.ru/ - ну это полный шлак...</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:219667</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/219667.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=219667"/>
    <title>Python / Levenshtein function to calculate Levenshtein distance between two strings</title>
    <published>2009-09-12T19:46:01Z</published>
    <updated>2009-09-12T23:29:38Z</updated>
    <category term="исходник"/>
    <category term="код"/>
    <category term="python"/>
    <lj:music>Agnostic Front - Riot Riot Upstart | Powered by Last.fm</lj:music>
    <content type="html">&lt;a href="http://www.michael-noll.com/wiki/Python-Levenshtein"&gt;http://www.michael-noll.com/wiki/Python-Levenshtein&lt;/a&gt;&lt;br /&gt;&lt;code&gt;&lt;pre&gt;
"""Levenshtein function is to define number of inserts, deletions and 
substitutions needed to morph one string into another.
"""
def levenshtein(a,b):
	n, m = len(a), len(b)
	if n &amp;gt; m:
		"""Make sure n &amp;lt;= m, to use O(min(n,m)) space
		"""
		a, b = b, a
		n, m = m, n
	current = range(n + 1)
	for i in range(1, m + 1):
		previous, current = current, [i] + [0] * n
		for j in range(1, n + 1):
			add, delete = previous[j] + 1, current[j - 1] + 1
			change = previous[j - 1]
			if a[j - 1] != b[i - 1]:
				change = change + 1
			current[j] = min(add, delete, change)
	return current[n]
&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Or:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.poromenos.org/node/87"&gt;http://www.poromenos.org/node/87&lt;/a&gt;&lt;br /&gt;&lt;code&gt;&lt;pre&gt;
def levenshtein_distance(first, second):
    """Find the Levenshtein distance between two strings."""
    if len(first) &amp;gt; len(second):
        first, second = second, first
    if len(second) == 0:
        return len(first)
    first_length = len(first) + 1
    second_length = len(second) + 1
    distance_matrix = [[0] * second_length for x in range(first_length)]
    for i in range(first_length):
       distance_matrix[i][0] = i
    for j in range(second_length):
       distance_matrix[0][j]=j
    for i in xrange(1, first_length):
        for j in range(1, second_length):
            deletion = distance_matrix[i-1][j] + 1
            insertion = distance_matrix[i][j-1] + 1
            substitution = distance_matrix[i-1][j-1]
            if first[i-1] != second[j-1]:
                substitution += 1
            distance_matrix[i][j] = min(insertion, deletion, substitution)
    return distance_matrix[first_length-1][second_length-1]
&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Or:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.guyrutenberg.com/2008/12/15/damerau-levenshtein-distance-in-python/"&gt;http://www.guyrutenberg.com/2008/12/15/damerau-levenshtein-distance-in-python/&lt;/a&gt;&lt;br /&gt;&lt;code&gt;&lt;pre&gt;
"""
Compute the Damerau-Levenshtein distance between two given
strings (s1 and s2)
"""
def DamerauLevenshteinDistance(s1, s2):
    d = {}
    lenstr1 = len(s1)
    lenstr2 = len(s2)
    for i in xrange(-1,lenstr1+1):
        d[(i,-1)] = i+1
    for j in xrange(-1,lenstr2+1):
        d[(-1,j)] = j+1
 
    for i in xrange(0,lenstr1):
        for j in xrange(0,lenstr2):
            if s1[i] == s2[j]:
                cost = 0
            else:
                cost = 1
            d[(i,j)] = min(
                           d[(i-1,j)] + 1, # deletion
                           d[(i,j-1)] + 1, # insertion
                           d[(i-1,j-1)] + cost, # substitution
                          )
            if i&amp;gt;1 and j&amp;gt;1 and s1[i]==s2[j-1] and s1[i-1] == s2[j]:
                d[(i,j)] = min (d[(i,j)], d[i-2,j-2] + cost) # transposition
 
    return d[lenstr1-1,lenstr2-1]
&lt;/pre&gt;&lt;/code&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:219645</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/219645.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=219645"/>
    <title>Если и изобретут когда-то транспортные средства на магнитной подушке</title>
    <published>2009-09-12T19:41:26Z</published>
    <updated>2009-09-12T19:41:26Z</updated>
    <category term="кал"/>
    <category term="хуй"/>
    <category term="жизнь"/>
    <category term="семья"/>
    <category term="телевизор"/>
    <category term="дома"/>
    <content type="html">Которые будут двигаться в пространстве без необходимости в поверхности или какой-то иной отталкивающей материи, кроме как магнитного поля, то, я практически уверен на 105%, что в свободное использование они не поступят, в принципе, никогда.&lt;br /&gt;&lt;br /&gt;Сам факт отсутствия материальных границ, возможность перемещения в любых направлениях без преград, а самое главное простота воплощения, раз уж мы говорим о повсеместном использовании, всё это вкупе означает огромную свободу человеку на планете и огромные потери для государств - визы уже не нужны, границы на картах бесполезны, терорризм обретает иные масштабы, туризм отсутствует как класс.&lt;br /&gt;&lt;br /&gt;Ситуация в принципе схожа с изобретением водородного двигателя или торобразного двигателя с КПД 100%. Будем ездить на колёсах, которые изобретены уже миллиады лет назад, и использовать нефть пока не кончится.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:tezro:219164</id>
    <link rel="alternate" type="text/html" href="http://tezro.livejournal.com/219164.html"/>
    <link rel="self" type="text/xml" href="http://tezro.livejournal.com/data/atom/?itemid=219164"/>
    <title>BeautifulSoup / How to remove or extract empty tags</title>
    <published>2009-09-09T22:08:57Z</published>
    <updated>2009-09-09T22:08:57Z</updated>
    <category term="source"/>
    <category term="code"/>
    <category term="исходник"/>
    <category term="код"/>
    <category term="python"/>
    <content type="html">The following code does not extract all the empty tags, though could be changed easily. All it does is removing empty or whitespaced P tags.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;empty_tags = soup.findAll(lambda tag: tag.name == 'p' and not tag.contents and (tag.string is None or not tag.string.strip()))&lt;br /&gt;[empty_tag.extract() for empty_tag in empty_tags]&lt;br /&gt;&lt;/code&gt;</content>
  </entry>
</feed>
