#DailyBloggingChallenge (348/365)
In 342 the first mention of using a callback function is used without any concrete description of how it shall be built. From the last image one needs to change the partial reference to be saved as a variable which is then piped with `safeHTML`, so
`{{ $itemsOutput := partial "paypal-button" (dict "paypal" .Params.paypal "items" .Params.paypalItems "headName" .Params.paypalHeadName "headValue" .Params.paypalHeadValue "uniqueID" $uniqueID) }}`
and the rendering is done via
`{{ $itemsOutput | safeHTML }}`
Chess hasn’t been updated in almost 200 years and it’s obvious the devs have abandoned it. The greedy creators took your money and laughed all the way to the bank.
I remember back in 705 AD when chess was fun. Then they started adding stupid features no one wanted like “castling” and “en passant” instead of listening to player feedback and fixing game-breaking bugs. I’ve been complaining for years about the collision-detection glitch with the horsey. The ‘clipping-through-pieces’ bug has been abused to death and the lazy devs refuse to fix it.
Don’t support this awful behaviour and boycott this company.
I am often not sure what people mean when they leave comments on my posts, because small snippets of text deprived of any larger context can be difficult to accurately understand.
So I often tell people “I am not sure what you mean.”
This inspires some people (thank you!) to elaborate and explain. I greatly appreciate this.
However, this also seems to inspire other people to irrational anger and an utter refusal to explain or elaborate. I do not appreciate this.
Because it’s going to confuse a lot of people:
- When they say that the EU AI Act “enters into force” what they mean is it becomes a law and the work to build its regulatory infrastructure begins.
- It won’t actually start being enforced for another six, twelve, and 24 months, for high risk, general purpose, and the rest respectively.
TIL in Wisconsin, researchers found that the presence of wolves reduced vehicle collisions with deer by about a quarter, creating an economic benefit that was 63 times greater than the cost of wolves killing livestock.
https://www.pnas.org/doi/10.1073/pnas.2023251118
#til #todayilearned
https://www.reddit.com/r/todayilearned/comments/1efksk5/til_in_wisconsin_researchers_found_that_the/
This is a real picture, it has not been been altered
Gabriel Medina, he scored a 9.9
(Please share) Do you use encrypted messaging apps like WhatsApp, Telegram, Signal, or Element?
And have you faced challenges/frustrations related to privacy, encryption, and moderation?
CAT Lab is launching a new study to collect & share anonymous stories about people's needs and challenges with encryption/moderation — to better inform design and policy debates that seem stuck on safety vs privacy.
Website & Survey in EN & ES:
#DailyBloggingChallenge (347/365)
Hypothesis: This current epidemic of social media use in childhood and adolescents and its impact of their developing brain has probably been seen before.
About 150a ago the alcohol laws on minimum drinking age has been established to minimize the effects on the developing brain. Back then medical advances in the scientific method just started advancing, thus it took so long to establish such an age. Additionally the age of adulthood has been pushed back by many years, where lots of regions had the ruling that one can drink with marriage, which could start as early as the beginning of teenage years.
Fast forward to today where we already know the adverse effects of social media on the molding minds and are taking little action to prohibit and/or minimize its use. Corporations have tried to install a minimum age requirement and this can be very easily lied on.
I doubt that ID checks will be established on such platforms any time soon, because of the current ecosystem of data value and angst of where such data will land.
It seems like the only place where ID checks were successfully applied are on services where can earn money. And these were first implemented once governments started stepping in to learn where the user is gaining the influx of money.
tl;dr As long as government doesn't intervene, we won't see any positive change towards child brain development.
#DailyBloggingChallenge (346/365)
The trickiness of #teaching is taking a multidimensional concept and presenting it in a linear fashion.
The trickiness of #studying is taking the linear concept and transforming it into a multidimensional pattern that one's mind can understand.
Transpiling these ideas to the #TypeScript language would be:
In the ideal case the teacher can just `JSON.stringify(<concept>)` and the student just reverts the function with `JSON.parse(JSON.stringify(<concept>))` and learning would be done. People aren't basic #JavaScript objects and have a schema tied to their minds, thus they need additional parsing to comprehend the concept.
Please vote for an implementation of VJOURNAL in Thunderbird. 👇 This would REALLY improve the ecosystem and usability of open protocols! Currently there is almost no software on the desktop to sync your notes and journals with a CalDAV server and TB could fill a huge gap here.
https://connect.mozilla.org/t5/ideas/support-vjournal-in-thunderbird/idi-p/46295
“Maybe you should store passwords in plaintext.”
https://www.qword.net/2023/04/30/maybe-you-should-store-passwords-in-plaintext
#DailyBloggingChallenge (345/365)
The next step is to create an unique value. Luckily #Hugo has a built in command via
`{{ $uniqueID := .File.UniqueID }}`
which needs to be placed within a range tag meaning within
`{{ range .Pages }}`
So the whole `list.html` file would look like the image. We are also passing in the `"uniqueID" $uniqueID` as the last parameter in the `dict` for the `partial "paypal-button"`.
#DailyBloggingChallenge (344/365)
Let's say we would implement this pseudo code for the subdirectory `content/post/store`. It would work fine for one product in the subdirectory `store`.
Now let's add a second product that also has the same form (339) with different values.
If one would change either drop-down, both would update. The reason is that the #JavaScript callback is only checking for the #CSS class change and not for an unique class.
References
#DailyBloggingChallenge (343/365)
Time to make an overview of what we have so far:
(image Initial)
Since we are already using the callback approach, it would be better to move out everything that is not viable to the #paypal form. Thus making the overview more like
(image Reformed)
#DailyBloggingChallenge (342/365)
First we want to resolve the UX nightmare issue by designing the UI usable.
Let's go with this arrangement of items:
- title of item
- image of item
- drop-down to choose the item
This means we want to create some kind of callback that updates the prior two components that are dependent on the selection within the drop-down. Thus, we will need to extend #Hugo with #JavaScript while using #golang.
#DailyBloggingChallenge (341/365)
The question now is how to build the partial. Since #Hugo is a static site generator that focuses on using static elements like raw #HTML and #CSS, one quickly realizes the options to continue further are not many.
One could try to use the CSS `option:checked` property and other pseudo classes within the `<option>` HTML tag to turn on and off the various choices within the array. Though this becomes quite difficult to reference items outside of the `<option>` tag and can make the whole thing an UX nightmare.
#DailyBloggingChallenge (340/365)
Now we will create a partial called `paypal-button.html` within the `layouts/partials/` directory. We want to call this partial like
`{{ partial "paypal-button" (dict "paypal" .Params.paypal "items" .Params.paypalItems "headName" .Params.paypalHeadName "headValue" .Params.paypalHeadValue) }}`
within a list template (either the default or another partial).
I am a strong proponent of leaving this planet better behind than when I arrived on it. Thus to get the most bang for a lifetime my key focus is #longevity which I attempt to achieve with #nutrition specifically #plantbased.
Longevity is good and all as long as you are not frail and weak. Ideally would be to die young at an old age. Thus I incorporate tactics from #biohacking and #primalfitness. Additionally I am an advocate of #wildcrafting, which is a super set of #herbalism.
Studied many fields of science like maths or statistics, though the constant was always computer science.
Currently working as a fullstack web developer, though prefer to call myself a #SoftwareCrafter.
The goal of my side projects is to practice #GreenDevelopement meaning to create mainly static websites. The way the internet was intended to be.
On the artistic side, to dub all content under the Creative Commons license. Thereby, ideally, only using tools and resources that are #FLOSS #OpenSource. #nobot