|
‘tis a beautiful summer’s day...
All is well, every bird is singing, and three venerable old gentlemen are gathered in the splendid garden of their retirement home. And, a question pops up:
“What is the fastest thing in Universe?”
“But everybody knows the answer to that! It is light. Nothing can travel faster than light. Einstein even provided mathematical proof.”
“Delusions, delusions! It is thought. My thought can travel from this hammock, to the Andromeda galaxy – millions of light years away – in a blink. That is countless of magnitudes faster.”
“Ah my dearest friends... have you learnt nothing? The fastest thing, in Universe, is crap.”
“Crap?”
“Crap??”
“But yes of course! I can can crap meself, before even thinking at all.”
.Coat? Oh! Dear Heavens, where on Earth did I leave my coat?
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Wordle 1,209 3/6
⬜🟩⬜🟨⬜
⬜🟩⬜🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,209 4/6*
⬜⬜🟨⬜🟩
🟨🟨⬜⬜🟩
⬜🟩🟩⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,209 2/6
🟩🟨🟨⬜🟩
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
I'm not sure if this will bear any fruit, but I'm asking on the off chance someone might know what I am going on about below.
I understand alpha-blending (pixels w/ opacity)
I don't understand compositing modes
They are something like these, but in my codebase they are not called this.
Blend modes - Wikipedia[^]
static const composition_function_t composition_solid_table[] = {
composition_solid_source,
composition_solid_source_over,
composition_solid_destination_in,
composition_solid_destination_out,
};
static const composition_function_t composition_table[] = {
composition_source,
composition_source_over,
composition_destination_in,
composition_destination_out,
};
These are the blend/compositing modes as they appear in my codebase.
The implementation of those functions is here, in case anyone's interested
plutovg/source/plutovg-blend.c at main · sammycage/plutovg · GitHub[^]
I need to adapt them so I need to understand them. I've tried following the code, but obviously I'm not doing it right because when I try to adapt it to do read/writes to RGB565 bitmaps some of my colors are coming back wrong.
For the most part I am using "composition_solid_source" and composition_solid_source_over" and the "source over" is what is confusing to me. I don't know what that means.
Any graphics afficionados/nadas be able to explain this to me in high level terms?
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I use Photoshop v7 (2002) and only in the simplest of ways really, so I don't think I can help you. Though I will if I can.
|
|
|
|
|
I think I grok Photoshop quite well. I think the Wiki does a fine job of explaining the plethora of blend modes.
All PS blend modes produce one resulting RGBA layer, from two RGBA layers in.
It seems to me, after (possibly too) quick glance, that the functions you point to, take one RGBA in.
I assume you know this: The multiplication of R * R is not a direct integer MUL. It is a "normalised" MUL.
i.e. 0x80 * 0x80 is not 0x4000 it must be seen as 0.5 * 0.5 == 0.25
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
In photoshop, you can superpose different layers, and decide for each how it will "blend" with the layers below.
The simplest blend way is to simply superpose the layer content, so you see at first what is on the layer on top, then what is on the layer below it but for what is on the first layer, and so on. Like a pile of cards that are not aligned, you'll see the top card and bits of the cards below it if you look from above.
And then you can apply a formula for each layer blending, that can be different for each. For the pile of cards, you can say that you want to merge only the red colors in the final rendering, or the pixels that are above a certain saturation value, or below a certain brightness, and ignore all other, or multiply the pixel values. If you have a pile of blue and red cards, and only merge red, you'll end up with a solid big chunk of merge red cards surrounded by bits of untouched blue cards below (assuming the top card is red).
As you pointed out, each of the layers have an opacity value (alpha-blending) which is independent from the blending mode.
It is quite easy to grasp if you can get in touch with a photoshop version : simply create a bunch of layers with different geometrical shapes on them, and play with the predefined blending/compistion mode for each layer.
|
|
|
|
|
Thoughts and prayers for our programmer friends from the Sunshine State (Florida), as Hurricane Milton will be making landfall this evening.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
We're still recovering from Helene!
Luckily this one is going south of us and will have minimal impact.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
Perspective is everything. I know someone in south Tampa and she's freaking out right now. Can't say I blame her.
Did you get through Helene ok? And of course, did all your computers survive?
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: I know someone in south Tampa and she's freaking out right now. Can't say I blame her.
Ditto, they're fixin to get hit hard, hope she stays safe.
We got though without any damage but we had about 30 trees down. We think the way some are twisted off that we had at least one tornado come through our area. There's a swath through our neighborhood were it is obvious something bad went through by the amount of damage and we are the worst hit. We bought the house because of all the beautiful trees and now there are hardly any left, turns out they were all end-of-life water oaks.
We have 3 acres with a frontage of about 300 yards and we have enough debris stacked along the road to fill an estimated 10 large dump trucks.
Luckily we had family and friends help with cleanup.
Funny while we were cleaning up we had people drive by, slowly gawking and taking pictures.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
Mike Hankey wrote: We got though without any damage but we had about 30 trees down Sad about the trees, that's a shame. At y'all are alive and kicking though, so there's that.
Mike Hankey wrote: We think the way some are twisted off that we had at least one tornado come through our area Was thinking the same exact thing after seeing 30 trees went down, assuming they were big trees. If it was a tornado, thank God it didn't hit your house though.
Mike Hankey wrote: We bought the house because of all the beautiful trees and now there are hardly any left, turns out they were all end-of-life water oaks.
Mike Hankey wrote: We have 3 acres with a frontage of about 300 yards and we have enough debris stacked along the road to fill an estimated 10 large dump trucks. Dang. Dem country boys know what's up. Let's just say after living in Hollywood and Vegas for almost a decade I forgot what that's like. Must be an awesome yard, even if 30 trees went down.
Mike Hankey wrote: Funny while we were cleaning up we had people drive by, slowly gawking and taking pictures. There's your 15 minutes of fame... all it took was a hurricane.
Jeremy Falcon
|
|
|
|
|
Oh and um, glad you're alive and all that.
Jeremy Falcon
|
|
|
|
|
Took a lickin and kept on tickin.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
Not the best time to go see Mickey Mouse.
Stay dry everyone in the area.
Put your backups in dry bags.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Maximilien wrote: Not the best time to go see Mickey Mouse.
At times like these, reservations aren't flying off the shelves...
Sorry, too soon.
|
|
|
|
|
Backups? What is that?
>64
It’s weird being the same age as old people. Live every day like it is your last; one day, it will be.
|
|
|
|
|
One of my colleagues lives in Venice, FL and the other is in Orlando. The owner (Venice) escaped South to Islamorada and the other is expecting wind damage/power outage but they are boarded up and should be able to handle it. Looks like I get a day off tomorrow! Either that or I will be the only one answering my phone!
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
We evacuated from Tampa to Georgia on Monday, before the gridlock on the 75 started. Now we just hope for the best news tomorrow, Thursday!
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
If anyone is curious, there is a Ham network organized in the area that offers free live streaming of their repeater traffic and throughout the storm. SARNET[^]
This system is a multi-repeater link that operates in Southern Florida, and at the moment there is a moron with a radio deliberately interfering with emergency communications. Teams are currently out with DF equipment to locate and arrest the idiot.
Will Rogers never met me.
|
|
|
|
|
Lucky to be South of it, getting 40+ MPH winds, no rain. I did put up the shutters.
Tampa area still trying to recover from Helene. Kids got hit hard in NC, now back here for the winter just in time for this one. Luckly, they are South also.
About 5 weeks ago, I contracted with a tree outfit to trim a couple of large trees. One from a lousy neighbor's tree that hangs over my yard, the other an oak that was approaching my roof.
They showed up today, couple of the neighbors assumed that I had called them in because of Milton. Just a coincidence. Glad to have it done though.
>64
It’s weird being the same age as old people. Live every day like it is your last; one day, it will be.
|
|
|
|
|
Just saw this video this morning (safe for work), and it's worth noting that in Windows 11 24H2 Explorer apparently links to Recall.
Of course, their PR blah, blah says you can disable it (for now), but it's the whole frog slowly boiling thing going on. If it records your entire screen, you'd think there would be no reason for Explorer to link to it directly... unless it's also doing other things we don't know about.
Will I install 24H2 personally? Probably. Will I make sure I keep up with Linux if this gets worse? Damn right I will.
Food for thought.
Jeremy Falcon
modified 17hrs ago.
|
|
|
|
|
I've been in software development a long, long time. And I've always believed that the Analyst Programmer role was the best option, when it comes to getting things done. I should qualify that:
- an Analyst Programmer needs to have a good understanding of both the business and the technology/systems
- by "best", I mean most efficient.
This was borne out a couple of jobs back, when the software development team I was working in, consisted of experienced developers - and Analysts who had less understanding of the business, (than the developers), and no understanding of the technology/systems. Invariably, on receipt of a spec, developers would need to: identify actual requirements by talking to users; correct half-baked ideas that weren't in line with the technolgy; and devise their own testing. Analysts were actually making the whole job more difficult. Most - if not all - of the senior developers would have provided a quicker/better solution if they had done the analysis and spec work themselves. Yeah. Analyst Programmers.
Don't get me wrong. There are developers who shouldn't be let near a spec... or a user... and, in some cases, a keyboard. But they are the exception.
But there is one "blind spot" that a developer needs to overcome before taking on any sort of analysis role. Fast forward to today. I'm currently doing a few small jobs for a big company that has a small development team... and a "Solutions Architect". The Solutions Architect has been with the company for many years; started there as a programmer; has an in-depth understanding of both the business and the technology; and produces all the specs. But...
His mind-set is 100% that of a developer He has that "blind spot". And it's right there in his job title. What I want from a spec is a clear explanation of the problem - ideally with examples, that can provide the basis for testing. Want I don't want from a spec is just a solution. It's an easy trap to fall into. Developers tend to be fixers/solvers of problems - i.e. solution providers. If you can't explain the problem - the "why we need to do this" - you shouldn't be producing specs.
Remember... this just MHO.
modified 19hrs ago.
|
|
|
|
|
I know a guy who's completely into the technology, but has no eye for businesses.
He'd send out emails to customers saying stuff like "When you click the button we do an AJAX call and in the POST we store the entity in the database through a foreign key relation."
Well, maybe not that bad, but you get the idea.
Luckily, I checked his emails before he'd send them and it simply didn't occur to him to simply say "when you click the button we store the product."
That was way to simplistic according to him.
I once had a customer who didn't want to speak to a coworker anymore exactly because that coworker talked like that and the customer didn't understand him and wasted his time.
Because I've worked with many developers who are like that I'm for the duo.
An analyst, preferably one who also has technical knowledge, and a developer, going out to talk to the customer together.
They can both see how the customer works and what they do and after that the analyst can work it out, but the developers isn't blank either.
It's also good for the users and developers to get to know each other because it becomes easier for either of them to send and email or just pick up the phone.
Of course there are also many companies who shudder in fear of the idea that a developer and a user are in direct contact with each other.
|
|
|
|
|