Category: Programming
Weed Calc – Playing with Lazarus Cross Dev
My son was home sick today and I had to take the day off so I decided to take this time to learn a little Pascal and Lazarus cross development. I actually couldn’t think of anything so after running into a forum post about marijuana and amounts the other day I thought, why not write […]
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 […]
Get duplicate files with Python and Objective-C
I put together a little script to find duplicate files using pure Python, and it’s pretty quick too. It comes in handy as I do a lot of graphic work where I end up with tons of files as I work – paranoid I suppose, but losing hours of work has made me this way. […]
Random Number Generator in Python and Objective-C
If you want a simple number generator for say picking Keno, lotto, or self made contests, here’s just how simple it is to do in Python. I was listening to Linux Outlaws awhile back and they were using a couple of different scripts to generate winners for a contest so why not write one real […]
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 […]
Editra Launch Objective-C Compiler
As I’m learning Objective-C I find moving between the terminal and my favorite IDE, Editra, kind of annoying. Luckily Editra has a really cool plug-in called Launch that can be configured to run code and display the results within the editor. The only problem is that compiling and running objective-c doesn’t work for a couple […]
Timers, Status and Code, Oh my!
Before I deleted my site I had posted some simple programs that fire a timer in order to count down the days to an event. I wrote this in both XCode and IronPython which can be downloaded with full source below. I also started writing this in VB.Net, but decided it’s so similar to the […]