Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Nikola Wordpress Importer Improvements

Thanks to ha­ving users tr­ying to ac­tua­lly im­port da­ta from wor­dpress, the wor­dpress im­por­ter plu­gin for Niko­la, my sta­tic si­te ge­ne­ra­tor got a cou­ple of new fea­tu­res.

  • It wi­­ll try to mai­n­­tain your URLs via re­­di­­re­c­­ts

    If your post was in /2012/1/2/a-­­po­s­­t/ and now it wi­­ll be in /po­s­­ts/a-­­po­s­­t.h­t­­ml it wi­­ll crea­­te a re­­di­­rect from the fo­r­­mer to the la­­tte­­r.

  • ur­­l_­­map for co­­­m­­ment mi­­gra­­tion

    It wi­­ll crea­­te a CSV fi­­le co­n­­tai­­ning the ol­­d,­­new fu­­ll URLs so that you can mo­­­ve your dis­­qus th­­rea­­ds to the ri­­ght pla­­ce­s.

Al­so, mas­ter wo­rks wi­th do­cu­tils 0.10 whi­ch bro­ke in the last re­lea­se.

For the­se rea­son­s, the­re wi­ll be a 5.0.1 re­lea­se to­day or to­mo­rro­w.

PS: if you want to see a few si­tes using Niko­la, now you can.

Rst2pdf 0.93 released

A bit ahead of sche­du­le, I just uploaded ver­sion 0.93 of rs­t2­pdf a tool to con­vert res­truc­tu­red text in­to PDF fi­le­s.

He­re are so­me of the chan­ges in this ver­sio­n:

  • Fixed Is­­sue 447: Dou­­ble-­­si­­ded alwa­­ys sta­r­­ts on the ri­­ght (By Rob Lu­­dwi­­ck)

    • Re­­­mo­­­­­ved --­­­fi­r­s­­­t-­­­pa­­­ge-e­­­ven as it was not us­ed an­­­ywhe­­­re.

    • Added --­­­fi­r­s­­­t-­­­pa­­­ge-o­­­n-­­­ri­­­ght

  • Fixed Is­­sue 464: su­­pport ali­g­n­­ment via :cla­ss: in ima­­ge di­­re­c­­ti­­ve­s.

  • Fixed Is­­sue 482: Li­­ne blo­­­cks wi­­th in­­den­ted pa­r­­ts get ex­­tra­­neous spa­­cing

  • Fixed Is­­sue 470: Su­­pport for :ta­r­­ge­­t: in fi­­gu­­res.

  • New sty­­le "i­­ma­­ge" to be applied to ima­­ge di­­re­c­­ti­­ve­s.

  • Fixed Is­­sue 485: Be­­­tter sty­­ling su­­pport for fi­­gu­­res/i­­ma­­ges (s­­pa­­ce­­Be­­­fo­­­re/A­­fte­­r)

  • Su­­pport rs­­t2­­pdf [inf [ou­­tf]] syn­­tax to be mo­­­re co­m­­pa­­ti­­ble wi­­th rs­­t2*

  • Im­­ple­­men­ted Is­­sue 389: New --s­­tri­­p-e­­le­­men­­t-wi­­th-­­cla­ss op­­tion

  • Fixed Is­­sue 474: Ce­­ll­S­­ty­­le1 is not the­­re in re­­po­r­­tlab 2.6

  • Re­­mo­­­ved de­­fault pa­­dding from De­­la­­ye­­dTa­­ble, whi­­ch looked bad on hea­­de­r­s/­­foote­r­s.

  • Im­­pro­­­ve­­men­­ts to the ma­­th di­­re­c­­ti­­ve (font co­­­lor and si­­ze)

  • Be­­­tter su­­pport for sty­­ling li­­te­­ra­l­s.

  • Fixed Is­­sue 454 (S­­pli­­tting fai­­lu­­re)

  • Re­­gress­ed Is­­sue 374 (so­­­me li­­te­­ral blo­­­cks get overspli­­t)

  • Swi­­tched from sv­­glib to sv­­g2rlg

  • Re­­mo­­­ved uni­­co­n­­ve­r­­tor su­­pport

  • Fixed Is­­sue 477: Si­nk footno­­­te se­­pa­­ra­­tor (pa­­tch by ase­r­­ma­­x)

  • Fixed Is­­sue 473: Su­­pport "co­­­de" di­­re­c­­ti­­ve like an alias of co­­­de-­­blo­­­ck.

  • Fixed Is­­sue 472: Im­­ple­­men­ted MyI­­ma­­ge._un­­Res­­tri­c­­tSi­­ze

  • Fixed Is­­sue 471: Res­­pect cla­ss in li­­ne­­blo­­­cks.

  • Fixed Is­­sue 455: New pi­s­a/­­xh­t­­m­­l2­­pdf has ve­­ry di­­ffe­­rent im­­po­r­­ts

  • Ma­­rked Is­­sue 358 as fixe­­d.

  • Fixed Is­­sue 410: alwa­­ys in­­clu­­de fu­­ll li­­nes in co­­­de-­­blo­­­cks (m­­mue­­ller pa­­tch)

