Geekiness and life on the third coast

Turn off IntelliSense in Visual Code

idk what idiot thought having pop ups all over the place when you are coding is a good idea? They showed up in VS after the last update I did. After much trial and error I arrived at this solution:

I found there are two things you need to do to turn them off:
– edit your settings file
– delete the .vscode directory in your home dir

My user settings file looks like this:

“editor.quickSuggestions”: false,
“editor.suggestOnTriggerCharacters”: false,
“editor.snippetSuggestions”: “none”,
“editor.wordBasedSuggestions”: false,
“editor.folding”: false,
“editor.acceptSuggestionOnCommitCharacter”: false,
“editor.quickSuggestionsDelay”: 9999999999,
“editor.minimap.enabled”: false

Crash course machine learning

My favorite machine learning resources

If you already have a strong science, math and programming background you can teach yourself machine learning in a relatively short time.

These are the best resources I’ve found so far for learning machine learning:

Basic Data Science, much of the math and deep learning is based on this stuff

Run through the Kaggle tutorial and try solving the Titanic problem using Python with SciKitLearn

Introduction to Statistical Learning

Elements of Statistical Learning

Anaconda Python and all the ML libraries you’ll need to get started

Neural Networks and Deep Learning

Deep Learning using Theano, walks you through building a deep neural network to solve the MNIST problem.

Deep Learning Tutorial from Lisa Labs ( what the Deep Learning with Theano is based on, more of a focus on Theano and less on the networks and math )

Deep Learning Book

Hinton, Neural Networks for Machine Learning Lecture Series

Recurrent Networks

WildML Recurrent Neural Networks tutorial

Reinforcement Networks

Deep Reinforcement Learning in 132 lines of Python

Walk through Sutton’s book: Code, links to textbook, videos, papers

Reinforcement Learning, Sutton (textbook)


TensorFlow and deep learning without a PhD

TensorFlow for Poets

Machine Learning with TensorFlow ( book ) $

Stanford CS 20SI: Tensorflow for Deep Learning Research

YouTube video lectures based on CS 20SI

Papers with source code


Papers, all the new important papers are here


Stack Overflow type site for machine learning


News, tools, data, help

KD Nuggets

Medium Long reads on all sorts of topics, including ML, robotics and AI


Field Guide to Data Science ( read past the first few pages, it gets better as it progresses )

Beating Kaggle the Easy Way ( lots of good beginner’s tips and tricks )

The Neural Network Zoo

Tips for training deep networks

Theano, a short practical guide

Computer vision for dummies

A Kaggle Master Explains Gradient Boosting


Google’s Deep Learning Summer School 2016 day 1 lectures, ( long empty intro skip ahead a bit )

Google’s Deep Learning Summer School 2016 day 2

Tutorial, Reinforcement Learning with Sutton

Classics that still hold true

More is Different

The Mathematical Theory of Communication

Let’s Take the Con Out of Economics

From OS X to Windows 10 Development

I’ve been developing apps on OS X for about 5 years. Many recent things have me rethinking OS X and looking at Windows again. I purchased a SurfaceBook with Windows 10. I absolutely adore it. Setting up the development environment has been mostly but not totally painless. All of the items listed have Windows and OS X versions.


Things to download and install:
R and RStudio
Visual Studio (try them all, I use Code for simple stuff, Studio for complex projects)
Calibre (pdf catalog for keeping all your manuals and technical papers organized)


Moving files and projects between OS X and Windows 10
Google Drive
One Drive


Unexpected kinks:
“The term ‘conda’ is not recognized as the name of a cmdlet…..”
Open a terminal
type bash at the prompt, and try again.

Running Python and other languages from Visual Studio requires a tasks.json file in the .vscode directory.

Task file for Python in VSCode:
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
“version”: “0.1.0”,
“command”: “python”,
“args”: [“${file}”],
“showOutput”: “always”

Unbutu on Windows

Setting up Ubuntu on Windows 10

What works so far:
Anaconda 2.7, 3.5 ( *Installing Anaconda on Windows 10 Ubuntu )
XGBoost (conda install -c creditx xgboost )
Then (conda install theano)
TensorFlow (conda install tensorflow)
The easiest way is to download and install Anaconda, then use conda install to install other packages.

