by vegardhanssen | May 22, 2015 | Uncategorized
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...
by vegardhanssen | May 17, 2015 | Tips
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....
by vegardhanssen | May 15, 2015 | Coding, IntelliJ, Node.js
Writing correctly formatted code isn’t easy to do all the time. So what do you do when you have eg written your json files like: { "test": "testing" , "bla": "blabla" , "yo": "yo to you"} and want it to...
by vegardhanssen | May 13, 2015 | Coding, Node.js
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:...
by vegardhanssen | May 7, 2015 | Coding, Node.js
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...
Recent Comments