Writing mochitests for new features in DevTools can be difficult and time-consuming. There are so many elements interacting in an async manner that I oftentimes find myself using the debugger to debug the debugger! In the case where it’s unclear what interaction isn’t working properly, I find myself going to a neat utility function: waitForever. […]
The Object object has been buffed with useful methods over the past few years. Object.keys, Object.values, Object.freeze, and Object.assign all address frequently desired functionality. One of the new Object methods is fromEntries, which accepts a Map or map-like array nesting and converts it to a useful object literal! Convert Map to Object Converting a Map to a key:value […]
Bluetooth has been a revelation in wireless technology: wireless mice, headphones, streaming devices, and a variety of home and office environments. It goes without saying that wireless peripherals are so much easier to manage than wired counterparts, especially mice, that I usually have my MacBook’s bluetooth turned on. There are times, however, that I move […]
The post Turn Bluetooth On and Off from Command Line on macOS appeared first on David Walsh Blog.
Earlier this week I posted about how you can modify your Mac’s volume from command line. Little command line scripts make me smile because I spend so much of my day in command line, and automation can be the key to productivity. I next thought about modifying brightness from command line and I found out […]
There are few things more frustrating to any computer user than files opening in an unwanted application. Sure you can use the Open menu item in the desired application but we all just want to double-click a file and see it open in the application we expect. I recently got to thinking about this dilemma from […]
The post Find and Change Default App for File Type from Command Line appeared first on David Walsh Blog.
There’s an incredible amount you can do when you know where your web visitor is located. You can target advertising to the user, you can load maps of nearby search queries, you can localize website verbiage, you can customize content for their region, etc. I guess what I’m trying to say is reliable geolocation data […]
The post Real-time Geolocation & Reverse IP Lookup with ipapi (Sponsored) appeared first on David Walsh Blog.
On this episode: Todd notices what David’s been watching on YouTube while logged in as the Script & Style user and David has no defense but loads of embarrassment. David hurriedly transitions to welcoming guest Chris Van Wiemeersh from Mozilla’s Reality team. Chris enlightens the guys about the current state of virtual reality, Mozilla’s role […]
The post Script & Style Show: Episode 25: AR, VR, and Mozilla Reality with Chris Van Wiemeersch appeared first on David Walsh Blog.
CSS variables are a very welcome addition to the language, despite them being incredibly basic. Sure we could use SASS or stylus but languages should never count on developers relying on frameworks and toolkits to accomplish what we know we need. And just like every other part of a webpage, you can get and manipulate […]
On this episode: Todd asks David what he wants to be for Halloween and quickly regrets it, while Todd reveals his somewhat controversial costume. David and Todd then welcome Lemon, an amazing web developer that creates silly but hilarious web games, hosts The FPl.us podcast, and shares his views on growth as a web developer. […]
The post Script & Style Show: Episode 24: Meme Sites, Developing for Fun, and Podcasts with Lemon! appeared first on David Walsh Blog.
In this episode: David kicks off by recounting a heroic (and tiring) sprint across the O’Hare airport to make his flight home from Toronto. CSS-Tricks scribe Chris Coyier joins Todd and David to discuss CSS-Tricks, CodePen, podcasting, and numerous walks down memory lane. This episode provides great advice for new developers and discusses the early […]
The post Script & Style Show: Episode 23: Blogging, CodePenning, and Podcasting with Chris Coyier appeared first on David Walsh Blog.