Skip to main content

Ralsina.Me — Roberto Alsina's website

Walking or Running in The Rain

I al­ways am amazed by peo­ple sug­gest­ing that walk­ing in the rain keeps you dry­er than run­ning. Just saw an an­swer to this. Check it out, it's nice:

I have al­so seen it de­bunked ex­per­i­men­tal­ly, by Myth­Buster­s. But let's try a dif­fer­ent ap­proach: in­tu­itive math. In­tu­itive math is tricky be­cause it usu­al­ly is wrong, but hey, it's fun.

Ap­par­ent­ly, we all agree that how wet you get cor­re­lates to your speed. Oth­er­wise, the ques­tion is point­less be­cause the an­swer is "walk or run, but take an um­brel­la", while true, is cheat­ing, right?

So, for those slow­er-is-­bet­ter pro­po­nents: go and walk very, very, very slow­ly. You may no­tice that you end com­plete­ly soaked be­fore you fin­ish walk­ing. If you did­n't, you are still walk­ing too fast.

On the oth­er hand, if you were to go at 1000000 km/h we all agree you would on­ly get some drops in your frontside, right? Which would not soak you. Right? And most im­por­tant­ly, is con­stant re­gard­less of your speed, be­cause it's just the av­er­age amount of wa­ter con­tained in a man-shaped prism from point A to point B, and you get that wa­ter in your front if you go slow any­way.

As­sum­ing the speed/­soak­i­ness curve is rough­ly monotonous, it's clear that the max­i­mum soak­i­ness is when you go slow­est.

If it's not monotonous, then the ques­tion is rough­ly unan­swer­able, since it would in­volve there is an op­ti­mal speed and it's worse to go ei­ther faster or slow­er than that, which means the an­swer is some­thing like "jog" which is not what you wan­t.

So, go fast, go dry.

Nikola Wordpress Importer Improvements

Thanks to hav­ing users try­ing to ac­tu­al­ly im­port da­ta from word­press, the word­press im­porter plug­in for Niko­la, my stat­ic site gen­er­a­tor got a cou­ple of new fea­tures.

  • It will try to main­­tain your URLs via redi­rects

    If your post was in /2012/1/2/a-­­post/ and now it will be in /post­s/a-­­post.html it will cre­ate a re­di­rect from the for­mer to the lat­ter.

  • url_map for com­­ment mi­­gra­­tion

    It will cre­ate a CSV file con­­tain­ing the old,new full URLs so that you can move your dis­­qus threads to the right places.

Al­so, mas­ter works with do­cu­tils 0.10 which broke in the last re­lease.

For these rea­son­s, there will be a 5.0.1 re­lease to­day or to­mor­row.

PS: if you want to see a few sites us­ing Niko­la, now you can.

Rst2pdf 0.93 released

A bit ahead of sched­ule, I just up­load­ed ver­sion 0.93 of rst2pdf a tool to con­vert re­struc­tured text in­to PDF files.

Here are some of the changes in this ver­sion:

  • Fixed Is­­sue 447: Dou­ble-sid­ed al­ways starts on the right (By Rob Lud­wick)

    • Re­­­moved --­­­first-­­­page-even as it was not used any­where.

    • Added --­­­first-­­­page-on-right

  • Fixed Is­­sue 464: sup­­port align­­ment via :class: in im­age di­rec­­tives.

  • Fixed Is­­sue 482: Line blocks with in­­­den­t­ed parts get ex­­tra­ne­ous spac­ing

  • Fixed Is­­sue 470: Sup­­port for :tar­get: in fig­ures.

  • New style "im­age" to be ap­­plied to im­age di­rec­­tives.

  • Fixed Is­­sue 485: Bet­ter styling sup­­port for fig­ures/im­ages (s­­pace­Be­­fore/After)

  • Sup­­port rst2pdf [inf [out­f]] syn­­tax to be more com­­pat­i­ble with rst2*

  • Im­­ple­­men­t­ed Is­­sue 389: New --strip-ele­­men­t-with­­-­­class op­­tion

  • Fixed Is­­sue 474: Cel­l­Style1 is not there in re­­port­lab 2.6

  • Re­­moved de­­fault pad­d­ing from De­layedTable, which looked bad on head­­er­s/­­foot­er­s.

  • Im­prove­­ments to the math di­rec­­tive (font col­or and size)

  • Bet­ter sup­­port for styling lit­er­al­s.

  • Fixed Is­­sue 454 (S­­plit­t­ing fail­ure)

  • Re­­gressed Is­­sue 374 (some lit­er­al blocks get over­s­plit)

  • Switched from svglib to svg2rlg

  • Re­­moved uni­­con­ver­­tor sup­­port

  • Fixed Is­­sue 477: Sink foot­note sep­a­ra­­tor (patch by aser­­max)

  • Fixed Is­­sue 473: Sup­­port "code" di­rec­­tive like an alias of code-block.

  • Fixed Is­­sue 472: Im­­ple­­men­t­ed My­Im­age._un­Re­stric­t­­Size

  • Fixed Is­­sue 471: Re­spect class in lineblock­­s.

  • Fixed Is­­sue 455: New pisa/x­ht­m­l2pdf has very dif­fer­­ent im­­ports

  • Marked Is­­sue 358 as fixed.

  • Fixed Is­­sue 410: al­ways in­­­clude full lines in code-blocks (m­­mueller patch)

Nikola is Python 2 1/2 ready

On my free time, lunch hours, and such I have been tweak­ing Niko­la, my stat­ic site gen­er­a­tor to make it python 3 friend­ly. Well, I some­what-ac­ci­den­tal­ly-my-­dog-­made-me-­do-it may have com­mit­ted a lot of that in­to mas­ter.

So, right now, things may be some­what bro­ken on python2 and some­what work­ing a lit­tle on python3.

In any case, feel free to try it out, and let me know what to fix.

My Life as a Mad Scientist

My son fin­ished kinder, so they had a spe­cial cel­e­bra­tion, a grad­u­a­tion cer­e­mo­ny where they gave the kids a medal, a diplo­ma, they sang a song, that kind of thing. But this school has a tra­di­tion. Par­ents al­ways give their kids a sur­prise present at the end of kinder.

In this case, we did a play. With al­most ev­ery par­ent act­ing, singing, play­ing mu­sic, jug­gling, and more. My role? Mad sci­en­tist. I had 4 lines, I fun­bled one, but hey, you can't de­ny I got the look nailed, man.

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

Yes, those are black­light light-up eye­glass­es. Yes they are as an­noy­ing to ev­ery­one else as you would imag­ine.


Contents © 2000-2020 Roberto Alsina