There are plenty of guides for how to do this online. But I end up spending 20 minutes searching every time I need to remind myself how to do it, so I’m putting it here to save me that hassle. For the code, I’m just going to assume the drive is /dev/sdb. If you’re following […]
Inject CSS From Your RequireJS Module Into The Main App
We’ve been doing some work on a data display app that serves as a framework for a bunch of modules. We picked RequireJS to create the app due to its modular structure and used it with a Node.js backend to build a small app that we can now create child data modules for. Each child […]
Using Flexi-Time Like a Boss
I’m pretty lucky (from what I hear) in that our company operates a flexi-time system. I used to work strict 9:00-5:30 years ago but it never real fit well with software development. It’s not often that you’ll get to the end of a task bang on finishing time so you find yourself either working late […]
So You’re a Professional Web Developer Are you?
Over the past few months, I’ve been helping out with recruitment for one of our offices by putting together a coding test and then marking the results. It’s been eye-opening. Also part soul destroying and tear inducing. At one point I stopped to look for the hidden camera, expecting a ghostly Jeremy Beadle to appear […]
Use Karma and Grunt to Run Your Jasmine Tests in Real-Time
As JavaScript applications become more common and more complex, the need for good unit test coverage also increases. Hopefully you’re already writing tests. If not, why not? When I’m doing TDD with C#, I use NCrunch to monitor all tests within the Visual Studio Solution and run them as they change. This saves me having […]
.NET Distance Model
I actually put this together a while ago but have just realised I never put it up here. The Problem As part of some of the work I’ve been doing over the past year or so, we’ve run into issues dealing with units of distance. The most problematic of these being when an app that […]
Amazon Prime: A Mini Review
Amazon Prime is “Unlimited FREE One-Day Delivery on millions of eligible items” that costs £49/year. Here’s a quick overview of it during my Christmas shopping experience. Skyrim: Late Ordered: Wednesday 27th November Estimated Delivery: Friday 29th November Arrived: Monday 2nd December Kingston 4G RAM: Lost Ordered: Friday 6th December Estimated Delivery: Saturday 7th December Arrived: […]
Post an array of objects to WebAPI using jQuery
This is quite niche but caught me out the other day. Let’s say you have a person entity: public class Person { public int Id { get; set; } public string Name { get; set; } public int Age { get; set; } } and you have a WebAPI method that takes in a group: […]
Stop Getting Random Post Notifications from the Facebook App
A month or so ago I started getting seemingly random notifications from the Facebook app about posts/links/photos friends had posted. The weird thing was that it wasn’t recent stuff: most of it was from several days to weeks in the past. Here’s how to switch it off. Go to your Account Settings Open Notifications Settings […]