Fauie Technology

eclectic blogging, technology and hobby farming

Author: chris fauerbach (page 1 of 2)

Visual Studio Code, Github, MinGW, C++

I’m working on a series of videos to share. I’m teaching an Advanced Programming class at Virginia Commonwealth University (vcu.edu) in the school of business. The idea with this video series is to reinforce things we go over in class. Here are a few:

How has it been so long?

How has it been like 10 months since I posted something? Work, life, the farm, they’ve all been super busy and crazy!

Apple likes me…

well, maybe they don’t LIKE ME, LIKE ME.. but they validated Fauie Technology, LLC.  I can finally complete the registration for the Follow Me app!   I’ll start to push this heavier once the application is published.

For day one, compatibility will be a PTZ Optics camera that does control over IP as well as an Amcrest 1080P POE camera with HTTP controls. 

This allows a top end and a low end camera to be controlled by the same application. More information to come!

chris.

Building a Mac OS App

While building my “Follow Me” application,  I got to learn a new programming language in quite a while.   Swift 4 is new to me.  I’m a super huge fan of Python.  I’ve done Java for about 20 years professionally.  This was the first time it took me a ‘while’ to understand some things.  It also could be since it’s a non-web based UI application.  I mean, I’m used to a ‘main’ function that kicks off everything.  Even building a python UI, I started with a __main__ function.  This one, I don’t.  I get some sort of storyboard with a first responder.  Alright, I’m rambling.

One of the challenges I had was finding examples for Mac OS based (OSX) applications.  EVERYTHING seemed to be build for iOS.  I get it.  iOS is super duper more popular than Mac OS/OSX, but, I worked through it.

Thankfully, switching classes that start with UI to NS made a lot of the examples work!

Check out the first project:

Follow Me – PTZ Autotracking

Python Callback Function Declaration / Definition

I’m working on a metrobus based project, and was curious how to define a flexible callback method that had a required parameter, and other keyword arguments.   I have used *args and **kwargs before, but wanted to really experiment on what I could do with them.   For metrobus, I’m only going to ‘require’ a ‘message’ parameter (single parameter callback function), but, I’ll have to use **kwargs on my declaration just so I can be a little more picky about what I receive each time.   Check out some experimentation:

 

« Older posts

© 2020 Fauie Technology

Theme by Anders NorenUp ↑