Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

El escritorio de dos cables

https://pbs.twimg.com/media/BNK0CtLCMAAP2L1.jpg:large

To­da­vía no es lin­do, pe­ro es fun­cio­nal­men­te com­ple­to.

Des­de ha­ce mu­cho me mo­les­ta la canti­dad de co­sas que se en­chu­fan a la no­te­book cuan­do la quie­ro usar en mi es­cri­to­rio. Des­pués de pen­sar­lo un po­co, con­se­guí re­du­cir­lo a dos ca­bles pa­ra en­chu­far to­das las co­sas.

¿Có­mo es­tá he­cho?

Cable 1: USB Hub

Sí, ne­ce­si­tás un hub gran­de­ci­to. Yo ten­go un Hub USB Be­lkin de 7 puer­tos con po­ten­cia, por­que la Zen­book tie­ne so­lo dos puer­tos US­B.

Cable 2: Power

Ten­go dos car­ga­do­res, uno per­ma­nen­te­men­te en el es­cri­to­rio pa­ra po­der te­ner el ca­ble pa­sa­do por atrás del es­cri­to­rio, y no pa­sar­lo por ade­lan­te, y el otro en mi mo­chi­la, pa­ra no te­ner que me­ter­me aba­jo del es­cri­to­rio a (des)en­chu­far­lo.

Audio

Par­lan­tes 2.1. Tie­nen un con­trol fí­si­co de vo­lu­men, que es­tá bue­no, y sue­nan fuer­te­ci­to, aun­que sé que no son la gran co­sa, a mí me gus­tan.

Pa­ra no en­chu­far­los a la no­te­book, es­tán co­nec­ta­dos a un adap­ta­dor de au­dio blue­tooth (el don­gle blan­co en el hu­b) que com­pré ba­ra­to en dx.­com

Tam­bién se pue­de ver un hea­d­set blue­tooth (en la fo­to, car­gan­do) que uso pa­ra lla­ma­das te­le­fó­ni­ca­s, han­gou­ts, etc sin que­dar ata­do a la com­pu.

Teclado/Mouse

El te­cla­do­/­tra­ck­pad com­bi­na­do que se ve en la fo­to, mar­ca Lo­gi­te­ch, fun­cio­na con un don­gle chi­qui­to que es­tá en el hu­b, así que cuan­do me co­nec­to "it just wo­rks", no hay que ha­cer pai­ring ni na­da.

No es me­jor que el de la Zen­book, pe­ro:

  • Te­­ner el pad a la de­­re­­cha si­g­­ni­­fi­­ca que no lo ro­­­zo cuan­­do ti­­peo.

  • Te­­ne­r­­lo en el es­­tan­­te con la Zen­­book en la me­­sa es me­­jor er­­go­­­nó­­­mi­­ca­­men­­te.

Red

Es­toy usan­do ether­ne­t. Hay un adap­ta­dor (que vino con la Zen­book) en el hu­b. Eso me per­mi­te usar el puer­to prio­ri­ta­rio de mi rou­te­r, y no pier­do el mal­di­to adap­ta­do­r.

Carga de dispositivos

Pue­do car­gar has­ta 4 dis­po­si­ti­vo­s. El hea­d­set tie­ne un ca­ble ra­ro, así que es­tá en­chu­fa­do al hu­b. Cuan­do no lo car­go, cuel­ga atrás de la me­sa.

Los ca­bles ro­jos ex­ten­si­ble­s, los com­pré en dx.­com (ba­ra­ti­to­s) y son bue­ní­si­mos.

  • Se re­­tra­en, así que cuan­­do no los uso no se en­­rie­­dan.

  • Son mi­­ni y mi­­cro US­­B, po­r­­que tie­­nen am­­bos co­­­ne­c­­to­­­res. Ta­m­­bién eran 30-­­pin pa­­ra iPho­­­ne vie­­jo, pe­­ro no me se­r­­vía y les sa­­qué el co­­­ne­c­­to­­­r.

Da­do que el hub tie­ne po­ten­cia, pue­do car­gar to­do aún cuan­do no es­tá la no­te­book.

Random

To­da­vía ten­go el puer­to USB de­re­cho li­bre, así que pue­do usar­lo pa­ra co­sas al aza­r, co­mo ese mi­cros­co­pio USB do­ra­do de 200x que se ve en la fo­to, o mi bo­la de plas­ma US­B.

