Politics

Nov. 25th, 2025 02:03 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
To restore trust in government, this Belgian town opened a lottery that elects 30 random citizens to power. It's working.

In 2019, Ostbelgien, a town in Belgium with about 80,000 residents, took a gamble on a new approach to governing: The city’s parliament voted to establish a permanent Citizens’ Council and Assembly, giving randomly-selected citizens the power to make decisions.


Gosh, I never expected to see anything like that on Earth. It's something done on the Common Ground colony in my science fiction. They have elected seats too.  Now I have to wonder if politicians will start keeping fish to demonstrate their grasp of ecology.

Birdfeeding

Nov. 25th, 2025 01:59 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
Today is cloudy and cool.  It rained again last night.

I fed the birds.  I haven't seen any activity today.

I put out water for the birds.

EDIT 11/25/25 -- I did a bit of work around the patio.

EDIT 11/25/25 -- I did more work around the patio.




.
 

CodeSOD: The Map to Your Confession

Nov. 25th, 2025 06:30 am
[syndicated profile] the_daily_wtf_feed

Posted by Remy Porter

Today, Reginald approaches us for a confession.

He writes:

I've no idea where I "copied" this code from five years ago. The purpose of this code was to filter out Maps and Collections Maybe the intention was to avoid a recursive implementation by an endless loop? I am shocked that I wrote such code.

Well, that doesn't bode well, Reginald. Let's take a look at this Java snippet:

/**
 * 
 * @param input
 * @return
 */
protected Map rearrangeMap(Map input) {
	Map retMap = new HashMap();

	if (input != null && !input.isEmpty()) {

		Iterator it = input.keySet().iterator();
		while (true) {
			String key;
			Object obj;
			do {
				do {
					if (!it.hasNext()) {
					}
					key = (String) it.next();

				} while (input.get(key) instanceof Map);

				obj = input.get(key);

			} while (obj instanceof Boolean && ((Boolean) obj).equals(Boolean.FALSE));

			if (obj != null) {
				retMap.put(key, obj);
				return retMap;
			}
		}
	} else {
		return retMap;
	}
}

The first thing that leaps out is that this is a non-generic Map, which is always a code smell, but I suspect that's the least of our problems.

We start by verifying that the input Map exists and contains data. If the input is null or empty, we return it. In our main branch, we create an iterator across the keys, before ethering a while(true) loop. So far so bad

Then we enter a pair of nested do loops. Which definitely hints that we've gone off the edge of the map here. In the inner most loop, we do a check- if there isn't a next element in the iterator, we… do absolutely nothing. Whether there is or isn't an element, we advance to the next element, risking a NoSuchElementException. We do this while the key points to an instance of Map. As always, an instanceof check is a nauseating code stench.

Okay, so the inner loop skips across any keys that point to maps, and throws an exception when it gets to the end of the list.

The surrounding loop skips over every key that is a boolean value that is also false.

If we find anything which isn't a Map and isn't a false Boolean and isn't null, we put it in our retMap and return it.

This function finds the first key that points to a non-map, non-false value and creates a new map that contains only that key/value. Which it's a hard thing to understand why I'd want that, especially since some Map implementations make no guarantee about order. And even if I did want that, I definitely wouldn't want to do that this way. A single for loop could have solved this problem.

Reginald, I don't think there's any absolution for this. Instead, my advice would be to install a carbon monoxide detector in your office, because I have some serious concerns about whether or not your brain is getting enough oxygen.

[Advertisement] Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!

A Humping Story by Ene

Nov. 25th, 2025 08:02 am
[syndicated profile] ohjoysextoy_feed

Posted by Matthew Nolan

A Humping Story by Ene

Who’d have thought dry humping could get someone so wet! Join Ene as she searches for a solution to the boring, routine sex she finds herself having. Turns out that to get off, she needs her boyfriend to keep his pants ON. Take a peek; Ene has also done another comic for us in the […]
[syndicated profile] daily_illuminator_feed
I'm not sure I have formatting emphatic enough for the DON'T TRY THIS AT HOME element of today's post, but . . .

Wow, are my creative juices flowing after watching this YouTube video from Shake the Future, where he makes a metal vise in his apartment from scratch, melting iron in a microwave to pour it into molds. It's an utterly amazing process video to spark visions of what, potentionally, a tabletop home-gadgeteering hero could accomplish . . . just make sure it is NOT YOUR HOME.

Steven Marsh

Warehouse 23 News: The City Never Sleeps Because Of All The Action

There are a million stories in the city, and they're all exciting! GURPS Action 9: The City shows how you can add GURPS City Stats to your GURPS Action campaigns. It also features six sample cities to use with your own action-packed adventures. Download it today from Warehouse 23!

Wildlife

Nov. 25th, 2025 12:16 am
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
Rats are snatching bats out of the air and eating them

Brown rats (Rattus norvegicus) figured out how to get inside the kiosk and climb up to the bats’ landing platform at the entrance, using a curtain the researchers placed inside the kiosk for filming purposes. From August to October 2020, cameras captured the rodents — standing on their hind legs and using their tail to balance — grabbing bats mid-flight, killing them with a bite and dragging the carcasses away. The rats also caught bats as they landed on the platform.


