Buscador para Twitter, con Python, en 12 líneas

Hoy estuve viendo los resultados de la búsqueda #pyconar2009 en Twitter Search, y me dije: “por qué no hacer las búsquedas desde consola, con Python?”

Unos minutos después, aquí está el resultado:

1
2
3
4
5
6
7
8
9
10
11
12
import feedparser, urllib
 
def main():
    feed_source = 'http://search.twitter.com/search.atom?%s'
    q = raw_input('Search term: ')
    if q:
        f = feedparser.parse(feed_source % urllib.urlencode({'q': q}))
        for entry in f.entries:
            print '%s: "%s"' % (entry.author, entry.title) 
 
if __name__ == '__main__':
    main()

En este caso usé Universal Feed Parser ($ sudo apt-get install python-feedparser), pero pueden utilizar la librería que más les guste :-)

PyCon Argentina 2009

El 4 y el 5 asistí a la PyCon Argentina 2009, la primera conferencia mundial en castellano sobre el lenguaje de programación Python. Vi muchas caras conocidas: desde compañeros de laburo hasta amigos del mundo del Software Libre. También vi a un par de voluntarios que habían participado de la última Wikimanía en Buenos Aires.

Del primer día quiero destacar dos charlas:

  • Me gustó mucho “Hacking Django, mismo framework, distintos paradigmas” de Nubis. Hizo gala de sus conocimientos y demostró ser un excelente orador. Le veo mucha pasta como conferencista.
  • The State of Django” de Jacob Kaplan-Moss me pareció excelente. De todas formas, no estoy totalmente de acuerdo con su punto de vista sobre los problemas de escalabilidad en Django. Si en algún momento se publica un video sobre la charla, me gustaría hacer algunos comentarios.

Al final del día me fui a tomar unas cervezas con los pibes de Cycle (hace mil que no los veía), y a la nochecita pintó un paintball por Belgrano.

Pintura y metal! (?)

Del segundo día también destaco dos charlas:

Mi balance general sobre PyCon Argentina

A favor:

  • El lugar está muy bueno (salas bien iluminadas, limpias y con buena acústica)
  • En general, la calidad de las charlas programadas fue excelente
  • Buena onda permanente (me sentí como “en familia”)
  • El equipo organizador y los voluntarios hicieron un gran laburo
  • No se afanaron ninguna laptop :-)

En contra:

  • No me gustó casi ninguna charla relámpago del segundo día1
  • Hubiera estado bueno que haya un micrófono entre los asistentes para hacer preguntas sin tener que gritar

Un aplauso para los “pitufos” de PyCon Argentina 2009!

Ah, y el año que viene nos vamos todos a Córdoba, para la PyCon Argentina 2010!

1 – Salvo excepciones, como la de Roberto Alsina o la de Felipe Lerena.

Previniendo el turnover

Citas a tener en cuenta para prevenir el turnover laboral:

For all male workers studied, working in an organization that does not support work/life balance has a significant, unfavorable impact on how these workers rate their pride in their organization, willingness to recommend it as a place to work and their overall job satisfaction. Additionally, those male employees who have unfavorable views of their company’s support for work/life balance state a much higher intention to leave the organization.

Men need balance too

One retail business owner with high turnover blamed “today’s kids’ lack of loyalty” instead of looking for substantial root causes for his inability to maintain a reliable staff. Though it’s easy to attribute high employee turnover to a Generation Y characteristic, the real cause of the problem often lies with the employer and a lack of effort to encourage employee buy-in.

You may never have thought about it in these terms, but management usually makes decisions based on information that the frontline doesn’t have. So, feeling misunderstood and unheard, frontline employees retreat to an extremely unproductive “Us versus Them” stance in relation to management. Employees who feel detached from the organization’s decision-making process find it very easy just to show up for a paycheck, give minimal effort, and, finally, not show up at all.

I Just Work Here

Individuals most vulnerable to burnout are often those who are strongly motivated and involved in their work. For these individuals, work is an important source from which to derive meaning in life. If these individuals no longer find meaning through achieving their goals and expectations, burnout is a likely end result.

Burnout Prevention Through Personal Growth