Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Hardcore Finger Counting

Ear­lier to­da­y, @el­no­mo­te­ta men­tio­ned in twi­tter that if you count wi­th your fin­gers you are in trou­ble, be­cau­se at least you ha­ve over­flo­ws.

That got me thi­nkin­g. Not about whe­ther the­re is an over­flo­w, sin­ce the­re is alwa­ys an over­flo­w, even if you count by elec­tron quan­tum sta­tes using the who­le uni­ver­se, be­cau­se in­fi­ni­ty, du­de, but about how hi­gh you can fin­ge­r-­coun­t.

Su­re, the naï­ve an­swer is ten, but tha­t's tri­vial to im­pro­ve. For exam­ple, he­re is a ve­ry sim­ple sys­tem to count to 99 but even that is ve­ry sim­plis­ti­c.

If you are a computer nerd, you may think you are clever by now saying \(2^{10}-1\) but really, how unimaginative is that? It's unimaginative enough that it has its own wikipedia page.

One thing I do (and I re­cog­ni­ze it as one of my most an­no­ying trai­ts) is to con­si­der unor­tho­dox an­swers to ques­tion­s. Be­cau­se often they wi­ll show that the one asking the ques­tion has on­ly a ve­ry va­gue idea of what he is askin­g, and ex­po­ses a ton of unex­press­ed as­sump­tion­s.

So, computer geek, \(2^{10}-1\), that is 1023. Congratulations, you have done much worse than the Venerable Bede, who in 710AD described in De Computo vel Loguela per Gestum Digitorum a system to express numbers up to 9999 using both hands.

So, le­t's thi­nk about the unex­press­ed as­sump­tions he­re.

Is a finger a bit?

He­ll no. A fin­ger is a fin­ge­r. Su­re, it can ex­press a bi­t, but it can al­so (in so­me ca­ses) ex­press mo­re. For exam­ple, I ha­ve 6 fin­gers I can bend in­de­pen­den­tly in mo­re than one pla­ce (thum­b, in­dex, pi­nk­y).

So, I could use those to have a ternary digit (if you pardon the pun), and count to \(3^6 2^4-1\) (or 11663)

Is finger-counting just about fingers?

If we consider it hand counting instead it's much better. For example, I could hold each hand palm-up or palm-down for 2 extra bits. That's \(3^6 2^6-1\) (or 46655)

Is finger-order relevant?

So, su­ppo­se I put my le­ft hand to the ri­ght of my ri­ght han­d. Sin­ce I can te­ll whi­ch hand is whi­ch, be­cau­se fin­gers are not all the sa­me, I can count that as an ex­tra bi­t, coun­ting to 93311.

How long can I take before I show you the number?

I could sa­y: "if a fin­ger­nail is lon­g, tha­t's a 3 (or a 4) de­pen­ding on whi­ch fin­ge­r". Su­re, it wi­ll then take me da­ys to ex­press a num­be­r, but I just rai­s­ed the num­ber I can count to, using my fin­ger­s, to a rea­lly lar­ge num­ber I wo­n't bo­ther cal­cu­la­ting (2985983)

Do I have to keep my fingers still?

Be­cau­se wi­th one fin­ger I could tap mor­se co­de for any num­ber gi­ven pa­tien­ce, a hard sur­fa­ce, a re­si­lient fin­ger and kno­w­le­dge of mor­se.

Can't I just keep on adding bits?

Of cour­se. I could bi­te on the ba­ck of my le­ft hand and lea­ve a ma­rk. I can use di­ffe­rent hand po­si­tions other than palm up/­do­wn and strai­gh­t/­cro­ss­e­d. I could ta­ttoo a num­ber on the pal­m. I could ex­press a URL to a si­te that con­tains a num­be­r. This is be­cau­se the amount of in­for­ma­tion on a per­so­n's hand is hu­ge.

So, su­re, you can count to ten, or 99, or 1023, or 2985983. The tra­deo­ff is, the hi­gher your sys­tem goes, the har­der it is to rea­d, and the mo­re pre­vious­ly agreed kno­w­le­dge you need be­tween the one ex­pres­sing the num­ber and the one rea­ding it.

Tha­t's why you sti­ll count wi­th your fin­gers just to 10. Be­cau­se it's ob­vious.

Lunchtime Nikola Feature: graphviz

Sin­ce we are in the pro­ce­ss of adding a plu­gin re­po for Niko­la, I wanted to add a sim­ple plu­gin the­re so that we can show how it wo­rks.

So he­re it is. You use this:

.. graphviz::

   digraph foo {
       "Idea" -> "tap tap tap" -> "Code";

And you get (a­s­su­ming gra­ph­viz is ins­ta­lle­d, and this plu­gin is ins­ta­lle­d, etc.) this:

Leer más…

Hola, estoy supuestamente cometiendo un delito. Policía!

Di­cen las ma­las len­guas que el go­bierno pro­vin­cial de Tu­cu­mán ha prohi­bi­do el uso no ofi­cial de la pa­la­bra Po­li­cía. Si bien no en­cuen­tro en nin­gún la­do el de­cre­to o lo que fue­re que sea que se su­po­ne que hi­cie­ron (con lo que de­bo asu­mir que no exis­te) acá es­tá mi pe­que­ño grano de are­na por las du­da­s:

Que cons­te que la po­li­cía tu­cu­ma­na en sí me la fu­ma en pi­pa y que el go­bierno pro­vin­cial de Tu­cu­mán me la fu­ma en nar­gui­le, pe­ro si va­mos a em­pe­zar a de­cir que no se pue­den usar al­gu­nas pa­la­bra­s, la so­lu­ción es usar más pa­la­bra­s, y usar­las más se­gui­do.

Si me lle­gan a ini­ciar una cau­sa (que no creo) les cuen­to.

Acá es­tá la "no­ti­cia"

Así que ya sa­ben es­ti­ma­dos chi­chi­píos tu­cu­ma­nen­ses, yo (Ro­ber­to Al­si­na) aca­bo de abrir una cuen­ta en una de las re­des so­cia­les mas gran­de­s, que no so­lo usa la pa­la­bra "po­li­cía" si no que usa "po­li­cía tu­cu­ma­na" y la es­toy usan­do pa­ra man­dar fru­ta so­bre us­te­des. De­nún­cien­me, por fa­vo­r, que quie­ro ser fa­mo­so.

Trivial Nikola Deployment Using and Backlift

So, you want to pu­blish a si­te and want to do it no­w? As in, rea­lly ri­ght no­w? And for free? And you are a Niko­la use­r.

If you are a Dropbox user, open an account at Then set your OUTPUT_DIR to something like /home/yourname/Dropbox/Apps/ and build. That's it. No deploy step.

Or open an account at Backlift and set OUTPUT_DIR to /home/yourname/Dropbox/Backlift/foo where foo is your site's name as configured in Backlift. Build. No deploy step.

Or open an ac­count on Dro­pPa­ges.­com or KISSr or Si­te44.­com or just use a Dro­pbox pu­blic fol­de­r.

Ea­ch of the­se ser­vi­ces has ad­van­ta­ges and di­sad­van­ta­ges, from la­me URLs to cos­ting mo­ne­y, but he­y, for a qui­ck thing they are cool. You can alwa­ys upgra­de to the real thing la­te­r.

Contents © 2000-2021 Roberto Alsina