Nov. 19th, 2009

juan_gandhi: (Default)
Пишу тут новый класс (типа look-ahead map requester); обнаружил, что половина, наверное, кода содрана с упражнений ииз учебников хаскела. Ну ё! (И где я раньше был)
juan_gandhi: (Default)
Tried to watch US vs John Lennon yesterday.

I don't know. Could not finish (finalize, whatever). Yes, sure, he's a great guy, sure, peace, door, ball, etc.

The problem is, why US? Sure Nixon is disgusting. Bigotry in US those years was unimaginable.

But... how come in 1969 he was spending so much efforts to stop US from stopping red Vietnam, supported by two superpowers, USSR and China, to take over South Vietnam? We can say tons of bad words about South Vietnam, but now, in 2006, you can ask hundreds of people right here in Bay Area, how they managed to get out of Vietnam, how long did they spend in Vietnam's gulag, how many people were executed on spot by the communists (I guess, the figure is several times bigger than the number of summary victims of US bombardments in Vietnam).

Was the war in Vietnam wrong? Probably it was.

But how come John never said a word about the other side? What was it? How come he did not care about Czechoslovakia in 1968? How come he did not care about the freedom of all those dissidents in USSR? Seems like they did not exist for him. The same way the Vietnamese people did not exist for him either. I got a feeling that all he cared about where the nice white guys that loved his music, but instead of fucking and dancing and smoking went to the war, and that was bad.

In short, in his narrow peacenik attitude all I saw was a pretty much usual British racism. Something like "we are superior, why the fuck should be bother to care?" Yes, I know, Yoko is Japanese. Yoko... did she say anything? She justs commented. Friday, a kind of.

So, watching at his trials and tribulations, and remembering what was going on closer to where I was those days, I could not stand it anymore.

I mean, next time we say something about the war in Afghanistan or the mission in Iraq, we should try to get a bigger picture.
juan_gandhi: (Default)
Вот мне надо перебрать точки в прямоугольнике, отсортировав по близости к центру (метрика пофиг, l1, l2, whatever); такое возникает ощущение, что не надо ничего сортировать, а надо просто идти по спирали
             
     *

     **

     **
      *

     **
     **

     **
    ***

    ***
    ***


    *
    ***
    ***



По-моему, алгоритм состоит в добавлении уголков увеличивающегося размера. Не биг дил, э?
juan_gandhi: (Default)
Одна из самых сложных задач, стоящих в Америке перед русским офицером запаса - перестать сообщать американцам, отдающим честь, ему или ещё кому, что к пустой голове руку не прикладывают.
juan_gandhi: (Default)
...
        int x = (w + 1) / 2;
        int y = (h + 1) / 2;
        int step = 1;
        int dx = 1;
        int dy = 0;
        int turnX = x + dx;
        int turnY = y + dy;
        
        while (some_condition())
        {
            processAt(x, y);            
            
            if (x == turnX && y == turnY)
            {
                int d = dx;
                dx = dy; // turn right 90 deg
                dy = -d;
                if (d == 0) step++;
                turnX += dx * step;
                turnY += dy * step;
            }
            x += dx;
            y += dy;
        }

juan_gandhi: (Default)
В Портленде скандал - мент стрельнул по 12-летней девахе. Тот же мент, который уже расследуется по поводу убийства задержанного.

На видео три мента не могут справиться с этой 12-летней. Три мента. Пытаются повалить на землю 12-летнюю девочку. После чего один по ней стреляет.

Мне кажется, этих ментов надо послать в Афганистан, на тренировку. А того, который стрелял - тротуары подметать.

Ну что, их не учат ничему, что ли? Ну самбо какому-нибудь.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

September 2025

S M T W T F S
 1 2345 6
78910111213
14151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 8th, 2025 06:38 pm
Powered by Dreamwidth Studios