Archive for November, 2005
November 27, 2005 at 6:11 pm · tags: Python
In relazione a questo post: Come non scrivere un tutorial, l’autore del tutorial incriminato ha deciso di rispondere (giustamente) punto per punto alle mie critiche in questo post:
http://michele.sciabarra.com/page/Commento_alla_critica_al_Corso_Python2
Ritengo che come sempre si tratti di opinioni (in questo caso le sue) e mi limito a fare alcuni appunti:
- Mi spiace che il mio tono sia giunto come saccentone rompiballe, ma non era nelle mie intenzioni.
- sono felice che l’autore abbia evidenziato tutto senza “nascondere” i miei post nella sua mailing list che vi invito caldamente a leggere a sostegno della mia tesi
- il mio cognome si scrive Oluyede e non come e` stato scritto
- sostenere che si tratti di opinioni e non di imprecisioni mi sembra un azzardo dato che ho dimostrato che sono appunto imprecisioni
- tirar fuori Google e il page rank come giustificazione e` un altro azzardo perche` ad esempio pure PHP ha piu` risultati di Ruby ma non per questo e` un linguaggio migliore
- io non ho insultato nessuno, ho solo detto che il tutorial e` pieno di imprecisioni.
- mi si da del fazioso e rispondo si: perche` ho a cuore Python, come sarei fazioso se si parlasse male di un amico sia a ragione che a torto
- Dallo stesso link fornito, come prima frase, si puo` leggere “Condivido molte delle critiche” il che rende l’idea che non sono l’unico a considerare tale imprecisioni come tali
- Mi spiace sapere che non sia possibile muovere alcun tipo di critica, giusta o sbagliata, nei confronti di chicchessia perche` bisogna temere ritorsioni legali (curioso che mi si additi ad insultatore quando si usa lo stesso peso nelle risposte).
- il paragone con la macchina incendiata mi fa sorridere
Il resto dell’invettiva su usenet, l’opensource in Italia e il significato di stato di diritto si commenta da sola, come anche il paragone di un italiano che scrive in italiano e riceve critiche e un italiano che scrive in una lingua straniera e non ne riceve.
November 20, 2005 at 11:34 pm · tags: Rails Rebbin Ruby
The svn version of Rebbin now supports SQLite 3, lighttpd and runs on top of Rails 0.14.3.
Try it out!
November 20, 2005 at 4:20 pm · tags: Rails Rebbin Ruby
I released another version with some improvements and few bugfixes
What’s new?
- Atom 1.0 feed (in addition to RSS2.0 and Atom0.3 already there)
- Wordwrap for text-only snippets
- Basic comment support for each paste
- Use Rails caching system and custom caching for colourised snippets
What’s changed?
- Wants Highlight 2.4
- BSD licensed
What about the future?
I set aside the idea to write a ruby lexer for now, I will try to add SQLite support and maybe improve comments with Ajax
http://rebbin.berlios.de/
November 16, 2005 at 9:52 pm · tags: Python
Yesterday I tried hype, a Python indexer wrapped upon hyperestraier. The API is stupid proof, you can’t do something wrong
The cose used to test it is mainly:
def index(root=“.”):
db = hype.Database(DB_PATH)
for name in all_files(root):
doc = hype.Document()
doc[“@uri”] = name
doc.add_text(name)
db.put_doc(doc)
db.close()
def locate(search_string):
db = hype.Database(DB_PATH, hype.ESTDBREADER)
searcher = db.search(search_string).order(“@uri STRD”)
list(searcher)
items = [item[“@uri”] for item in searcher]
db.close()
return items
index() iterates through the list of files, create a Document object for each of them and adds the document to the database.
locate() uses a lazy searcher to search through the database and find what are you looking for.
Let me get you some raw numbers:
459917 documents (it’s my whole file system, containing two operating systems, ~ 130 giga byte of files)
~ 195 documents per second
39m16.949s to index the file system, you should consider that the most of the time is spent in the os.path.walk() function to walk the tree
288M of database. Let me say that maybe I didn’t have to readd the content with add_text() function and use only @uri so the database will be a lot smaller
0.000755071640015 seconds to search, measured with time.time() around
searcher = db.search(search_string).order(“@uri STRD”)
list(searcher)
It’s fast, really fast. The test machine is not optimal: I ran it while using the computer for my tasks, my two IDE disks are slow.
What to say? Hype is the tool you want to use if indexing in Python is needed.
The hype source tree contains some benchmarks against Divmod’s Xapwrap and hype seems faster. So download it, try it and use it
November 5, 2005 at 4:56 pm · tags: Python
Pay attention: the post is in italian because it’s about a tutorial written in this language. So skip if you cannot read
Ho scritto un articolo su come non scrivere un tutorial basandomi su un tutorial che personalmente trovo pessimo, questo č il link:
Qualitŕ dei tutorial in Python
November 3, 2005 at 12:31 am · tags: Misc
It seems that MS is going to kill OpenGL support on its future platform (codenamed Vista). Don’t wanna make advocacy but in my opinion it’s not a technical reason and it will help to kill 3D graphics interoperability and put obstacles to the rise of Linux as a gaming platform. Not too much to say, the usual stuff from MS headquarters. Hope Vista will be a gigantic flop
[ via: Lorenzo Barbieri’s blog ]
update: Francesco Carucci (a computer graphics developer for an english company) reveal the truth about these facts. He say that in Vista OpenGL will be built upon DX10 and hence will be hardware accelerated by default.
November 1, 2005 at 11:31 pm · tags: Python
I just ordered the Twisted Network Programming Essentials book! Wow
I already know that it’s great stuff.