Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

La Cacerola Loca

"Lo­cu­ra es ha­cer lo mis­mo una y otra vez es­pe­ran­do re­sul­ta­dos di­fe­ren­tes"

—Al­bert Eins­tein

Hoy leí en un co­men­ta­rio en un si­tio que no me­re­ce ser li­nkea­do la pre­gun­ta "có­mo pue­de ser que ha­yan lle­ga­do al po­der és­to­s". Bue­no, es­ti­ma­do co­men­ta­ris­ta anó­ni­mo de blog po­lí­ti­co­-­ve­de­tti­l, te lo voy a ex­pli­ca­r.

La cau­sa in­me­dia­da del po­der de Cris­ti­na Fer­nan­dez es, ob­via­men­te, que ga­nó elec­cio­nes. Pe­ro a na­die le in­te­re­sa eso, ex­cep­to a los que se la pa­san echan­do en ca­ra del 46% que 54 es más que 46, y que si quie­ren ser pre­si­den­tes es bue­na idea ga­nar elec­cio­nes, pe­ro acá no va­mos a caer en ese fa­ci­lis­mo. Va­mos a ver más pa­ra atrá­s.

Cris­ti­na lle­ga a pre­si­den­ta en gran par­te por­que la apo­ya co­mo can­di­da­ta Nés­to­r. Si bien ella es una per­so­na con un gran his­to­rial po­lí­ti­co, sena­do­ra, etc. si no la lle­va­ba Nés­to­r, no hu­bie­ra si­do pre­si­den­ta. O tal vez sí, pe­ro de otra ma­ne­ra com­ple­ta­men­te dis­tin­ta, igual que si yo no hu­bie­ra com­pra­do una Sin­clair 1000 no se­ría pro­gra­ma­dor (a me­nos que lo hu­bie­ra si­do por otros mo­ti­vo­s). Pe­ro esos otros mo­ti­vos son fic­ció­n, por­que no su­ce­die­ro­n. Ella es pre­si­den­ta por Nés­to­r.

¿Y có­mo lle­gó Nés­tor a pre­si­den­te? Lle­gó por­que lo lle­vó Duhal­de, y por­que Me­nem se hi­zo en­ci­ma por­que se ol­vi­dó de po­ner­se el pa­ñal pa­ra adul­to­s, o por­que se dió cuen­ta de que a pe­sar de ga­nar la pri­me­ra vuel­ta, en la se­gun­da sa­ca­ba exac­ta­men­te los mis­mos vo­tos por­que to­dos los de­más no lo que­rían.

Así que Nés­tor ni si­quie­ra lle­gó por ga­nar elec­cio­nes, lle­gó por­que de los otros dos po­lí­ti­cos que po­dían lle­gar a ser can­di­da­to­s, uno (Duhal­de) se te­nía que ir por dos muer­tos y el otro (Me­ne­m) es­ta­ba que­ma­do.

¿Pe­ro có­mo pue­de ser eso? ¿Có­mo pue­de su­ce­der que los tres po­lí­ti­cos más po­pu­la­res a ni­vel na­cio­nal en ese mo­men­to fue­ran esos tres? ¡Uno que no se pue­de pre­sen­ta­r, uno que no lo vo­ta na­die, y uno que no lo co­no­ce na­die, y saca me­nos vo­tos que Me­me­m! Eso no es nor­mal.

Pe­ro cla­ro, pen­se­mo­s. ¿Por qué Duhal­de te­nía po­de­r, co­mo pa­ra po­der em­pu­jar a Kir­ch­ner co­mo can­di­da­to? Por la ace­fa­lía del 2001-2002. Acuér­den­se que a Duhal­de ese po­der le lle­ga cuan­do ya to­dos los de­más se ha­bían es­ca­pa­do de ese po­der por­que que­ma­ba, por­que na­die lo ban­ca­ba, por­que no les da­ba el cue­ro, por­que no te­nían las pe­lo­tas de ti­ta­nio que tie­ne el hi­jo de mil pu­tas de Duhal­de.

Me­nem lle­ga por­que hu­bo tal de­ba­cle que la gen­te (bue­no, di­ga­mos un cuar­to de la gen­te) de­cía, mier­da, el tur­co era un tre­me­bun­do hi­jo de pu­ta... ¡pe­ro es­to fue peo­r!

