Los inicios de Google

Posted on 27th April 2011 in regular

Hace diez años un investigador de la Universidad de Stanford no tenía el mismo acceso a información que hoy día cualquiera puede tener en un cibercafé de Bangladesh.

Sergey Brin.

Hace diez doce años los inicios de Google eran así:


comments: 0 »

Inside Out

Posted on 3rd March 2011 in regular

Video guanyador de les xerrades d’hivern de TED 2011.

Que és TED?

Technology Entertainment and Design , són un conjunt de conferències que es realitzen regularment per una fundació sense ànims de lucre amb el proposit de comunicar i transmetre idees innovadores.

Podeu trobar algunes d’elles subtitulades al castellà en: http://www.ted.com/translate/languages/spa

Que és Inside Out project?

És un projecte obert i participatori a tot el món, on té com a única intenció despertar l’empatía en aquells ambients buits i pobres de personalitat o humanitat (com bé diu l’impulsor a l’entrevista). 

TED Prize Winner JR & INSIDE OUT from TED Prize on Vimeo.

I don’t try to change the world, but you know, when I see a smile up there on Sabedah or down there in Cambodia, in a way I see I chill my go.

http://www.insideoutproject.net/site/about

comments: 0 »

Benjamin Zander, transmetre mitjançant la música.

Posted on 16th January 2011 in regular

Mereix la pena escoltar a aquest home.
És Benjamin Zander, un director d’orquestra que ens parla d’una forma molt alegre i natural sobre la passió per la música (tot i que en aquest cas és aplicable a qualsevol altre camp). Molt recomanable per als qui esteu ara posant-se a prova.

(Té subtitols en català i castellà, s’han d’activar manualment)

comments: 0 »

Enjoyable work

Posted on 8th December 2010 in regular

We all only live once.
So, we are obligated to make good use of the time that we have, and we are obligated to do something that is meaningful and satisfying.

This is something that I find meaningful and satisfying.
That is my temperament. I enjoy creating systems on a grand scale, and I enjoy helping people who are vulnerable. And I enjoy crushing bastards. It is enjoyable work.

Julian Assange, wikileaks founder.
http://www.spiegel.de/international/world/0,1518,708518,00.html

comments: 0 »

Math games

Posted on 4th December 2010 in Development

There was a lot of time since I played to resolve a mathematical series.

Today, while I was reading the web2py mailist, there was an offtopic thread challenging to resolve a math game.

I decided to take a break while i was working in my stuff, and my notebook has been drawn as we can see…. (don’t see yet if you want to resolve the problem) …here.
Here the problem:

2+3=10
7+2=63
6+5=66
8+4=96
So:
9+7=???

What is the answer?

Dont write here the answer......
Just the time, maybe

I was laughing while I was reading the answesrs at the mailist.
But here, the answer that surprised me from Massimo DiPierro, (python code).

http://groups.google.com/group/web2py/msg/312fd5df9036bc9b

I am too dumb to solve it but this program can:


x=[(2,3,10),(7,2,63),(6,5,66),(8,4,96)]
alphabet = 'ab+-*'
for i in range(100000):
e = ''
while i:
e = e+alphabet[i%5]
i = i / 5
try:
for (a,b,c) in x:
if eval(e)!=c: raise Exception
a,b = 9,7
print eval(e)
break
except: pass

I just have to say.. +1 !! :)

comments: 0 » tags: , , ,

vim folding

Posted on 19th November 2010 in Development
People who knows my geek habits knows that one of my favourites editor is vim.
Common IDEs and programming editors have an option to collapse and expand blocks of code.
Obviously, you can do it with vim too. Let’s show how to do it:
1. Imagine you have a code like this:

Step 1

2. We select the code we want to collapse with visual mode ( v )

3. Now, just push at your keyboard zf

As you can see your code would be collapsed and vim tells you.

If you wanna expand and collapse again, you have to point your cursor over that line and press:

zo : (folder)open

zc : (folder)collapse

You can do automatic folding with foldermethod config, but this for another day.

comments: 0 » tags: , , , ,

Installing InDefero at webfaction

Posted on 10th November 2010 in SysAdmin

