Tag: python
A Simple Python Flask Web App
There are times when you need a very simply tool to do something rather trivial that needs to be accessible to various users. If it’s simple enough it seems rather silly to stand a server and install Apache to make some simple configuration changes. This is where Flask can shine. Let’s take a look at […]
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 […]
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 […]