Sí, lle­ga­mos en el 2003 con esos 3 can­di­da­tos por cul­pa del 2001. ¿Qué pa­só en el 2001? El ca­ce­ro­la­zo. En el 2001 se hi­zo pú­bli­ca esa con­sig­na de "que se va­yan to­do­s". Y se fue­ron to­do­s. Bue­no, ca­si to­do­s. Que­dó Duhal­de, por­que el ti­po lo bau­ti­za­ron con te­fló­n, que­dó Me­ne­m, por­que no te­nía otra co­sa que ha­cer en la vi­da, y que­dó Kir­ch­ner por­que a Duhal­de se le fué de las ma­nos una re­pre­sió­n, mu­rie­ron dos pi­be­s, di­jo "ma sí, me voy a pes­car en el go­mó­n", y era lo que ha­bía a ma­no. ¿Se acuer­dan cuan­do de­cían que era "el chi­ro­li­ta de Duhal­de"? ¡Si has­ta lo ha­bían bau­ti­za­do Vi­ro­li­ta! ¡Cuán­ta pres­cien­cia po­lí­ti­ca, qué don de adi­vi­na­ció­n!

Pe­ro si en el 2001 no se hu­bie­ran ido to­do­s, al­guno hu­bie­ra que­da­do. Y si que­da­ba al­gu­no, Duhal­de no era pre­si­den­te, Kir­ch­ner no era can­di­da­to, Me­nem era ju­bi­la­do, y en las elec­cio­nes del 2003 quién sa­be qué hu­bie­ra pa­sa­do.

En­ton­ces ver aho­ra a la mis­ma gen­te salien­do de vuel­ta a la ca­lle, di­cien­do las mis­mas co­sas, en la mis­ma po­se, de­mo­ni­zan­do a la po­lí­ti­ca co­mo si ellos tu­vie­ran una idea de con qué reem­pla­zar­la, es gra­cio­so. Bah, gra­cio­so si no te jo­de que ha­ya tan­ta gen­te que no se da cuen­ta que es­tá ha­cien­do lo mis­mo, una y otra ve­z, es­pe­ran­do un re­sul­ta­do dis­tin­to. Si no te jo­de que salir a de­cir "que se va­yan to­do­s" y "que se aca­be la po­lí­ti­ca" es, li­te­ral­men­te, una lo­cu­ra.

"To­do lo que di­gas pa­re­ce más in­te­li­gen­te si se lo atri­buís a Eins­tei­n"

—Al­bert Eins­tein

