EACCES errors during npm install using sudo When you install npm modules globally on mac or linux and get errors like env: node: No such file or directory /usr/local/lib or… errno ENOENT spawn ENOENT or… code EACCES […]
Determine if an image is more or less landscape (or portrait) than given dimensions Here’s a nifty c# extension method I wrote to determine how an image should be resized and/or cropped to fit within certain dimensions. If you divide a rectangle’s width by […]
How I currently set up a Raspberry PI to run a Node.js application Some notes for myself and maybe others. Buy Raspberry PI and SD card. Download Raspbian Wheezy: https://www.raspberrypi.org/downloads/ Unpack the image file, insert the SD cart, and write the image onto […]
Create an iOS app without a mac Here are some notes on how to create the certificates and stuff to publish an app using windows and phonegap build only. 1. Install OpenSSL: http://slproweb.com/products/Win32OpenSSL.html Make sure you have […]
Editing code on a Raspberry PI remotely from Windows Here’s a simple way to set up a workflow for editing code in your favourite editor on windows and have it deployed to a Raspberry PI (or any other linux […]
Display a nice maintenance page for public visitors during deploy in IIS app_offline is a nice and efficient solution for taking an IIS website offline and displaying a message during deploy. However it has some drawbacks, you cannot visit the site yourself, […]
Raspberry Pi to netduino serial communication The Raspberry Pi and Netduino both got their strenghts, but what if they can talk to each other? I did a small proof of concept and got them to do […]
Fun with Raspberry PI, Node.js and websockets I recently did a cool proof of concept; a raspberry PI running Nodje.js with a PIR sensor that emits messages if there is movement, and a Node.js webserver that serves […]
Writing a custom authentication userservice for Roadkill Wiki Here’s how I did it: Create a new class library project. Add a reference to Roadkill.Core.dll and System.Web Create your service as a class that implements Roadkill.Core.Security.UserServiceBase. I found is […]