Some of my many fascinating writings, mainly on web and app development.
Creating a chord diagram generator
02 March 2023 RustI recently made chordgenerator.xyz - a web app using Rust which lets you create guitar chord diagrams. The source is on Github here. This…
Static file paths with Actix
19 February 2023 RustThere’s a couple of options I’ve come across when I need a path to a directory with Actix, usually for static files like Javascript or CSS…
Use prebuilt rooms with Rust macros for more interesting procedural dungeons
21 September 2019 RustUse pre-designed rooms to generate more interesting dungeons.
Fixing an Adsense 'Valuable inventory No content' error
23 April 2019 WebHow to fix Adsense's mysterious error
Moving to Gatsby (and Rust)
08 April 2019 WebPorting my site from Django to a static site with Rust for dynamic bits
Enable class properties in Gatsby
04 April 2019 JavascriptGet fun things like arrow functions in classes.
Creating authentication middleware for Actix API
10 December 2018 RustAdd an authentication middleware layer to Actix so routes can be automatically protected
Integrate Squidex with Gatsby, and join Graphql queries with foreign keys
22 November 2018 JavascriptHow we linked separate schemas together in Gatsby
Procedural level generation using Binary Space Partitioning in Rust
26 July 2018 RustPlace rooms around a level using binary space partitions. Part 3.
Procedural level generation with Rust
04 July 2018 RustCreate a randomised dungeon-crawler map. Part 1.
Mock ES6 imports and dependencies for testing in Jest
18 October 2017 JavascriptMocking ES6 imports is really useful for being able to test modules.
Set up proxy on Android devices and Emulators
06 September 2017 AndroidConfigure Android devices to connect to your local machine to test sites or apps.
Open iOS simulator to test a website
28 July 2017 ToolsAccess Docker sites from IE virtual machines
12 July 2017 WebUsing async and await with React and Redux
07 June 2017 ReactVanilla JS equivalent of common jQuery functions
07 June 2017 JavascriptProps, parents, classes and append equivalents.
Progressive web-app with Webpack and React
06 June 2017 WebReact context require contextType
25 May 2017 ReactRust snippet - import crate in module
27 April 2017 RustMaking Get On With It, a Pomodoro and Tabata timer
30 March 2017 ReactA React-based productivity app.
Proxy API calls for local development
07 March 2017 JavascriptWriting a basic JSON response web server in Rust using Iron
24 October 2016 RustMaking the random number picker site
12 October 2016 ProjectsDetect clicks outside an element with React components
30 September 2016 ReactUsing Adsense with React
28 September 2016 ReactRead headers in Javascript from a CORS request
28 September 2016 Javascriptadd_header ‘Access-Control-Expose-Headers’ ‘content-disposition’
Devlog - Design Decisions
03 August 2016 GamesGetting to the bottom of a Rust bug
10 June 2016 RustUpgrading a static site to use HTTP/2
11 May 2016 WebMocking ES6 imports for tests
06 May 2016 JavascriptLogging client Javascript errors
29 April 2016 JavascriptCreating React components with ES6 classes
20 April 2016 JavascriptReact Inline Styles
06 April 2016 JavascriptDevlog - Shaders, sound and standalone
08 March 2016 GamesDevlog - Powerups, particles, pictures
21 February 2016 GamesScale Phaser 2 games to fit screen
11 February 2016 GamesSquash git commits using rebase
04 February 2016 WebBuilding a runner game with Phaser.js
02 July 2015 GamesLazy load Youtube videos
28 February 2015 Javascripthttps://developers.google.com/youtube/iframe_api_reference
Deploying Express NodeJS app to Webfaction using Git
12 February 2015 JavascriptUse source control to ensure your deployed files are correct.
Pairs game released!
27 January 2015 GamesVanilla Javascript alternative to jQuery's $(document).ready()
06 October 2014 JavascriptThis example binds a click on all links, prevents the link from visiting the page and logs the destination to the console. The $(document…
Using virtual machines to test sites in Internet Explorer
10 September 2014 WebAdd, remove or toggle classes with vanilla Javascript
27 August 2014 JavascriptYou may not need jQuery.
Creating a Yeoman Generator
04 August 2014 JavascriptSetting up SSL
03 August 2014 WebBuilding the Pollen Count site - a Node.js walkthrough
02 July 2014 ProjectsAre you going to sneeze all day?
Procedural tilemap generator
25 March 2014 GamesUsing cellular automata to create a procedurally-generated tilemap.
Glow highlight using CSS
20 March 2014 CSSBuilt-in servers
18 March 2014 Tools1GAM Javascript Particle System
03 March 2014 JavascriptRemote debugging Chrome on Android and iOS Safari
14 February 2014 ToolsRemove cookies from a site with Chrome
17 January 2014 ToolsResponsive Design - Three case studies
14 August 2013 WebDebug Javascript on Android
01 August 2013 AndroidChrome debug tools can connect to Android web views.
Help! My Twitter feed isn't working!
18 June 2013 WebRepeating commands in the terminal
15 May 2013 Tools6 Tips for Chrome's Web Tools
11 March 2013 ToolsUse Drupal's base URL in Javascript
26 February 2013 Drupal1GAM January - Pew Pew
04 February 2013 GamesUse Drupal's alias URLs
09 January 2013 DrupalEnable dropdown styles in CKEditor
21 November 2012 DrupalUseful Javascript Books
25 July 2012 JavascriptParsing RSS feeds with jQuery
24 July 2012 jQueryOpen links in new tab
25 November 2011 jQueryLoad external scripts with $.getScript()
26 September 2011 jQuerySliding elements with jQuery
05 June 2011 jQueryThe basic effect is controlled by animating the width of the element; in jQuery this would look like:
Display Flickr photos in Galleria plugin
20 March 2011 jQuery(using Google’s CDN of jQuery and the bundled Galleria theme)