Quantcast
Channel: Programming – Sam's notebook
Browsing all 51 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Preventing duplicate rows in a tabular HTML form

I am working on a bespoke issue-tracking system at the moment (not for code issue-tracking, in case anyone thinks we’re cloning Redmine; although there certainly are overlaps…) in which each issue has...

View Article



Image may be NSFW.
Clik here to view.

Publication dates

I knew Kernighan and Plauger were forward-thinking, but hadn’t realised they were 22 years ahead of their time! (Oh, and for my own future reference: How to tear in Gimp.)

View Article

Image may be NSFW.
Clik here to view.

Sorry, Apple Inc., I’ve met something I like more than you

I first used a Mac in about 1993 — a Quadra I think it might’ve been, or a Performa. I’d come from DOS and Amiga and didn’t really know anything about anything — I didn’t even know there was anything...

View Article

Contributing to Github-hosted projects

Some projects provide information about how people should fork and contribute to them. This is my general approach (included here, obviously, for my own edification): Fork a project: Github...

View Article

Don’t Write Code (write descriptions of things)

I wish I didn’t know how to code. For a programmer, the solution to every problem is to write more code. But sometimes, all that is needed is to write proper words. To explain things and explore them...

View Article


Writing Plugins

I want to help to write plugins for things. Not these full-blow, stand-alone applications with requirements and scopes that change and change and are never finalised! Far nicer to work on a small part...

View Article

Stop inventing new ways of doing things

Every so often I write this same thing. It’s Monday (any Monday) and so it’s time to write it again. The solution to very few problems is to write more code. Usually, it is better to write things in...

View Article

Stop inventing new ways of doing things

Every so often I write this same thing. It’s Monday (any Monday) and so it’s time to write it again. The solution to very few problems is to write more code. Usually, it is better to write things in...

View Article


WordPress (not Laravel) as an app framework

Is it a good idea to develop full-blown applications as plugins inside WordPress (or an other CMS)? I sometimes feel like it’s a silly thing to do. Especially if the application is not really doing...

View Article


Image may be NSFW.
Clik here to view.

I’m redundant

This week is the first time for seven years that I’ve not had a job to go to (and not been on holiday). So of course I’m sitting at a computer working on some code, drinking a coffee. The location...

View Article

Stop inventing new ways of doing things 2

Monday 26 October 2015 Every so often I write this same thing. It’s Monday (any Monday) and so it’s time to write it again. The solution to very few problems is to write more code. Usually, it is...

View Article

WordPress (not Laravel) as an app framework

Monday 11 January 2016 Is it a good idea to develop full-blown applications as plugins inside WordPress (or an other CMS)? I sometimes feel like it’s a silly thing to do. Especially if the application...

View Article

A stopped Aeropress

Thursday 14 January 2016 There’s an Aeropress trick of turning the plunger upside-down and putting the coffee and water in from the bottom. Every time I try it I nearly stuff it up because I never put...

View Article


Be careful with GET parameter names in WordPress

Monday 1 February 2016 I’ve been getting confused about why an HTML form I’ve been building inside a WordPress shortcode has been getting redirected after submission. Turns out it was because I was...

View Article

Tabulate: export not-found values

Thursday 11 February 2016 I’ve just added a new feature to Tabulate, that allows for the exporting (to CSV) of the set of filter values (for multi-valued filters) that are not found in the data. It...

View Article


Uninstalling WordPress plugins in PHPunit

Tuesday 1 March 2016 There’s a problem with uninstalling Tabulate. Fatal error: Class 'WordPress\Tabulate\DB\Grants' not found in C:\work\public_html\wp\stage\wp-content\plugins\tabulate\uninstall.php...

View Article

Spaces around dots

Tuesday 8 March 2016 One of the first odd things that one finds when starting to work with WordPress code is the excessive use of spaces. Something like: do_something('Words of...

View Article


Running tests on WordPress coding standards

Wednesday 9 March 2016 The docs for WordPress-Coding-Standards assume that one is installing things globally, but I don’t like my hacking on phpcs to break my usage of it elsewhere, so I wanted to...

View Article

I’m redundant

Tuesday 5 April 2016 This week is the first time for seven years that I’ve not had a job to go to (and not been on holiday). So of course I’m sitting at a computer working on some code, drinking a...

View Article

Enable Left Win as the Compose Key on Ubuntu

Tuesday 5 April 2016 It is very easy to type “special” characters on Linux (i.e. those that aren’t printed on the keyboard). It’s called the Compose or Multi Key, and it’s brilliant. First, enable it...

View Article
Browsing all 51 articles
Browse latest View live




Latest Images