Mermaid Graphing

November 14, 2017

I made a graph plugin for gatsby that uses mermaid to make quick graphs. It works pretty good, if I don't say so myself. On my blog, I'm using the dark theme.

JS project scaffolding

August 13, 2017

This is an opinionated quickstart-quide for a couple types of projects. I use a mac for development, but the same basic procedures should apply in other environments. For all things, I prefer ES6, and following (even future) standards, using npm scripts as build tools, and try to keep the number of files and depth of directories to a minimum, to help keep down cognitive load. Rather than just…

Review: Building Voice-Enabled Apps with Alexa

July 26, 2017

I got a free copy of Building Voice-Enabled Apps with Alexa by Kory Becker, to do a review. At first glance, I thought it would be a sort of dumb history-lesson of chat-based apps, from a non-tech perspective, without any good details. For this book, that would be like judging an awesome videogame by it's introductory levels. I found it to be fairly comprehensive, and got into all the details I…

The Making of GothLappy, My Sweet Hackintosh Laptop

June 06, 2017

I realized this article about my hackintosh desktop is pretty basic and rough, and I thought I would go into more detail about installing OSX Sierra (10.12) with my new Acer Aspire E5-575 laptop. I want to dual-boot it with Windows, just for fun (and because I fear Acer is kinda Windows-centric,) but you could also triple-boot with linux . Basically, there are 2 main factions of hackintosh…

Windows Dev Tools

June 05, 2017

I wrote this article earlier about my hackintosh development setup. Sometimes we're stuck on Windows for whatever reason, so this is how I setup my dev-environment when I have to use Windows. It's from the perspective of a developer who likes OSX and Linux, so it might not be your cup of tea, if you like how Windows works already. Install Stuff Install all of these, first git and make sure "Use…

Make your own protoc plugin super-fast with nodejs

June 01, 2017

I made protoc-plugin to make it easier to write protoc plugins in nodejs. Protoc is a cool program that google made to generate code from protobuf descriptions. If you're not familiar with good reasons to use protobuf to describe your protocols, go read this . On my hackintosh, I got it installed with brew install protobuf . Built-in, it has support for generating a bunch of static…

Dev Tools (Revisited)

May 26, 2017

I wrote this article earlier about my development setup. I thought I would write my current setup process, in greater detail, with new tools and config. I'm just now setting up everything from scratch, so I'll try to put it all in here. If you are on Windows, check out this article . I am on OSX 10.12.5 (Sierra) on a hackintosh . For work, I primarily do backend dev in node & python, and web…

Hackintosh

May 26, 2017

I have put together a few Hackintoshes over the years, but I was having trouble upgrading to OSX 10.12 (Sierra.) I left my machine alone, and just booted into Windows for a while, which made me very sad. These are the notes, after I really dug deep and put it back together again. hardware Hardware is really important in putting together a Hackintosh. To save yourself some pain, get an Intel i5/i…

blogging with gatsby

July 21, 2016

I wanted to make a static blog that used react to render, and generated pages for noscript people (and SEO.) This is about my awesome gatsby starter you can use yourself. If you want to skip ahead to the code or just use it for your own blog, you can check it out here: gatsby-starter-drunkenblog . I decided it was time for a change. I liked gatsby because it uses react and generates plain…

Staging Server with Dokku

June 30, 2016

Here is how I setup my staging server to show clients progress. It's been a really very long time since I wrote something. Sorry about that. Been super-busy drinking & coding! what are you trying to do? I manage systems like this: local development, tracked with git, current on master: run npm start for dev server git push to staging (either master or a branch) git push to production (either…

Make a List of Books with GooglDocs

June 18, 2014

I needed to make a list of my audiobooks for my girlfriend. Since I am an obsessed software engineer, here is how I did it. Let this be a lesson in software problem-solving. Usecase I have a bunch of audiobooks and my girlfriend wanted to peruse them, and choose which ones to listen to in the car. I wanted her to be able to see the books on Amazon, so she could decide which she wanted. This is…

