Skip to main content

Posts

Showing posts from May, 2009

Who runs more?

I've finally finished the visualization for my grad school visualization class. We had to use data sets from the UCI Machine Learning Repository. I have choose the auto-mpg data set, which has data concerns city-cycle fuel consumption. This particular data set has 398 tuples with 9 attributes.

So I've decided to show which motor model (number of cylinders) runs more with one gallon.

The visualization is just bellow. I had computed the data using simple PHP scripts with PostgreSQL sql queries. With gnuplot, I plotted the output of the script, saving the plots as SVG files, which, using inkscape, I've made the proper manipulations to get this work.

Mutexes and Conditions

I was googling around looking for some examples on mouse handling with the SDL library and I've found this interesting tutorials site:

http://lazyfoo.net/SDL_tutorials/index.php

I've found the mouse handling examples, but there were some other interesting examples.

There are three good examples on concurrent programming:
MultithreadingSemaphoresMutex and ConditionsPerhaps the one which had called my attention monst was the "Mutex and Conditions", because of the possibilities on "Discrete Event Simulation".

Here's a Nickel, Kid

Ryan Tomayko has a blog entry on an old comic strip used as the cover of the book "Advanced Programming in the UNIX® Environment".

Elegant XML parsing using the ElementTree Module

Mark Mruss, from the learningpython.com, wrote an interesting article on an "Elegant XML parsing using the ElementTree Module". I had a little project on my job on which I had to read some XML data and make some reports with them. I am using PHP to that, but after reading this Mark Mruss's article, I am regretting not have started with Python since the begging.
"XML is everywhere. It seems you can’t do much these days unless you utilize XML in one way or another. Fortunately, Python developers have a new tool in our standard arsenal: the ElementTree module. This article aims to introduce you to reading, writing, saving, and loading XML using the ElementTree module.IntroductionReading XML dataListing 1Listing 2Reading XML AttributesWriting XMLListing 3Writing XML AttributesReading XML FilesWriting XML Data to a FileReading from the WebConclusion"Read the entire article at learningpython.com

Soft body deformation

The wikipedia has a short entry on "Soft body dynamics" but it cites this interesting framework called SOFA.
"SOFA[1] is an Open Source framework primarily targeted at real-time physical simulation, with an emphasis on medical simulation. It is mostly intended for the research community to help develop newer algorithms, but can also be used as an efficient prototyping tool or as a physics engine." [1]
It is also multi-platform. As soon as I have some test written, I will put some shots here.

[1] SOFA (Simulation Open Framework Architecture). (2009, March 26). In Wikipedia, The Free Encyclopedia. Retrieved 14:01, May 7, 2009, from http://en.wikipedia.org/w/index.php?title=SOFA_(Simulation_Open_Framework_Architecture)&oldid=279736872