CodeSOD: The Destination Dir

Dec. 2nd, 2025 06:30 am
[syndicated profile] the_daily_wtf_feed

Posted by Remy Porter

Darren is supporting a Delphi application in the current decade. Which is certainly a situation to be in. He writes:

I keep trying to get out of doing maintenance on legacy Delphi applications, but they keep pulling me back in.

The bit of code Darren sends us isn't the largest WTF, but it's a funny mistake, and it's a funny mistake that's been sitting in the codebase for decades at this point. And as we all know, jokes only get funnier with age.

FileName := DestDir + ExtractFileName(FileName);
if FileExists(DestDir + ExtractFileName(FileName)) then
begin
  ...
end;

This code is inside of a module that copies a file from a remote server to the local host. It starts by sanitizing the FileName, using ExtractFileName to strip off any path components, and replace them with DestDir, storing the result in the FileName variable.

And they liked doing that so much, they go ahead and do it again in the if statement, repeating the exact same process.

Darren writes:

As Homer Simpson said "Lather, rinse, and repeat. Always repeat."

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!
conuly: (Default)
[personal profile] conuly
Which I nearly forgot about, but here we are!

You can buy points here, and then spend them on a paid account.

And then you can post a poll!

Poll #33906 Gratuitous poll
Open to: Registered Users, detailed results viewable to: All, participants: 13


On a scale of one to ten, crickets or walnuts?

View Answers
Mean: 6.46 Median: 6 Std. Dev 2.10
1
0 (0.0%)
2
0 (0.0%)
3
2 (15.4%)
4
0 (0.0%)
5
2 (15.4%)
6
3 (23.1%)
7
2 (15.4%)
8
1 (7.7%)
9
2 (15.4%)
10
1 (7.7%)

The Early Years by Mark Waldron

Dec. 1st, 2025 04:41 am
conuly: (Default)
[personal profile] conuly
I don’t want to say
things were indescribably
bad exactly

but things were
indescribably bad exactly

I don’t want to say the tide
went out and left him
gasping—a landed fish precisely

but the tide did indeed go out
and left him gaping—a dropped ghost

to make matters worse
god gathered up all of god’s things
and paddled out on that tide
so he swore he would die

and to make matters worser still
he rocked back and forth
in a bubble rather boggy and sad

ate nothing but thistles therein

I don’t want to pretend
things were very much worse
than they were
but they very much were


*********


Link

So, wait, wait, wait wait wait....

Nov. 30th, 2025 01:02 am
conuly: (Default)
[personal profile] conuly
are you seriously telling me that chronic nosebleeds are potentially (yet another) symptom of (the same underlying connective tissue problems that ultimately cause) hypermobility?

Well, fuck.

(Oh, and myopia's on that list too, but I somehow find myself less flabbergasted by this one.)

***


Read more... )
[syndicated profile] daily_illuminator_feed
GURPS Gun Stats GURPS prides itself on its realism for those who want to make that part of their games, and our beloved historical gear books – such as GURPS High-Tech and its spin-offs – have used untold actual weapon info and turned it into logical, consistent armament data for the gaming table. But what if you want details on a firearm that hasn't been converted into GURPS terms? What if you want to turn real-world data . . . into a weapon your hero can use?

We proudly present . . . GURPS Gun Stats.

Written by David L. Pulver – the co-designer of the GURPS Fourth Edition Basic Set, the GURPS Spaceships line, and other beloved supplements – Gun Stats follows in the footsteps of other GURPS-design supplements. In the same way that GURPS City Stats and GURPS Boardroom and Curia let you create cities and organizations by turning facts into game stats, Gun Stats helps you design firearms starting with real-world data: barrel length, caliber, action, and so on. When you're done, you'll have a weapon with complete GURPS stats that are consistent and compatible with all other realistic weapons in GURPS.

Gun Stats guides you through the process, even including a form with blank lines you can fill in using a compatible PDF viewer, plus insight into where you can find the intel you'll need to make your favorite firearm a GURPS reality! With Gun Stats, it's easier than ever to bring the real world to your gaming table. Pull the trigger and download it today, only from Warehouse 23.

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!

Pleasure Furniture by Hien Pham

Dec. 2nd, 2025 08:02 am
[syndicated profile] ohjoysextoy_feed

Posted by Hien Pham

Pleasure Furniture by Hien Pham

What does it feel like to be a human coffee table for a few raucous friend on a game night? It’s been a while since I’ve written a cute smut for the site, so I figured I’d reach into the kink and fetish world I’m currently adventuring within! Nothing better than a lighthearted fantasy to […]

Giving Tuesday

Dec. 2nd, 2025 01:06 am
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
Today is Giving Tuesday. This holiday is about charity in all its forms. You can give money, time, goods or services, whatever you have to share.

Giving Tuesday banner with hands holding a heart

Read more... )

Photography

Dec. 2nd, 2025 12:55 am
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
[personal profile] low_delta posted several gorgeous winter pictures of snow on flowers.  :D 

Vocabulary: Cliodynamics

Dec. 1st, 2025 11:18 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
Cliodynamics is the use of scientific data to understand history.
[syndicated profile] gws_feed

New comic!

Today's News:

"We usually imprint the inside with the material content, is that--"

"OUTSIDE, please. Stamp it on the outside."

"Outside?

"Yeah, it's for, uhhh, a friend named Baby Seal Leather."

Here's the original! Here's the chaser post!


Recipe: "Cheesy Bacon Potato Soup"

Dec. 1st, 2025 07:53 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
I made this today. Now I regret all the leftover mashed potatoes that I've tossed in the past. If you have leftover spuds, this is well worth considering.

Read more... )

Monday's Comic

Dec. 1st, 2025 06:25 pm
marycatelli: (Default)
[personal profile] marycatelli posting in [community profile] girlgenius_lair
Klaus, pay ATTENTION!

And Bang fulfills predictions gloriously.

Call for Prompts

Dec. 1st, 2025 05:19 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
[personal profile] dialecticdreamer is running a prompt call all month in December! Leave prompts, get ficlets. \o/ MOAR GOODEEZ for everyone!

This whole month I hope to fill with prompted stories, to celebrate my lovely readers and surviving the first quarter of the twenty-first century. It’s been jam-packed with crises and chaos, hasn’t it? Time to take a story break… or thirty.

Read more... )

Birdfeeding

Dec. 1st, 2025 02:17 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
Today is cloudy and cold.

I fed the birds.  I've seen a mixed flock of sparrows and house finches plus a cardinal.

I put out water for the birds.

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

It's snowing quite briskly now, falling almost straight down, like one of those animated holiday cards.  Pretty.  I wound up with snow all over my coat.

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

I've seen a mourning dove.

The snow has decreased to a light flurry.

EDIT 12/1/25 -- I've seen one female and two male cardinals plus a dark-eyed junco.  I also saw the sparrows on the suet feeder.  :D  Didn't take them long at all to find that this year.  Sometimes it takes a week or more. 

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

There was a mourning dove on the porch when I went out.
 
As it is getting dark, I am done for the night.

"Rabbit rabbit rabbit!"

Dec. 1st, 2025 04:37 pm
mdlbear: Three rabbits dancing (rabbit-rabbit-rabbit)
[personal profile] mdlbear

Welcome to December, 2025!

November 2025

S M T W T F S
      1
23456 78
9101112131415
16171819202122
2324 2526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 2nd, 2025 04:45 pm
Powered by Dreamwidth Studios