Change Units in Regression Equation The purpose of this post is to explore the concept of changing the base units for a regression fit equation. Particularly the coefficients. The work is based on a paper called, "Prediction
Automating BorgBackup I wanted to use a proper backup solution to replace my rsync script. I decided to use BorgBackup as it seemed to suit the bill. It is a repository based system that has
Cribbage - Expected Average References http://www.cribbageforum.com/AnalyzeDiscardsPart1.htm http://www.cribbageforum.com/YourCrib.htm Imports You will have to make a module called cribbage.py from the previous article making the cribbage objects. import
Cribbage - Scoring In this article, I am going to explore python code that can construct a cribbage hand and score it. Cribbage Scoring Rules: 15: Any combination of cards adding up to 15 pips scores
Python in an Interactive Docker Container I usually run my various projects in python in separate virtualenvs. This is a great way to keep things compartmentalized. However, it does have its drawbacks. For example, I wanted to work on
Jupyter in a Docker Container I have been using Jupyter notebooks in a virtual environment for some time now. I would compile the version of Python that I wanted into a local folder that did not require any
python Python - Install from Source - Local This tutorial is about installing the latest versions of python from the source into the users home folder as opposed to a server-wide install. Normally /opt/python/python-3.6.1 would be the
Linux Docker - A Cool Option I decided to upgrade the VPS from Ubuntu 14.04 to 16.04. At the same time, I decided to use Docker containers to compartmentalize the blog. Docker is very cool technology that
Linux Install Python and Sqlite from Source Introduction I was writing some Python to pull text from pdf files and put them into a sqlite database so that I could perform full text searches for various keywords and phrases. I
Configure Syntax Highlighting on Ghost For syntax highlighting I am going to use highlight.js because I don't have to install anything. Simply add the following code to the blog header code injection in the settings: <link
Configuring MathJax on Ghost I am going to add MathJax support. In the code injection portion of your settings, add the following code to the header injection mechanism: <script type="text/javascript" async src=
New Platform I have switched platforms again. I have moved to the blogging platform. It was really quite easy to make the switch. The biggest chore for the day was moving to ssl for the
New Server I have moved the blog from wordpress to a new hosting provider Cloud-A. They provide a server and I configure it to run. So far the process has been pretty straight forward. I
math Speed Up Factor I watch a lot of Coursera videos and usually view them at 1.25x or 1.5x normal viewing speed. I started thinking about how much that would translate into viewing time. Factor
math Team Combinations from a Limited Pool of Players I had to determine an arrangement of teams from a player pool. Specifically there were 9 players that needed to be organized into fair teams. It seemed straight forward to arrange them into
math Sequential Generation from an Index Value I needed to be able to generate a sequence of letters from a specific index value. Basically, I wanted to loop through a sequence of values and retrieve the corresponding string value. For
5 pin bowling 5-pin Bowling Statistics Calculator Introduction My son plays 5 pin bowling and is a member of YBC Canada. I used to keep track of his average and some statistics using a spreadsheet. I would enter the data
c# Mercurial Push/Pull script with status checking This is a modification to the original script that I published a while back now checks the status (hg status) of the repository before doing anything. If there are uncommitted changes, a message
Linux Use Winscp to sync files from Windows to Linux Recently I upgraded my work laptop to Windows 7. At that time I didn't want to use the previous sync methods that I have blogged about. I wanted to use something simpler (read
Linux Rsync between Windows Folders Following from the last post, here is an example script that uses cwrsync to sync a network share and another folder. I had to map the network share to a drive before I
Linux Sync files from Windows to Linux using SSH Over the weekend I decided to figure out how to sync files between windows based computers and Linux based computers, specifically Ubuntu. On windows I investigated a number of technologies. Finally I settled
programming Python Script to Parse PFSense DHCP Log I have a captive portal setup on my PFSense which allows my laptops and various other devices to connect through wifi. I was looking at the DHCP logs provided by pfsense the other
Linux Convert MTS (AVCHD) Files to mkv Here is a simple shell script that will use ffmpeg to convert mts files to mkv format using the h264 codec to compress them. #!/bin/sh #conversion parameters that seem to work best
Linux Convert MTS (AVCHD) Files to xvid I have a Panasonic Lumix camera that generates MTS (AVCHD) movie files. These files are 720p HD files and are really large. I want to store them in a smaller file format without