Using Express inside Electron

I'm going to be honest, this was a bait and switch title. Mainly because in my opinion you should never use Express inside Electron. There are a number of reasons for this, so in no particular order. You would be opening up a publicly accessible port on your users machine. Any program on that machine or any website loaded in a browser could connect to your local express instance. It won't work on some user's machines due to their firewall settings. It simply won't let you open the port. Express doesn't make much sense in the world of Electron. Why »

How my stupid package name made my users updates 5 times too big...

So this is an interesting one, I bet you're all sitting there trying to figure out how something as abstract as a package name has any affect on the size of update files. Yeah... That's what I spent hours puzzling over as well :D In The Beginning So for the last couple of updates to GPMDP I've been noticing the delta update files have been getting bigger and bigger regardless of the code change. One update I changed a single line of code and the delta file was 12MB. This of course bugged me quite a lot but I didn't »

Using React DevTools inside Electron

Background So, you have heard about this great framework called Electron that lets you make beautiful, fluid cross-platform desktop applications with the web tools you know and love. And you're a massive fan of React and you think that pairing them together would be absolutely amazing. First of all, you are correct! React and Electron is an amazing combination and if you want to try it out for yourself I recommend trying out the Electron and React Boilerplate. The Problem When you are making a React based website and you want to debug it, you head over to your Chrome »

How my site went from 20 hits a day to 5 MILLION in a week for no extra cost

On the 6th of March 2016 I posted on reddit about my new release of my Google Play Music Desktop Player. A few hours later I logged back in and my inbox had over 600 replies, I rushed over to look at my website statistics and saw the server was getting absolutely hammered with requests. Here began the 12 hours of "just keep the damm site up", the site was being hosted on a $5 a month Digital Ocean droplet and I was amazed it hadn't crashed already. I had set up no caching and it was serving all requests »

Global Hotkey Recognition in WinForms

So as part of my Google Play Music Desktop Player project I needed to listen for certain keypresses even when the application wasn't in focus. In practice I assumed this would be straight forward but I ended up scratching my head in puzzlement for hours before stumbling accross a semi-working solution and then making it work effectively. Making it easy for you There is a handy class which I found on a Gist and modified to work effectively using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms; using System.ComponentModel; namespace Utilities »