Setting Up Webster's Dictionary

Via a post I saw today from Chris Bowler, via a newsletter by Sarah Bray, discussing an article written by James Somers, wherein he describes the writing process of John McPhee1, and how he uses a good dictionary to go from last draft to finished work. The emphasis here is on a good dictionary, namely the 1913 Webster’s Unabridged. I won’t attempt to describe how wonderful the dictionary is here, James did a fantastic job of that on his blog five years ago. I will however say that I think his installation instructions for getting the dictionary usable on your Mac are out of date. Here’s the easy way to do it.

First, download the compiled dictionary text. I downloaded it from a GitHub account, but who knows for how long that’ll be available, so I’m hosting the download here2. Webster.s.1913.dictionary.zip

Next, unzip the downloaded file and find the file named “Webster’s 1913.dictionary”. Click on the Finder’s “Go” menu and hold down the Option key to show the hidden “Library” folder. Click on Library, and find the “Dictionaries” folder. Open it, and drag and drop the new dictionary folder into it.

Now when you open the macOS Dictionary app, you can go into the settings (either by pressing ⌘, or by clicking on “Dictionary” then “Preferences…” in the menu bar), scroll down a bit till you find “Webster’s 1913”, click the check box next to it and drag it to the top of the list. Uncheck the “New Oxford American Dictionary”. Now when you click on a word in a good Mac app, then click just a tad bit harder3, you’ll get the definition from the new and improved Webster’s. It’ll also show up in Spotlight searches, and anywhere else the system-wide dictionary is used.

Now you have a far richer and more useful dictionary. A useful resource if you happen to currently be, or soon will be, a college student who needs to write often, and in volume.

  1. Good grief! ↩︎

  2. Which, ironically, is also hosted on GitHub. ↩︎

  3. If your Mac doesn’t have the force-press feature in the trackpad, you can hit ⌘⌃D while a word is highlighted to get the definition as well. ↩︎

Pat Gallant-Charette Won't Stop Breaking Records

Jump to Post – Outside Online

Pat Gallant-Charette is tougher than your average grandma. She’s probably tougher than you. The 68-year-old Maine native has completed the majority of the Oceans Seven, a marathon swimming challenge that has athletes tackling seven of the toughest open-water swims in the world. She has systematically subjected herself to near-freezing water temperatures, strong currents, shark attacks, and blooms of jellyfish during swims that have her in the water for up to 24 hours.

Role model.

How to Survive a Grizzly Bear Attack

Jump to Post – Outside Online

The lesson here is that you can’t count on seeing a grizzly in time to back away or take another action. At one point during the class, Adam got bored and wandered off about 30 yards. Predators have evolved to blend into their surroundings. Sitting down behind a small pine tree, the enormous bear was utterly invisible to us at that distance. Forrest explained that grizzlies can charge at speeds of up to 35 miles per hour, and unlike humans, who take several strides to accelerate, the bears can hit their top speed on their first bound. If Adam had charged us from that hiding place 30 yards away, he’d have been on us in just a couple seconds.

Put your head between your legs and kiss your ass goodbye.

Stories

“We are all stories in the end, just make it a good one eh?”

Christians, shaman, poets, and authors all know one thing… what we believe shapes who we are, and the stories we tell ourselves shape those beliefs. Our lives are a self-fulfilling prophecy. We become who we believe we will become, because we take actions that are logically attuned to the story we’ve told ourselves about our life. Storytellers hold power, not because of wealth or authority, but because the stories they tell shape our understanding of the world around us. In turn, how we understand the world and our place in it guides our decisions and shapes our world to be more like what we believe it to be.

There Are Still Reasons to Limit Your Kids' Screen Time

Jump to Post – Outside Online

Maybe so. But Orden and Przbylski are not telling us it’s fine to allow our teens to disappear into their phones. “Asking whether technology influences well-being is way too broad—it’s like asking whether sugar causes depression,” Orben says. “Reading a book on your Kindle, playing sudoku on your iPad, and spending eight hours a day on Snapchat are not the same. But it’s important for scientists to speak up and say we don’t actually understand this yet.”

Inessential Thanks

I believe this will be the last I muck about with the design of the site for the foreseeable future. After being disappointed by the available themes, and further disappointed by my own design ability, I went back to basics. And by basics I mean that I found a few sites that I like the look of and copied large chunks of HTML and CSS to build a custom Jekyll theme.

