Tutorials Page 33
![Get Viewport Lines and Columns in CodeMirror]()
Get Viewport Lines and Columns in CodeMirror
CodeMirror is an amazing utility for presenting code in a browser environment. Syntax highlighting, widgets, and a number of advanced functions make it a unique, useful tool. When using CodeMirror inside the Firefox DevTools debugger, I found that adding hundreds of column breakpoint widgets to very...
![Replace Last Command in Shell]()
Replace Last Command in Shell
Whether I fat-finger a command or my MacBook Pro keyboard's keys don't want to respond like they should, I'm frequently misspelling commands. What's more frustrating is that many of these commands are long, taking making fixing theme time-consuming. Luckily a Twitter follower is looking out for...
![Script & Style Show: Episode 28: “Get Off My Lawn”, and Other Software Stories with Eric Brandes]()
Script & Style Show: Episode 28: “Get Off My Lawn”, and Other Software Stories with Eric Brandes
In this episode: Todd and David kick things off bantering about cell phones, Android rot, and the good old days of Windows XP and piracy. Todd's colleague Eric Brandes gets us back on track with a discussion about trusting proven technologies, not chasing the latest fads...
![Script & Style Show: Episode 26: Web Games with ExcaliburJS with Erik Onarheim and Kamran Ayub]()
Script & Style Show: Episode 26: Web Games with ExcaliburJS with Erik Onarheim and Kamran Ayub
In this episode: Todd returns from a vacation to Disney and gives David some tips about surviving a family visit to Orlando's most famous theme parks. Erik Onarheim and Kamran Ayub join the guys to discuss HTML5 games, the Excalibur JavaScript HTML5 game library, the amazing...
![Object.fromEntries]()
Object.fromEntries
The
Objectobject has been buffed with useful methods over the past few years.Object.keys,Object.values,Object.freeze, andObject.assignall address frequently desired functionality. One of the newObjectmethods isfromEntries, which accepts a Map or map-like array nesting and converts it to a useful object literal! Convert Map...![Download a YouTube Channel’s Videos]()
Download a YouTube Channel’s Videos
YouTube is an endless source of entertainment, be it stuff you're proud to share you like or stuff you would rather others not know about (see: David's history of watching old WWE Royal Rumbles). I watch a lot of YouTube in hotels and on flights when...
![Turn Bluetooth On and Off from Command Line on macOS]()
Turn Bluetooth On and Off from Command Line on macOS
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...
![Get Up and Win]()
Get Up and Win
Down on my hands and knees, I crawl around, bleeding out. I'm resigned to my fate. A kind stranger, a new friend, rushes over to me and kneels to help, reviving me at a time that didn't require it. Just as I'm revived, the kind stranger...
![Lessons in Failure: Removing the Old Debugger from Firefox]()
Lessons in Failure: Removing the Old Debugger from Firefox
Joining the Firefox DevTools team was a dream come true for me. I shared why in the first episode of the Script & Style show but the quick summary is that I grew up loving Firefox (even before it was called "Firefox") because Mozilla cared...
![Mercurial: Mass Add and Remove All Files]()
Mercurial: Mass Add and Remove All Files
While I much prefer git and the GitHub workflow, Firefox's codebase (mozilla-central) is store in a mercurial repository. There are tools that wrap mercurial so you can use a git-like interface, like git-cinnabar, but my philosophy is to learn the root tool so that I...







