Fun with video in a Bootstrap 4 carousel.

I am working on a project at work and they were interested in a video playing up top. I decided it might be more fun if you have a series of videos. I already had Bootstrap 4.3.1 doing things on the page and I almost always have JQuery – you don’t really need JQuery but […]

Simple Python 3 threaded timer in Gtk3.

A quick and dirty timer example. If you need to execute after a period of time use Thread.Timer(). This example uses simple thread and event to start and stop a clock in a Gtk 3 window counting up time in a label. #!/usr/bin/python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk,Pango,GObject import threading import datetime […]

Python 3 ThreadPoolExecutor in Gtk 3

So I wanted to collect all the theme icons on my Linux machine so I wrote a little app. It is really fast using the ThreadPoolExecutor from futures. I’ve used this at work but never in a Gtk app. Here’s the result from the straight Python 3 code without a GUI. That’s a lot of […]

Restful Server In PowerShell

I know I have been focused on PowerShell but I have down time and wanted to play since our shop seems to love it so much. I think I am going to do some other posts, maybe Node or something, because PowerShell is boring. I am building a dashboard so I was playing with PowerShell […]

Classes in PowerShell

I’ve noticed that a lot of admins learning PowerShell tend to use global variables and pass things around to functions, if they use functions at all. Sometimes all you need are classes to make things cleaner and easier to manage. Classes can be intimidating to newer developers or folks who only write occasionally for admin […]

Coin flip in PowerShell, GUI version.

Need to make a decision, like to bet, maybe you just like silly apps? Whatever the reason you’re reading this I hope it helps someone to learn some simple GUI tricks in PowerShell. I didn’t spend a lot of time on this. I already wrote one in C# years ago and had some downtime so […]

Get moon phase in Vala and PowerShell.

I’m working on a project in Vala that requires the moon phase. I’ve done this before in Python myself but wanted to look around for better. I found a nice Python script that just works so I decided to use it in Vala. Again, I’m learning PowerShell so why not convert to that as well? […]

First App Example In Nim

First impression of Nim was, wow! I’m a big Python guy so the syntax made me feel at home. I installed initially with apt and found it to be a tad old. Still, things worked great until I installed a few packages. None would import no matter what I did. I got close but they […]

Video Poker in PowerShell

In between real work, and to learn a bit about PowerShell since I don’t use it often, I created a video poker game. It’s rough and I don’t have time to make it pretty or add a GUI, but maybe it will inspire someone else? I also know very little about poker… I took a […]

How is finding duplicate files with PowerShell using SHA256? Fucking fast.

I just had to do it. I do this because why the hell not? We all have litter. I guess people will be interested in math, data, and AI. How boring… Maybe not boring at work but definitely boring at home. Maybe I’ll get motivated to do some TensorFlow slop. After I finish my GTK […]