Archive for the 'Python' Category

DeadlineExceededError on Google App Engine

A while back I wrote a post about using Google docs as an expense tracker. The post received a lot of great feedback and so when I wanted to learn about Google App Engine I decided the best way was to create a Google app that connects to my Google docs to let the user easily add expenses. This would solve the problem I had with the original Google expense tracker that anyone could add an expense to my spreadsheet. The result of this is eyecost released under the gpl (I had wanted to use the agpl but I don’t think that that is an option since it connects to Google servers) you can download eyecost here. The problem I am having is that if I do a lot of spreadsheet editing the Google App Engine times out.

Anyone know how I can get around this?

Mapping Wikipedia

I was reading reddit the other day and stumbled upon the fact that wikipedia has an API. Neat I thought, and having some free time since my exams are now over I figured I would play around a bit with it. When I browse wikipedia I often click from link to link, and have come to the conclusion that all articles are 6 degrees of separation. For example I can go from Ubuntu to Tesco to Japan to G8 to United States to George W. Bush bet you never knew Ubuntu was connected to George W. Bush. I once wrote a map of the internet program that people seemed to like to download and modify so in that spirit I wrote wikimap.py to map wikipedia. wikimap.py Requires pygraphviz (Install using sudo aptitude install python-pygraphviz). To use the program simply run the program and give it the wiki page name for example “python wikimap.py Norman_Graham” Note that Ubuntu is Ubuntu_(Linux_distribution) and you can find the full name in the address bar of your browser. For more complicated maps use wikimap.py –help for full usage info.

Here are a few examples that I created with wikimap.py


And a really large one being viewed in inkscape.

More examples including the dot files can be found at http://www.files.earobinson.org/wiki/. But there are a few features I would like to add:

  1. Generating the graph using python-pygraphviz currently takes a really long time and I would like to be able to do it faster
  2. Page links currently include templates, I would like to only use links in the body of the text
  3. It would be nice if the software cached previously seen connections. (But then I need to detect updates to that page)

If anyone has a nice simple soultion to any of those problems leave a comment. Also if you are able to generate any neat images I would love to see them.

Map of The Internet

The other day I stumbled upon Chris Harrison’s internet map, the only problem I found with his map is that I wanted to know exactly which country each network connection was in. So using the DIMES public data repository, and 1site1moment’s country boarders I have mapped the internet for myself.

From Public

Feel free to download the source code and come up with your own internet map, I would love to see what other people can come up with.

UPDATE 01: Image is back up, If the source code link wont work for you email me and I will send you a copy. Feel free to host this anywhere you like just post a link back to this site.

UPDATE 02: Source code can now also be found here.

UPDATE 03: Would love to see what other people can do with this.

Propensity v0.1.2.1906 — Now With an Icon! (shameless repost)

Due to an issue with wordpress I have been forced to repost this.

It has been about a week since I released Propensity into the wild for your feedback, I have gotten a fair bit of feedback and received a lot of help. You will also notice that I jumped from version 0.1.0.1772 to 0.1.2.1906 well version 0.1.1.xxxx was released as a limited demo but I have pushed forward to release version 0.1.2.190.

New to this version we have:

  • The ability to add your own programs to propensity (you can import them or manually add them)
  • A Propensity Icon
  • Cleaned up and much prettier terminal
  • And many other little features.

As always feedback is wanted and bugs can be emailed to earobinson+propensity@gmail.com.

Download Propensity Here
Download Propensity Source Here

Ubuntu forums propensity post can be found here

Screenshots below

From Propensity
From Propensity
From Propensity

Propensity v0.1.2.1906 — Now With an Icon!

It has been about a week since I released Propensity into the wild for your feedback, I have gotten a fair bit of feedback and received a lot of help. You will also notice that I jumped from version 0.1.0.1772 to 0.1.2.1906 well version 0.1.1.xxxx was released as a limited demo but I have pushed forward to release version 0.1.2.190.

New to this version we have:

  • The ability to add your own programs to propensity (you can import them or manually add them)
  • A Propensity Icon
  • Cleaned up and much prettier terminal
  • And many other little features.

As always feedback is wanted and bugs can be emailed to earobinson+propensity@gmail.com.

Download Propensity Here
Download Propensity Source Here

Ubuntu forums propensity post can be found here

Screenshots below

From Propensity
From Propensity
From Propensity

Next Page »