?

Log in

No account? Create an account
LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

July 28th, 2001

lj-mood.pl [Jul. 28th, 2001|07:58 pm]
LiveJournal Development
lj_dev
[choric]
I've been playing with silly perl scripts again. This one produces a graph of the distribution of entries in current_mood. It uses a local copy of Evan's logjam moods file, as getevents only returns current_moodid. After retrieving all journal entries and building hashes of moodid=>mood and moodid=>frequency, it plots a pie chart using GD::Graph::pie.

Downloads:
  • Sample pie chart (from my journal)
  • the script
  • a moods file, which would need to go into the same directory as the script if you want to run it..
Apologies:

There's still no XML conversion or caching going on. I'm going to work on an analyser that does huge amounts of typographic analysis on the whole of a journal, and does things like summarize with Lingua::EN::Summarize. Before I embark on that I *will* write a journal exporter to XML in perl. Promise. :)

Let me know what you guys think.
link7 comments|post comment

navigation
[ viewing | July 28th, 2001 ]
[ go | Previous Day|Next Day ]