Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Publicaciones sobre programming (publicaciones antiguas, página 63)

Fotos al azar de mi teléfono

La ca­li­dad es ma­la por­que mi te­lé­fono es una ba­su­ra, pe­ro creo que de­be ha­ber al­gu­na co­sa que no ha­yas vis­to an­tes.

Así que acá es­tá co­sas ra­ras que hi­cie­ron que sa­que mi te­lé­fono y to­me una fo­to, con ex­pli­ca­cio­nes.

Titanic

Lo ví en Mar del Pla­ta, es el li­bro 3D más im­pre­sio­nan­te que vi nun­ca.

Ce­rra­do:

Imagen033

Y abier­to:

Imagen032

I'm Mark Shuttleworth!

Imagen024 Imagen025

En un even­to de so­ftwa­re li­bre en Bue­nos Ai­res se su­po­nía que lo ce­rra­ba el due­ño de Ca­no­ni­ca­l, pe­ro can­ce­ló a úl­ti­mo mo­men­to. En­ton­ces Ma­d­dog Ha­ll se ofre­ció pa­ra reem­pla­zar­lo­... en per­so­na­je.

Al­guien en­contró un muy muy im­pre­sio­nan­te (y/o ho­rri­ble) tra­je de as­tro­nau­ta, y Ma­d­dog dió la con­fe­ren­cia al gri­to de "I'm Ma­rk Shu­ttlewor­th! I'm an as­tro­nau­t!" y di­cien­do que ve­nía del fu­tu­ro pa­ra dis­cu­tir unos sli­des que aca­ba­ba de en­con­trar de un ti­po des­co­no­ci­do lla­ma­do Ma­d­do­g. Muy gra­cio­so.

Python vs. Ruby

Mis­mo even­to:

Imagen023 Imagen022

Ju­ro que las sa­qué con me­nos de 10 se­gun­dos de di­fe­ren­cia.

Manteca

Imagen018 Imagen026

En el Dis­co de San Isi­dro. Sí, com­prar el pan gran­de de man­te­ca es más ba­ra­to por ki­lo. Pe­ro acá uno de 200g cues­ta ca­si lo mis­mo que uno de 100­g! Eso es ro­bar­le gui­ta a los que no co­men mu­cha man­te­ca. Yo no co­rro ries­go.

Descuento por Visa

Imagen045

Es­to era un ne­go­cio en Ave­ni­da Ale­m, Me pa­re­ció ra­ro ver un des­cuen­to y anun­ciar que vi­sa es­ta­ba sus­pen­di­da en un so­lo car­te­l. Más ra­ro me pa­re­ció la le­tra chi­ca "pre­sen­tan­do su vi­sa"... no es­ta­ba sus­pen­di­da?

Y ahí vi el res­to:

Imagen046

Ten­go unas cuan­tas más pa­ra otra oca­sión ;-)

What's wrong with this dialog?

I am writ­ing a book. And I am writ­ing a chap­ter about UI de­sign. And why not use the In­ter­net?

So, go ahead and tell me all that's wrong with this di­alog!

radio-14

For ex­am­ple, I don't like the dead space at the bot­tom-left, the dif­fer­en­t-­size of the "Close" but­ton, and the mis­align­ment of the icon­s.

Are those valid con­cern­s? Are there many more? Would you do it com­plete­ly dif­fer­en­t?

The book is open source, and avail­able at http://no­muerde.net­man­ager­s.­com.ar (In span­ish, sor­ry!)

Posteo poco porque escribo mucho.

¿Qué li­bro? ¡Un li­bro de py­tho­n, por su­pues­to! Se lla­ma "P­y­thon no muer­de".

Aho­ra bien, soy el pri­me­ro en de­cir­lo: no soy un gran pro­gra­ma­do­r. Y no soy un gran es­cri­tor tam­po­co. Pe­ro ten­go mu­cho pa­ra de­ci­r. Si con­si­go or­ga­ni­zar­lo, a ve­ces has­ta tie­ne sen­ti­do cuan­do lo di­go.

En­ton­ce­s, le es­toy dan­do una opor­tu­ni­dad a es­to de es­cri­bi­r-­co­sas-­lar­ga­s.

Por su­pues­to, co­mo soy un nerd open sour­ce, no pue­do ha­cer na­da a la ma­ne­ra tra­di­cio­na­l, así que el li­bro es li­bre ba­jo Crea­ti­ve Co­m­mon­s. Y co­mo soy un pro­gra­ma­do­r, ar­mé una (si se me per­mi­te la in­mo­des­tia) es­truc­tu­ra de­cen­te pa­ra ma­ne­jar mi es­cri­tu­ra.

  1. Es­­cri­­bo en res­­tru­c­­tu­­red tex­­t.

  2. Uso rs­­t2­­pdf pa­­ra crear PDFs de los ca­­pí­­tu­­los in­­di­­vi­­dua­­les y de to­­­do el li­­bro.

  3. Uso res­­t2web pa­­ra crear el si­­to.

  4. Uso me­r­­cu­­rual (en google­­co­­­de) pa­­ra ma­­ne­­jar co­n­­trol de re­­vi­­sio­­­nes e his­­to­­­ria­­l.

  5. Uso make pa­­ra co­n­­tro­­­lar la re­­con­s­­tru­c­­ción de ca­­pí­­tu­­los cuan­­do hay ca­m­­bios en el có­­­di­­go, se ac­­tua­­li­­za una ima­­gem etc.

Por su­pues­to que es un po­co más com­pli­ca­do que eso, los PDFs es­tán en el si­tio, que se su­be via rs­yn­c, to­do se dis­pa­ra con los push de hg, y así si­gue.