InDefero is a Code Management web software based on Google Code. But it's opensource, and you can install on your server, for private developments. The most important about this software is, that integrates Git and Subversion. Also, it had a timeline for the code, a wiki, and file distribution (as described on its web).

InDefero is programmed in PHP, but it's using a framework called Pluf (based on Django ;) ).
We should install Pluf first. I'm gonna try to describe step by step how I did it:

1. Install Pear in you $HOME dir

Pear is the distribution system of PHP (as easy_install in python or gem in Ruby). In webfaction we don't have root access, so, we gonna config it on /home/user/pear

$ pear config-create $HOME .pearrc
$ pear install -o PEAR
$ export PATH=$HOME/pear:$PATH

2. Install Pear modules required by InDefero

InDefero needs two Mail modules We will install it with Pear as described here.

$ pear upgrade-all
$ pear install --alldeps Mail
$ pear install --alldeps Mail_mime

( I installed, but not documented yet
Just one thing: bitbucket rocks!! )

comments: 0 » tags: , , ,

Sapiens

Posted on 8th May 2010 in link

 

 

Porque piensas, porque sueñas con los ojos abiertos, porque puedes observar el cielo y el mar y la tierra con la frente despejada y la mirada atenta, porque eres capaz de hablar, y de escuchar, y de escribir, y de leer, y de construir herramientas para llegar adonde no llegarían tus ojos y tus manos, y de hacerte preguntas y desear las respuestas, te llamaremos sapiens.

comments: 0 »

Blogging @ Android

Posted on 2nd January 2010 in Uncategorized

Doncs tinc ja uns messets un HTC Magic, amb un preciós sistema operatiu lliure i com he decidit registrar tot allò que va passant durant la meva vida, tant a nivell personal com públic. Voldria estudiar les possibilitats que m’ofereix el móvil amb la tarifa plana d’internet.

Estudiem la situació.

  • És clar que tinc dues aplicacions clau, o inclús tres: facebook, tuenti, i twitter.
  • Tinc també una aplicació per a publicar en un wordpress, com aquest.
  • He de buscar alguna aplicació per poder pujar fotos, al picasa, que segur que hi ha.

Hi ha una aplicacio interesant que te xat i publicacio de fotos i videos a facebook. Fbabble.

La veritat, no em fa molta gracia compartir les meves fotos/videos en algun lloc public on m’ho puga vore tot el mon. El facebook sembla que es el que millor pot gestionar aquest tema, en canvi, no em trobe agust alhora de compartir a facebook. Una de dos, o be em faig una gestio de les amistats per llistes mes adecuada. O be, busque una altra plataforma on em trobe mes agust, com algun Pinax adaptat.

Per al meu gust, el més adecuat seria una sistema amb la simplicitat de twitter, però que pugueses configurar al moment de publicar, a quin grup d’amics fer-ho visible, digam per exemple: familia, amics, amics musics, amics tecnologics, amics poble, amics de la colla, coneguts en general, tothom… serien exemples de grups.

Mentrestant, seguirem usant FaceBook amb compte.

comments: 0 »

Usando Bazaar de forma centralizada.

Posted on 20th November 2009 in Development

En muchas ocasiones se nos presenta la necesidad de trabajar en equipo para desarrollar código.Bien pueden ser practicas, o alguna aplicación con más compañeros, o bién para trabajar directamente sobre alguna aplicación de launchpad.net.

Bazaar es un sistema de control de versiones desarrollado de la mano de Canonical (la empresa que està detràs de Ubuntu). Útil para desarrollar en equipo o sólo, mantener una historia del código escrito, publicar versiones y/o conservar copias de seguridad sobre el tiempo.

En las siguiente web teneis los respectivos paquetes para la instalación en su respectivo SO.

Breve historia de los SCV

Los SCV han existido durante varias decadas, podriamos definir 4 generaciones en terminos generales

  • Version de archivos, ej: SCCS, RCS
  • Version de directorios centralizados, ej: CVS
  • Version de directorios centralizados, bien hechos. ej: SVN
  • Versión de directorios descentralizados
  1. tree versioning tools – central style, take two, e.g. Subversion
  2. tree versioning tools – distributed style, e.g. Bazaar.
  3. tree versioning tools – central style, e.g. CVS

(sigo..)

comments: 0 »