/bio/skills/blog/math

Cleaning Nix Store from Devbox

Devbox is a pretty great interface for Nix. Natch, there re edge cases where devbox commands alone won't do. Recently, one of my python virtual environments in devbox kept having dependency problems....

Get that Mongoose

In general, in a MongoDB production environment using Mongoose, the driver should automatically reconnect to the database when it loses its connection....

Soon Come, Npm 6

The Yarn npm client provides support for flat installs, which solves our #1 issue with npm. - Justin Fagnani

C'mon npm 6!

JavaScript Null Object Pattern

Suppose we want to traverse an object obj like so obj.key1.key2.key3.... For any object, we’d have to check that the key (key1, key2, key3, etc) exists while we traverse....

Actually, this halts function doesn’t exist… in this universe....

How to add emmet to atom for JSX

How to add emmet to atom for JSX without ruining your ability to tab. Go to the Atom menu then Keymap... and add this to your keymap.cson file....

Flexbox

First of all, this tutorial is pretty dope. Here are some pointers:

  • Learn the difference between, main and cross axes....

Gulp Clean

Here’s a useful (semi-useless) discovery. To get gulp tasks to execute synchronously, we need to return the gulp stream at the end of each task so they can pass onto an implicit promise....

JS Regex

Because regex is awesome, I decided to write a little note about it. I don’t use a lot of regex in my JavaScript....

Encrypting files on MacOS

So, if you want to send some top secret stuff, you should probably talk to a security expert. But if you’re sending second-rank secret stuff to a Mac user Disk Utility is great....

Cull

Sometimes I get some cruft in my development environment. I’m a big fan of git stashes....

Waveform Visualization

Ok, as I think I mentioned, there is no native ruby mp3 player. Fortunately, there is a paperclip and another server....

JS Player

So, there’s no native Ruby mp3 player which could decode an mp3 into a WAV/PCM file. However, creating a waveform graph from a PCM/WAV file is actually fairly trivial....

Soundcloud, dancecloud, soundcloud

So, I decided to make a soundcloud clone. It’s a hybrid multi/single page app: I’ll be making extensive use of Rails, but I’ll also have some backbone.js parts....

The rabl rousers and BART

After creating a gist clone using backbone, we saw a demo of another (better) way of doing it using rabl, a JSON templating system....

Your API has an API

Ostensibly one might think that a single page application would be simpler than a multi-page app. I mean, it’s just one page. The multi-page app might be dozens of pages....

2025 Stefano De Vuono