Moving from IIS to nginx So I have a confession. I have been using IIS to route traffic to my node instances. This is a legacy thing and has actually been perfectly fine up to now. However, I
Closure on Windows with Linux Subsystem (WSL) So I am planning to do some work with friend and he is mad into Closure so I'm going to give it a go. First, I'll need to get it working. I've mostly
Installing Ghost v1.0.0 on Windows After an unsuccessful migration a couple of months back I tried again. I went with a global install of ghost-cli (using npm v5.3.0) and followed the instructions for migrating to v1.
Upgrading your version of Nodejs on Windows 10 bash Upgrading is the same as installing you just curl the latest version and apt-get install. For example to upgrade to version 7 you would run: curl -sL https://deb.nodesource.com/setup_7.
IT Stuff Equivalent bash commands coming from Windows Some Equivalents WindowsLinux dirls -l c:cd /c (your actual c drive cd /mnt/c) clsclear renmv (there is no rename, just move) copycp delrm (there are lots of options. WARNING `rm` can
IT Stuff Keeping your windows bash up-to-date tl;dr sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove The above runs three commands apt-get update, apt-get dist-upgrade and apt-get autoremove apt-get update This updates the list
IT Stuff Using the new Windows bash as your integrated terminal in Visual Studio Code (VSC) tl;dr Add this to your user or workspace settings: "terminal.integrated.shell.windows": "C:/Windows/sysnative/bash.exe", I really like VSC for javascript development. One of the
IT Stuff Installing basic Node.js dev env on Windows 10 bash tl;dr here's a quick script to install git, node and npm. Run it at your own risk etc, explanation is below # Get root up in here sudo su # Update and begin installing
IT Stuff Using Windows 10 Anniversary bash with Visual Studio Code So you might be enjoying the new bash console that comes with Windows 10 preview build 14316. You might also be enjoying the recently released version 1.0 of Visual Studio Code. One
Angular 2 - Do something when my Observable is complete The Angular2 - http example goes into some detail about using the new http module. For me it leaves out two things. How to do a get with a url parameter How do
Angular 2 - Bootstrap active link tl;dr .navbar-default .navbar-nav > li > a.router-link-active { color: #555; background-color: #e7e7e7; } I primarily use bootstrap to style stuff I am working on (mostly because of my complete lack of any aesthetic
Angular 2 - styleUrls - can't use absolute urls tl;dr can't use absolute urls for styleUrls there is an issue open for it question on SO Quick note on something I've notice when defining Angular 2 component metadata. @Component({ selector: 'my-dashboard',
Adding Disquss This topic is actually well covered in the Ghost Support blogs so this really just for me to remember to update the core\server\api\settings.js file. I have not hard-coded my
How to create new git repo from sub-directory of an exisiting repo tl;dr In the existing repo cd existing/repo git subtree split -P <subdirectory> -b <branch-name> cd new/repo git init git fetch /path/to/old/repo <branch-name&
Some issues with Vagrant/VirtualBox/Windows Issue 1: Long path in your VM Virtual Box defaults to a limit of ~260 characters for paths that are inside their shared folders. Links: https://www.virtualbox.org/ticket/11976 So these
IT Stuff Vagrant is a bit awesome I play around with a lot of stuff on my home computer. The problem with that is you end up with a lot of crap let hanging around after you've moved on from
M3D Micro Printer So my M3D Micro Printer has arrived :) Have to say it is pretty cool. Set up was pretty straight forward. They have a couple of unboxing videos. I did remove the gantry clips
IT Stuff Drupal Views - Block not working I was creating a new view in Drupal recently. I had spent some time customising the templates for the main page. I was moving on to the block as was not getting any
Starting Node as a service with NSSM Ok don't try and use forever as a service with NSSM, NSSM is already looking for failures and restarting the application so this combined with forever doing the same thing ends up with
Books The Passage - Justin Cronin (4.5 Stars) Hat tip to my brother for recommending this book to me. The book is set in a post-apocalyptic world where an army experiment has failed with terrible consequences. The book starts just before
Setting Up - Adding a route to receive Mandrill emails Update I've written a separate node modules for handling inbound mandrill webhooks so as hacking my Ghost code is no longer required mandrill-webhook-server Ghost Mandrill Integration In a previous post I mentioned that
IT Stuff Setting Up - Second Instance I have set up a second instance of this blog Catsie Blog using the same code base. Ghost's config is really well decoupled and exposed in its config.js file. What this facilitates
IT Stuff Setting Up - Email Ghost has a number of options listed in their help for email. Just wanted to add that Mandrill works fine too. mail: { transport: 'SMTP', options: { host : 'smtp.mandrillapp.com', port: '587', service: 'Mandrill',
IT Stuff Ghost memory usage Ghost memory usage so far after about 24 hours is running about 250mb. The compares favourably with Keystone JS that was running at a whopping 488mb after 24 hours. See more about KeystoneJS
IT Stuff KeystoneJS - Why I moved to Ghost Prior to using Ghost I had rocked up a KeystoneJS blog. I had looked around and install a couple of NodeJS based CMS based on this post Best node.js CMS in fairness