I did some actual work yesterday for work, a little finishing off of my superb Splunk dashboards as code. I took inspiration from some old ruby on rails missing method magic. We build our dashboards as code, you have a config file describing what you want on the dashboard and then we build the complicated stuff from that. I already had something in place where if you describe a dashboard and the underlying code doesn't exist yet it makes a dummy placeholder panel with "this doesn't exist yet, come back to this one" which made it quicker for me to build new panels. Then I thought "these have names of a standard format anyway if I make a visualization panel called viz_numberOfLogins
I can work out "we want a single number", and "we want logins" from that and autogenerate the underlying code there. It works great. It's only really there for quicker prototyping but it's great.
My real plan here was to build a Splunk advent calendar in time for tomorrow, but that's not happening.
Then also I finally got my head round look ahead and look behind regular expression assertions and why my code sometimes worked but sometimes didn't. This means I can automatically match The Dublin Castle without it also matching castle, unless I mean it to match the word castle like in Portchester Castle, because Portchester Castle is a castle and The Dublin Castle is a pub. Of course now this post will match them all, but next time I publish, searches for castle should only match actual castles.
Christmas decorations day today, not my idea of fun really. I do have the option to go out and collect some free beer today from Hythe Hops, though it's probably a non drinking day.
We did not go to junior parkrun, I let T2 off as I had let T1 off yesterday. Back next week when it's even colder!
Gigs from this day, I did not go to The Cure in 2016 as I gave my ticket away, but I was at The Darkness today in 2001 at Kings Cross Water rats.
Also insane skateboarding video.
Light rain and a fresh breeze, 10 - 13℃.
javascript: Programming language of the web, mostly how I earn a wage.
⬅️ Health stats 1/12/24 :: Artists of the week, commencing Sunday 1st December ➡️
Paul Clarkeʼs weblog - I live in Hythe near Folkestone, Kent. Wed to Clare + dad to two, I am a full-stack web developr, and I do js / nodejs, some ruby, python, php ect ect. I like pubbing, parkrun, restaurants, home-automation + other diy stuff, history, genealogy, TV, squirrels, pirates, lego, and TIME TRAVEL.
🏷 running 🏷 exercise 🏷 javascript 🏷 coding 🏷 water rats 🏷 not drinking 🏷 castle
Yep, deliberately unstyled.