* Theano not working on Windows 10 Bash
OMP: Error #100: Fatal system error detected.
OMP: System error #22: Invalid argument
Aborted (core dumped)
This is actually a scipy fail. See discussion on turning off KMP affinity ENV setting ( add export KMP_AFFINITY=disabled to your .bashrc file, close and reopen bash shell )

( * I’m only using CPU, haven’t figured out GPU support yet )

Got yas
‘Double tap/drag’ to drag/resize windows on Windows instead of ‘click/drag’ on OS X


Moving music
In iTunes:
File->Create New Version->Create MP3 Version


Geek gathering dinner


Saturday Night Pasta

This is a favorite of mine. A local restaurant serves it and it took much longer to decipher than most recipes.

I use pre-cooked ribs with sauce, you can use your own.

– 48oz precooked barbecue ribs with sauce
– 2 cans diced tomatoes
– 32 oz marinara sauce ( I use Michael’s of Brooklyn )
– 3 cups of mushrooms, quartered, cooked up with butter
– 1 very large sweet onion, diced, cooked up with butter

Toss everything in a crockpot, cook until the meat falls off the rib bones.
Remove the rib bones from the sauce.

Makes enough to use with 4 pounds of pasta, I freeze a few containers.
Total calories 1260

Building a truly smart home

This year’s home project is to make the house smart. The goal is to use lots of cheap, easily installed, dumb sensors the aggregate of which creates an intelligent home.




– Okay
Kevo smart lock It needs batteries to run, can be flaky and noisy locking and unlocking, but it’s really nice to have one less key to keep on me. ( It randomly locks me out when I’m going for a run or to check the mail )


– Excellent
Honeywell Wi-Fi Smart Thermostat The temperature is much more even throughout the house. I love the screens and running the fan to filter the air automatically.

If you want to install a smart thermostat but do not have a C Wire it’s very easy to add one. You can buy 5-wire thermostat wire at your favorite hardware store, it’s about $20 which was about 3x as much as I needed to add wires to two thermostats. We duct taped the end of the new wire to the old and slowly pulled it through the walls. Cut a much longer piece than you need and take the time to untwist it so it doesn’t kink inside the walls while you pull it through. Honeywell and several do it yourself sites have photos of where to hook up the 5 wires on the furnace/AC end.

Ecobee I replaced the 2nd floor thermostat with an Ecobee. There are lots of tiny rooms up there ( all designed to be bedrooms ) having multiple sensors across the rooms lets me set the temperature in the room I’m using to be comfortable. ( master bedroom at night, home office days etc )


– Excellent
Ring Doorbell This is wonderful, no more opening the door to talk to door to door sales men.


– Fail:
– I’ve recently begun setting up hydroponic gardens. I wanted them automated, but the builtin in timer switches wouldn’t work, these all needed to plug into something. GE has a 24 hour basic plugin timer, it’s about $3.50 at your local hardware store, $8 online. A couple of those let me automate the lights and water pumps. Despite being blinding to humans the LEDs weren’t bright enough for the plants to grow properly.


– Better
Samsung Smart Cam You can set up another Gmail account and have it upload all the photos to Picassa which is a nice way to keep them and view them when you’re not home. This camera is flaky as hell and goes out when I most want to capture images. I’m looking for a better option. ( on the upside it didn’t burn down the house like the Samsung washers and phones )


– Meh
Pocket Sentry Motion Cam let me use 2 old iPhones (3/3G) and set up motion sensing photo taking security. No internet interface if you don’t want one. Every afternoon when the sun would hit the window it was glare out and in the summer the phone would stop working till it cooled down.


– Excellent
– Replaced halogen under the cabinet lighting with LED and hooked up motion/light sensors switches to them. I really like these, there are three and it’s enough to light up the entire kitchen.


– Excellent
– I replaced a light in a niche with an LED a few months back. This week I found my first programmable ( 7 days, 24 hours ) light switch and hooked it up to turn on the niche light at 7am and off at 10pm. Off the light went at 10pm, but not all the way. It turns out many 3 way switches, dimmers, motion sensors and smart home switches leak enough trickle charge to keep the LED on at a very low light. As far as I know there is no danger in this, it can be a bit unsettling. If you are using LEDs and smart switches they either all need to be compatible or you need to be comfortable with a little light trickling out. These switches can also be set to random to make it appear someone’s home while you’re out of town.
( Parts: Indoor Digital Timer by Defiant ) (* it forgets its settings every time the power goes out and it’s really difficult to read the screen to reprogram it, I still love it, but am watching for a better version )