Daydrunk Hipsters Rejoice

June 14, 2014

So, lately I have been super-into brunch . Less configuration, same amount of power as grunt or gulp . It does efficient streaming builds like gulp , so it's faster than grunt , but so much simpler to use than the rest! It's been a while since I had enough time to write a blog post, so I thought I should maybe talk about my new infatuation. I made a quick start skeleton that uses all kinds…

Humble Bundle in Emulator

March 17, 2014

I have a bunch of Humble Bundle Android games that I wanted to play on our house entertainment computer (hooked up to a projector!) Here is how I did it. This is also a guide if you want a really fast & performant Android emulator. This may not be useful for gaming, actually, as many games wouldn't run/install which might be "Intel Atom x86" CPU type (which is needed by accelerated emulator.) I…

Music player in Angular.js

November 30, 2013

Here I will teach you to make an Angular app that plays music, with reusable components that are packaged in single directories. This will allow you to use the same audio controller in multiple apps, even if ou aren't paying attention (drunk.) This is a complete client-side app. Application Design The basic idea is that we have an file store of our MP3 files, and a JSON file with music data in it…

Bootstrap tagging

November 12, 2013

I had a need for a mongodb-driven tagging widget. The idea is that you get nice tags that you can add & remove, and it knows about tags that are already present. First, get some cheap beer, and a bottle of Amaretto. Alternate swigs, and read on. I was haing a lot of trouble with various parts of this. I think I just needed a bit o' gangster-rap & Amaretto. Maybe with my help your roll will be…

Virtualbox Networking

July 17, 2013

Virtualbox networking can be tricky. Earlier I talked about setting up a VirtualBox machine for LAMP development. It's a great way to keep your ideas/experiments fairly atomic, and not effect your regular system. On my Hackintosh, sometimes my network drivers are not 100%, because they are really just fooling the OS into working. I noticed after a recent update that Virtualbox bridged…

Facebook PHP kinda sucks, here's how to make it better

July 13, 2013

Deving for Facebook apps kinda sucks using server-side PHP. PHP's lib is not 100% with all browsers and has lil glitches if you don't do it right, and you gotta really pay attention to a lot of details if you need info from the parent page. I was making a Facebook app that was consumed by many branded retailers, and they all gotta have the right logos, etc. I wanted 1 codebase & facebook tab-app…

Arduino Serial Port Trick

May 20, 2013

Recently, I was making code on an Arduino Uno, that also needed to run on a Mega 2560. The Mega has 4 Harware serial ports, and the Uno has one. I wanted it to auto-create Serial1, if needed, so I don't have to change my code. Having a look at HardwareSerial.h, I saw this: So, at the top of my sketch, I put this: Which will load a SoftwareSerial (on pins 10 & 11) at Serial1 (which is the same as…

Cool SSH Trick

May 14, 2013

