Better HN
topnewbestaskshowjobs
Log inSign up

stuartd

593 karma · joined Apr 6, 2011 (15y ago) · 327 submissions

https://stuartd.dev
Submissions

comment 5y ago · link · parent

I learned this technique the first time I actually worked with a real DBA many years ago and have used it ever since: one thing I like about it is that is mitigates the ‘fear factor’ of production changes, as (topically) ‘fear is the mind killer’ and makes mistakes more likely. Then there’s mitigating ‘complacency’ - “I do this all the time” - which can also lead to mistakes.

And yes, before that I had run an UPDATE without a WHERE in production..

comment 5y ago · link · parent

Does that allow you to set up a new PC as an exact copy of the old one? Because Time Machine does just that, and I’d really like to find the Windows equivalent.

comment 5y ago · link · parent

Backblaze is great, but it’s not a replacement for time machine (and I use both).

Being able to buy a new Mac and make it into an exact copy of the old Mac by using time machine is amazing - I’ve done it a few times over the years, and it still impresses me every time. Plus I have time machine backups from 2011 which I occasionally browse to see what my kids were up to then.

comment 5y ago · link · parent

You can set iOS Safari to default to reader mode for all websites in Safari/Website settings/Reader/All websites

Then for sites you don’t want to use reader mode in, you turn ‘User reader automatically’ off in the site settings.

comment 5y ago · link · parent

Perhaps not common, but certainly still in use: The Queen’s Duck - https://bwiggs.com/notebook/queens-duck/

comment 5y ago · link · parent

As a long-time Nightly build user as my main browser (since Phoenix 0.4 or so), I'm used to things breaking. So set my UA to this to see if anything happens:

> Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:93.0) Gecko/20100101 Firefox/1930.0

Edit: a blast from the past - an early Nightly Build post from Peter(6) on mozillazine - http://forums.mozillazine.org/viewtopic.php?t=102633

comment 5y ago · link · parent

Everyone: “don’t kill your customers!”

Google: “plenty more where they came from”

comment 5y ago · link · parent

Definitely agree. Blocked ads since 2003 or so, when they started going crazy. I even remember the name of the site I used for CSS ad blocking - https://www.gozer.org/mozilla/ad_blocking/

comment 5y ago · link · parent

If the $1,000,000 specialist machine you absolutely rely on needs XP or 9x, which is very often the case in medical or industrial scenarios, that's not an option. What you _can_ do is use an alternative to the built-in (un-updateable) browser: although you won't be able to get the most up-to-date version of any alternative browser, it's still way better.

comment 5y ago · link · parent

Containers are 1000 times better than profiles!

comment 5y ago · link · parent

The ampersand symbol is a ligature.

https://en.wikipedia.org/wiki/Orthographic_ligature

comment 5y ago · link · parent

The last thing I think I got from SO was an implementation of the Boyer-Moore Algorithm for a byte searcher. I think retyping it would have probably introduced bugs: and as it worked on a test case I had to hand and could verify (finding the data header size in a WAV file by looking for `data` followed by the SubChunk2Size bits, which I could verify with `afinfo`) I was happy to use it rather than learn how the algorithm worked.

As Morpheus said, “Time is always against us”.. so I just made sure it followed our coding standards, checked the test cases, and moved on.

But, I am old enough to remember code listings in magazines. I like to think the typesetters introduced deliberate mistakes because they hated the work so much - not to disrespect the fine profession of typesetters, but when you set your 100th `Poke` command in a row, you might think this isn’t what you signed up for..

comment 5y ago · link · parent

> End-to-end encryption poses an unacceptable risk to user safety

comment 5y ago · link · parent

archive.org link - https://web.archive.org/web/20210129191423/https://learn.rob...

And for the “what is communism” article referred to below:

https://web.archive.org/web/20201021210843/https://learn.rob...

comment 6y ago · link · parent

UK pumps still have a hole which you can push a little rod through to lock the pump on.

comment 6y ago · link · parent

For me, Proudhon [0] said it best, 180 years ago (did a bit of tidying, e.g. de-capitalization, paragraphing):

