July 30, 2012

La programmation fonctionnelle

Le paradigme

Dans la programmation impérative, on dit á l'ordinateur toutes les opérations á exécuter pas á pas.

Dans la programmation fonctionnelle, on définit des fonctions mathématiques.

Au lieu d'écrire la recette pas-á-pas, on definit mathématiquement les données que la machine doit retourner pour chaque ensemble d'entrées possibles.

La logique impérative peut être émulée par une pratique qui s'appelle pipelining (canalisation) - c'est á dire donner la sortie d'une fonction comme argument á la fonction suivante.

Le programme, c'est un fonction!
Tout le programme n'est qu'une grande fonction mathématique, composée de fonctions mineures (qui sont composées de fonctions plus mineures, et caetera...)

Not so lazy

In the Haskell programming language, lazy evaluation doesn't seem to be very lazy within list comprehensions. At least on my Ubuntu 12.4 system with its Haskell platform installed, it crashes after the following statement:
Prelude> [x*2 | x<-[0..], x<=5]
It shows the first five elements, but it doesn't return. I mean, it does after pushing Ctrl+C, but you may know that's the interrupt signal on Unix systems. It's not cool!

July 29, 2012

Electronic Supersonic

def blast(x):
  if x<=0: print "Offblast!"
  else:
    if x!=2: print x
    blast(x-1)

July 28, 2012

Invincible Children

