Gambas 3 TreeView and TabStrip Example Code
I sometimes play around with Xojo and PureBasic for quick and simple GUI apps since the interface designers are convenient and the language makes for easy coding. I was checking out Gambas 3 and found it to be fairly good but lacking in a lot of examples. I was messing around with TreeView and TabStrip […]
Install Virtuoso 6.1.6 for use with Python 3 on LinuxMint 18
Install the following from the Software Manager (use apt if you prefer): Virtuoso-opensourceVirtuoso-serverVirtuoso-vad-conductorVirtuoso-vad-isparqlVirtuoso-vsp-startpageVirtuoso-opensource-6.1Virtuoso-opensource-6.1-binVirtuoso-opensource-61-commonUnixodbcLibvirtodbc0 Download zip and Install PyODBC from https://github.com/maparent/pyodbc/tree/v3-virtuoso Unzip, cd into the expended folder, then type: $ sudo python setup.py build install Add the following in the odbc.ini: $ sudo nano /etc/odbc.ini Add the following and save it. [Local Virtuoso]Driver = /usr/lib/odbc/virtodbc_r.soAddress = […]
Windows Authentication from CherryPy served from Apache 2.4/WSGI using Python 3.4 64bit.
Here’s an example with working code and all the modules to get CherryPy running in Apache via WSGI with Windows authentication. Just download and copy Apache24 and coolwhip to the C: drive, add your IP\domain to httpd.conf, and fire up the server. See the read me for more details, installing Apache yourself, and Python libraries […]
Creating a DataMatrix GS1 barcode and saving to postscript, PDF, or image for free in C#.
I’ve been working on an interesting project where I had to learn Pitney Bowes Streamweaver in order to sort/merge and barcode postscript. I have very little knowledge of postscript and no training or knowledge of Streamweaver whatsoever. I rolled my own in C# in order to understand how the product worked for parsing but didn’t […]
Leucine calculator for MSUD management. Windows, Mac, and Linux.
I created a calculator to approximately calculate milligrams of leucine and exchange based on serving size by grams of protein. You can save the calculation as a food and further calculate meal totals. It could be helpful for people with MSUD or possibly body builders needing to calculate luecine intake. I provide this software free […]
Sort list by column preserving index.
This is yet another reason I love Python! This is good for something like generating HTML tables with rowspans that you want sorted. Each tuple is a row, each item in the tuple is a cell. If you sort this data it will change the index so if you set a rowspan on the first […]
Batch base64 encode PNGs in Python 3 for use in CSS.
I wrote a simple Python 3 script to base64 encode a series of PNG images for use in CSS, or whatever. If you’re learning Python try adding file output or even go a step further and generate the CSS lines. If you’re here I will assume you are wanting these for CSS but if not, […]
Ajax driven HTML 5 radial gauge.
I recently updated an older JavaScript gauge example that I created years ago if anyone is interested in creating gauges and wants a working example. This web based example takes a value between 0 and 100 and will automatically update using Ajax to pull the values in from a json file. There is no need […]
Statusbar example with Swift in XCode 6.2
I created a simple Status-bar application in Swift that dynamically creates a menu of Applications in the Utilities folder and opens the Application when the corresponding menu item is clicked. I use simple NSThread for the collection and use image assets for the icon. There is not a lot of error handling since it is […]
Minecraft Utilities
My son has been playing a lot of Minecraft and runs a server so I made him a series of utilities to make life easier. The first few I wrote were in Python and Tk, quick and dirty, but I wanted to learn the Swift programming language so I rewrote one utility in XCode 6 […]