Accessing the CPU and retrieving information about itself is a fairly low-level task that requires a little assembly-fu. Something that Python isn’t geared to do out of the box. But it’s possible to get that information with C and hand it over to Python.
In just about everything I’ve done, there has at some point been a need to do arbitrary date calculations. DateSpanner helps remedy that.
For those of you that have been wanting an extension in Python that binds directly to Ghostscript, look no further. A new page is available now for PyGhostscript on my blog!
Country-wide IP blocks on this server have managed to save on bandwidth, headaches, intrusion attempts, and spambots from all over the world. I wish I didn’t have to do it, but the world isn’t fair and we have to protect ourselves from threats like this now.
Had a few minutes today and updated the Concrete Calculators software. Some usability enhancements and automatic calculation of common bag sizes needed for a job. It’s a fun little pet project for me, one that I hope someone else out there gets some usefulness from.
Here’s another quickie I came up with for Grid controls – a ProgressCellRenderer. Will take a value in a cell and convert it to a progress gauge background in the cell. Also does a little formatting to add a % sign at the end of the value if it doesn’t have it. Useful for read-only cells that are updated from another data source or calculation, but can be manually edited also.
I still like to share solutions to problems that I’ve solved that maybe someone else out there may have encountered. And hopefully save them some time and banging of head against the wall. One of them was my need to develop a custom GridCellEditor control for wxPython for use with grids. Now you can select dates from within a grid cell without having to refer back to another calendar.
Because I was bored and had an hour to kill, I give you BAC Pal! A very simple, small program that uses the Widmark Formula to give an estimated blood alcohol level. Using the list of states, it can then tell you if you are below the legal limit or not.
Fixed a few problems not recognizing win32com and pythoncom not being installed. Also fixed a fatal build error when using a Python version other than 2.5. It should now work with any version of Python.