[This issue is fortunately not relevant anymore, but I didn't finish the article in time...]

For those of you yet to figure out that Kony 2012 is a scam, I have one very important piece of news: Kony 2012 is a scam! Even if such eminent foreign policy experts like Angelina Jolie and Kim Kardashian say otherwise. Alas, they might not always be right!

This certainly is a very exciting moment of history! Our great culture of democracy has developed to the point when not knowing about an issue makes you smarter! Until this day, such a phenomenon was strictly limited to the world of reality television and Fox News. It feels absolutely rejoicing to seeinternational politics finally catching up.

So who the fuck is this guy called Joseph Kony?

July 27, 2012

Blümchen


#http://thinkpython.com/swampy

from swampy.TurtleWorld import *
import math

world = TurtleWorld()
bob = Turtle()
bob.delay = 0.005

def drawarc(t,r,a):
    for i in range(a):
        fd(t,2*r*math.pi/360)
        lt(t,1)

def drawpetal(t,r,a):
    drawarc(t,r,a)
    lt(t,180-a)
    drawarc(t,r,a)

def drawflower(t,l,n):
    rad = 2*math.pi/n
    r = l/(2*math.sin(rad/2))
   
    for i in range(n):
        drawpetal(t,r,360/n)
        lt(t,180)
    pu(t)
    fd(t,l)
    pd(t)
    lt(t)
    drawarc(t,l,360)
   
def drawflower2(t,l,n):
    n=n/2
    t.delay=0.001
    rad = 2*math.pi/n
    r = l/(2*math.sin(rad/2))
   
    for i in range(2*n):
        drawpetal(t,r,360/n)
        lt(t,180-360/(2*n))
    pu(t)
    fd(t,l)
    pd(t)
    lt(t)
    drawarc(t,l,360)

drawflower2(bob,150,8)

wait_for_user()

July 24, 2012

Compo1

Il n'y a pas d'alternative. C'est ce que l'establishment ne cesse de nous dire, et ils ont si bien raison! Il n'y a pas d'alternative parce qu'ils ne veulent pas nous donner aucun d'alternative. Ils ont tout le pouvoir et ils veulent que nous le considerions comme l'ordre de la nature, totalement impossible de changer. Ils veulent nous faire croire que tout qui se passent sont notres fautes, que nous meritons tous les malfaisances de leur léviathan. C'est comme ils veulent que nous interpretions la christianisme aussi: nous les peuples sommes totalement malfaisantes, alors nous méritons tout le malfaisance. Leur malfaisance.

Notre liberté signifie que nous sommes libres á condition que nous faisons le bon choix. Si ce n'est pas le cas, le choix mauvais est consideré comme une erreur qui doit être corrigée. On nous présente la même décision de nouveau jusqu'au fois quand nous choisissons qu'il faut choisir. Sinon, si nous nous comportons comme des gens libres, ils mettent en place leurs appareils pour nous punir brutalement et sans pitie. C'est qui se passe dans la Gréce. On nous présente la Gréce comme example pour nous dissuader: l'état en deliquescence.

Nos dirigeantes sont pourris jusqu'á la moelle. Le monde tel que nous le connaissons, il est mort. Tout le mond, tout la systéme, ils sont mortes. L'idéologie du capitalisme - la liberalisme, la conservativisme, l'eglise, et cetera, il n'importe quel - est les cult de la morte le plus obscéne et plus dépravé dans l'histoire de l'humanité.

Il n'y a pas d'alternative que la mort absolute. La seule alternative de cette mort absolute est la négation complet de cette systéme: la lutte des classes. Alors, la vie est la lutte des classes et la lutte des classes est la vie. Touts les autres choses, il ne sont que la mort d'animation. Tout les gens qui ne participe dans cette lutte, ils sont déjá morts. Ils sont des morts vivants.

July 10, 2012

Data types and Platonism

The handling of data types is a feature of high level programming languages! Each piece of data is handled by the computer according to its type. There are different operations for all the different data types. Operations like addition or multiplication are applied on each different type in a different way.

But the computer itself does not group data into types! It's just a device which manipulates binary signals very fast. It's the software responsible for compiling or interpreting your program which translates a line of code into an appropriate sequence of machine instructions, and this compilation or interpretation is done according to the types of the pieces of data involved.

July 4, 2012

The miners of Asturias

As you may already know, the coal miners of Asturias are at large. You might have seen them firing their home-made rocket launchers behind their vast barricades and you might have figured out they are very angry...

Why are they so angry? According to the media the strife is going on about some kind of industrial subsidies and other shit. Business as usual, you might say. But before dismissing them as such, let's take a look at history...

June 25, 2012

Rape analogy

- Biztos úr! Szeretnék feljelentést tenni, mert kiraboltak!
- Igen? Kirabolták, mi? Na, lássuk csak, mikor és hol?
- Hát úgy nagyjából fél órával ezelőtt a Práter utcáról befordultam a Szigony utcába, tudja, a Klinikák felé, és akkor megjelent egy kapucnis figura pisztollyal! Azt mondta, hogy adjam oda az összes pénzemet!
- Na, és maga meg odaadta, mi?
- Hát persze, hogy odaadtam, hiszen pisztoly volt nála!
- Tehát együttműködött ezzel az emberrel. Nem kiáltott segítségért és nem is próbált elmenekülni...
- Mondom, hogy pisztoly volt nála!
- Na, ne kiabáljon, kisapám, mert mindjárt bedobom egy cellába, aszt nézhet!
- Bocsánat! Elnézést kérek, hogy...
- Hát mondhatom, szépen vagyunk! Odaadja az összes pénzét egy idegennek, aztán jön itt nekem óbégatni! Mégis mit képzel magáról, hol van? Talán azt hiszi, ez itt a Máltai Szeretetszolgálat?
- Már bocsánat, de én...
- Már bocsánat, de maga nagyon hülyének néz engem! Na, ide figyeljen! Én úgy tudom, maga nagyon karitatív ember hírében áll. Jól tudom?
- Igen, szoktam adakozni, mert úgy gondolom... Na, de ez most hogy jön ide?
- Hát úgy jön ide, kisapám, hogy maga elegáns ruhában ment a Szigony utcába, ahol pedig mindenki tudja önről, hogy szeret adakozni, úton-útfélen mindenkinek odaadja a pénzét...
- Uram, ezt kikérem...
- NE VÁGJON A SZAVAMBA! Ha még egyszer félbeszakít, én komolyan mondom, lesittelem magát! Na! Szóval megy a Szigony utcában, ahol ugyebár közismert adakozóként odaadja az összes pénzét egy idegennek, mint ahogy azt szokta! Aztán egy fél óra múlva hirtelen meggondolja magát és jön nekem ide hisztizni! Ismerje csak be, hogy ez történt, és ne próbáljon engem itt hülyíteni! Mégis mit képzel magáról?
- Ne haragudjon, uram, de ez már tényleg felháborító!

- Nos, kedves uram, ez itt nem más, mint a nemi erőszak analógiája! Ez történik ugyanis a legtöbb megerőszakolt nővel, amikor megpróbálják az elkövetőket bíróság elé állítani. És ez bizony ám, ahogy mondja, tényleg felháborító!

- Hát akkor valami nagyon nem stimmel ebben a rendszerben...
- Úgy bizony!

June 6, 2012

Give Greece a chance

Zizek speech in favour of Syriza...

Late in his life, Sigmund Freud asked the famous question "Was will das Weib?" - What does a woman want? - admitting his perplexity when faced with the enigma of feminine sexuality. A similar perplexity arouses today: What does Europe want? This is the question you the Greek people are adressing Europe. Because you know what you want! You want this guy as a prime minister! Europe doesn't know what it wants! The way European states and the media relate to what is going on in Greece is the best indicator of what kind of Europe they want: is it the neoliberal Europe, is it the Europe of isolationist nation states, or maybe something different?

June 4, 2012

Wickedness of the heavens

I can hear your minds craving for a proper dosage of Zizek. I'm your man to watch out for your libidinal frustrations of this kind, so here we go!

Ladies and gentlemen, Slavoj Zizek!

***
So where is ideology? When we are dealing with a problem which is undoubtedly real, the ideological designation introduces its invisible mystification. For example, tolerance designates a real problem. When I criticize it, I am routinely asked: "But how can you be in favour of intolerance towards foreigners, of misogyny, of homophobia?"

Therein resides the catch! Of course I am not against tolerance per se. What I oppose is the perception of racism as a problem of intolerance. Why are so many problems today perceived as problems of intolerance rather than problems of inequality, exploitation or injustice? Why is the proposed remedy tolerance, rather than emancipation, political struggle or even armed struggle? The source of this culturalization is defeat: the failure of directly political solutions such as social democracy. Tolerance has become the post-political ersatz.

***

How not to hate the rich

I said there are pitfalls in hating the rich, but I didn't talk much about them. Shame on me! I'm not the kind of person anyone cares to debate with, so now I will pretend to be my own ideological opponent...

First of all, Jesus was probably not an evil man. He was not a living God, not born of a virgin mother, didn't have twelve disciples (maybe more or less), didn't rise up from the dead, the pope is not his representative on Earth, et cetera. This stuff was made up by people who knew about the prevailing religious superstitions of neighboring Egypt. That place was full of Jews even after the Exodus (I guess they thought it was mission failed), including a famous classical philosopher called Philo. It is of course disturbing that none of them cared to say "Come on guys, that was Horus!", or maybe it's just that nobody listened to them, but that's quite a different story. It doesn't change the fact that Jesus was cool. He said quite a lot of great things which Horus seemed to forget.

June 3, 2012

How to hate the rich

Of course there are some pitfalls in hating the rich. First of all, like I already said, hate is not a good thing in itself! Moreover, self-serving and self-generating hate is definitely bad. If you don't have valid reasons to feel anger, you must not hate anything!

But this doesn't mean that you cannot hate the rich. You can. Actually, you have to!

As a matter of fact, even rich people must start hating their peers if they want humanity to survive on the long run. If you find out the true reason why there is frustration and anguish in the hearts of the working class and feel with them in a truly empathic way, you will definitely start hating the rich for good. If you don't start hating them with all your passion, that means you do not really understand the living conditions of the working class. Never mind. Keep trying!

June 2, 2012

The triumph of Freedom

Yesterday's referendum in Ireland was a triumph of freedom!

Sounds lovely, doesn't it? Well, this is actually the case! In the splendid world of Capitalism, freedom means that you are free to choose as long as you make the right choice. If you don't make the right choice, you can very quickly stop being free. That's a solid fact. I wonder how many Greeks did actually know the name of Lucas Papademos before he became prime minister...

Got the point? All right then, here comes the blissful part: The people of Ireland are not so foolhardy as the stupid Mediterranean bunch of lazy slackers down there at the Balkans! Here we've got some really wise and judicious people who - after being "isolationist" and "anti-european" in the past (Shame on them!!!) - have finally made up their minds and decided to choose the right! Here we've got one more nation we don't have to completely destroy in order to save them! Of course they will be destroyed anyway, but they will suffer with pride and happiness knowing that their freedom was preserved. Isn't that just wonderful?

Oh, come on!

May 29, 2012

Sacra Corona

An ode to the imperial hippies...

Man, I do love the Holy Crown of Hungary! It's simply grand. Our royal crown is the coolest in the Universe! If you ask the big experts of holycrownology, one of them will sure as hell explain that the whole thing is about tolerance, respect of other nations, freedom, unity, equality, peace, blah blah blah. Tons of idealistic tree-hugging hippie shit. Just go and ask them!

But most importantly it is about the sovereignty of the people! Every citizen of the realm, no matter if he or she is Hungarian, Slovak, Serb, Gypsy or Jewish, is a "member" of the Crown, and the Crown is completely superior to the king who wears it. The king doesn't really matter the tiniest piece of shit. He's just a figure carrying it around. It's the Crown which matters! The nation is ruled by the Crown itself. It's a completely independent and sovereign entity... Well, except for the fact that we are all its members, so there's no crown without the people. The Crown is us! Ain't that brilliant?!

May 18, 2012

Some more laments

Daniel, thank you for the wind-up trotsky toy rhetoric!
Ever since I came out of my trotskyist closet, you just can't stop throwing shit on me! You know, that's just a little bit weird, because I've been posting all my shit on Twitter for weeks and my style was the same for countless years, so I really don't know the logic behind your attitude! Do you have some ego-dystonic trotskyophobia which you must let out on me or what the fuck?

Or is it because I used the f-word? I told you why I used the word and you also know that words representing homosexuality are widely used without a homophobic tone in Hungarian language. (Or maybe it is because our culture is so homophobic, but nevertheless they are used by non-homophobes as well.)

May 14, 2012

There is power in a union

There is power in a democracy, power in the land
Power in the hands of a worker
But it all amounts to nothing if together we don't stand
There is a power in a Union

Now the lessons of the past were all learned with workers' blood
The mistakes of the bosses we must pay for
From the cities to the farmlands in the trenches full of mud
'cause war has always been the bosses' way sir

The Union forever defending our rights
Let's fight the Right Wing, all workers unite
With our brothers and our sisters from many far off lands
There is power in a Union

Now I long for the time that they realize
Brutality and unjust laws cannot defeat us
But who'll defend the workers who cannot organize
When the GOP send their attorneys out to cheat us?

Money speaks for money, the Devil for his own
Who'll come speak for the skin and the bone?
What a comfort to widow, a light for the child
There is power in a Union

The Union forever defending our rights
Let's fight the Right Wing, all workers unite
With our brothers and our sisters from many far off lands
There is power in a Union

With social justice and equality
For every man and woman who wants it
There is power in a Union

April 20, 2012

Art is industry

Like I said, I really hate Mr Dalí. And I'm not even ashamed of it. I have very good reasons to hate him. First of all, he was an extremely disgusting person, to say the least. He had a pathologically egoistic personality and a particularly abominable penchant for the worst possible kind of aristocratic buffoonery ad nauseam. Other than that, he was openly supporting the Franco regime in spite of having played the super cool anarchist in his youthful years. I claim he would have been much better off shot in the head at the civil war, but I guess they just knew he would lick their boots after they win, for which he turned out to be very useful later on.

April 14, 2012

Laments of a lonely trot

I thank you for all your good wishes! I am still with the CWI, but I don't pay any membership fee, because I don't belong to any local group at the moment. Right now I am trying to find more people interested in trotskyism and willing to build a Hungarian chapter. I made a Facebook page called "CWI Magyarország".

March 17, 2012

Counter-revolution from the Left

*** The 15th of March is a national holiday in Hungary supposed to commemorate the revolution of 1848. Apart from (or instead of) doing such noble deeds, the occasion is being used since 1989 to stage some high-profile rallies by the whole political spectrum. This year was no exception. Daniel Marton reports and analyzes from Budapest... ***

March 16, 2012

Eljen a Haza

As you may already know, yesterday was a national holiday in Hungary. You probably know it because of Google. We used to live under the Austrian empire and we didn't like it, so we made this revolution stuff in 1848. That was the year of European revolutions - the heyday of liberal nationalism - and the people of Hungary were eager to jump on the bandwagon. You know the old cliché of our freedom-loving character which makes us think that we are the greatest and coolest freedom fighters in the world. It is based on two Hungarian revolutions, and one of them is 1848.

March 9, 2012

Anonymous for Hungary!

Dear anons! DOSing kuruc.info is some damn good work done very well which you should keep up in the future! Our right wing is more than ripe for some real kicking in the ass.

There is one thing you must never do: listen to the bitches bitching! I mean, when they start bitching about your "decision" being bad, because the gypsies are bad, it's not neutral, blah blah blah. Are these bitches smarter than you, maybe? Do they even sound so? You know they don't. They are just bitching. And it's really annoying.

These voices are the rotting spoilage of history. You are here to wash them away.

To the voices: The spoilage is not in our history. The spoilage is in you!


Oh, I love History! For example, I love to think about the reason why Saint Stephen, once considered the traitor of our nation, is now considered its founder. I might also muse about Attila Jozsef the communist, Ady the "anti-hungarian" or Szecheny the foreign-minded capitalist... And the list goes on and on. 

So you wanna guess who is trying to erase our past?
Just ask one brave kuruc about the Holocaust...

Sorry to disappoint you, but there is no point of decision here!  Anonymous has always been engaged against the far right and it will always be in the future. No fucking choice to be made. So please keep your lengthy sermons to yourselves. No one gives a fuck!

March 4, 2012

Python Challenge Hints

Level 0
Trying to change the URL to 1.html shows a hint. The picture says 2 on the power of 38... Which is larger than 1, of course. But it also says how you can compute the number with Python.

Paste the result into the URL between the last '/' and the '.html'. (This is the way to solve all the levels!)

January 28, 2012

Protest Math

I must correct myself at one point about the Hungarian situation. Like many uncritical people on both sides, I just grossly overestimated the significance of this love march for the government.

The right-wing has just shown that they can still beat us in protest math. So what? Does this mean the people, the "men on the street" still love the government? No. Fidesz has made it once again what they made for eight long years. That's it. That's the story. No more and no less. As you might already know, the Hungarian right-wing has an idiosyncratic feature compared to their western counterparts: they have a voracious appetite for massive public rallies.

Kimble Goes Jail

If I were paranoid enough, I would sure as hell claim that this pathologically selfish and childish fat-ass with all of his obnoxiously tasteless buffoonery and the personality of a pampered five-year-old is the invention of the Copyright Mafia to demonize the file-sharing movement.

January 22, 2012

We are the 16%!

Yesterday's "peace march" was a truly astonishing PR stunt. After more than 20 months of amok from a government doing its very best to make some policy against both sides in as many issues as possible, finding so many brain-dead morons to march for them is a genuinely remarkable feat of organizing skills.

January 21, 2012

Long live the Dear Leader!

"Emberemlékezet óta Magyarországon ekkora tömeg még nem demonstrált a kormány és politikája mellett."

Na, és a 2002-es kétmillió? Szegény Rákai Philip presztizsét ne gyalázzuk már! Sportszerűtlen!

Our great 50 cent army

Just a little piece of info for all those turbomagyar government thugs out there:

It is currently 84% of the Hungarian population who are DISCONTENT with the way things are done by our (not so) splendid government.

Mr Orban might however win the next elections, but the word "democratically" means:

January 18, 2012

Endlösung

It is an irresponsible response and a disservice to people who rely on them for information use their services. It is also an abuse of power given the freedoms these companies enjoy in the marketplace today. It’s a dangerous and troubling development when the platforms that serve as gateways to information intentionally skew the facts to incite their users in order to further their corporate interests.
A so-called “blackout” is yet another gimmick, albeit a dangerous one, designed to punish elected and administration officials who are working diligently to protect American jobs from foreign criminals. It is our hope that the White House and the Congress will call on those who intend to stage this “blackout” to stop the hyperbole and PR stunts and engage in meaningful efforts to combat piracy.
This text was not written by a delirious schizophrenic tea-party granddad from Texas. It was written by the Motion Picture Association of America: a huge and almighty lobby group representing the interests of the American film industry. Now you might after all get a clue of why some people keep calling these guys the Movie Mafia...

January 12, 2012

Urgent call for unity pt 2

"Ennyi van, hogy a Szolidaritás és a Milla a Gyurcsányt támogatja és viszont. Nincsen összeesküvés elmélet. Csak ha mondjuk egy Gyurcsány mentes ellenzéki szövetséget szeretnél összehozni, akkor ez a két szervezet nem lehet benne. Jó, a Milla talán kevésbé, de valahol úgyis összetalálkoznak, mert a Millát olyanok csinálták, akik az SZDSZ környékén voltak mindig."
Orbitron Megacivil Megaharcos ezt a zseniális epigrammát küldte válaszul az előbb publikált jegyzetemre. Eredetileg azzal indított, hogy amit írok, az nem hülyeség, hiszen - idézem: "a Milla és a Szolidaritás Gyurcsány és a DK seggében van tövig". Ezt nevezem, baszki! Pure genius!