História e Futuro do Planeta Geek

September 02, 2007

O Mário Gamito (que aproveitou o dia para terminar o seu blog) começou a apresentação por dar um breve currículo, o que me espantou um pouco. Todos os outros oradores apresentaram-se somente com o nome e em alguns casos as emrresas em que trabalhavam actualmente, e com backgrounds bem mais interessantes que ele, pelo que foi um indício da qualidade da apresentação.

Falou muito do surgimento do planet geek e do seu paralelismo com o asterisco, mais tarde Prt.sc /(Disclaimer: onde eu sou agregado com gosto). Eu achei isto escusado, e se ele quisesse explicar as suas divergências e “esclarecer” situações penso que escolheu o momento errado. Realmente poderia ter-se integrado melhor no Barcamp e falar realmente da experiência, dos desafios, da tecnologia, etc… Quanto ao projectos futuros não podia revelar nenhuma para álem de uma possível alteração do dominio, fez-me pensar que o título poderia ser melhorado.

Quanto a estas histórias de planetas, tou completamente desligado nisso e o meu tempo é demasiado precioso, pelo que estou agregado num planeta que me dá a projecto que pretendo pelo público alvo e pelos outros agregados de qualidade.

Tagged with: , , , ,
This post has 5 comments. Feel free to read them and leave your own.

PythonLovers.com

July 24, 2007

I’ve been skipping posting in the last days because I’ve been working on a few projects. One of them is now working online and you can see it at http://pythonlovers.com. It’s an python-related aggregator (handcoded) and there already some writers I have invited. If you care about python, you should subscribe this feed in which you’ll learn something useful for sure.

If you have a blog and you post about python (not necessarily python-only), please mail me ;)

Tagged with: , , ,
This post has 0 comments. Feel free to read them and leave your own.

Simple Python RSS aggregator

July 01, 2007

Finally today I revamped ideias3 homepage. It now has a simple page featuring a simple aggregator of this, sergio and ideias3 blogs. It was written in Python with a experimental version of pungi and using universal feedparser to get the info from the RSS feeds, and chardet to solve encoding problems. This one also uses a sorter I found out here instead of traditional bubblesort with auxiliar lists I used to use.

In a near future I’m thinking of creating a full aggregator to use in a project of mine, I will talk about soon.

Source code follows.

#!/usr/bin/python

from pungi import *
import feedparser
import sorter


page=Page('ideias3.html')
	
# IDEIAS3

posts = []
authors=["Ideias3","Alcides","Sérgio"]
feeds=["http://blog.ideias3.com/main/rss","http://feeds.feedburner.com/alcides","http://feeds.feedburner.com/sergiosantos"]

for feed in feeds:
	d = feedparser.parse(feed)
	for entry in d['entries'][:min(8,len(d['entries']))]:
		title=str(entry['title'].encode('ascii', 'xmlcharrefreplace'))
		link=str(entry['links'][0]['href'])
		if 'updated_parsed' in entry.keys():
			date=entry['updated_parsed']
		else:
			date=(0,0,0,0,0,0,0,0)
		author=authors[feeds.index(feed)]
		posts.append({'title':title,'link':link,'date':date,"author":author})

sorter.sort(posts, 'date')
posts.reverse()

body="<ul>"
for entry in posts[:min(15,len(posts))]:
	body+="<li><div class='author'>"+entry['author']+":</div> <a href='"+entry['link']+"' target='_blank'>"+entry['title']+"</a></li>\n"
body+="</ul>"



page.add_tag('body',body )

print start_output()

import chardet
final=""
for line in body.split("\n"):
	try:
		it = chardet.detect(line)
		final+= line.replace("<br />","<br />").decode(it['encoding']).encode('utf-8')
	except:
		final+= line.replace("<br />","<br />")

page.add_tag('body',final)
print page.output()
Tagged with: , , ,
This post has 0 comments. Feel free to read them and leave your own.

About

I used to write in this blog, but I've found a better format to express myself. From now on, you may read my writings on ideas, programming and politics on my new wiki.

hCard

Name: Alcides Fonseca
Email:
MSN:
Gtalk:
Nov 24, 1988 40.197958, -8.408312

Tagcloud

Archives

Other links