I have a generic disposable SSH keypair for working on projects on AWS. I like to not have to remember dumb details (especially when I'm drunk.) Here is how to only have to type ssh HOST and have it use the right key with all new Ubuntu instances I spin-up. Make a file called ~/.ssh/config that looks like this: Save a key named "deploy" in ~/.ssh/deploy.key and it will automatically use…

Automated Clustered Load Testing with EC2 & node

May 10, 2013

I made a simple little clustered testing system, using NodeStressSuite . Basically, I want it to launch a bunch of instances, clobber a server, then remove all the machines. This is all automated, so you just run the EC2-builder, and run it. This is basically a legit use of a DDOS botnet. Here is how I did it. To get my loadtester, check out the github page . Testing Framework NodeStressSuite…

Automating TV torrent downloads

April 15, 2013

I want Stooge, my NAS to be able to keep track of my favorite shows, and download new episodes when they come out. I made TV Party to do this exactly how I want, which is to say: no frills, simple REST API, easy to work with, and no dependencies other than node & npm-installed libs. Installing/Configuring Stuff Make sure you update node . After that, do this: bam! Now, make /usr/local/share…

Making a Safari Extension to handle torrent clicks

April 04, 2013

Earlier I talked about my awesome media/storage server named "stooge". I want stooge to handle all the torrents on my network. I saw some good extensions for Firefox & Chrome, but not Safari. Since my new housemate prefers Mac Safari, I set out to make it awesome. I just need one for Transmission WebUI, but the principle is the same for any other web-based torrent-thing. Basically, I want to…

Merging Multiple Partitions

April 01, 2013

Earlier I talked about my awesome media/storage server named "stooge". I got 2 new 2TB SATA drives and wanted to merge them in a cool way without data-loss & reverse-usability and expense issues associated with other solutions like RAID & xfs. My focus is storage capacity, not primarily data integrity, but I want it to be fairly secure, too. I want to be able to recover things on a per-drive…

Creating a media-enabled Ubuntu NAS

March 19, 2013

I wanted a media-server that would stream to any devices I have on my local network, and allow my housemates & I to download torrents and share files on a central shared machine. I have a Wii that is jailbroken, and running WiiMC. These instructions will also enable media-playing for XBOX360 & a PS3. I also don't really like Webmin, but wanted web-based administration to be simple, with advanced…

Turning a Teensy++ 2 into a full AVRISP-MKII clone (better)

February 11, 2013

Previously I went through a lot of hoops to figure out how to compile a Teensy version of a burner for my XMEGA. This is a simpler version of those instructions. And if you just want the hex file for teensy ++ 2, here . Install CrossPack-AVR to give your Mac avr-gcc. if you are on another OS, install winavr or avr-gcc however you do that. Close terminal, and open a new one to refresh your…

Turning a Teensy++ 2 into a full AVRISP-MKII clone

February 08, 2013

I needed a way to program the XMEGA100 breakout board from Sparkfun , and didn't have a "real programmer". I currently use ArduinoISP running on a bare ATMEGA328 chip to program other ATMEGA chips, and it works great. If you buy a AVRISP-MKII , it can do the same stuff, but also a special protocol (PDI) that the XMEGA board speaks, and TSI for small ATINY chips. I want to just get started with…

Dev Tools

February 07, 2013

I am very particular about my environment. It's not Mac-specific things. I use a cross-platform text-editor Sublime Text 2 and you can use/add bash on any OS/computer. It's specific interfacey things, like keys in the terminal, and the tools installed. Sublime Text This is a solid cross-platform editor (works the same in Linux, Windows and Mac.) It has a lot of features, and a lot of packages to…

How to quickly fix a mis-named user

February 06, 2013

Recently, I was setting up an Ubuntu VirtualMachine, and drukenly mistyped the primary username. This is pretty easy to fix very quickly, thought I would share. First, boot GRUB into recovery-mode, and choose root-shell from menu. We need to find out what I drunkenly typed, and fix it by moving the user to what I meant. At the end, I saw "konsmuer:x:1000:1000:David Konsumer,,,:/home/konsmuer:/bin…

updated node.js on Ubuntu

February 03, 2013

I was having funny little issues on Ubuntu 12.10 64bit, and realized that it was using a really old version of node. I installed a new one like this:

Gameboy development environment

February 01, 2013

I do a lot of weird code stuff. Recently, I was writing a ROM for a Gameboy hardware-platform . Here is how I set it up my dev environment on Mac OS 10.8.2. A lot of "old-timers" I talked to would have serious issues with my advice, but this made my preferred language work on my preferred OS using good tools, with as little fuss as possible. I am an older-timer, and I think it's good advice, as…

Easy dev environment, on any computer

January 31, 2013

If you are like me, you want a full LAMP stack on your box while developing, and don't want it to mess with your other stuff. WAMP & MAMP are ok, I guess, but tend to have little oddities that make them act funny/broken, or they mess with other system files, which I hate. Linux is pretty light, in a vbox totally self-contained, and is a real version of what you will eventually be deploying on…