NodeJS Module Tutorial: A New Series
March 1, 2016
Recently at work we’ve been busy working on a number of security projects. One of the key projects is having our user directory accessible universally which means LDAP. So we’ve undertaken moving our “Directory of Truth” from Okta to JumpCloud. While Okta provides a good product, JumpCloud provides LDAP-as-a-Service (and RADIUS-as-a-service) which has worked very well in my testing so far. What does this have to do with writing a nodeJS module? Well, JumpCloud has a lovely REST API and had no NPM module.
Installing nginx 1.9.7 on Ubuntu 15.04 / 15.10
December 18, 2015
Historically I’ve been one for the LAMP stack. However over the past year or two I’ve spent a lot more time working with new fun technologies like Node.JS and Meteor. While there is nothing wrong with running these applications inside the LAMP world, some things like Websockets just don’t work well with Apache. As such I’ve been exploring the dark and dangerous world of nginx. Being one to love the latest and greatest (along with a desire to get in on this cool HTTP/2 train), I figured out how install the latest edition of nginx on Ubuntu 15.04/15.10
Lost some files in AWS Glacier? I found 'em
August 6, 2015
During my last few visits to the AWS Popup loft, I really dug into my Amazon Web Services account, especially the billing. My bill had skyrocketed to over $5 a month! What had happened? How did I miss this huge spike in billing? Well, it turns out that a majority of that bill was from AWS Glacier, I must have stuck something in there for safekeeping and forgotten about it.
Tutorial: AWS API Gateway to Lambda to DynamoDB
August 5, 2015
After last week’s Internet Of Things hack session, I became fascinated with all the fun IoT projects and technologies there are to play with. Everything you do, requires data to go into the cloud, so I figured I’d start there. In the hack series I learned how to push data into AWS Kinesis which is amazing, however it has its disadvantages. On the flip side there is the new AWS API Gateway which I also haven’t spent much time on, so that’s a perfect thing to learn. After some tinkering, I found that while AWS API Gateway -> Lambda -> DynamoDB might sound complicated, it’s actually quite easy.
SocketIO IRC-style Tutorial – Part 3 – The server code
July 21, 2015
This is the 3rd post in a multi-part tutorial series on Socket.io. See Part 2 here. In today’s portion of the tutorial, I’ll be explaining the server side (NodeJS) code in a bit more verbosity than the comments. A fair portion of this will simply be explaining the “why” of each section of code. Additionally, since we haven’t discussed the client side code, I’ll be enumerating on the missing links between the two where necessary.
SocketIO IRC-style Tutorial – Part 2 – Getting started
July 17, 2015
This is the 2nd post in a multi-part tutorial series on Socket.io. See Part 1 here. As with all things in life, code is in a constant state of change. Eventually, this tutorial series will be improved, but so that we can all stay on the same page, let’s start with the same version of code. You can go to ShakataGaNai/socketio-sample/d9b7bcc132 to browse the exact working copy this tutorial is based off of. You should download version d9b7bcc132…zip file as well, to work with locally. The repository only has three important files; app.js — which contains the NodeJS server application, index.html — which is our client side (in browser) application, and package.json — which provides some basics about this app, including the dependencies.
SocketIO IRC-style Tutorial – Part 1 – Intro
July 16, 2015
1 One of the technology things that excites me the most is the use of Websockets to help power the “Real Time Web". When you use a modern browser and use a web based chat system (like IRCCloud), it very likely uses websockets. Twitter feed constantly updating? Websockets. Facebook feed growing as you waste the day? Websockets. “Real Time” Google Analytics? Websockets. You get the idea, lots of cool things we use every day built for the real time web, many of which probably use websockets. The easiest way to use Websockets with NodeJS (which I’ve been spending some of my free time on over the last year) is a nifty tool called Socket.IO.
Making Of: The MFA Phone (Because Twilio is too easy)
April 16, 2015
Like so many others, I strongly believe that multi-factor authentication (MFA) should be a requirement for every website. It is a cheap and (fairly) easy way in which we can secure the sites of today, that use the authentication from yesterday (well, a few decades ago), until we have the secure authentication of tomorrow. Companies like Authy and Duo are making it faster and easier than ever before to adopt MFA into your personal workflow for “Everything”. That is, until you need to share a login with colleagues.
Photoshop CC infected with a virus called “Node.exe”
April 3, 2015
What is this ‘Node.exe’ thing? Sounds scary! Or so the innocent user thinks. Sue me for enjoying the occasional sensationalist headline, but it’s a legitimate comment about randomly including software and NOT explaining yourself. Fortunately for me, I know what it is, but a lot of users don’t. Adobe has, to the best I can tell, started to include NodeJS in Photoshop and possibly other apps from their suite. It’s a legitimate copy signed by Joyent, so the likelihood of being a virus is close to nil, however there are a lot of users with this same node.
Book Review: The Node Beginner Book
September 3, 2013
During August I went and took my first “real vacation” in about 5 years, however I ended up having to work most of it. Unfortunately I’m still working on that elusive “real vacation”. During the times I wasn’t working, I spent some time reading The Node Beginner Book, and generally trying to learn Node.js. I’ve read a lot of technical books and honestly wasn’t expecting much out of a 60 page “book”, but I was honestly and pleasantly surprised.
A collection of useful/nifty/cool ST2 Plugins
July 30, 2013
A little while back during my exploration of PHP IDEs, I evaluated Sublime Text 2. At that point I had found a number of nifty plugins for ST2, mostly for PHP development. Since then I’ve found even more plugins that I find useful/nifty/cool. They are not PHP specific and I do not use all of them on a regular basis, but I think they are all worth sharing. Of course, as my collection of shinies is always growing, I welcome suggestions (that’s what the comment section is for)!
Setting up Node.JS on OSX – Quick and Easy
July 24, 2013
Recently, I’ve gotten into learning Node.JS. Installing Node on my servers for remote development is easy enough with a wajig install nodejs, however I want to be able to work off my laptop while I’m on vacation. While it’s not quite as easy as one command, it really isn’t that hard to setup.