CodeSkulptor3 (Probability Plot) Aug 2020
I built a short presentation demonstrating the use of CodeSkulptor3 (Python 3). This time, my goal was to illustrate coding a small probability problem including a plot of results — accessible from any device — desktop, phone, iPad. Feel free to follow the links and to offer a critique. Probability of finding exactly one digit […]
Multi-Page Apps using Dash/PythonAnywhere Apr 2020
Calculate Beta w for Single Angles Dec 2019 (revised Jul 2021)
Closed form solution to single angle design equation.
Python — Nested Ifs Nov 2019
NESTED IFs: A question was asked recently on Stack Overflow The solution shown below is readable, scalable, easily edited — and contains no IF statements. This is similar to the method proposed by Anitoliy R except I use a single string and the split function to simplify editing and scaling. To illustrate scalability, I add […]
Raspberry Pi with Sunfounder Sensor Kit Dec 2018
The video shows the LCD Display connected to the Raspberry Pi. Easy setup Easy programming
ASCE 7-16 Ice Loading using Pythonista Oct 2018
AISC C Coefficient for Bolt Groups using Azure Jupyter Notebook Oct 2018
I decided to try out Jupyter using Microsoft Azure (currently a free trial). I’ve invested a couple of days on this project including learning new notebook extensions and Interact widgets. And so far, so good. Pros Easy to use Well-documented Relatively trouble-free Cons Could have faster response times
get_next, get_prev, in Python OrderedDict Aug 2018
I provide an example class based on an OrderedDict — with an adjunct dictionary to index to the next and prev OrderedDict entry. In my case, I have a rather static OrderedDict: it is a dictionary of AISC shape objects. The function set_prev_next() must be called after each operation that modifies OrderedDict. class MyClass(coll.OrderedDict): mynpdict […]
Pythonista 3 has an excellent UI development platform! May 2018
All of the AISC structural shapes at your fingertips The user may filter shapes by nominal type and by nominal size This is a standalone app built using Pythonista 3. Less than 500 lines of user programming (my programming) Data is contained in a CSV file of a couple thousand lines Visual drag and drop GUI builder – very nice […]