Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Some New Stuff in Nikola

I did so­me qui­ck wo­rk on Niko­la (a sta­tic web­si­te/­blog ge­ne­ra­to­r) la­te­l­y, after a long ti­me, and he­re's what it wa­s:

Multilingual Sitemaps

So, site­maps are us­ed by Google to in­dex your si­te. It turns out that they can des­cri­be when the­re are se­ts of pa­ges that are trans­la­tions of ea­ch othe­r. So the next re­lea­se wi­ll do that (Is­sue #1610)

Matplotlib Plots

Ma­tplo­tlib co­mes wi­th a sphi­nx ex­ten­sion to do plo­ts So I went and im­ple­men­ted it, this was Is­sue #1242 and it's a plu­gin ca­lled py­plo­ts, whi­ch wi­ll be soon at http://­plu­gin­s.­ge­tniko­la.­co­m#­p­y­plo­ts

I hated the ori­gi­nal co­de. It felt con­vo­lute­d, and just weird (i­t's pro­ba­bly just me) so I wro­te it from scra­tch and it has so­me mi­nor di­ffe­ren­ce­s, but it's fair­ly com­pa­ti­ble.

Classy Images

The do­cu­tils ima­ge di­rec­ti­ve, for whate­ver rea­so­n, does­n't su­pport a cla­ss op­tio­n, so you need to do things like this:

.. class:: foo

.. image:: blah.png

Whi­ch is ... not pre­tty. So I did a ha­cky plu­gin that mo­nke­y­pa­tches the ima­ge di­rec­ti­ve to add that op­tio­n. The plu­gin is at http://­plu­gin­s.­ge­tniko­la.­co­m/#­cla­ss­y-i­ma­ges and this fixes Is­sue 1538

Mediawiki Markup

dj­b­cla­rk pointed out that the­re is a li­bra­ry to par­se Me­diaWiki from py­thon ca­lled sm­c.­mw so I im­ple­men­ted a plu­gin to use it, so now you can use Me­diaWiki ma­rku­p. The plu­gin is at http://­plu­gin­s.­ge­tniko­la.­co­m/#­me­diawiki

Removed Default Swatch from Bootswatch

This was Is­sue #1656 and now you ha­ve to spe­ci­fy the swa­tch. This is a usa­bi­li­ty fix, be­cau­se de­faul­ts ma­tter.

Played with KaTeX

Niko­la su­ppor­ts ma­th using Ma­th­Ja­x. Ma­th­Jax has so­me in­te­res­ting qua­li­tie­s:

  • It's 160MB of co­­­de or so

  • It's not pra­c­­ti­­cal to use wi­­thout a CDN

  • It's not pra­c­­ti­­cal to use we­­ba­sset bun­d­­les wi­­th it

Then, klin­gtnet men­tio­ned so­me­thing ca­lled Ka­TeX I had ne­ver heard abou­t. I did a qui­ck ha­cky con­ver­sion to see how it wo­rks. Not do­ne ye­t, to­ta­lly ex­pe­ri­men­ta­l, but it may be po­s­si­ble to bund­le it, and ma­y­be even ha­ve it tur­ned on by de­faul­t, re­mo­ving the need for the ma­th­jax la­bel whi­ch is aw­ful usa­bi­li­ty-wi­se.

So­me of the­se things are mer­ge­d, so­me are sti­ll PR­s, so­me are in co­re, so­me are plu­gin­s. They we­re all pre­tty fun to do :-)

Full Fathom Five (Craft Sequence, #3)

Review:

I am start­ing to wish the mag­ic sys­tem in these books had been thought a lit­tle more. It seems to be a lit­tle too con­ve­nien­t.

In any case:

* Good to see char­ac­ters from the pre­vi­ous book­s! Maybe it's all com­ing to­geth­er in the next one?
* Kai is a very in­ter­est­ing lead
* The idea of crim­i­nal re­ha­bil­i­ta­tion in this book is scary as hell

Two Serpents Rise (Craft Sequence, #2)

Review:

So, there's this guy liv­ing in a large city, south by the west coast, you see, and he's in­volved in some strange thing about wa­ter right­s.

Be­cause he's stub­born and has some in­ves­ti­gat­ing tal­en­t, he ends up way over his head, in the com­pa­ny of big fish, along with this mis­tery gal who may not be what she ap­pears to be.

So, like Chi­na­town (the movie) ex­cept LA is pop­u­lat­ed by mad aztec­s, and cen­tral amer­i­ca was de­stroyed a while ago. What's not to like?

El Sutil Arte de Citar

Los pe­rio­dis­tas te­le­vi­si­vos sue­len te­ner un cier­to com­ple­jo de in­fe­rio­ri­dad con los que me­dios im­pre­so­s. Por eso so­lés ver gen­te que con­du­ce exi­to­sos ci­clos po­lí­ti­cos re­cor­dar que ellos el pe­rio­dis­mo lo ma­ma­ron en la re­dac­ción del se­ma­na­rio "El Man­gru­llo" de Ve­na­do Tuer­to, y que eso de ga­nar mu­cha gui­ta apa­re­cien­do en te­le lo ha­cen por­que no les que­da otra.

De ahí que cuan­do (po­né­le) Ma­jul ha­ce una no­ta y la le­van­ta un me­dio im­pre­so, siem­pre la re­twi­tea. Por ejem­plo, acá mues­tra, or­gu­llo­so, que su no­ta es ci­ta­da por el Cro­nis­ta Co­mer­cia­l:

Aho­ra bien, si uno va y lee la no­ta... re­sul­ta que di­ce exac­ta­men­te lo con­tra­rio que el tí­tu­lo.

Ci­to la no­ta:

"Con Ra­bba­ni no te­ne­mos nin­gún in­ter­cam­bio de di­ne­ro­."

Sí ad­mi­te re­ci­bir di­ne­ro de Irán:

Mu­chas ve­ces las uni­ver­si­da­des de Tehe­rán con­tri­buían con no­so­tros y le de­cía­mos "ne­ce­si­ta­mos tan­to pa­ra ha­cer el tra­ba­jo re­li­gio­so"

Sin em­bar­go, Irán no es Ra­bba­ni, y Ra­bba­ni no es Irán. No ten­go idea de si Kha­lil re­ci­be di­ne­ro de Ra­bba­ni, y no es de lo que es­toy ha­blan­do en es­te mo­men­to. Lo que sí veo es que no lo di­jo. Y que ese tí­tu­lo es men­ti­ra, y el tweet es men­ti­ra, y Ma­jul re­pi­te una men­ti­ra.

Y lo ha­ce a sa­bien­da­s.

Co­mo di­ría Luis Ma­ju­l... ¿Que sen­tís, Luis Ma­ju­l?


Contents © 2000-2020 Roberto Alsina