You are viewing [info]komaz's journal

Записки будущего ворчуна

Recent Entries

You are viewing the most recent 25 entries.

17th July 2009

7:28pm: Sheeple

10th July 2009

6:59pm: прочитал где-то, понравилось
любую проблему можно решить путём введения дополнительного абстрактного слоя (кроме проблемы слишком большого количества абстрактных слоёв).

17th April 2009

12:24am: забавная игруля
игра-арена для мегаленивых - управлять нельзя вообще ничем
http://komaz.mybrute.com

31st March 2009

9:51am: Фотки из США
еще не прореженные
http://picasaweb.google.com/ivan.inozemtsev

2nd February 2009

4:22pm: шикарный комикс:


Фантазии крипто-гика:
- Его ноут зашифрован, давай построим кластер за миллион баксов чтобы расшифровать его!
- Бесполезно! Это 4096-битный RSA!
- Чьорт! Наш злобный план рухнул!

Что произошло бы на самом деле:
- Его ноут зашифрован. Накачай его наркотой и бей его этим гаечным ключом за пять баксов пока он не скажет пароль
- Понял

22nd January 2009

9:57am: Счастье привалило!
AOL забороло всякие квипы, миранды и копыта. Мож хоть теперь народ массово перейдет на джаббер.

UPD: ((( уже оказывается все захачили, асько не умерла

18th January 2009

6:12pm: мракобесие
Как же меня заебали унылые неучи, которые пишут кВт/ч вместо кВт*ч. Это ж блять ебануться можно - путать работу и производную мощности по времени

28th November 2008

1:09pm: MUMPS
Ты программист и не любишь свою работу?
Думаешь что "if(true) return true else return false" вершина говнокода?
Считаешь что [Java|C#|C++|PHP|TCL|etc.] говно?
Ненавидишь свою IDE?

Прочти и узнай что у тебя все не так уж плохо - A Case of the MUMPS
Избранное:


COMMANDS: may be abbreviated to one letter, case-insensitive. Includes commands such as IF, ELSE, GOTO, WRITE, and XECUTE [which is my personal favorite, it allows arbitrary execution of code contained in a variable]
LINES: important syntactic entities. Multiple statements per line are idiomatic. Scope of IF and FOR is "remainder of current line."
GLOBAL ARRAYS: arrays that start with a caret symbol. Stored on disk, available to all processes, persist when process terminates. This is M's main "database" mechanism.
...

Within each application lived hundreds of modules, and within each module lived thousands of routines. All of these routines shared the same environment. To ensure that global arrays and code didn’t get mixed up, a strict naming convention was followed. Each routine name was no more than eight characters, and consisted of a two-character application identifier, a two-character module identifier, and a two-character routine identifier. The remaining two characters were for “routine chaining.” You see, because MUMPS has a rather small routine limit, developers had to spread code across several routines (GBLVCM1, GBLVCM2, etc) and “chain” them together with a GOTO at the end.
...

developers needed to use the internally-created text editor. It actually made vi look user-friendly. The editor made extensive use of DEC VT 220 keys as shortcuts; these keys, naturally, did not exist on any modern keyboard. Things that we take for granted (the Enter key, for example) required a bizarre set of escape commands to be entered.
...

The client VB application read an unencrypted UNIX login and password from a file, initialized a telnet session, opened the MUMPS environment on the server, and then sent MUMPS code to be executed. Because their MUMPS system was so ridiculously slow, it would often take minutes for a simple operation to complete. Reports would take hours.




И это все не какие-нибудь там старперские воспоминания а-ля "5 километров пешком в гору", это все продолжается сейчас.

UPD: Пример кода на MUMPS (понятия не имею что он делает)

%DTC
%DTC ; SF/XAK - DATE/TIME OPERATIONS ;1/16/92 11:36 AM
;;19.0;VA FileMan;;Jul 14, 1992
D I 'X1!'X2 S X="" Q
S X=X1 D H S X1=%H,X=X2,X2=%Y+1 D H S X=X1-%H,%Y=%Y+1&X2
K %H,X1,X2 Q
;
C S X=X1 Q:'X D H S %H=%H+X2 D YMD S:$P(X1,".",2) X=X_"."_$P(X1,".",2) K X1,X2 Q
S S %=%#60/100+(%#3600\60)/100+(%\3600)/100 Q
;
H I X<1410000 S %H=0,%Y=-1 Q
S %Y=$E(X,1,3),%M=$E(X,4,5),%D=$E(X,6,7)
S %T=$E(X_0,9,10)*60+$E(X_"000",11,12)*60+$E(X_"00000",13,14)
TOH S %H=%M>2&'(%Y#4)+$P("^31^59^90^120^151^181^212^243^273^304^334","^",%M)+%D
S %='%M!'%D,%Y=%Y-141,%H=%H+(%Y*365)+(%Y\4)-(%Y>59)+%,%Y=$S(%:-1,1:%H+4#7)
K %M,%D,% Q
;



PS При этом я не считаю что MUMPS - гавно, я всего лишь считаю что MUMPS - пиздец

27th November 2008

10:15am: bash.org
Mahnamahnah: mssql is to the linux tech what a butt plug is to the straight guy.......pointless, a laugh or downright offensive and in a nightmare situation a pain in the ass

Josh: QUESTION FOR EVERYONE....
SecureXeC: IT'S TO THE LEFT OF YOUR 'A' KEY.


перевод )

9th October 2008

11:49am: Улыбнуло

SELECT * FROM mytable I'M FEELING LUCKY
©

7th October 2008

1:50pm: борода, но весело
Пишу здесь чтоб не потерять, автора не знаю

Five year phase-in plan for "EuroEnglish"



The European Commission have just announced an agreement whereby English will be the official language of the EU, rather than German, which was the other possibility. As part of the negotiations, Her Majesty's government conceded that English spelling had some room for improvement and has accepted a five year phase in plan that would be known as "EuroEnglish".

In the first year, "s" will replace the soft "c". Sertainly, this will make the sivil servants jump for joy. The hard "c" will be dropped in favour of the "k". This should klear up konfusion and keyboards kan have 1 less letter.

There will be growing publik enthusiasm in the sekond year, when the troublesome "ph" will be replaced with the "f". This will make words like "fotograf" 20% shorter.

In the third year, publik akseptanse of the new spelling kan be expekted to reach the stage where more komplikated changes are possible. Governments will enkorage the removal of double letters, which have always ben a deterent to akurate speling. Also, al wil agre that the horible mes of the silent "e"s in the language is disgraseful, and they should go away.

By the 4th year, peopl wil be reseptiv to steps such as replasing "th" with "z" and "w" with "v".

During ze fifz year, ze unesesary "o" kan be dropd from vords kontaining "ou" and similar changes vud of kors be aplid to ozer kombinations of leters. After zis fifz year, ve vil hav a realy sensibl riten styl. Zer vil be no mor trubls or difikultis and evrivun vil find it ezi to understand each ozer

ZE DREAM VIL FINALI KUM TRU!

2nd October 2008

3:52pm: и слава богу
10:16am: гнать из профессии
Хочу чтобы те, кто пишет библиотеки, срущие в stdout, убили себя об стену. Ну что это за хйня (подчеркиваю, это код библиотеки):

public void initialize()
{
String banner1 = "javax.comm.SerialPort implementation: version 3.8";
String banner2 = "Copyright (c) 1998-2008 Serialio.com, All Rights Reserved.";
System.out.println((new StringBuilder()).append(banner1).append("\r\n").append(banner2).toString());



Дальше - больше. Отличный способ словить ArrayIndexOutOfBoundsException вместо IOException:

String pNames[];
try
{
pNames = SerialPortLocal.getPortList();
}
catch(IOException ioe)
{
pNames = new String[0];
pNames[0] = "No List";
ioe.printStackTrace();
}
for(int i = 0; i < pNames.length; i++)
CommPortIdentifier.addPortName(pNames[i], 1, null);

30th September 2008

10:28am: Computer interfaces and user interfaces are as different as night and 1.

29th September 2008

1:10pm: Клавогонки.Ру

25th September 2008

8:51am: WTF порадовал
http://thedailywtf.com/Articles/A-Problem-at-the-Personal-Level--More.aspx

Полагаю это тоже сработает


Я обнаружил что в то время как множество инженеров-программистов способны применять сложные решения к сложным проблемам, немногие способны решать простые проблемы просто. Так, я всегда нахожу полезным предложить довольно простые технические проблемы кандидатам и попросить их предложить простейшее возможное решение. Один из часто используемых мною сценариев - конкуренция downloader'а и watcher'а:

Каждую ночь downloader скачивает массу несколькогигабайтных файлов с удаленного сервера и сохраняет их в определенную директориню на диске. Watcher мониторит эту директорию и тут же обрабатыват новые файлы. Однако, поскольку скачивание занимает гораздо больше времени чем обработка, watcher упадет если прочитает недокачанный файл.

Существует только один правильный ответ и я стараюсь изо всех сил подвести к нему кандидатов. Некоторые, как недавний кандидат, никогда не добираются до него.

Read more... )

8th September 2008

9:16am: про собеседования
Статья целиком

Один из читателей поделился со мной историей о своем собеседовании с головоломками

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

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

У нее не было слов

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

14th August 2008

12:37pm: На фоне всего пиздеца, который пишут в западных газетах, было удивительно прочитать две вменяемых статьи:
http://inosmi.ru/stories/06/06/13/3482/243235.html
http://www.inosmi.ru/translation/243208.html

10th July 2008

12:15pm: c bash.org
< Lapkawitz> and you can tell she's really japanese becase her genitals produce a forcefield that pixelates the air around them
Перевод )

4th July 2008

11:53am: The Daily WTF
много букв, но интересно - Slaves to The Process

26th June 2008

10:39am:
9:38am: Dear Microsoft, please give me a horizontal scrollbar

17th June 2008

2:57pm: сны
Во сне сдавал зачет, раскладывал какую-то хрень по многочленам Лежандра. Не сдал, проснулся в холодном поту.
Powered by LiveJournal.com