– Fail
– I put solar lights on the upper window ledges in the two story room, it’s free ambient lighting, no wiring required. I used outdoor lights, the ones they have for gardens, didn’t use the stakes. The window ledges are large enough to hold them comfortably. Watch the lumens when you buy solar lights, I’ve been able to find 6-8 lumens for the same price as 1.2 lumen lights. The windows receive different amounts of sun so lights the were always a different brightness.


– Excellent
– Motion sensor lights in small rooms that are used for a short time: bathrooms, hallway, garage, laundry, walk in closets.
( Parts: Lutron Occupancy Sensor single or three pole $20-$30/ea )

– I couldn’t get the wall switch motion sensor to work master bedroom closet. The switch is jumpered off another light and there’s an outlet jumpered off of it. So I swapped out the light fixture and used a motion sensing bulb, but that didn’t work either. I guess the odd wiring setup interferes somehow? idk? I’ll come back to this one.
( Parts: Polar LED bulb with motion sensor, or AmerTac Indoor Motion Activated Light Control )


– Okay, some of them make a whistling noise while the water is running
– LED temperature sensor in shower. The lights are blue when the water is cold then turn purple, orange, red, flashing red as the water heats up. This requires no battery, you may need an extension arm to mount it in your shower. This is very nice, no more jumping into a cold shower. I liked the rainfall shower so much I upgraded to the 12″ one.
( Parts: VDomus 8″ Wall mount LED Color Changing Square Overhead Showerhead $35/ea )
LED temperature lights in shower


– Excellent
– LED plugin night lights that turn on only when the home is dark.
( Parts: Maxxima 10 LED Night Light with Sensor, 4 pack/$13 )


– Excellent
-LED plugin night lights that turn on only when dark and motion is detected
( Parts: Amerelle Night Light, $10/each )


– Meh on the laptop, Excellent with an old iPad or iPhone
– iTunes on an old laptop has been setup to play music ( both mine and internet radio ) through the house stereo. Apple has an iPhone/iPod app called ‘Remote’ that allows you to control iTunes from your iPhone or iPad. The house came with a built in stereo system that has speakers in the master bedroom and all the public rooms.


– Useful
– Temperature sensor in attic that transmits temperature to indoor station.
( Parts: wireless weather sensors and base stations, $10-$200 )


– Flaky
– Water sensor alarms: one in the first floor bath, one in each overflow tray for the AC condensers in the attic, all of the above have flooded in the past.
( Parts: Swann Anti-Flood and Water Leakage Alarm $20/ea )


– Fun
– LED temperature sensors in the bathroom sinks: These require no batteries, running water turns the light on. The color changes from blue to red as the water heats up. These were trivial to install in facets with screw in aerators.
( LightInTheBox LED Kitchen Sink Faucet Sprayer $4/ea )


– Excellent
– Motion sensor night lights up driveway and front walkway. It’s deliberately overly bright in your eyes to discourage unwanted visitors after dark.
( Parts: Utilitech 360 Degree, Dual Detection Zone, LED motion sensor night light ~$130 )


In progress:

I picked up a Windows IoT Pack from AdaFruit, haven’t had time to play with it yet.

Mosquito control: Moved to here, it was getting lengthy


– Temperature sensor to turn on/off oil filled radiators we use for heat in cold rooms in the winter.( might have to home brew this one )
– Ceiling fans that turn on off depending on the temperature of the room
– Interactive sensors for pets to do idk yet?
– Garden soil moisture and temperature sensors to turn on irrigation when needed and only when needed.
– Send distilled water from AC condenser to garden for irrigation, not down sewer
– Have water sensor turn off AC if pan starts to fill (one completed, will do next one when compressor needs replacing)
– Natural gas generator that turns on when we lose electricity
– Ambient data, weather, traffic etc
– Weaponized robot to defend home from salespeople and missionaries ( have English Mastiff to keep strangers away in the meantime, ‘ least when he’s awake, which isn’t often )
– Acquire military drone to keep squirrels out of gardens ( may have to settle for a house cat for this one )

This page will be updated as projects proceed and new ideas come to me.

Other home projects:
Saving energy in older New England homes
How efficient is your home?