@weberc2@stranger.social avatar

weberc2

@weberc2@stranger.social

This profile is from a federated server and may be incomplete. Browse more on the original instance.

scy, to webdev
@scy@chaos.social avatar

I need to convert #HTML to #Markdown and I'm looking for a tool to do that.

The output should

• preserve line breaks in paragraphs
• not contain additional, unnecessary linebreaks (e.g. 4 empty lines between paragraphs)
• be configurable (e.g. whether to use * or _ for emphasis, or * vs - for unordered lists)
• if possible, allow me to hook into details (e.g. to convert <pre class="shell"> to ```sh)

#Python or #CLI. Alternatively, what's a really configurable prettifier?

#askFedi :BoostOK:

weberc2,
@weberc2@stranger.social avatar

@scy Probably not a helpful response, but I’m pretty sure HTML is Markdown. The latter is a superset of the former AFAIK.

weberc2, to Kubernetes
@weberc2@stranger.social avatar

I’m using the operator for my cluster, and I would like for one particular workload to use a specific exit node. I don’t think that’s possible today via the operator, but does anyone know what change would be? Do I need a tailscale sidecar container on my workload pods?

anderseknert, to random
@anderseknert@hachyderm.io avatar

People with hundreds of open tabs in their browser are the same people that have thousands of unread emails in their inbox.

Change my mind.

weberc2,
@weberc2@stranger.social avatar

@anderseknert I have like 4 open tabs and 15k unread emails 🤷‍♂️

skykiss, (edited ) to random
@skykiss@sfba.social avatar

"This is objectively correct.Trump is the very worst—the actual bottom of the barrel—of the human beings our country has birthed.You can tell me that he is tied with some others ...Manson, Dahmer, and but as a Trump biographer I’m not going to have any difficulty arguing that no one exceeds Trump in being despicable. Keep in mind that the death toll from his actions during the pandemic will never be equaled by any serial killer or terrorist because it would be logistically impossible." s.a.

He is responsible for the death of many thousands of Americans.

Donald Trump is a horrid, malignant, narcissistic sociopath. He’s one of the worst exemplars of the human species I’ve ever witnessed. Period.

https://www.nbcnews.com/politics/2024-election/trump-russia-navalny-death-legal-woes-putin-rcna139461

weberc2,
@weberc2@stranger.social avatar

@skykiss I dislike Trump strongly, but arguing that politicians during covid are responsible for their deaths in the same way that serial killers are responsible seems pretty hard to justify. Cuomo's policies much more directly contributed to deaths than Trump's, and if we're going to argue that policies of inaction which result in death are a 'death toll' then every politician is responsible for hundreds of thousands of deaths due to pollution alone (never mind inaction in foreign affairs).

binaryphile, to golang
@binaryphile@fosstodon.org avatar

At work, we're evaluating a web framework. Evidently it is zero allocation, because it's using sync.Pool under the hood to recycle memory such as session objects. The docs warn that you should copy any value you use from their objects. I read that as there's the possibility for, not use-after-free bugs, but rather use-after-recycle bugs. If that's the case, then values taken but not copied could outlive the session object and switch to another user's value. Possible?

weberc2,
@weberc2@stranger.social avatar

@binaryphile That sounds possible. Unless you’ve identified the web framework as your bottleneck (and it almost never is the bottleneck), it’s almost certainly not worth the hassle.

weberc2, to markdown
@weberc2@stranger.social avatar

“Blogging in #djot instead of #markdown”. Djot is written by the creator of markdown and pandoc and it’s designed to be easier to parse than markdown.

#rust

https://www.jonashietala.se/blog/2024/02/02/blogging_in_djot_instead_of_markdown/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • thenastyranch
  • ethstaker
  • InstantRegret
  • osvaldo12
  • DreamBathrooms
  • Durango
  • magazineikmin
  • khanakhh
  • Youngstown
  • everett
  • slotface
  • kavyap
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tacticalgear
  • cubers
  • GTA5RPClips
  • modclub
  • Leos
  • tester
  • megavids
  • cisconetworking
  • normalnudes
  • anitta
  • lostlight
  • All magazines