For those who have seen the previous versions of our site, I hope you will like the new site. My thanks goes out to Dima at TYZ Design for the original design, layout, and graphical elements of our new site!
I’ve been busy working on several PHP/MySQL web development projects. For the last few of them, I have been using PHP Object Generator to generate all of my Database Abstraction Layer/ORM code. One of the new things I have been trying out is modeling my database using UML. I used to sit down with phpMyAdmin and do my database design directly in SQL, but since I am going through POG to create the database, that wasn’t an option anymore.
So I started using Dia, and started modeling my tables as objects. That still left me with entering the field names from the diagram into the form for my local copy of POG. So I recently decided that I should write a script that transformed the dia XML format into a SOAP request to POG (POG has a built-in SOAP interface to its object generator), and then create the files for each class with the returned code.
I’m releasing the code to my little python script. There isn’t much error checking (or comments), and it may break on certain diagrams. Read the source for more details.
I was recently asked by a client for some code that shows how to do the basic SDL and OpenGL initialization needed to write a 3D application on Linux. I pulled out some of the code from my old 3D graphics engine and whittled it down to something appropriately sized. I also had an ulterior motive in putting this example together: another post to this blog, source code included. Features included:
- Display lists incorporated into the rendering loop.
- “Picking” support. [The ability to determine the 3D object under a 2D screen/mouse coordinate.]
- Well written and commented C++ code.