Avatar
Terence Eden
fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1
Longer hair than you. Got the ⏻ symbol into #Unicode. Open Standards / Source / Data geek. Known as @Edent on most social platforms. Bit obsessed with #SolarPower but not quite a #SolarPunk. Please read the link before replying. Yes, that means you!

🆕 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.

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?

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

Replying to Avatar Derick Rethans

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: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.

Replying to 70646b93...

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!

Replying to Avatar Terence Eden

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.

🆕 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

Replying to Avatar Paul

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.

Replying to Avatar Paul

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.

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?

Replying to 4b58086f...

nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk I use them for all my domain stuff. No registrar is perfect, but they’ve been less painful than others.

Replying to 4b58086f...

nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk interesting. Weird they advertise something they don’t, or can’t, actually sell.