26 Aug 2015
Slack and bots go together like peanut butter and chinese food.
They are quite, literally over running the joint.
So with an already loud and notification filled app like Slack,
what’s one more? Hubot is a somewhat older,
coffee script powered happiness engine from the folks at GitHub.
Getting one of these guys up and running isn’t really the topic here but,
this guide is super easy to follow.
Now that there is a bot up and running,
we can’t just check out of the server and have it continue to run.
That’s where Monit comes in.
Monit is a dead-simple, text based uptime monitoring system.
It can search out, at an interval and
make sure a specific program is still running.
If the PID, or whatever is missing,
Monit will use the designated start process to start things back up.
Ok, so how can we stitch Monit and Hubot together?
Matt Garrison, a couple years ago put together a gist for just this occasion.
A couple of things to make this thing work:
- Make sure on the restart and start services to use a user and group that is available to your server.
- Name the bot properly
- Make sure to use the correct path to the bot
- And finally/lastly, call the hubot bin from node_modules, it’s cleaner.
Happy annoying your fellow Slack mates with kittens and Archer quotes. Also, if for some reason Matt removes the above link, here is my forked gist
03 May 2015
Webpack seems to be getting plenty of lip service these days.
Doubly so in the React community which means most of Facebook.
Since Rails leans so heavily on the asset pipeline,
how can we merge ES6, modules, and other bits of Webpack greatness
with the age old,
do one thing well: Sprockets
The following two scripts (one used for Development, the other Production),
show that Webpack can easily integrate with Rail’s existing asset pipeline.
While giving way to utilizing many of the best features hidden in Webpack.
A few caveats about running these scripts:
- The directory structure assumes a
top level in your Rails app.
- The common/development script assumes that assets will be served from a server.
This means you will need a few
- The two urls for this server are: http://localhost:8080/webpack-dev-server.js
- To run the Dev script:
$(npm bin)/webpack-dev-server --config webpack.config.js --hot --progress --inline --display-chunks
- And the Prod script:
$(npm bin)/webpack --config webpack.production.js
- Currently there is only one ‘entry point’ defined as ‘app’.
This will need to be modified depending on the entry point or bootstrap script.
05 Apr 2015
As an avid keyboardist, keyboarder… whatever. I jumped on the very first Inifinity Keyboard offered by Massdrop back in November of 2014. Having built it, played with it and attempted to program it with a missing web interface; there is definitely more than a few words on my mind. However, this post is more of an introduction to the knowledge gained throughout my time with it, instead of a true review/product breakdown. GitHub houses a random collection of markdown files. One specifically highlights ways to build/config/customize the Infinity’s layouts.
Hopefully this helps folks out who are struggling with the seeming lack of information surrounding this obscure but, somewhat interesting way to define keyboard layouts. If for any reason you happen to want to add or correct anything, feel free to open a GitHub issue.
One last thing: There seems to be a lot of talk surrounding the bounce/debounce rate of these boards. Some of them seem to exibit double key presses from one single keypress. While this is a configurable option in the KLL files, it should not be a need if the board was properly soldered. A very easy fix is to flux/solder the connections up with quality 60/40 rosin core solder.
I have finally compiled all of the build scripts into one KLL based directory that could be wrapped in Git. The Git repo is, as always on GitHub and everyone should fork it if they are looking for a quick way to bootstrap their Infinity based Keyboard.
In other news, the awesome folks at Massdrop have released an ErgoDox keyboard variant that will be powered by the same configurator/keyboard mapping language. The great thing about these keyboards using the same controller is only needing to have one workman-p mapping that can be flashed to different keyboards. Which means, although I own and adore my now gen1 ErgoDox, I will definetly be picking up the new version. Likely with stiffer, Cherry MX Tactile Greys.
20 Mar 2015
Nope, not actually problem solving because that is in fact boring, something that no one is really interested in and somewhat of a non starter. Doubley so when things haven’t been updated much around here. Go or GoLang is a fantastic language at hunting down problems, or what some would call “debugging”. I would call it debugging as well however, I am sure there are a myriad of words that all mean the same thing.
Whenever a Go program comes under the green light, the developer uses the handy
run command. This kicks off the compile step inheret in Go programming; and, since this is in fact programming, there will be errors. These errors are accompanied by a somewhat small stacktrace (thank you Rob) along with the line number where the offense is occurring. The greatest thing is that these exceptions are small, readable (by humans) and consise. A programmer with little information on the language mechanics can read: “no method x exists for x” and realize they likely lower cased the first character of the method’s name. Or perhaps they should just look back through through the documentation one more time to see where they took the incorrect turn.
ALSO! Captial methods… Good one.
Overall, a Luddite as myself can figure out what is going on in a language that I am actively learning and feel satisfied. No stacktraces where you have to increase the lines recorded in Tmux. Just a few lines… For humans.
24 Jan 2015
JS For A Week
For the better part of 5 years I have been writing,
hacking and generally focused on the Ruby programming language.
This hasn’t stopped me from exploring other languages; however,
besides a small and rather painful stint writing PHP (again),
many days were spent crafting Ruby code.
In addition to this,
the last 2 years has been spent ping-ponging between different code bases.
Not so much over the course of the past week.
and all for a single product.
What was learned
The best thing to do after a dicotomy of a situation like this
is to perform a bit of introspection
Why it was hard
## Why it differs so greatly from Ruby
## What was the takeway