Archives for August 2010

тайком и украдкой

30 August 2010 | HOWTO, Software | No Comments

во-первых, доступ к записям Keychain с легкостью можно организовать прямиком из командной строки: вот так. плюс, если у вас Mac OS X 10.4 (или по каким-нибудь причинам не работает первое решение), вот так.

дальше, раз пароли уже у нас в руках, то почему бы не написать скрипт с их использованием? например, для проверки новой почты:

NUMBER=$(curl -u USERNAME:$PASSWORD --silent "https://mail.google.com/mail/feed/atom" \
| grep fullcount | sed 's/<[^<>]*>//g')
case $NUMBER in
     0) exit 1 ;;
     [1-9]*) /usr/bin/afplay alarm.mp3 ; exit 2 ;;
     *) # Do nothing; continue with next command

где USERNAME — это имя пользователя, а $PASSWORD — пароль, взятый из Keychain одним из описанных выше способом.

или для запуска mutt: в .muttrc следует добавить две опции:

set imap_pass = `/path/to/your/script.sh`
set smtp_pass = `/path/to/your/script.sh`

а собственно скрипт, после обращения к Keychain, должен состоять всего из одной строки:

echo $PASSWORD

в итоге же и пароль в открытом виде нигде не прописан, и вводить его руками не надо.

  

ретроспектива

28 August 2010 | Hardware | No Comments

а в английских школах, наоборот, переходят на старые компьютеры:

The National Museum of Computing (TNMOC) at Bletchley Park has started letting a few lucky A-level students loose on the machines to hone their programming skills.

“The computing A-level is about how computers work and if you ask anyone how it works they will not be able to tell you,” said Doug Abrams, an ICT teacher from Ousedale School in Newport Pagnell, who was one of the first to use the machines in lessons.

For Mr Abrams the old machines have two cardinal virtues; their sluggishness and the direct connection they have with the user.

PDP-8, BBC Micros и другие. очень хорошие.

  

разрушитель

27 August 2010 | Sport | No Comments

Атлетико был хорош (насколько команды вообще бывают хорошими в суперкубках), но я хочу отметить другое: с уходом Моуриньо эра Интера прервется, а для Бенитеса это будет очередной загубленный им клуб (и даже, возможно, в который уже раз не выигранное 19-ое чемпионство).

  

приступы совестливости

27 August 2010 | Copyright, Economics | No Comments

голубые воришки[1] Рунета, кстати, в очередной раз с маразматических высот своего невежества обсуждают якобы прозябающих в нищете авторов, чьи произведения доступны в сети.

смешные люди, что и говорить — способы решения описаны миллион раз, и прекрасно работают всем назло.

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

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

и чем быстрее авторы это поймут, тем быстрее они начнут действовать, и тем быстрее у нас будут качественные публикации.


[1] — все уже сказано до нас:

Завхоз 2-го дома Старсобеса был застенчивый ворюга. Все существо его протестовало против краж, но не красть он не мог. Он крал, и ему было стыдно. Крал он постоянно, постоянно стыдился, и поэтому его хорошо бритые щечки всегда горели румянцем смущения, стыдливости, застенчивости и конфуза. Завхоза звали Александром Яковлевичем, а жену его Александрой Яковлевной. Он называл ее Сашхен, она звала его Альхен. Свет не видывал еще такого голубого воришки, как Александр Яковлевич.

  

оковы

27 August 2010 | Copyright | No Comments

прекрасная статья, между прочим:

Did Germany experience rapid industrial expansion in the 19th century due to an absence of copyright law? A German historian argues that the massive proliferation of books, and thus knowledge, laid the foundation for the country’s industrial might.

натурально, а почему бы и нет?

[Eckhard] Höffner has researched that early heyday of printed material in Germany and reached a surprising conclusion — unlike neighboring England and France, Germany experienced an unparalleled explosion of knowledge in the 19th century.

German authors during this period wrote ceaselessly. Around 14,000 new publications appeared in a single year in 1843. Measured against population numbers at the time, this reaches nearly today’s level. And although novels were published as well, the majority of the works were academic papers.

и результаты налицо:

Bestsellers and academic works were introduced to the German public in large numbers and at extremely low prices. “So many thousands of people in the most hidden corners of Germany, who could not have thought of buying books due to the expensive prices, have put together, little by little, a small library of reprints,” the historian Heinrich Bensen wrote enthusiastically at the time.

<...>

The trade in technical literature was so strong that publishers constantly worried about having a large enough supply.

<...>

Höffner explains that this “lively scholarly discourse” laid the basis for the Gründerzeit, or foundation period, the term used to describe the rapid industrial expansion in Germany in the late 19th century. The period produced later industrial magnates such as Alfred Krupp and Werner von Siemens.

tipharethМише бы понравилось.

  

проблема выбора

