Posts

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

RomanOnARiver, to programming
@RomanOnARiver@mastodon.social avatar

Hey web developers, this may seem like a dumb question, but when I was a young warthog you would link to a directory (just a simple "a href"), and if that directory had an index.html page it would assume that's what you wanted. Now I'm just getting one of those "Index of" pages (with that index.html page visible!) is it because it's running locally instead of a proper web server? Has this just overall changed and I didn't know?

fabian,
@fabian@floss.social avatar

@RomanOnARiver Yeah, that's totally up to the webserver. There is no concept in HTTP (afaik) of "serving a directory". HTTP is text-in, text-out. If you "browse" your filesystem locally with your browser, then it will likely list the directory. If you use a webserver it depends on its configuration. Yes, serving index.html when accessing a /my/directory/ "path" might be a default, but doesn't have to be.

RomanOnARiver, to python
@RomanOnARiver@mastodon.social avatar

Is it better to have multiple python lists or one giant list with multiple lists embedded? Taking from perspective of speed and ram/CPU usage.

diazona,
@diazona@techhub.social avatar

@RomanOnARiver Probably depends on what you're doing with them?

I guess the RAM usage would likely be more with multiple lists, although probably not much more. But other than that it could be context-dependent.

RomanOnARiver,
@RomanOnARiver@mastodon.social avatar

@meejah @diazona yeah you both made a good point. Thanks for responding. I guess I also don't want to have someone reading that code and going "wow they did it THAT way? terrible."

RomanOnARiver, to random
@RomanOnARiver@mastodon.social avatar

@lonseidman Chrome support has really improved. We're now at 10 years of support from time of manufacture https://chromeunboxed.com/google-adding-2-years-of-support-to-chromebook-expiration-date-aue/

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