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-opensource Virtuoso-server Virtuoso-vad-conductor Virtuoso-vad-isparql Virtuoso-vsp-startpage Virtuoso-opensource-6.1 Virtuoso-opensource-6.1-bin Virtuoso-opensource-61-common Unixodbc Libvirtodbc0 Download zip and Install PyODBC from Unzip, cd into the expended folder, then type: $ sudo python build install Add the following in the odbc.ini: $ sudo nano /etc/odbc.ini Add the […]

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’ve updated the JavaScript gauge example I created years ago. It takes a value between 0 and 100 and will automatically update using Ajax to pull the values in from a json file so no need to refresh the page or submit form data, just have a script or web programming language update the json […]

Statusbar example with Swift in XCode 6.2

I’ve created a simple Statusbar application 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. Not a lot of error handling and could be tweaked for speed, and […]

Quick and dirty way to get Location data on Mac in Xojo

You could make a Xojo plugin in XCode to access the location data, buy a plugin, or maybe use AppleScript but I think this is simple and will work right in the console using Curl as well as within any language that can issue shell commands. Since it’s Curl it should work for Linux as […]

Create a Button with hover effect in Xojo

Drag a Canvas object onto your form from the Library. Click the Canvas object and select the Inspector, top right, and turn off UseFocusRing and for Backdrop select your default image. You can select the hover image as a Backdrop as well as it will add the image to your project and save you time, […]