En cual­quier ca­so, tal vez pos­tee un par de ve­ces acer­ca de co­mo fun­cio­na to­da es­ta co­sa, acá es­tá la sali­da de la ma­qui­na­ria:

http://­no­muer­de.­ne­t­ma­na­ger­s.­co­m.ar

The day we saw the dinosaur (an Ada Lovelace Day story)

To­day, March 24th is Ada Lovelace day, a day of blog­ging to cel­e­brate the achieve­ments of wom­en in tech­nol­o­gy and sci­ence.. I am tak­ing the lib­er­ty to tag this as python so it ap­pears in the right plan­et­s, but that's just to pro­mote Ada Lovelace day. Sor­ry 'bout that.

I will write about the on­ly per­son who ev­er taught me pro­gram­ming, Clau­di­a. I was young, so the earth was still luke­war­m, the day we saw the di­nosaur.

I was just a green sopho­more in the School of Chem­i­cal En­gi­neer­ing where, para­dox­i­cal­ly I would nev­er take a chem­istry class, be­ing an ap­plied math stu­dent and all that, and at the time "per­son­al com­put­er­s" were a nov­el­ty, a toy of the up­per mid­dle class.

We had spent the first two months of the se­mes­ter learn­ing how to pro­gram the ob­vi­ous way: writ­ing as­sem­bler for a fic­tion­al ma­chine on pa­per by hand, when Clau­dia broke the news, we were go­ing to see a re­al com­put­er.

No, not a PC, not even an XT, but a re­al com­put­er, the one re­al com­put­er in all the uni­ver­si­ty, and you could hear the type switch­ing to bold as she spoke about it. Sad­ly it was not as re­al as the one at the re­search fa­cil­i­ty (A Mini­VAX!) but it was a re­al enough PDP.

We would not be al­lowed to ac­tu­al­ly use it un­til the fol­low­ing year, but ... well, it was still some­thing spe­cial.

I had been programming for years, even for a year before I saw my first (seriosuly not real) computer, I had followed BASIC programs in my head for days, imagining the space invaders float on the screen of my mind, and stepped into writing machine code inside REM statements in my Timex Sinclair 1000 onto the luxury of a C64, but never noone had taught me anything.

Our small class (maybe 10 stu­dents) spent end­less hours do­ing things like tra­verse a ma­trix, first by rows, thn by column­s, then in a spi­ral from the top-left, writ­ing pro­grams that fol­lowed our end­less source of al­go­rithm­s, the nu­mer­i­cal so­lu­tions guide.

First as­sem­bler, then For­tran, we learned.

She was my Mr. Miyag­i, I was a het­ero­sex­u­al Ralph Mac­chio, and I fig­ured out the most im­por­tant thing about pro­gram­ming: I was aw­ful at it.

Over the next 20 years that sit­u­a­tion has been slow­ly im­prov­ing, but I nev­er again had some­one teach me pro­gram­ming. Clau­dia had al­ready taught me ev­ery­thing I need­ed to know, that code can al­ways im­prove, that there's more than one way to skin a cat.

That the di­nosaur was re­al and that some day soon my com­put­er would be faster and nicer than the di­nosaur was then, and that pro­gram­ming was cool, and that if I could find a way to draw a poly­no­mi­al graph hor­i­zon­tal­ly on a print­er with­out ev­er hav­ing the whole graph in mem­o­ry (it did­n't fit), those fu­ture com­put­ers would do awe­some things, and that I was one of the many who would help bring that to re­al­i­ty.

That talk­ing about code was fun in it­self, that you could make a mod­est liv­ing and be hap­py about it, that you could in any case make jig­saw puz­zles in your spare time and keep on teach­ing or what­ev­er.

And lat­er the di­nosaur's bones were scav­enged in­to a line of racks hold­ing router­s, and its glass ter­mi­nals are de­stroyed, and the gold in its teeth was stolen and the rare bus ca­bles sol­d, and its cir­cuits scrapped, but I saw the di­nosaur alive, and Clau­dia taught me how to make it jump, and for that, I will al­ways be grate­ful.

Grok 1.0 Web Development

Ha­bién­do­lo leí­do (¡­per­dón por la de­mo­ra!) es­tas son mis con­clu­sio­nes:

Es­tá bien es­cri­to. La ex­po­si­ción es cla­ra y el au­tor co­no­ce el te­ma y lo que quie­re de­ci­r.

Me im­pre­sio­nó lo di­rec­to del en­fo­que de Grok cuan­do lo com­pa­ro con lo que va­ga­men­te re­cuer­do de an­ti­guas ex­pe­rien­cias con Zo­pe. La idea de un fra­mewo­rk ági­l, mo­derno y sim­ple so­bre la re­co­no­ci­da­men­te po­ten­te ba­se de Zo­pe tie­ne mu­cho mé­ri­to.

Por otro la­do, no es­toy real­men­te con­ven­ci­do de de­jar Djan­go pa­ra los pe­que­ños pro­yec­tos web que ten­go en car­pe­ta, pe­ro si es­tás bus­can­do un fra­mewo­rk, y no te­nés mu­cho in­ver­ti­do en otro, va­le la pe­na con­si­de­rar Gro­k.

Y, si que­rés apren­der Gro­k, es­te li­bro te sir­ve.

Se pue­de leer un ca­pí­tu­lo de mues­tra u ob­te­ner más in­for­ma­ción so­bre el li­bro


Contents © 2000-2020 Roberto Alsina