Python

Romanian Postal Codes in OpenStreetMap

Posted by Strainu on October 11, 2010
Cool webpages, Open Content, Python / 2 Comments

After a short discussion on the Romanian OSM mailing list, I decided to write a small Python script to import the postal code data from SIRUTA into OSM, cited as demanded by law 542/2008, art. 32. As cities have multiple postal codes, I had to settle for importing data for villages, hamlets and towns. Still, over 12.000 new entries were added to OpenStreetMap. I will surely be an important resource for people wanting to use coordinates – postal codes association freely.

For people wanting to peek at the code, you can find it here. It uses the OsmApi library and a stripped version of the dbf fron INSSE (converted to CSV), containing the following fields: siruta_code, village_name, postcode, postocde_source.

Share and Enjoy:
  • Facebook
  • Twitter
  • Identi.ca
  • LinkedIn
  • Reddit
  • Add to favorites

Tags: , , , , ,

Pagerename.py

Posted by Strainu on January 30, 2007
Python, Software / No Comments

Pagerename.py is a script for the pywikipedia framework, used to rename a series of pages on Wikipedia and other MediaWiki sites. The script is designed to make the same modification on all the titles it reads from the input file. You can remove parts of the title or add a new text at the beginning and/or and of the title. You can find it’s source code below or at this site.
Continue reading…

Share and Enjoy:
  • Facebook
  • Twitter
  • Identi.ca
  • LinkedIn
  • Reddit
  • Add to favorites

Tags: , ,

Computer Systems’ Structure homeworks

Posted by Strainu on January 30, 2007
C, Python, Software / No Comments

Computer Systems’ Structure homeworks from Automatics and Computer Science Faculty, 4th year, prof. Emil Sluşanschi. The archive contains a homework made in C. Themes: threads, semaphores, queues, locks, fat-tree inter-connection structures, file-sharing, network programming in python. The C homework is a simulation using the Blitzen simulator (not included).
Continue reading…

Share and Enjoy:
  • Facebook
  • Twitter
  • Identi.ca
  • LinkedIn
  • Reddit
  • Add to favorites

Tags: , ,