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…
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…
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…
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…
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…
Streamweaver and postscript, oh my…
I was tasked to write some Pitney Bowes Streamweaver code for Adobe ES produced postscript. It has been an interesting adventure as I am new to postscript and Streamweaver. I must side step the politics and get to the meat of it. So, I need to take 30k – give…
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…
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…
Easiest way to convert a PDF to EPUB for free on a Macintosh?
1. Open the PDF in Preview.app, Edit>Select All, right click selection and Copy.2. Open Pages.app, Edit>Paste.3. Do any minor edits.4. Export as EPUB (You will have other output options as well).5. For further tweaks get Sigil. Don’t spend weeks writing code to do this only to find that a complicated…
MacNote
Are you looking for a simple and quick way to enter notes into the Apple’s Notes.app application from the statusbar? Don’t want the extra features of big note tools or really just like Apple’s built in Notes app? Me too! So I wrote a little utility I call MacNote to…