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

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

For all you fancy command line prompt-havers. Newline or no newline at the end of the prompt?

So, this:

you@host ~/f/bar git:main [*?]␤  
> ▁  

Or this:

user@host ~/f/bar git:main [*?] > ▁  

#programming #terminal #softwareDevelopment #webdev #bash #fish #zsh #powershell

fabian, to webdev
@fabian@floss.social avatar

What's the opposite of refactoring?

Not premature optimization (which is often focused on “clever”/fast solutions, not necessarily more structure), but the tendency to (overly) structure code before it is actually necessary. E.g. having a multitude of files and a directory hierarchy when a couple of flat files would still suffice?

“Prefactoring“?

#softwareDevelopment #webdev #softwareEngineering #Python

fabian, to random
@fabian@floss.social avatar

If you have a (computer) mouse with more than 3 buttons (left, right, middle), what actions/shortcuts do you have assigned to the 4th, 5th, 6th etc.? Looking for inspiration.

fabian, (edited ) to berlin German
@fabian@floss.social avatar

😊 Buschrosenplatz, #Berlin #Neukölln oder #Britz

#OpenStreetMap #OrganicMaps #maps

Edit: Es ist eindeutig in Britz. Am Bauchnabel steht gar kein Baum, sondern dort ist ein Mosaik und die zentrale Stelle des Platzes. Der Baum ist das OpenStreetMap-Symbol für Platz oder Grünfläche. Wenn man durch das kleine Pärkchen läuft, ist das Bild, das die Draufsicht bietet wirklich nicht offensichtlich und scheint (fast) unbeabsichtigt. 🤔

Update2: https://floss.social/@fabian/111993031786870462

fabian, to random
@fabian@floss.social avatar

Was just about to do an edit for #OpenStreetMap when I figured that my information is based on almost 20 year old memory of mine. While it is still kinda verifiable with the satellite imagery and data on certain websites … I think it’s better to leave it as it is. :openstreetmap: 👀

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, to science
@fabian@floss.social avatar

Kinda sad that there’s no single character symbol for logarithm (like ∑∏√∫) in — or is there, or: why not? 🤔

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.

fabian, to random German
@fabian@floss.social avatar

Das „AI Help“-Ding auf auf MDN ist schon traurig. 😒

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

OK, #Python people, a little game: Your favourite new (-ish, recently discovered) Python command line utility?

3, 2, 1, go!

(Just looking for an excuse to try out my new pipx installation. I know, there's probably not a lot to ‘try out’, but…)

#pipx #cli

fabian, to til
@fabian@floss.social avatar

I already knew git commit --amend, but about git commit --fixup and git rebase --autosquash — convenient, although probably not something I’ll need on a daily basis.

https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---fixupamendrewordltcommitgt

fabian, to linux
@fabian@floss.social avatar

(Is it still #distrohopping if I change my distro with each new machine, but it's only every 5 years?) #linux

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

Are “we” still using online (social) services?

I’m still on , which is fine. Tried 😐 … hasn’t seen a release in 2 years… Anything I’m missing? Maybe something Fediverse/ActivityPub-enabled? ( optional)

[Edit] Thanks for the boosts. Pocket and Shiori have been mentioned. I’m still open for more suggestions :)

fabian, to github
@fabian@floss.social avatar

#GitHub mail notification subjects:

> [org/repo] Here comes the actual subject
👍

#Bitbucket mail notification subjects:

> [Bitbucket] Here comes the actual subject (org/repo)
🤔

GitHub’s is objectively better, right?

fabian, to random
@fabian@floss.social avatar

Recommended an #SQLite “file” (or “database” ;) as export format for the first time at work.

#JSON or JSONL will probably still work for the use-case at hand (I’m not directly involved, I’ve only heard of 600k-1M records with 20-ish fields each), and I’d be fine with JSON.

But I really really wouldn’t want such data as a #CSV ever again. With all the escaping, overlong lines, and editors choking, CSV, even though technically plain text, it’s not much different from an unreadable blob for me.

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 🤷

fabian, to random
@fabian@floss.social avatar

Ok, I gave in and tried to watch the video of the interview with the CEO of the website that shall not be named. Well, I’m not gonna get that three minutes back, am I? (I couldn’t take it much longer, scanned through various parts of the half-hour-or-so.) … it’s … yeah, no, don’t even wanna think about it for this post anymore … 170 characters left. how do I end this? ctrl-enter, right, let's do it 👀 now, come on, brain, come back! and, 3, 2, 1

fabian, to programming
@fabian@floss.social avatar

🔖 ormar
https://collerek.github.io/ormar/

Mini ORM for Python, with support for Postgres, MySQL, SQLite to be used with async frameworks

#python #ORM #postgresql #SQLite #FastAPI #pydantic #SQLAlchemy #bookmarked

fabian, to random German
@fabian@floss.social avatar

Bzgl. -Tickets: warum first-come-first-serve? Das klingt immer so stressig und unfair. Ist ein Verlosungsverfahren zu komplex und/oder zu teuer?

(Ich habe selbst ein paar Pros und Cons im Kopf. Würde aber gern mal von Leuten mit praktischer Erfahrung in so was das definitive Argument gegen Verlosung hören. Frage mich das gleiche bei Die Ärzte- oder Taylor Swift-Konzerten.)

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

If you use or used #Trello (or a very similar clone) for a longer time (~5y+)…

Did your Trello usage grow significantly over time? If so, do you feel Trello grew with you or did you outgrow it?

#poll #softwareDevelopment #projectManagement #kanban :boost_ok:

fabian, to opensource
@fabian@floss.social avatar

🔖 Quarto – #opensource scientific and technical publishing system
https://quarto.org/

  • Jupyter notebooks or #markdown in your favorite editor
  • dynamic content with #Python, R, Julia, …
  • publish articles, presentations, websites, blogs, books in HTML, PDF, MS Word, ePub, etc.

#markdown #publishing #book #ebook #ssg #jupyter #blogging #writing #bookmarked

fabian, to berlin German
@fabian@floss.social avatar

Defektes Thinkpad T430s: verschrotten, oder zum Ersatzteil-Ausmisten verschenken? Bastelfreudige Gemeinnützige in ?

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