🆕 blog! “Should the WordPress scheduler use datetime-local?”
There's a brilliant post by WordPress about how they've optimised some of the backend code to make it more efficient. So here's a suggestion for something else which can be optimised. If you want to schedule a blog post to be published later, you have to use this WordPress control: I find it mildly an…
👀 Read more: https://shkspr.mobi/blog/2023/09/should-the-wordpress-publish-scheduler-use-datetime-local/
⸻
#php #wordpress
nostr:npub15c3n2edatqauwtm8wgknrnemxwxa5kar8sswq6sngnjmkwszuxtsnhkl09
I think it is mostly a good thing. But it's failure mode is irksome.
nostr:npub1nxpazs7896gw3nxcy9gqx6wx8q8cswk6wqrftnxnv5zl8uxwjyfqq08flq good luck with it!
Here are the raw stats from August - just looking at #RSS feeds.
Interesting that Atom is about twice as popular as RSS.
But I've no way of knowing if that's one person hammering it, or ten thousand checking once per day.
#Blogging

Other than looking at server logs, is there any way to tell how many people subscribe to an #RSS feed?
Are there any big aggregators which give out that information?
nostr:npub1rh88yxjvfyzed5hpsedamwqzf66w2c0672jpn46nt4g5crevqgvsj9ejsx I use https://www.freshrss.org/
Pretty easy to set up. Self hosted. Works on mobile and desktop.
I'm (briefly) mentioned in this paper - "NFTs and the Danger of Loss" (2023) MDPI AG.
https://www.mdpi.com/2571-9408/6/7/285
(Spoiler alert - I'm not a fan of NFTs!)
#NFT #BlockChain
nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk I've never understood how a lookup table could be a business.
nostr:npub1tp2hy53hya8zlw07qs5p3sd6fgzcnml5558z9ye4wln0wuttqm8qtg4l9u judging from their financials, they don't know either!
nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk nostr:npub1gv565wy8tykraxrnsyqnuhh7wtsjfw02t3fx905e9jqj407h6rmqach8cl I am not a writer, so happy to hear which terms are unfamiliar to you?
nostr:npub1tp2hy53hya8zlw07qs5p3sd6fgzcnml5558z9ye4wln0wuttqm8qtg4l9u nostr:npub1gv565wy8tykraxrnsyqnuhh7wtsjfw02t3fx905e9jqj407h6rmqach8cl
I think it's the lack of a "quick start" guide.
The current docs (https://xdebug.org/docs/) go from "Install" (I can do that) straight to telling me what the in-built functions are.
Nowhere does it walk me through install, basic configuration, and testing.
There aren't - as far as I can see - any step-by-step guides to make sure it's working and to slowly introduce me to what it can do.
I've no doubt it is a brilliant tool. But I think it isn't for non-experts.
nostr:npub1j46f9va5qdrmamcwmncew7g8mwekgma386dhws6k04fsnlkqpcpsj23gm7 one side effect of two password fields is that it's much easier for the user to differentiate between "sign up" and "login" pages if *the rest of the page is badly designed*.
I've accidentally used the "sign up" page to try and login to quite a few sites where the signposting is bad & there are the same email/password fields on both pages. "Account already exists with that username" <- I know, I'm trying to login to it!!
Arguably it's a different root issue, but nonetheless is uncovered by single password fields and is an interesting observation from experience.
nostr:npub1cy3h36xwevyujjx4j65epyz5v35ejlqtsz3w8hrstx6en08alzrqjmd37f nostr:npub1j46f9va5qdrmamcwmncew7g8mwekgma386dhws6k04fsnlkqpcpsj23gm7
Although it isn't cool - I quite like the amalgamated login / sign up page design.
What's your email?
Then, if it's recognised, show them a login page.
If not, show them a sign up page. Which may or may not have two password fields!
nostr:npub1tp2hy53hya8zlw07qs5p3sd6fgzcnml5558z9ye4wln0wuttqm8qtg4l9u
nostr:npub1gv565wy8tykraxrnsyqnuhh7wtsjfw02t3fx905e9jqj407h6rmqach8cl
I'm not clever enough for that, sadly. Every time I start I just get bogged down in terminology I don't understand.
nostr:npub1tp2hy53hya8zlw07qs5p3sd6fgzcnml5558z9ye4wln0wuttqm8qtg4l9u
Ach! Sorry! I didn't realise nostr:npub1gv565wy8tykraxrnsyqnuhh7wtsjfw02t3fx905e9jqj407h6rmqach8cl was your baby.
No disrespect intended. I just couldn't get my head round it.
I just wanted to be able to see which of two fairly short functions was more efficient.
nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk Set-up nostr:npub1gv565wy8tykraxrnsyqnuhh7wtsjfw02t3fx905e9jqj407h6rmqach8cl — its profiling is exactly what you want.
nostr:npub1tp2hy53hya8zlw07qs5p3sd6fgzcnml5558z9ye4wln0wuttqm8qtg4l9u
nostr:npub1gv565wy8tykraxrnsyqnuhh7wtsjfw02t3fx905e9jqj407h6rmqach8cl
I'm not clever enough for that, sadly. Every time I start I just get bogged down in terminology I don't understand.
🆕 blog! “One month with a solar battery - real statistics”
August is meant to be full of gloriously hot days. An endless parade of sunshine and drinks in the park. This year it seemed mostly grey, miserable, and prone to pissing it down at a moment's notice. We all know that solar panels' efficiency wilts in the heat, but do they get a tan work […]
👀 Read more: https://shkspr.mobi/blog/2023/09/one-month-with-a-solar-battery-real-statistics/
⸻
#battery #solar #statistics
nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk In my experience though, the things that really kill performance are function calls and database queries, especially if performed in loops. There's not usually a huge gain from tweaking other parts of the code.
nostr:npub15h8w2mdh59z2azymaaa9nye3phv4hcr0y5x5fuwreq36702y6d7qqwd00g yeah. I'm noodling around with something which is probably trivial. But I want to see if my hunch is correct. No DB as far as I can tell.
nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk If you want a rough and ready figure you can call microtime before and after and compare the results, likewise memory_get_usage. They aren't great but they will probably tell you if one function is taking 10x as long as another.
If they're not enough then really Xdebug + an analyser such as KCacheGrind are the way to go.
https://3v4l.org/ allows you to run code online but I don't think it would help with profiling.
nostr:npub15h8w2mdh59z2azymaaa9nye3phv4hcr0y5x5fuwreq36702y6d7qqwd00g ah, well, that'll have to do.
Hey, #PHP friends - what's the *easiest* way to compare the speed & memory use of two different functions?
The functions themselves are quite simple (a dozen or so lines) so I can't really be bothered to set up a whole XDebug environment.
Is there an online tool which will give me a rough answer?
nostr:npub1rfd4l02p9367rn6dn7slw6a8slwgw29khh3pcrdwqrezgp4caedsrjufwh best of luck with what comes next.
nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk I use them for all my domain stuff. No registrar is perfect, but they’ve been less painful than others.
nostr:npub198r4c3nk65sph7gqs50zm4aswguxmcrmv956esgsupy9v3uh4nks53kx9c they've massively increased their prices in the last year and cancelled the free email service that they offered.
https://domainnamewire.com/2023/03/21/gandi-nixes-free-lifetime-email-with-domain-registrations/