Camera Time Again

After a month of waiting, I now have a Sony A7III and 24-105 𝑓4 lens. It seems epic, and I have plans for it, both with photo and video. Hayley & I went for a little stroll on the beach yesterday, and I took this photo. It's not amazing by any stretch, but I'm very happy with the quality this things pushes out, even with very little effort on my ...

Half Pixel Lines on HiDPI Screens

on CSS

In a recent project, the design called for 0.5px borders on table rows, but not in the header. The general idea is, so add a pseudo element as our border (adjust your padding accordingly), and on HiDPI screens, scale it down to half its size, and make twice the width to fill the space. Take this markup: <table> <tr> <th>Lorem</th& ...

Hide the page you've set to show Posts in WP Admin

One of my many annoyances with WordPress is how you need to create a page, and assign that to be the Posts archive page, if you want a static home page and Posts elsewhere. This usually means having a page in WP with the editor saying something like “Don’t delete this page, it’s pretty important!”. I found this answer on SO, and adapted it to suit my needs. ...

July Update

Last June, I did a general update about me, work, houses, cars, Kodery, and more. It’s been a year, and a lot has changed, and more is going to change in the coming months too. So it feels like a good time to do another update. Me I started writing this paragraph saying that nothing much has changed. But then I realised that quote a lot has changed. My ...

Late Nights

I’ve written a few times about how I tend to work better at night. Trouble is, it’s not sustainable. What typically happens is, I get some requests in from clients to do little jobs (quick 30 minute things). I don’t like having those sit around, so I try to do them all in one evening, but they inevitably stretch over to the next day, and that puts ...

2016 In Review

For the last couple of years, I’ve done a month by month review of the year. After seeing Remy Sharp’s post, I thought that was a better format, so I’m copying the idea. Given that a few months would just be summarised as ‘work’, it feels more appropriate. Professional My little company, Cross Stroke, turns 2 this year. I will do a more detailed post like this ...

Back To Kodery

Back in December 2015 I wrote about the future of Kodery, my little code snippet storage app I started in 2009, when I didn’t have lots of grey hair. I sort of forgot about it, but in the last month or so, I’ve found myself using it more and adding more snippets. That promoted me to go and look at the results of the poll, and after reseting ...

Next & Previous Post Links in the Same Taxonomy

If you use Custom Post Types with custom taxonomies in WP, you’ve no doubt wanted to add Next & Previous buttons on the single-cake.php template that keep the same taxonomy term as the page they sit on. As a loose example, let’s use cake. cake is our CPT, and we have a custom taxonomy of flavor. We have a few terms there of chocolate, lemon, and strawberry. ...

Event Date Sorting Columns for WordPress CPTs

On a recent client project, one of the requirements was adding a couple admin columns for a custom pst type type to sort things by start date and end date. It was a slight faff to work out how this should be done, so I’m plonking it here for me to find in the future. The complication here was wanting to show the date in a human-readable format whilst ...

June Update

It’s almost exactly six months since I wrote anything here. That’s largely due to me not having anything interesting to say, or interesting enough to share anyway. But a lot has happened in six months, so an update post on lots of little things may be interesting, or at least interesting for me to look back on. Me The #60lbsswap thing seems to have fizzled out, I was ...