Skip to main content



OK, I have a #python #flask #jinja issue that the docs aren't making clear. Say I have an app that's hosted on multiple domains. I want some footer link to be to foo.$domain for whatever domain was used to reach the app.

url_for seems like it will provide protocol + domain. it's not clear if there's a clean way to provide "foo.example.com" for whatever value of "example.com" and a static value of "foo".

Seems like this should be doable. Any suggestions?

in reply to jeraldina☁️

If the canonical "which domain did they request?" is actually coming in as "which URL did they request?", you can still use that: Parse the URL into its constituent parts.

#Python standard library has `urllib.parse.urlparse`, which returns a `urllib.parse.ParseResult` object. You can directly obtain the `hostname` attribute from that.

docs.python.org/3/library/urll…

This entry was edited (1 year ago)



[Stable Update] 2024-10-10 - Kernels, Pacman 7.0, KDE Frameworks 6.6, Virtualbox 7.1.2, Mesa

#Manjaro #distro #linux
forum.manjaro.org/t/stable-upd…



Learn how to replace proprietary software with free software on iOS. Ceasing to use proprietary applications is a good way to start migrating to freedom: directory.fsf.org/wiki/Collect…
in reply to Free Software Foundation

what’s about wire messenger? Joplin notes? Organic maps, Wikipedia, netnewswire, mastodon, etc?
Some are missing



Community shares major concerns following years of destruction from natural gas plant: 'It's going to be a nightmare'

Residents are reporting increased ambulance delays, poor water quality, and over 90% more emergency medical calls. #ClimateChange

thecooldown.com/green-business…



Internet Archive leaks user info and succumbs to DDoS - 31 million users' usernames, email addresses and salted-encrypted passwords are out there... - go.theregister.com/feed/www.th…
in reply to IT News

The Internet Archives should be converting to IPFS by now. The IPFS is an ideal platform for read-only archives.


Oh and one more thing:

On my last day at Apple, I managed to get the third piece of the trilogy about user interface responsiveness published.

So if you ever wondered „what’s the difference between a hang and a hitch“, look no further:

Overview: developer.apple.com/documentat…

Hangs: developer.apple.com/documentat…

And now new: Hitches: developer.apple.com/documentat…

A huge thanks to all my colleagues in Developer Publications who made it possible to get both this and the Instruments Tutorials out the door.

This entry was edited (1 year ago)



From the Bateman Horne Center:

"Living with Orthostatic Intolerance"

batemanhornecenter.org/living-…

"Living with orthostatic intolerance (OI) can turn activities like standing in line, taking a shower, or even sitting for too long—into exhausting tasks."

@mecfs @longcovid

#LongCovid #MEcfs #POTS #Dysautonomia #OrthostaticIntolerance #NEISvoid #MedEd

reshared this



I was at 30 seconds into this commercial and still couldn't tell if it was parody or not: youtube.com/watch?v=xKTKhx74NM…

in reply to UptownGirl

Perhaps they could send some of those trailer mounted diesel generators used to charge Tesla's when they die on the road?


STALLING. Making or ordaining. Stalling to the rogue; an ancient ceremony of instituting a candidate into the society of rogues, somewhat similar to the creation of a herald at arms.

A selection from Francis Grose’s “Dictionary Of The Vulgar Tongue” (1785)

--
#books #literature #dictionaries #history #society #crime #language #slang @histodons



streaming services in rural Scotland

reshared this



I hear you loud and clear Nobel Prize, you don't want to be left off of the AI hype train.

Next will be a Nobel peace prize for "AI safety."

Don't they supposedly wait for decades before seeing the impact, like new drugs that were created or something like that, before awarding Nobel Prizes?

bbc.com/news/articles/czrm0p2m…




Almost done with a small #app built in only #python using #nicegui. The documentation and references left a lot to be desired but once past the first learning hurdle, it’s actually really nice.

It’s also been an intro to #tailwind and I get why people like it so much. Definitely will be using it more in the future.



Today at the @osuosl:
- Attempted to replace a dead iDrac module on a Drupal.org server but failed 😔
- Replaced nagios server with a machine that has more cores ✅
- Onboarded first of 4 new student hires 🎉
- Continued prep work on mailing list migration to newer server 📨

#foss #OpenSource #infrastructure