Posts tagged with 'How To'

Split your cmder window into multiple panels

cmder is my go-to shell for Windows. Up until recently, I was unaware that it could be split into multiple panels. There doesn't seem to be a menu option to do it, but it’s easily done with these commands (which, yes, I need to look up every time). Split the window horizontally (left/right split): cmd -new_console:s…

Published

Fix Error 0x80072EE7 on Windows 10

I just installed the Windows 10 October 2018 update and was hit with an issue that Microsoft Store and Edge wouldn't connect to the internet. Dreaded error 0x80072EE7. Tried repairing etc. as suggested around the web, but the issue for me turned out to be that I didn't have IPv6 enabled in my network adaptor settings.…

Published

Create a Scratch Branch in Git

Sometimes it gets to 4:59 on a Friday and you've got a bunch of files you've been mucking around with but don't really want to commit. This could be because you're just using throwaway code or because you've made changes to existing files that you don't want to break. In these circumstances, you have a few…

Published

Provisioning a Windows Server Vagrant box with IIS, .NET 4.5 and Octopus Deploy

As part of testing for our new Continuous Integration set-up, I needed to pull together a bunch of machines for testing deployments. I had planned on using Octopus Deploy to do this so Vagrant seemed like the best choice for getting new machines set up. Provisioning The entry point for creating a Vagrant box is…

Add Visual Studio 2013 Command Line Tools to Cmder

Cmder is an excellent console emulator and my go-to tool for Git on Windows. Every now and again I need to dip into the Visual Studio Command Tools to do something like manually run MSBuild, so it’s handy (and easy) to have this set up as a task in Cmder. 1. Manage Tasks Click the plus icon towards the bottom right of…

Published

Format a Linux Disk as Ext4 from the Command Line

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 this, make sure you're using the correct…

Published

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 module needs to be fully responsible…

Published

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…

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: public class UsersController : ApiController { …

Published

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…

Published

Create Desktop Apps out of Google Play Music, Spotify, Deezer, Pandora and Such Using Chrome Application Shortcuts

With Spotify releasing their browser player a while go, all of the major streaming services now have web-based applications. While this is good, I do a lot of work within the browser during the day and have a habit of killing groups of tabs or the browser itself reasonably often. Then there’s a moment of confusion…

Adding Business Layer Caching Using Castle Windsor AOP

Aspect Oriented Programming (AOP) is a programming paradigm that allows separation of cross-cutting concerns. But you probably already knew that if you're reading this. If not, go have a read at the Wikipedia page on AOP or the introduction page on the Castle Project site. The Problem If we have an existing…

Published

Build a Media Centre PC for £129.86

Building a media centre PC for your living room doesn't need to cost a fortune. With new low power processors with onboard graphics, you can put together a system capable of playing 1080p videos with DTS sound and still get change from £130. I've split the components into two categories – Core and Additional. You…

Create a Windows 8 Dual Boot on a Windows 7 Machine

I've been really impressed with what I've seen of Windows 8. I seem to be in the minority but the tile layout, type to search and (almost) instant-on seem like a huge step forward to me. Also, the ability to create desktop apps using HTML5 and JavaScript is set to open up app development to a huge number of…

Published

Force your Raspberry Pi to mount an external USB drive every time it starts up

I spent a while figuring this out about a month ago with a Linux expert colleague (hi, Caz!) but didn't write any of it down because it was going to be “fixed in the next release of Raspbmc”. I'm still getting the issue with the latest release so thought I'd best document the steps for when I inevitably have to do…

Published

Enabling bundling and minification support in a .NET 4 application

.NET 4.5 is going to offer support for bundling and minifying content on the server before passing that down to the client. If you want detailed information on what this is, go and read Scott Gu’s blog post about the features. In a nutshell, bundling is combining several files into one combined file and minification…

Publishing a Node.js Express App to Windows Azure

Windows Azure has really come on in the past few months. With the new management dashboard, support for other web technologies (even horrible ones like PHP) and removal of Silverlight, it’s actually become a pleasure to use. One of the new supported technologies is Node.js. I'll not go into the reasons for using Node…

Published

Two step authentication in Facebook – go do this now

Do you have anything on Facebook that you wouldn't want anyone hacking into – photos, private messages, your endless list of Paolo Nutini likes? If you're nodding your head vigorously just now, it’s time to ramp up the security of your Facebook login. Two step authentication Two step authentication is a mechanism…

Getting Sublime Text 2 to Compile CoffeeScript on Windows 7

Okay, this is maybe a bit niche but I might as well document this for whoever else comes across it. Sublime Text 2 is a pretty nice text/code editor in the same style as TextMate for Mac. CoffeeScript is a reduced syntax for writing JavaScript code. Getting them to work together isn't all that straightforward but is…

Published