I guess npm doesn’t find a version of a package that matches the current environment when doing npm install whatever.
Toby's Log page 28
I’m glad the sun and warm weather are returning to Northeast Ohio.
Continue reading post "#3307"I successfully switched my regular Firefox profiles back from Developer Edition to regular edition by waiting for the version to update.
Continue reading post "#3305"Recaptcha and prototype.js conflict
One of Cogneato’s clients noticed that Recaptcha wasn’t working on their site. The checkbox wouldn’t check at all. I noticed that there was an error like “Unexpected token in JSON at position 0” in the browser’s console log. Since this was one of our really old sites, I figured it might have some sort of inadequate polyfill for JSON.parse(). I saw that the site was using Prototype.js, so I looked through the script to see if it was overriding that method, but it wasn’t. That did put me on the right track, though, to find the Stackoverflow answer that solved it for me.
Prototype was overriding the now browser standard reduce() method of Array.prototype with its own, incompatible functionality. The solution was simply to remove that method from the “prototype.js” file. We weren’t using the special Prototype functionality anywhere, so this didn’t cause a problem. If we were, we’d probably have to duck punch the browser’s functionality to handle both method signatures.
I feel like Larry Nance Jr. is proving himself the MVP of the Cavs by their terrible performance since his injury.
Continue reading post "#3297"Seems like domain registrars strip off “www.” from the beginning of domains when searching, even when trying it as a second level domain.
Continue reading post "#3294"Easily typed passwords
I came across an interesting Stackexchange question about easy to type passwords. It seems a useful consideration for passwords we have to type frequently. Reading through the answers got me to thinking about a solution that fits the criteria of easy / fast to type along with the general password criteria of easy to remember and some reasonable level of secure.
My solution considers typing style for determining ease and uses words and rules for making them memorable. It keeps to the rules from the question of at least one upper case letter, one number, and one symbol.
Continue reading post "Easily typed passwords"Ideas: compute furnace
Furnace with a powerful computer system providing the heat. Will use compute cycles for scientific research or other social or personal purposes, running things like BOINC, Folding at Home, crypto mining, or rented “cloud” usage. Fans or liquid cooling systems will carry heat to a traditional forced air or water boiler system to distribute the heat throughout the home / building. System will increase or decrease CPU usage based on thermostatic control.
Continue reading post "Ideas: compute furnace"I shoveled my drive and cleaned off my car today to go out after not having left the house for nearly a week.
Continue reading post "#3283"Fallback webfont and emoji
Recently I found that browsers will download a fallback webfont (@font-face) to try to find an emoji or other missing character. I was looking at the perf characteristics of my site when I noticed that the browser was downloading a webfont that wasn’t being used at all. After some digging, I found that the browser was going down through the full font stack to try to find an emoji I had added to that page, downloading the webfont on the way.
This is probably not a common setup, but I have a webfont in my font stack down stack from some similar common system fonts, as a fallback just in case. It uses a nice system font unless it can’t find it, in which case it uses the webfont, unless it can’t use that, in which case it uses a less desirable system font or the generic font class.
Continue reading post "Fallback webfont and emoji"