Often times bash scripts I run depend on other tools. Tools that are sometimes updated. So once in a while I add the following curl command to download the latest tool.
curl -O [filenameURL]
Thursday, April 27, 2017
Bash Scripts Auto Download Dependencies
Posted by Chris Bensen at 7:00 AM 0 comments
Tuesday, April 25, 2017
Building a Raspberry Pi Security Camer - Part 1
Next I'll post about some options for housings for the pi.
Posted by Chris Bensen at 7:00 AM 0 comments
Monday, April 24, 2017
macOS Window of Application has gone off screen
Once in a while a window of an application goes off screen and it can't be moved or resized. I've seen various approaches to get the window back but by far the easiest is to change the resolution. Once you change the resolution all windows are moved to be back within the screen and you'll get the window back.
Posted by Chris Bensen at 7:00 AM 0 comments
Tuesday, April 11, 2017
Super Awesome Debugging Technique with Comments
Here is a trick I learned many many years ago and it remains one of the best tools in my debugging toolbox for all programming languages. This example just happens to be in C++.
Posted by Chris Bensen at 7:00 AM 0 comments
Thursday, April 6, 2017
Programmatically Creating a Window on macOS
Programmatically creating windows without using a NIB file can be
tricky on the Mac. Especially if you're developing in C or C++ instead
of Objective-C. Here's one of the issue most common that may come up.
Assuming you got the window creation code right, you may be thinking everything is going to work, but you get this error:
Oct 30 17:34:39 myapp[48617]
Oct 30 17:34:39 myapp[48617]
This means your NSApplication is not being initialized. In other words,
the Objective-C side of your system needs to be properly initialized.
Adding the following line may help:
[NSApplication sharedApplication];
Most likely you aren't trying to do this so it is never an issue, but for those few souls out there this might just save you some serious time.
Posted by Chris Bensen at 7:00 AM 0 comments