SailsJs on Cloud 9 SSH


Quick Note:

SailsJs on cloud9 works wonderfully until you try to lift sails on a different port than the c9 default.

Cloud9 tries to help us by setting PORT and IP environment variables that turn into ‘process.env.PORT’ and ‘process.env.IP’ in nodejs. This is actually very helpful for generic node and express apps, but sailjs has an expectation that you set the port in its configuration files, and these environment variables override those settings.

For example, I set my ports in the previous post about nginx and sails in the config/env/development.js file. This setting (PORT:5001)  works fine on locally installed sails projects but when trying to lift sails on my c9 ssh project everything failed miserably. The solution is simple, though not immediately obvious: remove the c9 environment variable. It has been a few days since I figured out that this environment variable exists and deleted it, and thus far there have been no unintended consequences.

On ubuntu the following command was all it took:

unset PORT

duh.

 

Configure Sails.js with Subdomains on Ubuntu


I have been learning node.js lately, and I have become particularly fond of the sails.js framework for spinning up quick MVC websites. I will probably do a series of posts on sails in the coming weeks, but for now I just wanted to get this small nugget of information out there for anyone that might need it.

C# Get All Dynamic Types in a Given AppDomain


One of the bigger projects that I am working on at work has me loading dynamically generated assemblies into a separate app domain and making calls to those assemblies.

The reasons one would want to do this are varied, and the mechanics of making it actually happen are well beyond the scope of this little blurb. But I recently ran across a need to know all the types that were loaded into this other app domain, and I couldn’t find exactly what I needed online anywhere so I decided to make a note of it here in case I ever needed it again.

var types = (from a in myAppDomain.GetAssemblies()
                         where a.IsDynamic
                         from t in a.GetTypes()
                         select t).ToList();

Avalon VT-737SP VU Meter Repair


One of my favorite rack mount units in my studio is my Avalon 737 preamp/channel strip. It has a nice analog sound with out the pushed mid range frequencies that many other units use to simulate “tube” or “retro.” It adds just enough to make vocals (or anything else really) feel thick and up front in the mix– It also broke recently.

largefront

Avalon VT-737SP

Nixie Clock Part 2: Learning Everything the Hard Way


The last time I posted about my Nixie Clock project the sockets for the tube connections had just arrived and I was beginning to formulate a plan as to how I would power and control these tubes. The plan I came up with, though solid, was implemented so poorly that it seemed worthy of a write-up just to document the extreme level of failure I managed to bake in at every step.

Adventures in Nixie Tube Socket Manufacturing


Not too long ago I got two old cash register displays full of perfectly functional nixie tubes from a friend. My goal was (and is) to use these tubes to build a pair of clocks. I am by no means new to electronics or programming so I undertook this project completely unaware of the challenges that lay before me.

Look at these beauties:

IMG_0244