Conclusión

Na­da muy ra­ro, pe­ro creo que es una con­fi­gu­ra­ción muy lim­pia, don­de pue­do co­nec­tar to­do en 10 se­gun­dos y con­ver­tir mi no­te­book en un "desk­to­p" con un mí­ni­mo de mo­les­tia.

MinCSS is amazing

I had this is­sue open in the bug tra­cker for Niko­la (my sta­tic si­te ge­ne­ra­to­r) for a long ti­me: "A­dd min­css su­ppor­t".

We­ll, no, it does­n't ha­ve it ye­t, but I did so­me re­sear­ch on whe­ther it would be wor­th addin­g. And bo­y, min­css im­press­ed the he­ck out of me.

You see, Niko­la's the­mes tend to use una­dul­te­red boots­tra­p, whi­ch means they ca­rry a lar­ge num­ber of things that are not us­ed in their CSS. Be­si­des, it uses se­ve­ral sty­les­hee­ts from do­cu­til­s, pyg­men­ts, and mo­re.

What min­css does is exa­mi­ne your HT­ML and your CSS, and re­mo­ve all the unu­s­ed CSS. So, I wro­te a script that exa­mi­nes the Niko­la ou­tput and ove­rw­ri­tes the CSS fi­les wi­th the mi­ni­mal things that are ac­tua­lly nee­ded the­re.

And the re­sul­t?

He­re is the be­fo­re/a­fter for ea­ch CSS fi­le in Niko­la's de­mo si­te:

bootstrap-responsive.min.css  16849  3251
bootstrap.min.css            106059 14737
code.css                       3670  2114
colorbox.css                   6457   774
rst.css                        6559  2581
theme.css                      1287  1061
-----------------------------------------
                             140881 24518

But wai­t, Niko­la su­ppor­ts bund­ling all tho­se fi­les in­to a sin­gle lar­ge CSS fi­le to avoid ne­two­rk re­ques­ts (u­sing we­ba­sse­ts). Does it wo­rk in that ca­se too?

We­ll ye­s:

all-nocdn.css                167457 29496

But that is not all. The min­css fi­les are not mi­ni­fie­d. Pa­s­sing all-­no­cd­n.­css th­rou­gh Yui-­com­pres­sor sh­ri­nks it fur­ther to 20599 by­tes. Whi­ch, gzi­ppe­d, is a pal­try 4801 by­tes. That means the com­ple­te sty­ling of the who­le si­te is a sin­gle CSS fi­le le­ss than 5KB in si­ze.

Tha­t, is im­pres­si­ve.

Red Country

Cover for Red Country

Review:

Good end for the pen­ta­l­o­gy.

Deploying Django Into My Cheap VPS

I am pre­pa­ring to open my cheap si­te-an­d-­blo­g-hos­ting ser­vi­ce to the pu­blic at so­me poin­t, so I nee­ded to do so­me groun­dwo­rk in­to de­plo­y­men­t. Con­si­der that the host that wi­ll run it wi­ll ha­ve ve­ry li­mited re­sour­ce­s, so I nee­ded to find lean and cheap so­lu­tions when po­s­si­ble, but at the sa­me ti­me, I want to achie­ve rea­so­na­ble re­lia­bi­li­ty and ea­se of de­plo­y­men­t.

Sin­ce this is a tes­ting ser­ve­r, I want it to ha­ve git mas­ter de­plo­ye­d. I do­n't want au­to­ma­tic de­plo­y­men­t, but I want to de­ploy often, mea­ning se­ve­ral ti­mes dai­l­y.

I pre­fe­rred sim­ple tools ins­tead of com­plex tool­s, li­gh­twe­ight tools wi­th just enou­gh fea­tu­res ins­tead of hea­vie­r, mo­re fu­ll­y-­fea­tu­red tool­s. Your choi­ces on ea­ch step could and pro­ba­bly should be di­ffe­rent than mi­ne, de­pen­ding on your si­tua­tio­n, re­qui­re­men­ts and per­so­nal pre­fe­ren­ce­s.

So, he­re's my no­tes from how it's do­ne cu­rren­tl­y. This is not meant as a HO­W­TO, just a des­crip­tion of what see­ms to be wo­rking we­ll enou­gh so fa­r.

Leer más…


Contents © 2000-2024 Roberto Alsina