Quantcast
Channel: Adam Cameron's Dev Blog
↧

PHP: looking at spatie/async

G'day:For no good reason at all, other than it piquing my interest, I've decided to mess around with spatie/async, which is - in its own words:[A] small and easy wrapper around PHP's PCNTL extension....

View Article


PHP: I need another two devs

G'day:I'm revisiting an article I posted in December, fishing for a coupla devs: I need another two devs. I parked that because we re-evaluated the direction we were going to take our replatforming...

View Article


CFML: runAsync doesn't seem very asynchronous on Lucee

G'day:I was wanting to compare how other languages dealt with the promise-style async processing, as I was not completely convinced by what I was seeing when investigating spatie/async in the previous...

View Article

Lucee bug surfaced by CFWheels's "architecture"

G'day:Well here's a fine use of my frickin time.Lucee's released a new "stable" version and we're being encouraged to use it. Today I upgraded my dev environment to Lucee 5.3.10.120 (from 5.3.9.166...

View Article

Image may be NSFW.
Clik here to view.

ColdFusion: bug in runAsync

G'day:In my article yesterday ("CFML: runAsync doesn't seem very asynchronous on Lucee") I mentioned in passing that I'd found a bug in ColdFusion's runAsync implementation. I wasn't focusing on...

View Article


Image may be NSFW.
Clik here to view.

PHP: looking at spatie/async some more

G'day:I'm getting back to this spatie/async library today (see "PHP: looking at spatie/async" for the first part of this).Previously I have just been passing a callback to the add function when adding...

View Article

TIL: something new about regex processing that made me feel dumb

G'day:I like to think I'm reasonably confident with my regex usage, indeed have in the past written at length on regex implementation and usage in CFML (summarised here: "Regular expressions in CFML"...

View Article

CFML: ColdFusion 2023 is in public beta now

G'day:As posted in the CFML Slack channel by Adobe ColdFusion star, Mark Takata, CF2023 is in public beta now. One can sign up for it here:...

View Article


PHP / PHPUnit / TDD: unit testing abstract classes. Or not.

G'day:One of my colleagues at work asked me about this, but it's a good topic to think about, so am gonna write about it here.The question was pretty much as stated in the subject line there "if we...

View Article


FAO ColdFusion users: you need to address a critical vuln in your system

G'day:Just in case you happen to read this blog, but not Charlie Arehart's one, pls go over to his blog and read his article "ColdFusion March 2023 emergency update, and what to do about it", and...

View Article

CFML / TestBox: spying on a method without mocking it

G'day:Whilst looking for something else, I came across a ticket in TestBox's Jira system the other day that I had voted for a while back: Ability to spy on existing methods: $spy(). About a year or so...

View Article

Image may be NSFW.
Clik here to view.

PHP / Symfony: working through "Symfony: The Fast Track", part 1: preparation...

G'day:This new PHP app we're shifting in at work is gonna be running Symfony. The other bods on the dev team have been working through "Symfony: The Fast Track", and I figured I pretty much ought to as...

View Article

Image may be NSFW.
Clik here to view.

PHP / Symfony: working through "Symfony: The Fast Track", part 2: creating a...

G'day:Sit. rep.OK so last time (PHP / Symfony: working through "Symfony: The Fast Track", part 1: preparation and pre-requisites (and not actually any Symfony!)) I didn't make much Symfony progress,...

View Article


Symfony / Doctrine / DBAL: convincing/configuring it to use a...

G'day:A while back I documented how to create/configure a PrimaryReadReplicaConnection connection in PHP. PrimaryReadReplicaConnection is the replacement for MasterSlaveConnection, which has been...

View Article

Image may be NSFW.
Clik here to view.

PHP / Symfony: working through "Symfony: The Fast Track", part 3: doing some...

G'day:Today I'm gonna continue working through "Symfony: The Fast Track". This will be part 3 of this series, after the first two:PHP / Symfony: working through "Symfony: The Fast Track", part 1:...

View Article


Image may be NSFW.
Clik here to view.

PHP / Symfony: working through "Symfony: The Fast Track", part 4: not really...

G'day:Once again I'm gonna continue working through "Symfony: The Fast Track". This will be part four of this series, after the first three:PHP / Symfony: working through "Symfony: The Fast Track",...

View Article

Changing where I home my source code dramatically speeds up my Windows / WSL2...

G'day:This is more an admission of "not initially thinking things through" on my part, but the outcome has helped me a lot, so in case there are others out there who don't think things through, maybe...

View Article


Changing my WSL Bash prompt to include my current Git branch

G'day:Note: there's no real original research / thinking in this. it's just the result of me googling stuff, and arriving at a result. I'm writing it mostly so I have a record of it.Yesterday I shifted...

View Article

Getting Windows Terminal to open my Ubuntu Bash session in the right directory

G'day:This is a follow on from the previous two articles:Changing where I home my source code dramatically speeds up my Windows / WSL2 / Docker environmentChanging my WSL Bash prompt to include my...

View Article

CFML: Into the Box 2023

Howdy partner:Well here's something interesting (well: to me, anyhow). I will be attending the Into the Box conference in Houston, TX in May (17th - 19th). This has come about due to a very kind...

View Article

Image may be NSFW.
Clik here to view.

PHP / Symfony: working through "Symfony: The Fast Track", part 5: Twig stuff,...

G'day:I'm back on the case working through "Symfony: The Fast Track". This will be part five of this series, after the first four:PHP / Symfony: working through "Symfony: The Fast Track", part 1:...

View Article


I'm a big meany again

G'dayChortle:I'm new to cf development and recently joined the cfml slack community. I noticed some curmudgeonly posts from this fella at first and didn't think anything of it... I'm now realizing that...

View Article


CFML: solving a CFML problem with Java. Kinda.

G'day:The other day on the CMFL Slack channel, Nick Petrie asked: Anyone know of a native or plugin-based solution to pretty-formatting XML for display on the page? I'd like to output the XML nested...

View Article

OT: Starfield

G'day:I finally relented on the Steam nagging screen, and am writing a review of Starfield, which I have been playing pretty much daily since it was released. I just noticed I'm writing an essay rather...

View Article

Image may be NSFW.
Clik here to view.

Design patterns: singleton

G'day:(Long time no see, etc)The other day on the CFML Slack channel, whilst being in a pedantic mood, I pointed out to my mate John Whish (OG CFMLer) that he was using the term "singleton" when all he...

View Article