en.osm.town is one of the many independent Mastodon servers you can use to participate in the fediverse.
An independent, community of OpenStreetMap people on the Fediverse/Mastodon. Funding graciously provided by the OpenStreetMap Foundation.

Server stats:

250
active users

#DailyBloggingChallenge

0 posts0 participants0 posts today

While writing up a reflection of completing the #DailyBloggingChallenge for a year, I realized that my #Hugo based website is missing #SEO data in its head.

The hugo clarity theme comes with SEO though it is not activated by default and one would only realize it when going through the layouts/partials/opengraph.html code. There is the mention of the site param blogDir that is not implemented anywhere else within the code.

Thus to activate the SEO over #SchemaOrg and #JsonLd one needs to add the param blogDir and point it to the designated section. Using the exampleSite as a reference it would be blogDir = "post" in the config/_default/params.toml file.

GitHubGitHub - chipzoller/hugo-clarity: A theme for Hugo based on VMware ClarityA theme for Hugo based on VMware Clarity. Contribute to chipzoller/hugo-clarity development by creating an account on GitHub.
Continued thread

#DailyBloggingChallenge (364/365)

The ‘Quick Start’ section in the Readme sufficed for setting up.

The only thing that I had to change in the ./models/download-ggml-model.sh script (1) is remove the option --show-progress on line 105. Seems like GNU Wget2 2.1.0 doesn’t have that option.

Alternatively one can replace the option with

--progress=bar --force-progress

GitHubwhisper.cpp/models/download-ggml-model.sh at master · ggerganov/whisper.cppPort of OpenAI's Whisper model in C/C++. Contribute to ggerganov/whisper.cpp development by creating an account on GitHub.
Continued thread
Continued thread

#DailyBloggingChallenge (362/365)

Originally wanted to use #VOSK to transcribe the #SpeechToText. Initially tried it out over #KdenLive and its ‘Speech Recognition’ tool.

This took quite awhile to setup, since it is not concrete what kind file format, if any, the VOSK model should have. Additionally, the recommendation of setting up a virtual #Python environment didn’t work as expect and went with the global approach.

And finally scratched the whole approach, once realizing that transcribing 26 min audio clip is taking longer than 10min.

Continued thread

#DailyBloggingChallenge (359/365)

Most of the time, I try to watch videos on #Invidious 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 #VideoEditor without the need to render the end product.

Continued thread

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

Continued thread

#DailyBloggingChallenge (353/365)

Looking at the #JavaScript code in the image that will be parsed over #GoLang 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 #CSS 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.

Continued thread

#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 }}

Qoto Mastodonbarefootstache (@barefootstache@qoto.org)#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 (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.