Subscribe: Calvin Hsia's WebLog
Added By: Feedage Forager Feedage Grade B rated
Language: English
calvin hsia  cameras  file  internet things  internet  iot  monkeys  program  raspberry  visual studio  windows internet  windows iot  windows 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Calvin Hsia's WebLog

Calvin Hsia's WebLog

thoughts from a professional developer

Last Build Date: Wed, 31 May 2017 00:31:30 +0000


Debugging Monkeys on a Raspberry Pi

Wed, 31 May 2017 00:31:30 +0000

The last couple times I wrote about using a RaspBerry Pi and Windows IoT: I was contemplating getting Monkeys working on an Arduino, but that would have required a lot more effort (I’d have to implement a lot of the base functionality, like collection classes, hash tables, I/O, etc.) and it would not...

Create a security system with cameras on your Windows IOT Raspberry Pi

Sat, 29 Apr 2017 02:14:14 +0000

Last time I wrote about getting started using a Raspberry Pi and Windows Internet Of Things. This time I played around with adding USB Web cameras to the Raspberry Pi. The code below will dynamically check for cameras as they get connected and disconnected from the device. It runs on Windows IoT, so works on...

Getting started with Windows Internet of Things (Windows IoT)

Thu, 16 Mar 2017 00:49:56 +0000

With just a few items you can get started building apps for Windows Internet of Things using VB, C# or C++ on a Raspberry Pi 3. The Pi is a small quad core 64 bit ARM processor clocked at 1.2 GHz. It has built in blue tooth, WiFi, Ethernet, HDMI, and 4 USB ports. Read...

Cannot open include file: ‘metahost.h’: No such file or directory

Mon, 13 Feb 2017 19:28:47 +0000

You might upgrade your Visual Studio Project to VS 2017 and you might get errors like: 1>c:\memspect\vsassert\pch.h(20): fatal error C1083: Cannot open include file: ‘metahost.h’: No such file or directory On  machine with an older version of Visual Studio, I found metahost.h at: c:\Program Files (x86)\Windows Kits\8.1\Include\um\metahost.h Looking at the file, I see that there...

Faster monkeys

Tue, 31 Jan 2017 03:01:42 +0000

Last time I showed how to simulate monkeys typing on typewriters, using letter frequencies based on input text, like Hamlet’s soliloquy. The results were remarkably similar to the input text, but the output was relatively slow. Below is a version that has the “Optimum” option that outputs much faster if the “-o” command line parameter...

More Shakespearean Monkeys

Sat, 10 Dec 2016 00:54:47 +0000

  While I was in high school, I attended a lecture at Yale University in 1974 about monkeys at a typewriter by William R. Bennet, Jr, one of the inventors of the helium-neon laser. Quote: He was also frequently seen at various sites around the Yale campus collecting data for his popular course on “The...

It’s easy to use Windows Hooks, even from C#

Wed, 30 Nov 2016 03:40:15 +0000

Microsoft Windows is based on showing windows of data to the user (duh). An application can create windows with which to interact with the user. Every window has a Window Handle, which is used just like an ID number. The Windows OS communicates with the application windows via Windows Messages. For example, when you type...

Automatically open Visual Studio Projects and Solutions using IMessageFilter

Sat, 29 Oct 2016 01:21:16 +0000

I wanted to learn more about what an IMessageFilter is and how it behaves. So I wanted to have some sample code that used it to demonstrate its behavior. So I wrote a program that starts Visual Studio, calls some properties and methods (like Get Version and MainWindow.Activate)  and then opens a solution of one...

Memory use of Dynamically expanding TreeView

Thu, 29 Sep 2016 01:08:46 +0000

I created a tool a few years ago that uses a WPF TreeView with huge numbers of nodes. The branching factor is pretty high (the number of branches per level), and the depth can be several hundred levels. Of course, creating the whole tree would consume huge amounts of memory and processing time. This is...

Use gravity to generate Cartoon animation frames

Wed, 31 Aug 2016 18:02:54 +0000

I wrote a cartoon animation program around 1982 in C. The Honolulu Academy of Arts asked me to demo the program in their Focus on Computer Graphics. The program allows the user to draw lines of a cartoon frame using the mouse. The user then saves that frame and draws another. To animate, the program...