Nikola is Python 2 1/2 ready

On my free ti­me, lun­ch hour­s, and su­ch I ha­ve been tweaking Niko­la, my sta­tic si­te ge­ne­ra­tor to make it py­thon 3 friend­l­y. We­ll, I so­mewha­t-ac­ci­den­ta­ll­y-­m­y-­do­g-­ma­de-­me-­do­-it may ha­ve co­m­mi­tted a lot of that in­to mas­te­r.

So, ri­ght no­w, things may be so­mewhat bro­ken on py­tho­n2 and so­mewhat wo­rking a li­ttle on py­tho­n3.

In any ca­se, feel free to try it ou­t, and let me know what to fix.

My Life as a Mad Scientist

My son fi­nis­hed kin­de­r, so they had a spe­cial ce­le­bra­tio­n, a gra­dua­tion ce­re­mony whe­re they ga­ve the ki­ds a me­da­l, a di­plo­ma, they sang a son­g, that kind of thin­g. But this school has a tra­di­tio­n. Pa­ren­ts alwa­ys gi­ve their ki­ds a sur­pri­se pre­sent at the end of kin­de­r.

In this ca­se, we did a pla­y. Wi­th al­most eve­ry pa­rent ac­tin­g, sin­gin­g, pla­ying mu­si­c, ju­gglin­g, and mo­re. My ro­le? Mad scien­tis­t. I had 4 li­nes, I fun­bled one, but he­y, you can't deny I got the look nai­led, man.

http://www.habiaunavezfotosyvideos.com/girasoles2012/Girasoles2012/Egresados_2012_files/Media/IMG_1103/IMG_1103.jpg?disposition=download

Ye­s, tho­se are bla­ck­li­ght li­gh­t-up eye­gla­s­ses. Yes they are as an­no­ying to eve­r­yo­ne el­se as you would ima­gi­ne.

Easy Solutions to Easy Problems

A few da­ys ago my son went to a ki­d's bar­bershop whe­re they do things like play Scoob­y-­Doo in a Pla­ys­ta­tion whi­le they get a hair­cu­t. He liked it so mu­ch that he de­ci­ded to take ma­tters in his own han­d­s. Wi­th scis­sor­s.

https://pbs.twimg.com/media/A-LTmydCMAAc8e1.jpg:large

Da­dd­y, I may ha­ve cut so­me hai­r.

But you know wha­t? Ea­sy pro­ble­ms ha­ve ea­sy so­lu­tion­s. And I ha­ve a hair cli­ppe­r.

https://pbs.twimg.com/media/A-LTWWlCMAAPuTx.jpg:large

So­n, I may ha­ve cut so­me hair too.


Contents © 2000-2023 Roberto Alsina