Replies

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

Luke, (edited ) to random
@Luke@typo.social avatar

Anyone know of a code editing environment that live updates the preview based off of the you're currently typing? No 'save' action needed?

CSSEdit / Espresso is too old.
• Mac, please
• PHP pages

db,
@db@typo.social avatar

@Luke I can suggest looking into Panic’s Nova and Polypane. The first has a browser tab inside the editor with live reloading, the other is a browser customized for developers. Neither has quite what you’re after but may be useful?

db,
@db@typo.social avatar

@Luke @vanderwal Not a Nova user, but this may be configurable: https://devforum.nova.app/t/preview-with-mamp-localhost/2661

eeeps, to random
@eeeps@front-end.social avatar

Am I missing something or is there no RSS feed for https://web.dev ?

db,
@db@typo.social avatar
db,
@db@typo.social avatar

@eeeps (there was a thing a while back about how web dev has no feed, but the one I have seems to be working fine so 🤷)

impactology, to random
@impactology@mastodon.social avatar

April Rain makes the most ethereal sounding post-rock i've come across

It's like a soothing balm to the soul, something you listen to when you're tired emotionally and need to replenish your capacity to feel

https://youtube.com/watch?v=sUp32oaXcII&si=HZmm0KEOlE7pz1qs

Especially the track waiting for sunrise and one is glad to be of service.

db,
@db@typo.social avatar

@impactology For me it’s definitely This Will Destroy You’s eponymous album, especially Threads

https://www.youtube.com/watch?v=2qo1lAIEpBI

simevidas, to random
@simevidas@mastodon.social avatar

Why does this code cause a scrollbar in Firefox?

Test page: https://jsbin.com/wuwuxog/edit?html,css,output

(I found this bug by debugging France 24, e.g., https://www.france24.com/en/europe/20240426-russia-arrests-forbes-reporter-over-social-media-posts-on-bucha-massacre)

db,
@db@typo.social avatar

@simevidas @hi_mayank Not specific to custom elements, seems to happen to any empty inline element. The element itself has non-zero height, its parent div has zero height, chaos ensues. Probably related to one of these?

https://bugzilla.mozilla.org/buglist.cgi?quicksearch=empty+inline+height

baldur, to random
@baldur@toot.cafe avatar

“Moving on from Mocha, Chai and nyc.”

Yup, for node dev at least “node –test” and “node:assert” is absolutely good enough. (Mocha via web-test-runner is still IMO the best option for front-end unit testing, tho.) https://evertpot.com/bigint-money-2/

db,
@db@typo.social avatar

@baldur Pretty happy with it! Wish it had a nicer reporter built in (eg. I had to comment out Skipped tests because they were getting on my nerves), but solid foundation.

pixelambacht, to music
@pixelambacht@typo.social avatar

Please help me find this song!

I think it's a relatively new/modern song. It sounded funk/soul-y to me, but it's far out of my usual noisy music circle.

It's upbeat, heard it a few times in a hip hotel lounge. I googled it then, I think it was by a black artist.

Title is something with fire, or burning, or burning up?

db,
@db@typo.social avatar

@pixelambacht @sarajw Just to get it out of the way, shouldn’t the song still be in your Shazam / Music Recognition history?

db,
@db@typo.social avatar

@pixelambacht @sarajw I sadly have zero immunity to this sort of thing, lol

db, to random
@db@typo.social avatar

Today’s thankless task: figuring out what about my bog-standard, non-JS, bag-of-HTML-pages of a personal website compels iOS Safari to jump to the top of the article every time I hit the back button, instead of maintaining the scroll position, when visiting any external link.

https://danburzo.ro/favorite-records-2023/

db,
@db@typo.social avatar

Alright, that was quick. The tabindex=-1 on <main id='main'> causes iOS Safari to activate the element and scroll it into view when returning to the page. I will look for (and file) a bug for that.

But… @aardrian also has <main tabindex=-1> on his blog, to no ill effect on iOS Safari…

https://adrianroselli.com/

Is the heuristic specific to <main id=main>?!

Edit: My bad, Adrian uses tabindex=-1 only on the home page, which exhibits the same problem FWIW.

db,
@db@typo.social avatar
db,
@db@typo.social avatar

@siblingpastry @aardrian It resets the scroll position to the top of <main> when returning to the page after navigating away from it. I'll try to clarify the title / content.

db,
@db@typo.social avatar

@siblingpastry @aardrian Well, in addition to focusing on <main>, iOS Safari scrolls to the top of it. It loses my place on the web page when I follow links.

db,
@db@typo.social avatar

@siblingpastry @aardrian I merely mentioned document.activeElement = main as what tipped me to finding the root cause. It's the scrolling to top that’s problematic.

mia, to random
@mia@front-end.social avatar

Why can't I get my dates to display in the right timezone? Why is this impossible? Why does it have to be different in production? Why does it have to be so hard?

I thought I had a fix using date-fns-tz, but I still can't get it right on the server.

db,
@db@typo.social avatar

@mia @Meyerweb It sounds like you‘d want to reassign (not convert) the datetime from the Denver timezone to UTC, to keep up with the expectation? Does not have a direct incantation in date-fns-tz.

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