Readers of Brent Simmons’ Inessential site will probably recognize the fonts and general layout. I’ve added navigation at the top, minimized the layout to bare HTML5 tags, and setup some color here and there. I’ve also set up a bit of responsiveness for media, and syntax highlighting for code blocks. My hope is that this will be a good baseline for any future work I put into the site, but attribution must be made first.

I enjoy the simplicity of the design, and how clean and readable it is now. I especially like that there is no Javascript in use. Nothing but pure HTML and CSS. No tracking, no stats, nothing dynamic or fancy. It’s just you, me, and the text.

PS. Brent was kind enough to give his blessing to the new design, for which I’m greatly appreciative.

Example 50031 of Web Developers Overcomplicating Projects

I spent some time over the past couple nights adopting a new theme for the old digs here at jb. I found the beautiful Chalk theme by Nielsen Ramon and adopted my site to use it, including, finally, a working tags system. I’m quite happy with the tags, but I’m less happy with the bundled deployment system the theme shipped with.

The theme depended on NodeJS to build and deploy to GitHub for reasons that I’m sure made complete sense to the developer but I simply don’t care about. The documentation says to run npm run publish to build and push the site, doing so runs a script that does quite a bit of mucking about with the structure of the site.

# Checkout gh-pages branch.if [ `git branch | grep gh-pages` ]then  git branch -D gh-pagesfigit checkout -b gh-pages

First thing we do is create a new branch and check it out. So far so good, I guess.

# Build site.yarn install --modules-folder ./_assets/yarnbundle exec jekyll build

I’m not familier with yarn, but the site says that it provides “fast, reliable, and secure dependency management”. Ok, fair enough, but what dependencies could my little blog possibly have? Apparently, the package.json file it lists what yarn is downloading:

  "dependencies": {    "jquery": "^3.2.1",    "npm": "^6.0.1",    "retinajs": "^2.1.1",    "svgxuse": "^1.2.4",    "webfontloader": "^1.6.28",    "zooming": "^2.0.0"  }

Eh… ok. Why do I need NodeJS for this again? So, Yarn installs a bunch of Javascript and then Jekyll builds the site. Moving on…

# Delete and move files.find . -maxdepth 1 ! -name '_site' ! -name '.git' ! -name '.gitignore' -exec rm -rf {} \;mv _site/* .rm -R _site/

Now things are getting interesting. This deletes everything except the git directory, the .gitignore file, and the site Jekyll just built. Then it moves everything out of the _site directory into the root and deletes that directory as well.

# Push to gh-pages.git add -fAgit commit --allow-empty -m "$(git log -1 --pretty=%B) [ci skip]"git push -f -q origin gh-pages# Move back to previous branch.git checkout -yarn install --modules-folder ./_assets/yarn

Add, commit, and push the changes to Github under the gh-pages branch, then checkout whatever you had previously and reinstall all the javascript. When I tried this my site went offline. I think this script might be out of date. GitHub requires sites that won’t build in Jekyll to be in the master branch, and if you want to use a custom domain name you have to add a CNAME file with the domain name you want to use.

To work around this I setup a separate repository just for the source of the site and moved the built site into the master branch of the main repository. But, when I pulled everything down on my MacBook, the site wouldn’t compile, with Jekyll complaining about not being able to find Jquery. It was at this point I knew that I had gone down a terrible rabbit hole.

Luckily, I was able to get the site built once, so I had all the “compiled” code to work with. All I needed to do was use those files to build my own Jekyll theme with static assets and none of this Javascript build nonesene. Apparently the original theme was trying to do something fancy with the assets by dynamically renaming them and adding assets selectively to the compiled site. I don’t care about any of that.

Jekyll uses the liquid templating system, so it’s trivial to go through the site and add tags to pull in the content you need during build time. Using the theme as shipped caused me to need three different package managers to build a static site. That’s just not right. What’s so wrong with HTML, CSS, and just a little bit of Javascript?

I don’t know Nielsen, and I’m sure he had good reasons to build the theme like he did. I do think it’s beautiful and I’m thankful that he released it as open source so I could use it. For me though, I don’t need all those layers in my life. I just want an easy way to write and publish my site, and have it look and feel like something I care to have my name on.

It used to be you could learn how to build a web site by right-clicking and selecting “view source”. But now, everything easy is hard again.

Don’t fear the regex

Jump to Post

Although I do often write short programs for text munging, I typically resort to that only if the problem requires more than just large-scale text editing or if I expect to be repeating the process several times. And even then, I usually start out by playing around in BBEdit to see what searches, replacements, and rearrangements need to be done. It’s a convenient environment for getting immediate feedback on each transformation step.

I did this just yesterday setting up the tags for the new site layout. BBEdit is the kind of tool that makes difficult things easier and impossible things possible.

Merging the Mac and the iPad

It seems undeniable that, given an infinite timescale, Apple will eventually simplify their two most popular systems into a single platform. Merging MacOS and iOS would, theoretically anyway, provide the users with the best of both worlds, and developers would finally have a single platform to target instead of two. This concept seems to run counter to what Apple executives have said in the past about the Mac, specifically that “the Mac keeps going forever”, but the interview that statement comes from is five years old now, which… in silicon valley terms, really is forever ago.

Since then we’ve seen some interesting ideas come to market, like Microsoft’s Surface Studio, a desktop computer with a 27” 4k touchscreen and stylus , and an odd dial that can sit either on the desk or directly on the screen. Samsung is hooking their Galaxy phones up to a keyboard, monitor, and mouse to use the phone as a desktop computer through the DeX dock. Outside of Apple, touchscreens on mobile computers are nearly ubiquitous, from Windows 10 PCs to convertible Chromebooks. Inside of Apple though, we’ve seen almost no crossing of the streams… almost.

The iPad Pro is a computer unlike any other. Incredibly powerful, but hamstrung by limited software and user interaction capabilities. Geek Bench scores are impressive, but you can’t hook up a thumb drive. It looks like a good device for free-form drawing and artistic work, but outside of basic static sties you can’t use it for web development. More than anything, iOS’s reimagining of an operating system for the modern, mobile world eschews decades of proven user experience work that’s gone into the MacOS user interface. MacOS is consistent, discoverable, and reliable. A good Mac app behaves similarly to the other apps that run on the Mac. Copy & paste, undo & redo, and standard keyboard shortcuts function the same across well-designed 3rd party apps and Apple’s own bundled apps. At least they did, until Mojave.

Mojave introduced four new bundled applications to the Mac. Home, News, Stocks, & Voice Memos were ported directly over from iOS using an as-yet-unnamed unified development framework popularly referred to as Marzipan. Apparently the framework is only half-baked, because the apps themselves do not at all act like they belong on the platform. Keyboard shortcuts are missing, UI elements are entirely out of place, it’s a mess. On a recent episode of The Talk Show, Jason Snell and John Gruber discuss the future of these apps, and Snell suggests that what makes a “Mac app” might be changing to meld around what these new iOS apps on the Mac become once the framework is more stable. Niether Jason nor John are slouches when it comes to discussing the Mac, but in this particular case I think Jason is wrong.

What makes a good Mac app is not an indiscernable feel or look to the application. A good Mac app behaves the way that the Mac has taught people to expect applications to behave since 1984. That’s how an application looks and feels like it belongs on the Mac, when things are where they are expected to be, and the application responds as expected when the user interacts with it. If Apple wants to bring iOS apps to the Mac, I certainly hope they have more in store than this. These iOS apps are going to have to learn to behave how the users of the platform expect them to behave, not the other way around.

In many ways, I think Apple found themselves at this crossroads almost on accident. In fact, I think the “macification” of the iPad is to its detriment. iOS was never meant to be used the way the iPad Pro is advertised. Features like multitasking and windowing seem like they were wedged into the OS when Apple found themselves with a less popular platform than they’d hoped. Apple thought that the iPad was the future of computing… what if they’re wrong?

Apple stubbornly wants the iPad to be the future of computing, so they’ve been focusing on making it more capable for power users, adding more and more hardware power and confusing the pure simplicity of iOS with undiscoverable features and unfulfilled promises. What if, in the next couple years, Apple decides to right the ship and build a truly good MacBook/iOS hybrid?

What about an ARM mac with a detachable touchscreen? Or one that folds over on itself? What if Apple learned all the best lessons from Microsoft’s experiments with their Surface lineup and did it right with the Mac? What about an iMac you can draw on? I’d love to be able to create my OmniGraffle drawings on my Mac with a huge canvas and an Apple Pencil. I’d love to be able to use touch on my Mac to interact with the UI when appropriate, and use the trackpad and keyboard when not. Let the Mac grow the way the users actually want it to grow and let the iPad go back to being just the best tablet on the market. Apple could simplify iOS again, and concentrate on making the Mac the best tool for getting things done.