Videos capture 6.5 magnitude earthquake rattling Mexico City and Acapulco
https://www.cbsnews.com/video/videos-earthquake-mexico-city-acapulco/?utm_source=flipboard&utm_medium=activitypub

Posted into Latest Headlines @latest-headlines-CBSNews

Grok chatbot allowed users to create digitally altered photos of minors in "minimal clothing"
https://www.cbsnews.com/news/grok-safeguard-lapses-minors-minimal-clothing-ai/?utm_source=flipboard&utm_medium=activitypub

Posted into Latest Headlines @latest-headlines-CBSNews

Sad: Ilhan Omar Tells Brother It's Time They Start Seeing Other Siblings

babylonbee.com/news/sad-ilhan-…

Icare4America reshared this.

Trump says if Iran "kills peaceful protesters," the U.S. will "come to their rescue"
https://www.cbsnews.com/news/trump-iran-protests-us-will-come-to-their-rescue/?utm_source=flipboard&utm_medium=activitypub

Posted into Politics @politics-CBSNews

Las compañeras de @nocentrosdedatosaragon y Ecologistas en Acción Aragón se han pasado las navidades haciendo alegaciones contra el #CentroDeDatos de #Microsoft, en las que hemos participado un buen puñado de colectivos. Entre otros @eljuncaresvida y @tunubesecamirio

Cada vez hay más resistencia en Aragón contra estas Big Tech

eldiario.es/aragon/economia/ve…

Two Phones, Less Distraction? That's the Pitch for This BlackBerry Lookalike
https://www.cnet.com/tech/mobile/clicks-communicator-smartphone-companion-power-keyboard-ces-2026/?utm_source=flipboard&utm_medium=activitypub

Posted into CES @ces-cnet

youtu.be/wf6kVEN1lbk?si=C1ItQq…

RIP Stewart Chiefet


(URL replace addon enabled for X, YouTube, Instagram and some news sites.)

Ex-Elder Scrolls Online Boss Explains Why He Left Microsoft
https://kotaku.com/elder-scrolls-online-project-blackbird-shooter-rpg-canceled-microsoft-2000656493?utm_source=flipboard&utm_medium=activitypub

Posted into Culture @culture-Kotaku

Faux Ball: The Legend of Village Academy - Arkansas PBS Sports Feature
youtube.com/watch?v=_rhsGd2aTp…

"Two high school instructors pull one of the greatest pranks in Arkansas history. Garry Crowder and Bob Sivlis with Jessieville High School grew frustrated with the newspaper coverage of small sports programs and decided to take matters into their own hands..."


(URL replace addon enabled for X, YouTube, Instagram and some news sites.)

This has to be Microsoft Outlook's most underrated feature
https://www.makeuseof.com/microsoft-outlook-quick-steps/?utm_source=flipboard&utm_medium=activitypub

Posted into PRODUCTIVITY @productivity-muo_official

Palestine advocates praise NYC’s Mamdani for revoking pro-Israel decrees
https://www.aljazeera.com/news/2026/1/2/palestine-advocates-praise-nycs-mamdani-for-revoking-pro-israel-decrees?utm_source=flipboard&utm_medium=activitypub

Posted into US & Canada News @us-canada-news-AlJazeera

x.com/thepatriotoasis/status/2…

Brain rot is real….


(URL replace addon enabled for X, YouTube, Instagram and some news sites.)

New and updated edition: top-25 of most followed Dutch (based in the Netherlands) Mastodon accounts.
Part 1:
1 @stux@mstdn.social 158909
2 @stux@gram.social 54068
3 @buitengebieden 36645
4 @stux@masto.ai 31864
5 @NOSRSS 18421
6 @ionica 16965
7 @foksuk 14153
8 @volkskrant 13795
9 @stux@pixey.org 11810
10 @nrc_nl 11663
11 @ruud 11297
12 @JeanMarcvanTol 11235
13 @RoosVonk 10574

dorseteye.com/over-half-a-mill…

Sensitive content

Stefon Diggs, Patriots star receiver, says it's been "a very emotional time" in wake of criminal charges
https://www.cbsnews.com/news/stefon-diggs-patriots-charges-locker-room/?utm_source=flipboard&utm_medium=activitypub

Posted into U.S. News @u-s-news-CBSNews