Rats, especially brown rats, can be vicious little predators. It will be interesting to see if A) rats evolve further in predatory directions and B) bats learn to avoid them. Hats off to Dougal Dixon, you called it dude.

Note from birdhouse architecture: don't create a platform or perch near an entry hole that predators can stand on. Fliers can typically enter without it. Probably the rats can't climb upside down, but you might want to check that.

ysabetwordsmith: Damask smiling over their shoulder (polychrome)
[personal profile] ysabetwordsmith
Thanks to a donation from [personal profile] fuzzyred, there are 31 new verses in "An Inkling of Things to Come."  As the worldbuilding class discusses setting, Shiv tries to figure out what a genre is.
ysabetwordsmith: Damask smiling over their shoulder (polychrome)
[personal profile] ysabetwordsmith
This poem is spillover from the June 3, 2025 Poetry Fishbowl. It was inspired by a prompt from [personal profile] dialecticdreamer. It also fills the "Aroace" square in my 6-2-25 card for the Pride Fest Bingo. This poem has been sponsored by a pool with [personal profile] fuzzyred and [personal profile] librarygeek. It belongs to the Finn Family thread of the Polychrome Heroics series.

Read more... )

Deciding Anew (part 1 of 1, complete)

Nov. 24th, 2025 11:59 pm
dialecticdreamer: My work (Default)
[personal profile] dialecticdreamer
Deciding Anew
By Dialecticdreamer/Sarah Williams
Part 1 of 1, complete
Word count (story only): 1312
[Third week of December, 2016]


:: Frank the Crank gets a very surprising visitor to the repair shop, with an even more surprising offer. Part of the City Engines story arc in the Polychrome Heroics universe, this story came about as a result of the comments on “Bad Decisions, Good Decisions.”



The glossy silver car that pulled to a stop in the parking lot was less than two years old, and rode heavy. Frank recognized the weight of high-end safety panels hidden in the lines of the “safest SUV in the world.” He wiped his hands and moved away from the car under the canvas awning.

The woman who stepped out of the back of the vehicle wore pearl drop earrings and a pair of combs inlaid with mother-of-pearl, but also wore a navy blue coverall. A closer look revealed the rectangle of darker fabric where a sticky label had recently been. The coverall had no name tag, and no logo embroidered on it. “Could I help you?” he asked as he approached.
Read more... )
ysabetwordsmith: Damask smiling over their shoulder (polychrome)
[personal profile] ysabetwordsmith
This poem is spillover from the May 7, 2025 Poetry Fishbowl. It was inspired by prompts from [personal profile] fuzzyred and [personal profile] dialecticdreamer. It also fills the "Power(ful)" square in my 5-1-24 card for the Superpower Bingo fest. This poem has been sponsored by a pool with [personal profile] fuzzyred and [personal profile] librarygeek. It belongs to the Finn Family thread of the Polychrome Heroics series.

Read more... )

Poem: "To Form a New Idea"

Nov. 24th, 2025 09:41 pm
ysabetwordsmith: Damask smiling over their shoulder (polychrome)
[personal profile] ysabetwordsmith
This poem came out of the June 4, 2024 Poetry Fishbowl. It was inspired by a prompt from [personal profile] mama_kestrel. It also fills the "Nonbinary / Intersex" square in my 6-1-24 card for the Pride Fest Bingo. This poem has been sponsored by a pool with [personal profile] fuzzyred and [personal profile] librarygeek. It belongs to the Finn Family thread of the Polychrome Heroics series.

Read more... )

Poem: "No Trouble So Great or Grave"

Nov. 24th, 2025 08:49 pm
ysabetwordsmith: Damask smiling over their shoulder (polychrome)
[personal profile] ysabetwordsmith
This poem came out of the November 5, 2024 Poetry Fishbowl. It was inspired by a prompt from [personal profile] dialecticdreamer. It also fills the "Chamomile" square in my 11-1-24 card for the Sleepytime Bear Bingo fest. This poem has been sponsored by a pool with [personal profile] fuzzyred and [personal profile] librarygeek. It belongs to the Finn Family thread of the Polychrome Heroics series.

Warning: This poem contains some intense topics. Highlight to read the warnings, some of which are spoilers. It includes digestive upset, reference to human trafficking, implied mayhem, emotional upheaval, exhaustion, and other challenges. If these are sensitive issues for you, please consider your tastes and headspace before reading onward.

Read more... )

Early Humans

Nov. 24th, 2025 04:29 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
Why did ancient people build massive, mysterious mounds in Louisiana?

Hunter-gatherers at Poverty Point may have built its massive earthworks not under the command of chiefs, but as part of a vast, temporary gathering of egalitarian communities seeking spiritual harmony in a volatile world. New radiocarbon data and reexamined artifacts suggest far-flung travelers met to trade, worship, and participate in rituals designed to appease the forces of nature.


Note that we already have extensive evidence that the trade network of Turtle Island spanned all four coasts. This makes large trading posts / events highly plausible.

November 2025

S M T W T F S
      1
23456 78
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 25th, 2025 10:42 pm
Powered by Dreamwidth Studios