Categories

Programming

What’s Old Is New Again – App Store

I decided last night to renew my Apple Developer Account and decided to work on apps again. As a result my old App came back to the App Store. This app is the “Are You Worthy?” App, which is basically a Magic 8 Ball to test to see if you’re worthy of wielding Thor’s Hammer, […]

1 min read Scott

A Chat GPT Thing

A few months ago I wrote a program to use: Speech Recognition via Web Speech API. Pipe that to Chat GPT’s API Pipe the response to AWS Polly’s Text To Speech Engine I put the code here: https://github.com/scottpreston/chatgpt-srtts Nothing fancy, just a little playing around and enough content for about a 30minute talk at ColumbusJS.

1 min read Scott

You’re Doing Your Tech Interview Wrong – 21 Tips

Here are 21 tips I’ve used when interviewing/hiring hundreds of people over the past 5 years. I hope you find them useful. If you’re asking questions that can be Googled, you’re wasting everyone’s time or you’re lazy. If you’re not asking questions that indicate someone’s attitude, you’re missing about 80% of their ability to succeed. […]

3 min read Scott

3 Trends about to take off

2017 is halfway over and while some of these trends started a few yeas ago I think we’re about to see a few of these really catch-on, and by catch-on, I mean go mainstream and get funded. Over the next week I’m going to discuss these three trends in a little more details and provide […]

2 min read Scott

Redux’s Connect Method Explained.

Sorry but all the explanations this far have been bad so I thought I’d simplify it. In plain Redux without connect you need to manually bind up your store.dispatch to your components as well as subscribe to updates so you can call store.getState(). But your components are suppose to be dumb. const store = createStore(reducer); […]

2 min read Scott

JavaScript has become Java, sigh…

If I wanted to work with compiled languages, I would have stuck with Java. If I wanted complicated build systems, I would have stuck with Java. If I wanted complicated all encompassing frameworks, I would have stuck with Java. If I wanted complicated unreadable error messages, I would have stuck with Java. If I wanted […]

1 min read Scott

libopenzwave.so error

If you’ve ever seen this error: MinOZW: error while loading shared libraries: libopenzwave.so.1.3: cannot open shared object file: No such file or directory or Error: libopenzwave.so.1.3: cannot open shared object file: No such file or directory Just type this and it did the trick for me (Ubuntu 14.04). sudo ldconfig /usr/local/lib64

1 min read Scott

Openzwave Binary Sensors

I’ve been struggling a bit with openzwave items because its so poorly documented. I’ve finally figured out how to get results from a door sensors with the node package node-openzwave-shared. If you follow the install script, then just add this event handler below, you can receive updates. zwave.on(’node event’, function(nodeid, nodeEvt) { console.log(new Date(), ’node […]

1 min read Scott

Simple WebSocket & NodeJS Server Example

I’ve been searching for a NodeJS server for web sockets, but socket.io, required both the client and server to be run from within node. I wanted to connect to this server via a normal web page using WebSockets from HTML5. Here’s some code, hope you find it useful: https://github.com/scottpreston/examples Server Code var WebSocketServer = require(‘ws’).Server; […]

1 min read Scott

Home Grown Script Loader

I was wondering how RequireJS and AMD worked. So I created this snip. It might not be correct but it worked for me. load(‘foo’, function (foo){ var f = new foo(); f.a = 100; f.b = 200; alert(f.add()); }); function define(name, callback) { modules[name] = callback; } function load(file, callback) { var script = document.createElement(‘script’); […]

1 min read Scott