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 add 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, here […]

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, […]

Adding “Create Text File” to Mac OS X using Automator and no code.

Update: It seems you can now add menu items to the contextual (right click menu) in Finder. I no longer use Mac so I have not tried this but should be able to add a create text file entry if you like. Unfortunately I assume most would want this from the desktop. If you moved […]

Gauge example in Inkscape (SVG)

If you’re tasked with creating gauges for a dashboard and you want an example on how to do the graphics, I’ve created one in Inkscape. Inkscape is a free vector application if you are on a budget and can’t afford Adobe Illustrator. I made this while getting a feel for a new dashboard I’ll be […]

MyPaint OS X Lion Install via Wineskin or Macports

MyPaint is an open source and free to use natural painting application similar to Painter. It’s really good, but unfortunately there isn’t a native port to the Mac. No fears, thanks to Wineskin it’s trivial to use it on your Macintosh. I created an easy to follow instruction to walk you through the process of […]

pyGUI & wake a sleeping Mac example.

I started playing around with pyGUI a year or two ago, which allows fast gui development on OS X, Windows, and Linux from Python. I’m really liking it. I wrote a liitle app to wake up Macs awhile back and packaged it as a standard Mac bundle. In theory the raw Python should run on […]

Geektool + Python = Desktop Weather (& moonphase)

Jan. 1, 2019: Some tools you might find useful. https://darksky.net/dev Weather API – free 1000 hits per day. https://pypi.org/project/pylunar/ Moon phase library. Aug. 2016 update: Be aware that Yahoo no longer offers weather data, at least not free. Here is the weather service I’m using: http://openweathermap.org/api Python library to make consumption of the data fairly […]