@fabian@floss.social
@fabian@floss.social avatar

fabian

@fabian@floss.social

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

jwildeboer, to random German
@jwildeboer@social.wildeboer.net avatar

Deutschland wählt hauptsächlich CDU und AfD ins Europaparlament. Da sind die Antifaschisten wohl nicht zur Wahlurne gegangen. Peinlich.

fabian,
@fabian@floss.social avatar

@jwildeboer Ich glaube, du unterschätzt den Bevölkerungsanteil der Faschisten.

fabian, to random
@fabian@floss.social avatar

Still fascinating how you can make up a pretty short random string, let's say 6 base64-encoded characters, put it in a search engine and you'll probably get 0 results. Meaning it never appeared somewhere on the public web, and likely never anywhere at all. (Add 4 chars to be really sure ;)

Example: y6H88kT

I know the math, and I also know that it will appear somewhere eventually in a b64-encoded representation of Pi. Still, fascinating.

fabian,
@fabian@floss.social avatar

Not a very original thought, I know.

But honestly, I didn't actually come up with it myself. I found the whole toot in π, starting around the 10⁴⁷⁴th decimal digit — had to read through the Finnish edition of Hamlet to get there 🤷

wolframkriesing, to django
@wolframkriesing@mastodontech.de avatar

Why is it that python code always feels like it needs way less indentation and feels like the logic can be implemented much simpler. Or is it #django that makes this feel like it.

fabian,
@fabian@floss.social avatar

@wolframkriesing Compared to what? JS and Ruby support some expressions that are only possible as statements in Python, so something cannot be done inline/nested. And in general flatter is considered more pythonic, I guess.

(I’m a bit guilty of liking one-expression code with a more parentheses and nesting vs. temporary variables; but not everybody likes that style, which I respect.)

fabian,
@fabian@floss.social avatar

@wolframkriesing Yeah, I can see that. I don’t hate JS’ syntax, but it’s definitely noisier as well, even when not considering constructs that are not possible in Python:

  • { } ; vs. nothing
  • || && ! vs. and/or/not

This alone makes a visual difference.

mattwilcox, (edited ) to random
@mattwilcox@mstdn.social avatar

Just a tip to UI designers; the tab that has higher contrast is the one in the foreground.

So don't design an "active tab" that has less contrast than the "inacitve tab". It's especially obviously wrong when there are only two tabs.

fabian,
@fabian@floss.social avatar

@mattwilcox Contrast between what? Between tab and its background or surroundings? Or inner-tab contrast between tab background and label text?

If the latter, I'd have a counter-example in my Firefox where the active tab is highlighted by color, but the inner-tab contrast is less than on inactive tabs.

fabian,
@fabian@floss.social avatar

@mattwilcox So here is my counter-example:

The blue tab has a lower contrast (9:1) than the two other tabs (12:1). It’s still pretty obvious that it’s the active one, isn’t it?

edgren, to opensource

Is it just me or do @Codeberg have a lot of issues these days? I can't reach their website at the moment and this is far from the only time I can't reach codeberg.org.

fabian,
@fabian@floss.social avatar

@edgren Unfortunately, yes, it seems a bit underpowered (hardware and staff?).

glyph, to random
@glyph@mastodon.social avatar

You are about to sit down at a computer to work for about 4 hours, to accomplish something. You don't know exactly what you are about to do; you'll need to look at your to-do list for that. But you know you're going to spend about 4 hours doing it.

What is a noun or noun phrase that describes that 4-hour period of time?

fabian,
@fabian@floss.social avatar

@glyph as other said: session. Or work unit? But session, because you answer it in this first sentence of your question yourself: "…about to sit down…"

Session – "From Middle English session, from Old French session, from Latin sessiō (“a sitting”), from sedeō (“sit”)." (Wiktionary)

"Sitzung" in German.

driscollis, to python
@driscollis@mastodon.social avatar

Pop Quiz 🐍❓

What is the output of this crazy code?

A) [21, 49, 15]
B) [0, 49, 88]
C) [49]
D) None of the above

fabian,
@fabian@floss.social avatar

@driscollis yeah, that was unexpected. 🤔

joelanman, (edited ) to UX
@joelanman@hachyderm.io avatar

a question. If a site has both a signed out home page, and a signed in one (for example a feed or dashboard), what should you see if you're signed in and try to view the home page?

fabian,
@fabian@floss.social avatar

@joelanman @benjamineskola what Ben says. You can also have both accessible (/home and /dashboard) and only redirect from / instead of replacing it. Depends.

fabian, (edited ) to python
@fabian@floss.social avatar

