Pretty Permalinks with Angular UI-Router

February 23rd, 2017
Pretty Permalinks with Angular UI-Router Seattle’s Aurora bridge, cyanotype print by Peter Mumford Problem: how to get WordPress-style pretty permalinks into an Angular app? I want my permalinks to have this format: http://domain.com/2017/02/post-slug-here I want single posts and category and tag archives to contain slugs, not IDs in the URL.

A first rate tale, second rate prose

February 22nd, 2017
A first rate tale, second rate prose The Fall of Giants, by Ken Follet I love the ambition of this book, and it seems that Follett achieved his goal: the grand tale of the political upheavals of the early 20th Century Europe, and then the unfathomable horror that was the Great War.

Pagination with UI-Router and WP-API

February 22nd, 2017
Pagination with UI-Router and WP-API I added pagination to Cherrytree, my Angular client for the WordPress API. The key to this is knowing what Angular’s ui-router can do. This post by Aviv Ben-Yosef was very helpful: Simple pagination and URL params with ui-router. It explains how to set up routes with ‘squashed’ parameters, and make simple pagination functions in your controller.

Angular-material added to Cherrytree

February 6th, 2017
Angular-material added to Cherrytree I’m improving my angular client for wordpress, that I call Cherrytree. Specifically, I’m using Angular Material for ready-to-go components.

Multiple cursor shortcuts

January 22nd, 2017
Multiple cursor shortcuts My cheat sheet for shortcuts for Atom + Sublime’s multiple cursors Using text editors these days is so nice! I’m a big fan of Atom. The best part of course is the multiple cursor feature, which Atom shamelessly copied from Sublime Text. My only trouble is not remembering the keyboard shortcuts.

An Angular Client for a WordPress site

January 20th, 2017
I coded up an Angular 1.5 app that shows the posts from my WordPress blog. It fetches post data from this site’s Rest API. A proof-of-concept is here: Cherrytree. The repo is on my Github: Topheavy-Angular. It shows a ‘default’ listing of posts on the front page, which is equivalent to the default WordPress loop.

oikos get attachment link filter

March 3rd, 2015
oikos get attachment link filter oikos get attachment link filter This fixes a flaw in the WP gallery shortcode. The problem is that when you make a gallery, and you set link to "file", it links to the original. That might be a 10M jpeg. This function links to the large instead of the original. On every site with galleries, I install lightbox and this nice little filter.

Nice Quora ask

February 17th, 2015
What are the most interesting HTML/JS/DOM/CSS hacks that most web developers don’t know about?

Benach Ragland, Immigration Lawyers

February 6th, 2015
Benach Ragland, Immigration Lawyers Benach Ragland’s re-design went live Feb 2, 2015. It was photographed, videoed and designed by Llewellyn Creative. And I coded it up in a wordpress theme. It was a very satisfying project. I used underscores for a starter theme, and found it to be flexible and fast (underscores has now replaced the outdated Handcrafted as my starter theme of choice).