> To be governed is to be watched, inspected, spied upon, directed, law-driven, numbered, regulated, enrolled, indoctrinated, preached at, controlled, checked, estimated, valued, censured, commanded, by creatures who have neither the right nor the wisdom nor the virtue to do so.

> To be governed is to be at every operation, at every transaction noted, registered, counted, taxed, stamped, measured, numbered, assessed, licensed, authorized, admonished, prevented, forbidden, reformed, corrected, punished.

> It is, under pretext of public utility, and in the name of the general interest, to be placed under contribution, drilled, fleeced, exploited, monopolized, extorted from, squeezed, hoaxed, robbed; then, at the slightest resistance, the first word of complaint, to be repressed, fined, vilified, harassed, hunted down, abused, clubbed, disarmed, bound, choked, imprisoned, judged, condemned, shot, deported, sacrificed, sold, betrayed; and to crown all, mocked, ridiculed, derided, outraged, dishonored.

> That is government; that is its justice; that is its morality.

Edit: and I must include his canonical line, adapted for modern times:

> Whoever lays their hand on me to govern me is a usurper and tyrant, and I declare them my enemy.

[0] https://en.wikipedia.org/wiki/Pierre-Joseph_Proudhon#Anarchi...

comment 6y ago · link · parent

This is the story as I read it the other day:

https://jalopnik.com/uzi-nissan-internet-domain-owner-who-fo...

comment 6y ago · link · parent

I don’t see that in the parent comment, though, to which my misguided reply has been heavily downvoted? I guess I need to learn more about this. Edit: or just stay out of it.

comment 6y ago · link · parent

Ok sorry, please forgive my misunderstanding, it sounds like you’re saying Cloudflare is a ‘malicious DNS resolver’, but I guess I’m wrong there as well? I opted into DoH when it became available in Nightly (though not in the US), am I being a mug here?

comment 6y ago · link · parent

You’re seemingly pushing you own agenda here?

As the article itself says:

> Are other approaches feasible? For example, Firefox’s captive portal test uses delegated namespace probe queries, directing them away from the root servers towards the browser’s infrastructure.

comment 6y ago · link · parent

If someone finds an answer which helps them and so upvotes it, why should the reward depend on the age of the question?

comment 6y ago · link · parent

Please excuse my lame pun:

> foc-u-lus

comment 6y ago · link · parent

> Things that we do not worry about anymore: Javascript, controllers, CORS, JSON, HTTP status codes, API documentation, 3rd party dependencies.

That's a good looking list of things not to worry about. Especially CORS, the bane of my life.. the fact it's pre-flight has caused me so many problems in my (tiny) UI responsibility.

comment 6y ago · link · parent

I know it’s a feature, but even sites which allow you to set a timezone (eg Slack) still displayed times incorrectly. It was a tradeoff I was not prepared to make.

comment 6y ago · link · parent

I used privacy.resistFingerprinting until I realized that was the reason websites were displaying times incorrectly, as they receive the default timezone value of UTC - [0] - and I couldn't find a way around it.

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1330890

comment 6y ago · link · parent

> you have to be able to hold very large completely abstract systems in your brain. That's a different skill/aptitude than, for example, holding all the working parts of an internal combustion engine in your mind.

Is it really different though? “Why isn’t this engine working?” [traces through combustion path to find problem] doesn’t require ‘holding all the steps in you mind’ but it does require knowing them and how they interact, whereas “how do I make this engine more efficient?” does require a mental model of the whole engine and how the parts interact?

These seem broadly to me as analogous to respectively maintenance programming and systems development.

Edit: I think the part I don’t understand is why you think the abstract system (the code) is qualitatively different from the concrete system (the engine).

comment 6y ago · link · parent

> I can usually come up with working code to do whatever I've ever wanted to do

Been working as a programmer for 25 years, and I’ve never read (or considered reading, or felt the need to read) a book on data structures or algorithms.

Also, I’ve seen plenty of people who are employed as programmers who simply cannot come up with working code. I don’t see how you can write working code without problem-solving skills, as by definition you’re solving a problem by writing working code..?

(I don’t really have a point, sorry, this just resonated with me)

1
567
11