carsten

yarn.zn80.net

Thoughts of a nerd and software engineer -- 🇩🇪🇳🇱👫🍎🐧☕🐟🦐 -- Carsten Brueggenolte (operator of yarn.zn80.net, a 🧶Yarn.social pod)

Recent twts from carsten

@prologic@twtxt.net Hi, thanks for the hint, but I cannot get the stuff working with the template.HTML thing. I was also looking for an example, but converting markdown to HTML and then use it in a struct to be rendered by a template seems to be impossible to me.

In-reply-to » @movq I usually only use eggs for baking or fry them for potatoes and spinach. @prologic Why don't you have them anymore? Did the fox get them all when the door didn't close in time? ]:->

Eggs are nice. Add them to salad, in the morning, sunny side over, mixed with left over potatoes in the pan the next day.

Good hint:

Don’t write fragile programs. The core logic for this example is relatively short. Of the 22 lines inside the for loop, 6 of them implement the actual algorithm and the other 16 are error checking and data validation. You might be tempted to not validate incoming data or check errors, but doing so produces unstable, unmaintainable code. Error handling is what separates the professionals from the amateurs.

In-reply-to » hi guys. I am trying to solve the following problem in Go: I have a go template that just uses {{.Body}} or {{printed "%s" .Body}} for output. on the go side I am using templates.ExecuteTemplate(w,"view.html",data) as input. the data.Body is a []byte which contains valid HTML. The problem is, in the browser, or the templates.Execute only send escaped text to the browser. But it should not so I can create html on the server side

@prologic@twtxt.net mmh OK. so inside the struct instead of []byte I use template.HTML let me try

hi guys. I am trying to solve the following problem in Go: I have a go template that just uses {{.Body}} or {{printed “%s” .Body}} for output.
on the go side I am using templates.ExecuteTemplate(w,“view.html”,data) as input.
the data.Body is a []byte which contains valid HTML.
The problem is, in the browser, or the templates.Execute only send escaped text to the browser. But it should not so I can create html on the server side

any ideas on how to solve this?

In-reply-to » The EU Has Introduced a New 'Digital' ID. Here's What It Means for You. [politico.eu]
The EU's "digital" ID (an app to prove identity online) plan raises privacy concerns: "[it] could allow the private sector to better access people's government-certified information, actually strengthening the likes of Facebook and Google and the targeted advertising industry. https://www.politico.eu/article/eu-europe-digital-id/

@movq@www.uninformativ.de I do not know that. It is going on since 2020 https://ec.europa.eu/info/strategy/priorities-2019-2024/europe-fit-digital-age/european-digital-identity_en and this one is a GREAT title https://www1.cbn.com/cbnnews/world/2022/may/is-the-eu-undergoing-a-chinafication-brussels-will-be-rolling-out-a-new-digital-identity-nbsp - creepy though

In-reply-to » Intel Just Asked the EU For $624 Million To Pay It Back For Overturned Anti-AMD Fine Intel is seeking to be paid interest of $624 million on the overturned $1.1 billion fine it received from the European Commission back in 2009. From a report: The antitrust ruling was overturned at the beginning of the year, and so Intel has gone to EU General Court seeking compensation and interest on the fine. I ... ⌘ Read more

@prologic@twtxt.net They should just get their money back and that’s it. It is not likely tat Intel would have invested any of that money anywhere.