Загрузка видео...

Не удалось загрузить видео

На главную

I'm using macOS for more than 14 years now, in a single laptop screen setup with lots of windows open, and I'm using macOS spaces everyday to organize my windows. Switching between spaces is easy: I hit CTRL+arrow left/right, it takes no time. What takes time however, is this...

54,543 просмотров • 21 часов назад •via X (Twitter)

Комментарии: 0

Нет доступных комментариев

Здесь появятся комментарии из оригинального поста

Похожие видео

I've been building a music player with Next.js for fun. Here's a quick demo of how it works (it's open source!) • Demo: • Code: If you want to learn more about how it's built, here's more details ↓ I'm using Postgres (with Drizzle) to store information about the songs and playlists. Audio and image files are stored in Vercel Blob (object storage), and the URLs are then referenced in the database. For the UI, I'm using shadcn/ui (so Tailwind CSS and Radix). This made it easy to copy/paste in some nice components, like the dropdown menus. I built the entire first version of the UI in v0 and then iterated from there, feeding it my Drizzle schema as a source in the project and having it scaffold some of the boilerplate for me: I added support for keyboard navigation (using arrow keys) or vim motions (j/k to go up/down, and h/l to go between playlists and tracks). Also, space to toggle the now playing song, and / to focus the search input. The search function has a nice utility to highlight the currently searched text on the page in yellow. Then, I was exploring how to pass metadata from my application to macOS or iOS. Turns out there's an API for that – MediaSession. Web apps can share metadata about what media is playing (title, artist, album artwork) and sync play/pause/seek with system media controls. Works across modern browsers — even integrates with iOS dynamic island and shows up on lock screens: I set up my app like a PWA – it has a manifest.json file, so it can be installed to my iOS home screen or added to my dock on macOS. On iOS, it then uses the full screen height `100dvh` (dynamic viewport) and has padding on the bottom for the safe area with the `env()` CSS function. Finally, I was able to use the Vercel AI SDK in a script to clean up the metadata on audio files I downloaded from YouTube. Bonus: I even was able to dogfood the React Compiler, which helped me fix a performance bug! That's all! It's fun to make personal software:

Lee Robinson

118,242 просмотров • 1 год назад

Scottie Scheffler explains why playing too many events in a row can mentally drain players and referred to Tiger Woods always playing a limited schedule: “I think when you look at this sport it's unique in a sense of like the amount of time we spend in front of people throughout a week. Like for me to play four days of tournament golf, from the moment I step out on to the driving range if we're playing at a four hour pace that's over five hours, five and a half hours if you include this part of my day, where we're in front of people. And doing that four days in a row in a mental sport I think can take a toll on you. “I think that's why you see a guy like Tiger can only play so many events because I think mentally the challenge of just being in front of people for that long and being on and what it takes in toward to compete week in week out takes a lot out of you mentally. So for me playing more than three weeks in a row is extraordinarily difficult. I can't handle much more than that. “When you look at the season now I think it, for family time it's great to have an off-season as well, just for us for me to be able to be at home with my family is important. As far as the cadence goes, yeah, I definitely have a cadence that I prefer when it comes to scheduling and there are definitely risks cramming a bunch of tournaments into little windows just because it's hard to play that many tournaments in a row. It's hard to be on for that many times. It's hard to get yelled at that many times in a row throughout a round of golf. It just is. That's why for me three weeks in a row is kind of my max.” PGA TOUR TravelersChamp

Flushing It

447,887 просмотров • 1 месяц назад