Clementine (The Clockwork Century, #1.1)

Cover for Clementine (The Clockwork Century, #1.1)

Review:

Marked im­prove­ment over Bone­shak­er in some ar­eas, worse in some oth­er­s. Not much char­ac­ter de­vel­op­men­t, but a for­ward-­mov­ing plot.

One in­ter­est­ing bit is how it seems that Seat­tle can be a zom­bie-in­fest­ed hel­l, and be­cause it's far away, *no­body cares*. Heck, they most­ly don't know any­thing about it, they think it's de­sert­ed!

The part that is bet­ter than Bone­shak­er is that this has a plot where you can see how it makes sense that the char­ac­ters do what they do, where in Bone­shak­er... well, not quite. The part that is worse is that the char­ac­ters are not even one-di­men­sion­al, they are one-phrase. You can de­scribe each in one longish sen­tence.

"Fa­mous washed out south­ern spy la­dy badass, now work­ing for Pinker­ton but still loy­al to the south, on a mis­sion" and "Escaped slave, now air pi­rate, with a grudge against those who stole his air­ship and de­ter­mined to catch them, kill them and re­cov­er his prop­er­ty".

There, that's all they are.

[spoil­ers re­moved]

Here's a very big gun, there's your foot: PHP support in Nikola

I am a ve­ry big pro­po­nent of sta­tic si­te ge­ne­ra­tor­s. I would not ha­ve bo­the­red wri­ting Niko­la othe­rwi­se. But the­re is alwa­ys that fee­ling that ma­y­be the­re is so­me li­ttle thing whi­ch is hard to im­ple­men­t, like a con­tact for­m.

And le­t's fa­ce it, the ea­siest way to sol­ve so­me of tho­se things is by sti­cking a few li­nes of PHP in your HT­M­L.

So, if you rea­lly want to, you can do it. I thi­nk Niko­la (gi­thub mas­te­r) is the first sta­tic si­te ge­ne­ra­tor that su­ppor­ts php co­de. He­re's ho­w:

  1. Add php to your pa­ge_­com­pi­lers (be­cau­se I wi­ll ne­ver put it the­re by de­faul­t):

    post_compilers = {
        "rest": ('.txt', '.rst'),
        "markdown": ('.md', '.mdown', '.markdown'),
        "textile": ('.textile',),
        "txt2tags": ('.t2t',),
        "bbcode": ('.bb',),
        "wiki": ('.wiki',),
        "ipynb": ('.ipynb',),
        "html": ('.html', '.htm'),
        "php": ('.php'),
    }
  2. Add php pos­ts or pa­ges to your pos­t_­pa­ges:

    post_pages = (
        ("posts/*.txt", "posts", "post.tmpl", True),
        ("posts/*.php", "posts", "post.tmpl", True),
        ("stories/*.txt", "stories", "story.tmpl", False),
        ("stories/*.php", "stories", "story.tmpl", False),
    )
  3. Crea­te a php pos­t:

    nikola new_post posts/foo.php
  4. Put php in the­re:

    <!--
    .. date: 2013/04/16 09:57:09
    .. title: php test
    .. slug: foo
    -->
    
    <?php
    Print "Hello, World!";
    ?>

Build the si­te as usua­l, and you should end up wi­th a pa­ge wi­th PHP ex­ten­sio­n, that has that PHP in the "con­ten­t" area, so it wi­ll fo­llow your si­te's the­me. Of cour­se you can't do things like add HTTP hea­ders and su­ch, but he­y, read the ti­tle.

Nikola version 5.4.4 is out!

Ye­s, ver­sion 5.4.4 of Niko­la, my sta­tic si­te/­blog ge­ne­ra­tor is just pu­blis­hed at the usual pla­ce, in­clu­ding the fo­llo­wing im­pro­ve­men­ts:

Features

  • New Ja­­pa­­ne­­se tran­s­­la­­tio­­n.

  • Niko­­­la che­­ck exis­­ts wi­­th 1 if the­­re is an error

  • New HI­­DE_UN­­TRAN­S­­LA­TE­­D_­­PO­S­­TS op­­tion that en­­su­­res you do­­n't ha­­ve mixe­­d-­­lan­­gua­­ge pa­­ges (Is­­sue #373)

  • New the­­me "si­­te-­­pla­­ne­­toi­­d" for use wi­­th the pla­­ne­­toid plu­­gi­n.

  • New 're­­ti­­re­­d' tag for po­s­­ts that should no lo­n­­ger be in fee­­d­s.

Bugfixes

  • Added post da­­ta as a up­­to­­­da­­te che­­ck for mus­­ta­­che (Is­­sue #456)

  • Re­­build post pa­­ges when the po­s­­t's tran­s­­la­­tion list chan­­ges (Is­­sue #458)

  • Han­d­­le "-h" (Is­­sue #460)

  • Added co­­­rrect help for co­n­­so­­­le co­­­m­­mand (Is­­sue #460)

  • Es­­ca­­pe twi­­tte­r­­card da­­ta (Is­­sue #452)

  • Added mis­­sing "twi­­tte­r­­ca­r­­d" in sto­­­ry te­m­­pla­­te

  • Added su­­pport for pe­­r-­­lan­­gua­­ge tags (Is­­sue #450)

  • Fix wrong pa­­th spli­­tting (Is­­sue #434)

  • Re­­me­m­­ber lo­­­ca­­le even when se­­t_­­lo­­­ca­­le fai­­les (Is­­sue #446)

  • De­­co­­­de pa­­th ar­­gu­­ment in new_­­post (Is­­sue #442)

  • ta­sk_i­n­­dexes had mis­­sing co­n­­fig de­­pen­­den­­cies (Is­­sue #441)

  • Re­­mo­­­ved bo­­­gus li­nks to sli­­des asse­­ts that we­­re re­­mo­­­ved

  • Co­m­­press­ed fi­­les we­­re seen as unk­­no­­wn by "niko­­­la che­­ck"

  • lo­­­cal sea­r­­ch and mus­­ta­­che plu­­gins must be di­s­a­­bled by de­­fault (Is­­sue #437)

  • Avoid fai­­lu­­re if the­­re are no tags and USE_­G­­ZIP is ena­­bled (Is­­sue #439)

  • Fix as­­pect ra­­tio de­­te­c­­tion in Vi­­meo vi­­deos (Is­­sue #440)

  • Blo­­­gger im­­po­r­­ter was pa­s­­sing wrong op­­tions to "niko­­­la ini­­t" (Is­­sue #408)


Contents © 2000-2025 Roberto Alsina