Winter Has You Feeling Down? How Your Living Room Can Combat It
https://www.housedigest.com/2063625/living-room-cure-winter-blues/?utm_source=flipboard&utm_medium=activitypub

Posted into Design Hacks @design-hacks-HouseDigest

A small collection of text-only websites

shkspr.mobi/blog/2025/12/a-sma…
A couple of years ago, I started serving my blog posts as plain text. Add .txt to the end of any URl and get a deliciously lo-fi, UTF-8, mono[chrome|space] alternative.

Here's this post in plain text - shkspr.mobi/blog/2025/12/a-sma…

Obviously a webpage without links is like a fish without a bicycle, but the joy of the web is that there are no gatekeepers. People can try new concepts and, if enough people join in, it becomes normal. I'm not saying the plain-text is the best web experience. But it is an experience. Perfect if you like your browsing fast, simple, and readable. There are no cookie banners, pop-ups, permission prompts, autoplaying videos, or garish colour schemes.

I'm certainly not the first person to do this, so I thought it might be fun to gather a list of websites which you browse in text-only mode. If you know of any more - including your own site - please drop a comment in the box!

If you'd like to add a site, please get in touch. The rules are simple - content which has the MIME type of text/plain. No HTML, no multimedia, no RTF, no XML, no ANSI colour escape sequences.

Emoji are fine though; emoji are cool.
#blogging #blogs #text #unicode #utf8


link rel="alternate" type="text/plain"


shkspr.mobi/blog/2024/05/link-…

Hot on the heels of yesterday's post, I've now made all of this blog available in text-only mode.

Simply append .txt to the URl of any page and you'll get back the contents in plain UTF-8 text. No formatting, no images (although you can see the alt text), no nothing!

This was slightly tricky to get right! While there might be an easier way to do it, here's how I got it to work.

Firstly, when someone requests /whatever.txt, WordPress is going to 404 - because that page doesn't exist. So, my theme's functions.php, detects any URls which end in .txt and redirects it to a different template.
PHP// Theme Switcheradd_filter( "template_include", "custom_theme_switch" );function custom_theme_switch( $template ) { // What was requested? $requested_url = $_SERVER["REQUEST_URI"]; // Check if the URL ends with .txt if ( substr( $requested_url, -4 ) === ".txt") { // Get the path to the custom template $custom_template = get_template_directory() . "/templates/txt-template.php"; // Check if the custom template exists if ( file_exists( $custom_template ) ) { return $custom_template; } } // Return the default template return $template;}
The txt-template.php file is more complex. It takes the requested URl, strips off the .txt, matches it against the WordPress rewrite rules, and then constructs the WP_Query which would have been run if the .txt wasn't there.
PHP// Run the query for the URl requested$requested_url = $_SERVER['REQUEST_URI']; // This will be /whatever$blog_details = wp_parse_url( home_url() ); // Get the blog's domain to construct a full URl$query = get_query_for_url( $blog_details["scheme"] . "://" . $blog_details["host"] . substr( $requested_url, 0, -4 ));function get_query_for_url( $url ) { // Get all the rewrite rules global $wp_rewrite; // Get the WordPress site URL path $site_path = parse_url( get_site_url(), PHP_URL_PATH ) . "/"; // Parse the requested URL $url_parts = parse_url( $url ); // Remove the domain and site path from the URL // For example, change `example.com/blog/2024/04/test` to just `2024/04/test` $url_path = isset( $url_parts['path'] ) ? str_replace( $site_path, '', $url_parts['path'] ) : ''; // Match the URL against WordPress rewrite rules $rewrite_rules = $wp_rewrite->wp_rewrite_rules(); $matched_rule = false; foreach ( $rewrite_rules as $pattern => $query ) { if ( preg_match( "#^$pattern#", $url_path, $matches ) ) { $matched_rule = $query; break; } } // Replace each occurrence of $matches[N] with the corresponding value foreach ( $matches as $key => $value ) { $matched_rule = str_replace( "\$matches[{$key}]", $value, $matched_rule ); } // Turn the query string into a WordPress query $query_params = array(); parse_str( parse_url( $matched_rule, PHP_URL_QUERY), $query_params ); // Construct a new WP_Query object using the extracted query parameters $query = new WP_Query($query_params); // Return the result of the query return $query;}
From there, it's a case of iterating over the posts returned by the query. You can see the full code on my GitLab.

#HowTo #php #WordPress


Sensitive content

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.