Show newer

(360/365)

Alternatively one could also use to combine the files together via the like

`ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a aac output.mp4`

Source: superuser.com/a/277667

Show thread

(359/365)

Most of the time, I try to watch videos on with lower resolution to speed up loading time, especially since I watch by default at twice the playback rate.

Today I realized that some instances permit the downloading of content. And even if one has to download audio and video separate, one can easily merge them together temporarily in one's favorite without the need to render the end product.

Show thread

(358/365)

For a long time was the trick to mitigate ads.

Seems like YouTube has finally caught on and now going back to .

(356/365)

Now one shall add the missing checks and default cases. Further one shall add the CSS classes mentioned in 353.

The result is seen in the image.

- 353: qoto.org/@barefootstache/11291

Show thread

(355/365)

Now that the partial is complete, look back at its parent. Combining the code from 345 and 348 one gets this image.

The problem of this code so far is that it doesn't check if the `$itemsOutput` exists. Further there are no checks that the array `.Params.paypalItems` has any items and there is no default case.

- 345: qoto.org/@barefootstache/11278
- 348: qoto.org/@barefootstache/11291

Show thread

(354/365)

The whole code of the partial looks like in the image.

A lot of this code can be squashed to save space for the cost of readability.

Show thread

(353/365)

Looking at the code in the image that will be parsed over using the `printf` function.

First one creates a `change` event listener function that is bound to the id of `item-select-$uniqueID`. The `<select>`-tag shall be added the `id` attribute in line 13 (351).

Additionally a custom attribute `data-image` shall be created and placed on the `<option>`-tag in line 15 (351). This holds the path to the image value within the `paypalItems` element.

Outside of the partial the classes `selected-value` and `selected-image` need to be defined. They present the respective values from `paypalItems` element.

In the initial case, lines 10-11 will be called that take the value from the first element in the `paypalItems` array. Defined from `{{ $selectedValue := index .items 0 }}` which shall be prepended before the JavaScript code.

- 351: qoto.org/@barefootstache/11291

Show thread

(352/365)

This code will generate dynamically based off of the length of the `paypalItem` or `.items` variable and use the first element of it as the default value (line 9).

Next one will extend the code with more CSS classes to ease the referencing of the JavaScript actions.

Show thread

(351/365)

Now that the exists, it shall be converted into syntax as described in 349. As in the image, some functions are used like `printf` and other Hugo functions to loop over the variables that are saved as an array type.

- 349: qoto.org/@barefootstache/11291

Show thread

(350/365)

Now wrap the code (338) with a `<div>` and a class that extends the `uniqueID` (345) in its name. The pseudo code looks like the image.

- 338: qoto.org/@barefootstache/11278
- 345: qoto.org/@barefootstache/11278

Show thread

(349/365)

Further within the partial, since `safeHTML` will be used one can parse string using and syntax within . As an example

`{{ $output := "" }}`

`{{ $output = print $output "<span>Example</span>" }}`

`{{ return $output }}`

This creates a `<span>`-tag with the text `Example` after `safeHTML` pipe is applied.

Show thread

(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 }}`

- 342: qoto.org/@barefootstache/11278

Show thread

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.

pnas.org/doi/10.1073/pnas.2023
#til #todayilearned
reddit.com/r/todayilearned/com

(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:

opcandado.citizensandtech.org/

(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.

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.