正在加载视频...

视频加载失败

Working with timezones in JavaScript is tough... But here's a way to test different timezones in your browser (Chrome/Brave edition) 1. Open Dev Tools 2. Click on the 3 dots 3. More tools 4. Sensors 5. Pick the timezone This helped me today test and fix a really annoying...

50,043 次观看 • 3 年前 •via X (Twitter)

0 条评论

暂无评论

原始帖子的评论将显示在这里

相关视频

I built a clone of the Yeezy store with Next.js. This was a fun challenge — the site has some smooth animations and feels very fast. But it was bothering me that I couldn't use the browser back button. Can we do better? So I rebuilt the site with v0 and Motion. Here's how it works: 1. When you click on a product, Motion is able to animate the original position of the product in the grid, to the zoomed in product detail page. 2. During this transition, we also shallow update the URL with the `/p/slug` route for the page. 3. If you press the back button in the navbar, or use the browser back button, or press escape — all options will take you back to the main product listing page. 4. If you reload the page while looking at a product, or someone sends you a link to a specific product, it still works! This is the best parts of a SPA and MPA mixed together. In the future, I can make this even better with View Transitions (I wasn't able to get the product animation just right, but if you can I'd love to see it!). I also took some creative liberties from the original design. The whole 1/2/3 size thing, where you needed to click the "?" to see SM/MD/LG was strange, so I just went directly to those sizes. Similarly, I prefered the more traditional style sheet/modal with the background color change, versus the full screen takeover. If you wanted to actually hook this up to Shopify now, you can swap the cart implementation with Next.js Commerce, which has all the APIs you need + optimistic writes 🔥 Should I make a video walking through the code?

Lee Robinson

148,937 次观看 • 1 年前

iPhone Takes a Photo of You Every 5 Seconds While you’re using your iPhone, it takes a photo of you every 5 seconds. More precisely - when you pick up or put down your iPhone, and also when it’s unlocked and sits motionless for a long time, the Face ID sensors take pictures every 5 seconds. You can see this through the infrared lens: it looks like the iPhone is taking a photo in the dark with a flash. Even if you cover the sensor, it will still keep trying to take a picture. In reality, of course, the iPhone isn’t taking photos. It scans your face to figure out whether you’re looking at it. In Face ID settings this mode is called Attention Awareness. You’re working on your iPhone, it’s charging, you get a call - and the iPhone “takes pictures” with the Face ID camera. As soon as it realizes you’re looking at it, the ringtone gets quieter. The same thing works with alarms and other notifications. This is not actually taking photos - it’s the TrueDepth infrared sensors scanning your face for the Attention Aware Features. How to turn this off on iPhone. You need to disable Attention Aware Features. Method 1 (main one): 1. Open Settings. 2. Tap Face ID & Passcode. 3. Enter your passcode. 4. Find Attention Aware Features and turn it off. Method 2 (via Accessibility): 1. Open Settings → Accessibility. 2. Tap Face ID & Attention. 3. Turn off Attention Aware Features. After that, your iPhone will stop automatically lowering the volume of calls, alarms, and notifications when you’re looking at the screen, and it won’t scan your face as actively for “attention.”

Officer's Notes

18,831 次观看 • 1 个月前