🐍 aprxc — A #Python #CLI tool to approximate the number of distinct values in a file/iterable using the Chakraborty/Vinodchandran/Meel’s (‘coin flip’) #algorithm¹.

:codeberg: https://codeberg.org/fa81/ApproxyCount

Vs. sort | uniq -c | wc -l: needs slightly more memory, but 5x faster.

Vs. awk '!a[$0]++' | wc -l: just as fast, using much less memory (20x-150x for large inputs).

At the cost of ~1% inaccuracy (configurable).

Useful? You decide! :)

¹ https://arxiv.org/pdf/2301.10191#section.2

#math #ComputerScience

tokudan, to python German
@tokudan@chaos.social avatar

Gibt's irgendwo Doku, in welcher Dateistruktur man ein generisches Projekt am sinnvollsten aufbaut?

fabian,
@fabian@floss.social avatar
danielfeldroy, to random
@danielfeldroy@fosstodon.org avatar
fabian,
@fabian@floss.social avatar

@veit Interesting. commit.cleanup = scissors is new to me. What's your exact use case for this? Is it so you're able to mention "" issue IDs in the beginning of a line?

fihu, to random German
@fihu@norden.social avatar

🍝 Will zum Italiener und nen großen Teller Fibonacci!!!

fabian,
@fabian@floss.social avatar

@fihu Wenn du Stammkunde bist, wirst du bestimmt herzlich begrüßt: „Ah, mein Freund, wieder Fibonacci, wie üblich? So viel wie letztes Mal und vorletztes Mal zusammen? Mach’ ich Dir! Setz dich!“

carnage4life, to random
@carnage4life@mas.to avatar

I’ve had mixed feelings about manager readme. On one hand I do a verbal version in my first meeting with new collaborators to let them know I communicate directly but mean well.

OTOH, the power dynamic as a manager can read as a list of flaws your team has to put up with.

fabian,
@fabian@floss.social avatar

@carnage4life sounds like something that should exist, but only for oneself 🤔

mainec, to random
@mainec@fromm.social avatar

Eierschecke - in Berlin - am liebsten irgendwo in der Nähe der S1 - gibt's nicht, oder doch?

fabian,
@fabian@floss.social avatar

@mainec Bäckerei Schnell hat ganz gute, imho. Hier an der S2, aber deine S1 ist ja lang. Schau mal: https://www.schnell.berlin/unsere-filialen.html

fabian,
@fabian@floss.social avatar

@mainec @sarahnovotny I hope everbody enjoyed it. I'm a bit curious for what event and for how many people you needed this 🤭

dabeaz, to random
@dabeaz@mastodon.social avatar

Ramdom thought: Proper grammer used to be important to prove that you was educated, but maybe its best to avoid it to prove that your not AI.

fabian,
@fabian@floss.social avatar

@deshipu @dabeaz What deshipu says.

My tolerance/respect has decreased over the years towards people who intentionally ignore proper grammar and spelling. (Doesn't apply if you're actually dyslexic or similar, of course.)

If your desire as a sender is to be edgy, too cool to care, or just lazy, but it makes me, the recipient, invest more time and brain cycles into interpreting your communications, I'm pretty quick with an unfollow nowadays.

fabian,
@fabian@floss.social avatar

@dabeaz Fair enough. My thought was only remotely related, admittedly.

mattwilcox, to random
@mattwilcox@mstdn.social avatar

You know, a handy thing for those of us (cough) that can fall into using social media as an out-vent for irritation would be an ability to have a "notes" banner to remind ourselves of an intent not to do that. Like, here...

fabian,
@fabian@floss.social avatar

@mattwilcox I have a custom style sheet that modifies the text in the Post button in a similar way.

fabian, to random
@fabian@floss.social avatar

(Had an AI/LLM-generated 💩 website encounter the other day. Nothing new, probably, but still rare for me, and it’s been a bit funny:

I was looking for work stuff, webauth, tokens, something. The site already had a pretty SEO/baity domain, but the content, a FAQ-like, looked reasonable, at least quickly to parse for me when looking for my answer. Anyway, at one point, I don’t know which ambiguous term triggered it, the text suddenly started talking about washing machines and car motors?! 🤨)

fabian, (edited ) to random
@fabian@floss.social avatar

How much unpartitioned space do you currently have on your PC’s SSD/HDD? (partitioned/formatted but completely empty also counts)

(Or is that only me?)

fabian,
@fabian@floss.social avatar

Boost if your answer is 0 😉

fabian,
@fabian@floss.social avatar

@WilliamMcCormick yeah, 52 MB is basically a rounding error :D

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