Solution to Vietnamese pesky snake in #perl

I got a link to the Vietnamese Pesky Snake math problem from my wife. (http://m.db.no/2015/05/21/nyheter/utenriks/matematikk/oppgave/39292707/) And as a programmer, I couldn’t really sit there and solve it with my bare hands. Ok, I admit it’s fun to solve...

#gravatar, easy way of update your avatar

If you are, like me, having a user at many different sites, I suggest checking out www.gravatar.com. Create your avatar once, and use it everywhere. If you want to change it everywhere, change it one place. I’ve been using it for a long time, and I love it....

IntelliJ and TODO

When you code, it’s often you come up with an idea or shortcoming of your function. It’s easy to code on and think you can remember it later. You don’t, trust me. So what do you do when you’re in an editor like IntelliJ? Well, you add a TODO:...

Node.js and random port

Sometimes you need to open a random port on your node server. You can of course try a random one to see if it fails, but a npm module makes this easy: npm install portfinder var pf = require('portfinder'); var http = require('http'); // If you want to change the first...
%d bloggers like this: