@otto42@fosstodon.org
@otto42@fosstodon.org avatar

otto42

@otto42@fosstodon.org

Tech Ninja for http://audrey.co. I do random things like work on http://WordPress.org. Sometimes I make beer.

Memphis, TN.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

shawnhooper, to retrocomputing
@shawnhooper@fosstodon.org avatar

I’ve seen many posts about the Apple II computer written Apple // or Apple ]

Why?

[

otto42,
@otto42@fosstodon.org avatar
Edent, to wordpress
@Edent@mastodon.social avatar

I'm being a bit thick with #WordPress.

Given an arbitrary URl on my blog - how can I get the query which it would execute?

If you've a mind to help - https://wordpress.stackexchange.com/questions/425043/equivalent-of-url-to-postid-for-non-post-urls - much appreciated!

otto42,
@otto42@fosstodon.org avatar

@Edent you have to run the rewrite_rules against the URL in order to determine what it's going to query for.

otto42,
@otto42@fosstodon.org avatar

@Edent generally though, you don't have to do that because you can hook in later and it's already run that against the URL and it has already done it for you. What exactly are you trying to do, and how are you trying to do it?

otto42,
@otto42@fosstodon.org avatar

@Edent is there anything special about the URL "post123_ABC"? Was the slug used before or something like that?

davidbisset, (edited ) to blogging
@davidbisset@phpc.social avatar

Interesting, following @mathowie talking about this subject recently.
@davatron5000 on his "dream "

https://daverupert.com/2024/04/ideas-for-my-dream-cms/

  • On-the-fly fact checking
  • Auto-tagging
  • Topic bundling
  • Idea validation

otto42,
@otto42@fosstodon.org avatar

@davidbisset @mathowie @davatron5000 It sounds like he wants like massive amounts of AI, in which case I would say why are you blogging at all? Just have the AI do it.

otto42,
@otto42@fosstodon.org avatar

@davatron5000 @davidbisset @mathowie what tweet? The links given basically don't work.

davidbisset, to ai
@davidbisset@phpc.social avatar

So the AI Pin (first attempt at least) is a dud... and it looks like the 1 might be... just a lie? If true (that's still an if) then looks like another cash grab or just plain trickery.

https://github.com/rabbitscam/rabbitr1

via

https://news.ycombinator.com/item?id=40135250

Meanwhile I'm using on my already existing hardware -smartphone and desktop - in my coding and i'm fine.

otto42,
@otto42@fosstodon.org avatar

@davidbisset first I'd heard of it, but I'm not surprised because AI does not exist. An LLM is not an AI.

syntaxseed, to UI
@syntaxseed@phpc.social avatar

I am plagued lately by websites that do weird #UI things & just lose all my typed comment.

Facebook's mobile website does it if I minimize my phone's keyboard.

#WordPress .com just did it when I typed a long meticulous comment & entered my name & email which it recognized as belonging to an account so it prompted me to log in. After I did so, I was returned to the blog post.... my comment vanished into the ether.

I just. It's so demoralizing.

#WebDev #UX

otto42,
@otto42@fosstodon.org avatar

@syntaxseed that can indeed happen if you're one of those people who have interfering privacy software, or do not allow cookies or something like that, but for the most part it generally just doesn't happen.

nocontexttrek, to StarTrek
@nocontexttrek@mastodon.social avatar

otto42,
@otto42@fosstodon.org avatar

@nocontexttrek I'm guessing one of those DS9 episodes that was so boring I can't remember it... Sisko wanting to play a baseball team or something equally dull.

outofcontrol, to wordpress
@outofcontrol@phpc.social avatar

Until Wordpress lets us handle their data the way they want, I fail to see that WP can call itself a CMS platform. Main point of consternation is date and future date handling. If I have posts that are set to a future date, maybe I still want to display those on the public area (events anyone?) without needing to install a special plugin for dates. You’re welcome to try and change my mind.

otto42,
@otto42@fosstodon.org avatar

@outofcontrol It seems like you're having trouble showing future posts, and that can be indeed weird if you don't know how future posts or post scheduling works in WordPress. However, it can be done using standard query methods, using custom code in a theme or plugin depending on this specific case.

The thing is, when making a site custom to that level, you kind of have to know code. It's generally not a built-in thing that is easy to access because most people don't need to do that.

otto42,
@otto42@fosstodon.org avatar

@outofcontrol okay, a) shortcodes are rarely used anymore in the modern editor. That was the point of blocks, to replace shortcodes and everything else. But b) it actually kind of is that simple because all you have to do is set the post_status to future, or any.

I'm pretty sure you can do that with the existing query block, however, I have not tried it myself, but it shouldn't be that difficult to add or adjust it in that way.

davew, to random
@davew@mastodon.social avatar

My new blogroll just went live on scripting.com. And mastodon users can be in the blogroll too because mastodon supports RSS. So for example, I have @Gargron in my blogroll. When he updates, his name goes to the top. Click to see his most recent 5 posts.

otto42,
@otto42@fosstodon.org avatar

@davew okay, however, it looks just like a list of links with update times on them. Why would anybody see, much less click, on that? What value does it offer to the reader? Why don't you have snippets of useful content along with them or something?

I'm seriously asking, because I don't see how it enhances a site in any way to have what is basically just a list of links in a sidebar. That really wasn't useful even in 2010, and I want to know why you consider it good to have now.

alexstandiford, (edited ) to wordpress
@alexstandiford@fosstodon.org avatar

What's the correct priority for add_action and add_filter?

otto42,
@otto42@fosstodon.org avatar

@alpha1beta @alexstandiford there would be no point in randomizing the priority like that since you can just use an anonymous function.

otto42,
@otto42@fosstodon.org avatar

@alexstandiford @alpha1beta you get your fun from gin, as God intended. 🍸

shawnhooper, to random
@shawnhooper@fosstodon.org avatar

“Technology that tracks your location at work and the time you're spending in the bathroom. A program that takes random screenshots of your laptop screen. A monitoring system that detects your mood during your shift.”

I disagree with all this kind of monitoring. Trust your employees.

https://www.ctvnews.ca/business/with-ai-workplace-surveillance-has-skyrocketed-leaving-canadian-laws-behind-1.6801234

otto42,
@otto42@fosstodon.org avatar

@shawnhooper Errr, don't work for that company then. Seems rather obvious.

shawnhooper, to AWS
@shawnhooper@fosstodon.org avatar

Just debugged a 403 error I was getting.

It wasn't my app, turns out it was the AWS firewall blocking the call because the string that contains "system (A)" in it.

"A" in that string can be any value.

Looks like my only way to customize the WAF is to turn off the rule that has the false positive. Which I don't want to do because there could be other good things it catches.

WAF users... any thoughts on the PHPHighRiskMethodsVariables_BODY ruleset on API calls over HTTPS?

otto42,
@otto42@fosstodon.org avatar
Brendanjones, (edited ) to ai
@Brendanjones@fosstodon.org avatar

Alright, so many companies are using user or customer data for training without consent that I think I'm going to have to make an ongoing thread to document them all. 🤖

Here we go! 1/x

Starting out with who have sold user data to another company, that will use it to train AI:

https://fosstodon.org/@Brendanjones/111964241353263058

otto42,
@otto42@fosstodon.org avatar
davidbisset, to CSS
@davidbisset@phpc.social avatar

.door {
position: absolute;
top: -50px;
}

otto42,
@otto42@fosstodon.org avatar

@davidbisset seems a bit more than 50px, but understood.

shawnhooper, to random
@shawnhooper@fosstodon.org avatar

I’ve lived in this house for 9 months or so now. I regularly do the laundry. Yet today I surprise myself “oh, there’s a light switch here!” (Tucked into the left-hand corner).

I’m used to working in the dark. This is much better!

otto42,
@otto42@fosstodon.org avatar

@shawnhooper If you are brave, you'd replace that fluorescent light with a black light. Then you can see exactly how nasty you really are. 🤣

otto42,
@otto42@fosstodon.org avatar

@shawnhooper LOL. Blacklight will make you rethink your life choices.

weddige, to wordpress
@weddige@gruene.social avatar

has decided to reject my plugin! I'm less disappointed by the decision as such than by the reason for it:

"This is because we think it may conflict with expectations in the Community Code of Conduct"

The plugin adds a dropdown to the registration form asking whether a user is a fascist or an antifascist (and refusing registration to fascists).

This is no disrespect to other opinions, because HATE IS NOT AN OPINION!

otto42,
@otto42@fosstodon.org avatar

@weddige It seems like you need to better understand what the purpose of the wordpress.org plugin directory is for.

It is not a place to express your opinions or political statements, it's a place for plugins to help other people solve their problems.

So, exactly who does your plugin help? What specific problem does your plugin solve?

otto42,
@otto42@fosstodon.org avatar

@weddige It is not a lack of courage. We are open source software, and we are interested in helping people make better websites, for free. That is all that it is there for.

Would you expect the directory to include a pro-fascist plugin in there? It does not make sense to include one without including the other, because they basically are the same thing, just rearranging of the wording.

otto42,
@otto42@fosstodon.org avatar

@weddige That is a fair point, and they probably used a form type thing to send that to you, but the statement still stands on its own.

That plugin is not a good fit for the plugin directory because it's just adding a basically check box questioning whether you're x or y. That could be anything, Democrat or Republican, black or white, racist or not, it doesn't matter. The purpose of the plugin itself is to divide people, which is very much not in our wheelhouse.

otto42,
@otto42@fosstodon.org avatar

@weddige Plugins do not exist to make statements, they exist to help people. Your discussion is totally worth having, but not in the plugin directory.

It's worth having in a very separate forum than a directory designed to help people with technical needs and problems that they are having with their websites.

Basically, you picked the wrong venue.

syntaxseed, to wordpress
@syntaxseed@phpc.social avatar

I've been diligently converting my company website from my internal CMS to . I'm not sure why, but I had assumed that I would have to do something 'special' design-wise or markup-wise to make it a WP theme.

Nope.

It was almost a direct copy-paste. Add a few lines of code for menu locations. Create the basic WP templates. Done.

I'm almost disappointed that this wasn't more involved. 🤣 Almost.

(Oh shit that gate wasn't locked after all. LOL)

otto42,
@otto42@fosstodon.org avatar

@syntaxseed interesting, can you define this "look" exactly? Because I don't know what that is.

I've been working with WP for nearly 19 years now and I still don't know what the look that you're talking about actually is. Is it just like a blog with a sidebar? Because that's basically like every news site I've ever seen.

Note that I am not criticizing your opinion here in the slightest, I simply do not understand what this "look" is and want information on what part of that design stands out.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • slotface
  • ngwrru68w68
  • everett
  • Durango
  • osvaldo12
  • rosin
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Youngstown
  • GTA5RPClips
  • InstantRegret
  • provamag3
  • kavyap
  • modclub
  • cubers
  • ethstaker
  • tacticalgear
  • khanakhh
  • Leos
  • cisconetworking
  • anitta
  • normalnudes
  • tester
  • megavids
  • lostlight
  • All magazines