23 August 2010 | Software | 2 Comments

в очередной пробовал сменить основной браузер — Firefox на Safari. написал даже несколько расширенй (к чести Apple должен заметить, что Extension Builder штука и в самом деле отличная), но только, как в очередной раз оказалось, vimperator все равно ничем не переплюунть, и даже gleebox в качестве замены выглядит не более, чем костыликом.

ровно те же проблемы были и с Google Chrome — движок, казалось бы, ощутимо быстрее, но значительно медленее итоговая навигация. да и, плюс, другие различнейшие мелкие несовпадения.

Google, кстати, еще ввел и платную регистрацию для разрабочиков. у меня, конечно, аккаунт есть с былых времен, но все равно довольно смешная инициатива — особенно в свете борьбы за рынки, ага.

так никуда пока от Панды не деться (а уж сколько раз я пробовал c 2002 года), неизменно возрождается Фениксом из пепла у меня на машинах.

  

в военное время значение синуса может достигать четырех

23 August 2010 | Watches | No Comments

а все-таки хорошие часы Lum-Tec, обязательно хочу что-нибудь в коллекцию. пусть и не отголоски прошлого, но все-таки. изящество в непроходящей функциональной простоте. даже несмотря на всего лишь люминесцентное свечение, а не тритиевую подсветку.

  

мазки в тумане

22 August 2010 | Art | No Comments

замечательные картины.

  

идентификация

20 August 2010 | Cinematograph, Literature | No Comments

воодушевленные современной интерпретацией приключений Шерлока Холмса, вчера пересмотрели и кое-что из Шекспира, опять-таки привнесенного в наши дни: вначале “Richard III”[1] с удивительнейшим Иэном Маккелленом, после “Titus” (режиссер Джулия Тэймор обещает так же и “Бурю” с Хелен Миррен в роли Просперы) и лишь затем, когда и дышать-то уже было сложно — “Hamlet”.

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

What a piece of worke is a man! how Noble in
Reason? how infinite in faculty? in forme and mouing
how expresse and admirable? in Action, how like an Angel?
in apprehension, how like a God? the beauty of the
world, the Parragon of Animals; and yet to me, what is
this Quintessence of Dust?

есть еще “Гамлет начинает действовать” Аки Каурисмяки (хоть и с другими акцентами), снова Ричард — на этот раз посреди голливудских планов или, например, очередной мини-сериал BBC — не забывайте и их: равно как и вышеназванные, они столь же абсолютно прекрасны.


[1]WHO THE FUCK KILLS RDJ WHEN HE’S GETTING A BLOWJOB?! WHAT IS WRONG WITH THIS WORLD?!

  

сам себе терапевт

18 August 2010 | Culturology, Psychology | No Comments

а вот еще занимательная антропология:

One needs look no further than the local Russian newspaper or library to find evidence supporting this belief [that Russians are sad] – brooding and emotional suffering are common themes in Russian discourse. These observations, coupled with ethnographic evidence indicating that Russians focus more on unpleasant memories and feelings than Westerners do, have led some researchers to go so far as to describe Russia as a “clinically masochistic” culture.

натурально, так и есть:

The psychologists gave subjects in Moscow and Michigan a series of vignettes that described a protagonist who either does or does not analyze her feelings when she is upset. After reading the short stories, the students were then asked to choose the protagonist that most closely resembled their own coping tendencies. The results were clear: While the American undergraduates were evenly divided between people who engaged in self-analysis (the brooders) and those who didn’t, the Russian students were overwhelmingly self-analytical. (Eighty-three Russians read the vignettes; sixty-eight of them identified with the brooders.) In other words, the cliche is true: Russians are ruminators. They are obsessed with their problems.

однако, не тут-то было:

According to Grossman and Kross, however, not all brooders and ruminators are created equal. While American brooders showed extremely high levels of depressive symptomatology (as measured by the Beck Depression Inventory, or BDI), Russian brooders were actually less likely to be depressed than non-brooders. This suggests that brooding, or ruminative self-reflection, has extremely different psychiatric outcomes depending on the culture. While rumination makes Americans depressed, it actually seems to provide an emotional buffer for Russians.

в чем же дело? is it vodka-matryoshka-babushka? или другое общеизвестное развлечение — танцующие медведи? практически, так и есть:

When Russians engaged in brooding self-analysis, they were much more likely to engage in self-distancing, or looking at the past experience from the detached perspective of someone else. Instead of reliving their confused and visceral feelings, they reinterpreted the negative memory , which helped them make sense of it. According to the researchers, this led to significantly less “emotional distress” among the Russian subjects. (It also made them less likely to blame another person for the event.) Furthermore, the habit of self-distancing seemed to explain the striking differences in depressive symptoms between Russian and Americans. Brooding wasn’t the problem. Instead, it was brooding without self-distance.

как говорится, просто похуй.