Replies

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

thoralf, to firefox German
@thoralf@soc.umrath.net avatar

Kann es echt sein, dass ich im auf die Suchmaschine nicht frei setzen kann?

Ernsthaft?

oliverandrich,
@oliverandrich@fosstodon.org avatar

@thoralf nein. Klappt bei mir einwandfrei. Hab zum Beispiel Kagi konfiguriert.

oliverandrich,
@oliverandrich@fosstodon.org avatar

@thoralf @PattaFeuFeu es geht such manuell über die Einstellungen oder im Falle von Kagi gibt es auch eine Extension.

vicgrinberg, to animals
@vicgrinberg@mastodon.social avatar

Being an adult means realizing that while you love cat-sitting, having an actual cat will not work for you, because OMG, a week and there is so much cat hair! Everywhere!

A black and white cat licking my hand.

oliverandrich,
@oliverandrich@fosstodon.org avatar

@vicgrinberg you will get accustomed to it and develop a much more relaxed attitude towards vacuuming. Also your sleep habits and sleep positions will change over time. :)

oliverandrich,
@oliverandrich@fosstodon.org avatar
oliverandrich, to python
@oliverandrich@fosstodon.org avatar

Struggling a bit with the API of a library I write. I want to provide classes with sync and async methods. I am not sure if I prefer to use a single class with unprefixed and a-prefixed methods. Or if I want one class for sync and one for async behaviours. And if I split it in separate classes would you prefix the methods with an ‚a‘ in the async class?

oliverandrich,
@oliverandrich@fosstodon.org avatar

@pawamoy httpx is one example that I am looking at. It results in some duplications, but this might be the more obvious approach.

SebastianM6L, to django
@SebastianM6L@mastodon.social avatar

Why isn't

Model.objects.get_or_none()

a thing in ?

That would save some boilerplate code or am I wrong?

Because if there is a chance that there is no entry for the query get()will raise a DoesNotExist exception that you have to catch.

get_or_none()would be cleaner in my opinion.

oliverandrich,
@oliverandrich@fosstodon.org avatar

@SebastianM6L Models.object.filter(…).first() does the same, or do you have something else in mind?

oliverandrich,
@oliverandrich@fosstodon.org avatar

@SebastianM6L Ah, I see. I like the MultipleException part. I would love to have that as a function for managers.

oliverandrich, to random
@oliverandrich@fosstodon.org avatar

I am so bad at finding project names.

oliverandrich,
@oliverandrich@fosstodon.org avatar

@jack luckily I had friend calling, and he shared a really good idea for a project name with me. Otherwise Friday would have been used on that too.

18+ josh, to random
@josh@joshthomas.dev avatar

I wouldn’t normally post something personal like this, but I feel compelled to.

It seems my mother-in-law’s cancer may have taken a turn for the worse. She had to be hospitalized last night and it doesn’t look great. It’s reminding me a lot of when my mom passed from her cancer a couple of years ago, where there’s a line that is crossed — before crossing it seems like the progress is up and down, better and worse. But once that line’s crossed it’s all down from here.

18+ oliverandrich,
@oliverandrich@fosstodon.org avatar

@josh this so tough to hear. If been throw this nightmare too. I lost my mom to cancer. I had cancer myself. I hope it is just a short low and she gets better again. My thoughts are with her, you and your family.

webology, to Vivaldi
@webology@mastodon.social avatar

✨ One #Vivaldi gripe is that I can never remember how to rearrange the icons in my extension panel. They rarely change order, but every once in a while, I need to re-install an extension, and all ordering hell breaks loose.

Turns out, you have to hold down the ⌘ key, then click and drag on the extension icon before letting go of the ⌘ key and then your mouse button.

https://forum.vivaldi.net/topic/76242/how-to-change-display-order-rearrange-panel-and-extension-icons

oliverandrich,
@oliverandrich@fosstodon.org avatar

@webology Thanks! I almost broke my fingers while fingering out how to do it.

fallenhitokiri, to gaming
@fallenhitokiri@social.screamingatmyscreen.com avatar

While it started as a joke I am actually considering to start a gaming blog for gamers over 30 who cannot avoid life.

Review criteria will be

  • does the game remind me of the controls?
  • can I get a summary what happened and what I’m supposed to do?
  • can I pick it up for 30-60 minutes and have fun?

Weekly summary of all posts will be sent on Friday evening.

It’s far from a fully thought out concept, but I like the idea and think this is a niche not well served.

oliverandrich,
@oliverandrich@fosstodon.org avatar

@fallenhitokiri I would immediately sign up to the newsletter.

oliverandrich, to python
@oliverandrich@fosstodon.org avatar

Perfect, the combination of playwright, trafilatura and scrapinghub extracts all the information I need from a webpage. My little #python project evolves nicely.

oliverandrich,
@oliverandrich@fosstodon.org avatar

The screenshot shows the power of trafilatura. With a single statement it creates wonderful from any webpage it can extract content from. Extracting links, keeping the basic markup and structure, and dereference relative links.

oliverandrich, to python
@oliverandrich@fosstodon.org avatar

Is there a better approach to scraping a SPA in #Python than to use #playwright?

oliverandrich,
@oliverandrich@fosstodon.org avatar

@webology Thanks for the hint. I just tried it for one site, were I also was unable to create a result and it simply blocked anything what is not a browser. May be, I should use Playwright for all request in my little scraper.

josh, to random
@josh@joshthomas.dev avatar

how's your day going? here's mine

oliverandrich,
@oliverandrich@fosstodon.org avatar

@webology @josh 4 hours? Sounds tough. I just had to look up what Cocomelon is and clicked on a link to YouTube channel…

codepo8, to random
@codepo8@toot.cafe avatar

LinkedIn now has games… WHY????
https://www.linkedin.com/games/

oliverandrich,
@oliverandrich@fosstodon.org avatar

@codepo8 it is turning more and more into Facebook. 🤷‍♂️

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